Compare commits
2 Commits
a82d4b75dd
...
55eecd6dfe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55eecd6dfe | ||
|
|
eaafd1bb38 |
@ -44,8 +44,8 @@ if (typeof window.ConfigManager === 'undefined') {
|
|||||||
try { this.sidebar.populateSidebar(); } catch (e) {}
|
try { this.sidebar.populateSidebar(); } catch (e) {}
|
||||||
// charts.js is the chart-rendering helper admin-overview pulls in.
|
// charts.js is the chart-rendering helper admin-overview pulls in.
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
lazyLoad('/js/components/admin/admin-overview.js'),
|
lazyLoad('/features/admin/admin-overview.js'),
|
||||||
lazyLoad('/js/components/admin/charts.js')
|
lazyLoad('/features/admin/charts.js')
|
||||||
]);
|
]);
|
||||||
if (typeof AdminOverview !== 'undefined') {
|
if (typeof AdminOverview !== 'undefined') {
|
||||||
window.adminOverview = new AdminOverview('config-section');
|
window.adminOverview = new AdminOverview('config-section');
|
||||||
@ -60,7 +60,7 @@ if (typeof window.ConfigManager === 'undefined') {
|
|||||||
// a config category — render its own controller into the main pane.
|
// a config category — render its own controller into the main pane.
|
||||||
if (category === 'ssh-access') {
|
if (category === 'ssh-access') {
|
||||||
try { this.sidebar.populateSidebar(); } catch (e) {}
|
try { this.sidebar.populateSidebar(); } catch (e) {}
|
||||||
await lazyLoad('/js/components/ssh/ssh-page.js');
|
await lazyLoad('/features/admin/ssh-page.js');
|
||||||
if (typeof SshPage !== 'undefined') {
|
if (typeof SshPage !== 'undefined') {
|
||||||
window.sshPage = new SshPage('config-section');
|
window.sshPage = new SshPage('config-section');
|
||||||
await window.sshPage.init();
|
await window.sshPage.init();
|
||||||
@ -76,7 +76,7 @@ if (typeof window.ConfigManager === 'undefined') {
|
|||||||
// we inject its content template, then init PeersPage.
|
// we inject its content template, then init PeersPage.
|
||||||
if (category === 'peers') {
|
if (category === 'peers') {
|
||||||
try { this.sidebar.populateSidebar(); } catch (e) {}
|
try { this.sidebar.populateSidebar(); } catch (e) {}
|
||||||
await lazyLoad('/js/components/peers/peers-page.js');
|
await lazyLoad('/features/admin/peers-page.js');
|
||||||
try {
|
try {
|
||||||
const html = await fetch('/html/peers-content.html').then(r => r.text());
|
const html = await fetch('/html/peers-content.html').then(r => r.text());
|
||||||
configSection.innerHTML = html;
|
configSection.innerHTML = html;
|
||||||
@ -100,10 +100,10 @@ if (typeof window.ConfigManager === 'undefined') {
|
|||||||
if (category === 'system') {
|
if (category === 'system') {
|
||||||
try { this.sidebar.populateSidebar(); } catch (e) {}
|
try { this.sidebar.populateSidebar(); } catch (e) {}
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
lazyLoad('/js/components/admin/charts.js'),
|
lazyLoad('/features/admin/charts.js'),
|
||||||
lazyLoad('/js/components/admin/admin-system.js'),
|
lazyLoad('/features/admin/admin-system.js'),
|
||||||
lazyLoad('/js/components/admin/system-metric-page.js'),
|
lazyLoad('/features/admin/system-metric-page.js'),
|
||||||
lazyLoad('/js/components/admin/system-storage-page.js')
|
lazyLoad('/features/admin/system-storage-page.js')
|
||||||
]);
|
]);
|
||||||
if (typeof AdminSystem !== 'undefined') {
|
if (typeof AdminSystem !== 'undefined') {
|
||||||
window.adminSystem = new AdminSystem('config-section');
|
window.adminSystem = new AdminSystem('config-section');
|
||||||
@ -16,11 +16,11 @@
|
|||||||
<link rel="stylesheet" href="/css/loading-screen.css">
|
<link rel="stylesheet" href="/css/loading-screen.css">
|
||||||
<link rel="stylesheet" href="/css/setup-wizard.css">
|
<link rel="stylesheet" href="/css/setup-wizard.css">
|
||||||
<link rel="stylesheet" href="/css/style.css">
|
<link rel="stylesheet" href="/css/style.css">
|
||||||
<link rel="stylesheet" href="/css/ip-whitelist.css">
|
<link rel="stylesheet" href="/features/admin/ip-whitelist.css">
|
||||||
<link rel="stylesheet" href="/features/apps/port-manager.css">
|
<link rel="stylesheet" href="/features/apps/port-manager.css">
|
||||||
<link rel="stylesheet" href="/features/backup/backup.css">
|
<link rel="stylesheet" href="/features/backup/backup.css">
|
||||||
<link rel="stylesheet" href="/css/ssh.css">
|
<link rel="stylesheet" href="/features/admin/ssh.css">
|
||||||
<link rel="stylesheet" href="/css/admin.css">
|
<link rel="stylesheet" href="/features/admin/admin.css">
|
||||||
<link rel="stylesheet" href="/features/apps/services.css">
|
<link rel="stylesheet" href="/features/apps/services.css">
|
||||||
<link rel="stylesheet" href="/css/modal.css">
|
<link rel="stylesheet" href="/css/modal.css">
|
||||||
<link rel="stylesheet" href="/features/apps/tools.css">
|
<link rel="stylesheet" href="/features/apps/tools.css">
|
||||||
@ -31,8 +31,8 @@
|
|||||||
<link rel="stylesheet" href="/css/sidebar.css">
|
<link rel="stylesheet" href="/css/sidebar.css">
|
||||||
<link rel="stylesheet" href="/features/apps/apps-layout.css">
|
<link rel="stylesheet" href="/features/apps/apps-layout.css">
|
||||||
<link rel="stylesheet" href="/features/apps/apps.css">
|
<link rel="stylesheet" href="/features/apps/apps.css">
|
||||||
<link rel="stylesheet" href="/css/forms.css">
|
<link rel="stylesheet" href="/shared/css/forms.css">
|
||||||
<link rel="stylesheet" href="/css/config.css">
|
<link rel="stylesheet" href="/shared/css/config.css">
|
||||||
<link rel="stylesheet" href="/features/apps/service-buttons.css">
|
<link rel="stylesheet" href="/features/apps/service-buttons.css">
|
||||||
<link rel="stylesheet" href="/features/dashboard/dashboard.css">
|
<link rel="stylesheet" href="/features/dashboard/dashboard.css">
|
||||||
<link rel="stylesheet" href="/features/tasks/tasks.css">
|
<link rel="stylesheet" href="/features/tasks/tasks.css">
|
||||||
|
|||||||
@ -39,18 +39,18 @@ class SystemLoader {
|
|||||||
global: 'configManager',
|
global: 'configManager',
|
||||||
dependencies: ['data'],
|
dependencies: ['data'],
|
||||||
scripts: [
|
scripts: [
|
||||||
'/js/components/config/config-options.js',
|
'/shared/js/config-options.js',
|
||||||
'/js/components/config/config-shared.js',
|
'/shared/js/config-shared.js',
|
||||||
'/js/components/config/config-validator.js',
|
'/features/admin/config-validator.js',
|
||||||
'/js/components/config/toggle-manager.js',
|
'/features/admin/toggle-manager.js',
|
||||||
'/js/components/config/config-core.js',
|
'/features/admin/config-core.js',
|
||||||
'/js/components/config/domain-manager.js',
|
'/features/admin/domain-manager.js',
|
||||||
'/js/components/config/ip-whitelist-manager.js',
|
'/features/admin/ip-whitelist-manager.js',
|
||||||
'/js/components/config/config-renderer.js',
|
'/features/admin/config-renderer.js',
|
||||||
'/js/components/config/config-sidebar.js',
|
'/features/admin/config-sidebar.js',
|
||||||
'/js/components/config/config-form.js',
|
'/features/admin/config-form.js',
|
||||||
'/js/components/config/config-utils.js',
|
'/features/admin/config-utils.js',
|
||||||
'/js/components/config/config-manager.js'
|
'/features/admin/config-manager.js'
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user