diff --git a/js/src/admin/components/ByobuSettingsPage.tsx b/js/src/admin/components/ByobuSettingsPage.tsx index 12aa5bf..3dd023f 100644 --- a/js/src/admin/components/ByobuSettingsPage.tsx +++ b/js/src/admin/components/ByobuSettingsPage.tsx @@ -2,70 +2,131 @@ import app from 'flarum/admin/app'; import ExtensionPage from 'flarum/admin/components/ExtensionPage'; import Badge from 'flarum/common/components/Badge'; import icon from 'flarum/common/helpers/icon'; +import ItemList from 'flarum/common/utils/ItemList'; import type Mithril from 'mithril'; -export default class ByobuSetingsPage extends ExtensionPage { +export default class ByobuSettingsPage extends ExtensionPage { badgeDefault: string = 'fas fa-map'; postActionDefault: string = 'far fa-map'; content() { - const helpText = flarum.extensions['flarum-tags'] - ? app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { - a: , - }) - : ''; - return (
{app.translator.trans('fof-byobu.admin.settings.general.help')}
+ {this.generalItems().toArray()} +{app.translator.trans('fof-byobu.admin.settings.icon.help')}
+ {this.iconItems().toArray()} +