2019-07-05 03:19:24 +08:00
|
|
|
import { runSettingsViewModelHooks } from 'Common/Plugins';
|
2016-07-07 07:11:13 +08:00
|
|
|
|
2021-01-26 18:46:30 +08:00
|
|
|
import { AbstractSettingsScreen, settingsAddViewModel } from 'Screen/AbstractSettings';
|
2016-07-07 07:11:13 +08:00
|
|
|
|
2022-03-08 07:51:32 +08:00
|
|
|
import { AdminSettingsGeneral } from 'Settings/Admin/General';
|
|
|
|
import { AdminSettingsDomains } from 'Settings/Admin/Domains';
|
|
|
|
import { AdminSettingsLogin } from 'Settings/Admin/Login';
|
|
|
|
import { AdminSettingsContacts } from 'Settings/Admin/Contacts';
|
|
|
|
import { AdminSettingsSecurity } from 'Settings/Admin/Security';
|
|
|
|
import { AdminSettingsPackages } from 'Settings/Admin/Packages';
|
|
|
|
import { AdminSettingsAbout } from 'Settings/Admin/About';
|
|
|
|
import { AdminSettingsBranding } from 'Settings/Admin/Branding';
|
|
|
|
import { AdminSettingsConfig } from 'Settings/Admin/Config';
|
2016-07-16 03:54:37 +08:00
|
|
|
|
2019-07-05 03:19:24 +08:00
|
|
|
import { MenuSettingsAdminView } from 'View/Admin/Settings/Menu';
|
|
|
|
import { PaneSettingsAdminView } from 'View/Admin/Settings/Pane';
|
2016-08-17 06:01:20 +08:00
|
|
|
|
2021-01-22 23:32:08 +08:00
|
|
|
export class SettingsAdminScreen extends AbstractSettingsScreen {
|
2016-07-16 05:29:42 +08:00
|
|
|
constructor() {
|
2019-07-05 03:19:24 +08:00
|
|
|
super([MenuSettingsAdminView, PaneSettingsAdminView]);
|
2016-07-07 07:11:13 +08:00
|
|
|
|
2021-01-22 23:32:08 +08:00
|
|
|
[
|
2022-03-08 07:51:32 +08:00
|
|
|
AdminSettingsGeneral,
|
|
|
|
AdminSettingsDomains,
|
|
|
|
AdminSettingsLogin,
|
|
|
|
AdminSettingsBranding,
|
|
|
|
AdminSettingsContacts,
|
|
|
|
AdminSettingsSecurity,
|
|
|
|
AdminSettingsPackages,
|
|
|
|
AdminSettingsConfig,
|
|
|
|
AdminSettingsAbout
|
|
|
|
].forEach((item, index) =>
|
|
|
|
settingsAddViewModel(item, 0, 0, 0, 0 === index)
|
2021-01-22 23:32:08 +08:00
|
|
|
);
|
2016-07-07 07:11:13 +08:00
|
|
|
|
|
|
|
runSettingsViewModelHooks(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
onShow() {
|
2020-09-04 18:05:17 +08:00
|
|
|
rl.setWindowTitle();
|
2016-07-07 07:11:13 +08:00
|
|
|
}
|
|
|
|
}
|