import React from 'react'; import { Input, Button, Container, Icon } from '../../components/'; import { Config, Admin } from '../../model/'; import { notify, FormObjToJSON, alert, prompt } from '../../helpers'; import { bcrypt_password } from '../../helpers/bcrypt'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import "./setup.scss"; export class SetupPage extends React.Component { constructor(props){ super(props); this.state = { stage: 0, password: "", enable_telemetry: false, creating_password: false }; } createPassword(e){ this.setState({creating_password: true}); e.preventDefault(); Config.all().then((config) => { this.setState({enable_telemetry: config.log.telemetry.value}, () => { if(this.state.enable_telemetry === true) return; this.unlisten = this.props.history.listen((location, action) => { this.unlisten(); alert.now((
Help making this software better by sending crash reports and anonymous usage statistics
Let's start by protecting the admin area with a password:
This is the place where you can configure filestash to your liking. Feel free to poke around.
You can come back by navigating at `{window.location.origin + "/admin"}`.
Have fun!