import './site.scss'; import { h, Component } from 'preact'; import * as settingActions from 'settings/actions/setting'; import * as validator from 'shared/validators/setting'; class SettingsComponent extends Component { constructor(props, context) { super(props, context); this.state = { settings: { json: '', } }; this.context.store.subscribe(this.stateChanged.bind(this)); } componentDidMount() { this.context.store.dispatch(settingActions.load()); } stateChanged() { let settings = this.context.store.getState(); this.setState({ settings: { source: settings.source, json: settings.json, } }); } render() { return (

Configure Vim-Vixen

Load settings from: