refactor(webui): regroup core/ui + core/boot into named subsystems
Final structural phase — the catch-all core/ui/ is gone and core/boot/ keeps
only the genuine bootstrap pipeline:
core/ui/eo-modal.js, confirmation-dialog.js -> core/overlays/
core/ui/notifications.js -> core/notifications/
core/ui/topbar.{js,html}, mobile-menu.js -> core/topbar/
core/ui/update-notifier.js -> core/update-notifier/
core/ui/backup-app-card.js -> core/backup-card/ (shared widget)
core/boot/controls/ -> core/forms/controls/
core/boot/setup/ -> core/setup/
core/boot/loading-ui.js -> core/loading/
core/boot/auth-manager.js -> core/boot/auth/
Each subsystem now owns its JS + CSS together (topbar.js beside topbar.css,
auth-manager beside login.css, etc.). Path-only moves; rewrote literals in
index.html, system-loader.js (confirmation/notifications/topbar/mobile-menu/
update-notifier/apps bundles), topbar.js's internal fetch('/core/topbar/
topbar.html'), and all THREE backup-app-card loaders (system-loader, backup/
index.js, spa.js). core/boot now = system-loader, system-orchestrator, auth/.
All 24 referenced paths resolve; full node --check sweep clean.
Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
230188b898
commit
5351da5b4c
@ -31,7 +31,7 @@ LP.features.register({
|
|||||||
'/components/backup/configuration/js/backup-configuration.js',
|
'/components/backup/configuration/js/backup-configuration.js',
|
||||||
'/components/backup/configuration/js/backup-retention-presets.js',
|
'/components/backup/configuration/js/backup-retention-presets.js',
|
||||||
'/components/backup/configuration/js/backup-engine-details.js',
|
'/components/backup/configuration/js/backup-engine-details.js',
|
||||||
'/core/ui/backup-app-card.js',
|
'/core/backup-card/backup-app-card.js',
|
||||||
],
|
],
|
||||||
|
|
||||||
async mount(ctx) {
|
async mount(ctx) {
|
||||||
|
|||||||
@ -69,9 +69,9 @@ class SystemLoader {
|
|||||||
global: null,
|
global: null,
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
scripts: [
|
scripts: [
|
||||||
'/core/ui/topbar.js',
|
'/core/topbar/topbar.js',
|
||||||
'/core/ui/update-notifier.js',
|
'/core/update-notifier/update-notifier.js',
|
||||||
'/core/ui/mobile-menu.js'
|
'/core/topbar/mobile-menu.js'
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ class SystemLoader {
|
|||||||
},
|
},
|
||||||
global: null,
|
global: null,
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
script: '/core/ui/confirmation-dialog.js'
|
script: '/core/overlays/confirmation-dialog.js'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Notifications
|
// Notifications
|
||||||
@ -106,7 +106,7 @@ class SystemLoader {
|
|||||||
},
|
},
|
||||||
global: 'notificationSystem',
|
global: 'notificationSystem',
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
script: '/core/ui/notifications.js'
|
script: '/core/notifications/notifications.js'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Dashboard
|
// Dashboard
|
||||||
@ -209,7 +209,7 @@ class SystemLoader {
|
|||||||
scripts: [
|
scripts: [
|
||||||
'/components/apps/port-manager/js/port-manager.js',
|
'/components/apps/port-manager/js/port-manager.js',
|
||||||
'/core/tasks/task-manager.js', // Add TaskManager for backup functionality
|
'/core/tasks/task-manager.js', // Add TaskManager for backup functionality
|
||||||
'/core/ui/backup-app-card.js',
|
'/core/backup-card/backup-app-card.js',
|
||||||
'/components/apps/services/js/services-manager.js',
|
'/components/apps/services/js/services-manager.js',
|
||||||
'/components/apps/tools/js/tools-manager.js',
|
'/components/apps/tools/js/tools-manager.js',
|
||||||
'/components/apps/routing/js/routing-manager.js',
|
'/components/apps/routing/js/routing-manager.js',
|
||||||
|
|||||||
@ -369,7 +369,7 @@ class LibrePortalSPAClean {
|
|||||||
// loadScript is idempotent — subsequent /backup navigations are no-ops.
|
// loadScript is idempotent — subsequent /backup navigations are no-ops.
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.loadScript('/components/backup/core/js/backup-page.js'),
|
this.loadScript('/components/backup/core/js/backup-page.js'),
|
||||||
this.loadScript('/core/ui/backup-app-card.js')
|
this.loadScript('/core/backup-card/backup-app-card.js')
|
||||||
]);
|
]);
|
||||||
const html = await this.fetchContent('/components/backup/core/html/backup-content.html');
|
const html = await this.fetchContent('/components/backup/core/html/backup-content.html');
|
||||||
this.loadContent(html, 'Backups');
|
this.loadContent(html, 'Backups');
|
||||||
|
|||||||
@ -50,7 +50,7 @@ class TopbarComponent {
|
|||||||
// Load fresh topbar HTML
|
// Load fresh topbar HTML
|
||||||
try {
|
try {
|
||||||
//// // console.log('Loading topbar HTML (SPA mode)');
|
//// // console.log('Loading topbar HTML (SPA mode)');
|
||||||
const response = await fetch('/core/ui/topbar.html');
|
const response = await fetch('/core/topbar/topbar.html');
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`Failed to load topbar: ${response.status}`);
|
throw new Error(`Failed to load topbar: ${response.status}`);
|
||||||
}
|
}
|
||||||
@ -67,8 +67,8 @@
|
|||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script src="/core/theme/theme-registry.js"></script>
|
<script src="/core/theme/theme-registry.js"></script>
|
||||||
<script src="/core/boot/controls/custom-select.js"></script>
|
<script src="/core/forms/controls/custom-select.js"></script>
|
||||||
<script src="/core/boot/controls/custom-number.js"></script>
|
<script src="/core/forms/controls/custom-number.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Topbar Container -->
|
<!-- Topbar Container -->
|
||||||
@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<!-- Auth must load first — gates all other initialization -->
|
<!-- Auth must load first — gates all other initialization -->
|
||||||
<script src="/core/boot/auth-manager.js"></script>
|
<script src="/core/boot/auth/auth-manager.js"></script>
|
||||||
<!-- Essential Bootstrap -->
|
<!-- Essential Bootstrap -->
|
||||||
<!-- LpUi runs first so body.lp-ui--advanced / lp-ui--dev are set
|
<!-- LpUi runs first so body.lp-ui--advanced / lp-ui--dev are set
|
||||||
before any page/component renders → no FOUC of advanced sections. -->
|
before any page/component renders → no FOUC of advanced sections. -->
|
||||||
@ -95,14 +95,14 @@
|
|||||||
<script src="/core/data-loader/data-loader.js"></script>
|
<script src="/core/data-loader/data-loader.js"></script>
|
||||||
<script src="/core/live/live-system.js"></script>
|
<script src="/core/live/live-system.js"></script>
|
||||||
<script src="/core/ui-state/dismissible.js"></script>
|
<script src="/core/ui-state/dismissible.js"></script>
|
||||||
<script src="/core/ui/eo-modal.js"></script>
|
<script src="/core/overlays/eo-modal.js"></script>
|
||||||
<script src="/core/tasks/task-refresh-coordinator.js"></script>
|
<script src="/core/tasks/task-refresh-coordinator.js"></script>
|
||||||
<script src="/components/dashboard/js/dashboard.js"></script>
|
<script src="/components/dashboard/js/dashboard.js"></script>
|
||||||
<script src="/core/boot/system-loader.js"></script>
|
<script src="/core/boot/system-loader.js"></script>
|
||||||
<script src="/core/boot/loading-ui.js"></script>
|
<script src="/core/loading/loading-ui.js"></script>
|
||||||
<script src="/core/boot/setup/setup-detector.js"></script>
|
<script src="/core/setup/setup-detector.js"></script>
|
||||||
<script src="/core/boot/setup/setup-wizard.js"></script>
|
<script src="/core/setup/setup-wizard.js"></script>
|
||||||
<script src="/core/boot/setup/setup-completion-watcher.js"></script>
|
<script src="/core/setup/setup-completion-watcher.js"></script>
|
||||||
<script src="/core/boot/system-orchestrator.js"></script>
|
<script src="/core/boot/system-orchestrator.js"></script>
|
||||||
<!-- Feature-module kernel. Currently passive: defines window.LP.features and
|
<!-- Feature-module kernel. Currently passive: defines window.LP.features and
|
||||||
loads the page manifest; spa.js consults it for routing. See
|
loads the page manifest; spa.js consults it for routing. See
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user