import Component from 'flarum/Component'; import FieldSet from 'flarum/components/FieldSet'; import Select from 'flarum/components/Select'; import Button from 'flarum/components/Button'; import Alert from 'flarum/components/Alert'; import saveConfig from 'flarum/utils/saveConfig'; export default class BasicsPage extends Component { constructor(...args) { super(...args); this.loading = false; this.fields = [ 'forum_title', 'forum_description', 'default_locale', 'default_route', 'welcome_title', 'welcome_message' ]; this.values = {}; const config = app.config; this.fields.forEach(key => this.values[key] = m.prop(config[key])); this.localeOptions = {}; const locales = app.locales; for (const i in locales) { this.localeOptions[i] = `${locales[i]} (${i})`; } } view() { return (
{FieldSet.component({ label: 'Forum Title', children: [ ] })} {FieldSet.component({ label: 'Forum Description', children: [
Enter a short sentence or two that describes your community. This will appear in the meta tag and show up in search engines.
,