feat(hexojs): Add tabs to KISS sidebar navigation

- Add HexoJS tabs (Overview, Posts, Editor, Media, Deploy, Sync, Theme,
  Settings) to kiss-theme.js nav config
- Remove duplicate inline tabs from overview.js
- Tabs now appear in sidebar when HexoJS is selected

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-16 10:43:27 +01:00
parent 1585975e90
commit 7bfec387dc
2 changed files with 12 additions and 4 deletions

View File

@ -4,12 +4,10 @@
'require rpc';
'require hexojs/api as api';
var K = null; // KissTheme reference
return view.extend({
load: function() {
return Promise.all([
L.require('secubox/kiss-theme').then(function(m) { K = new m(); }),
L.require('secubox/kiss-theme'),
api.listInstances(),
api.getStatus(),
api.getSiteStats(),
@ -21,6 +19,7 @@ return view.extend({
render: function(d) {
var self = this;
var K = window.KissTheme;
K.apply();
return K.wrap([

View File

@ -99,7 +99,16 @@ var KissThemeClass = baseclass.extend({
{ icon: '☁️', name: 'Nextcloud', path: 'admin/secubox/services/nextcloud' },
{ icon: '🎬', name: 'Media Flow', path: 'admin/services/media-flow' },
{ icon: '🪞', name: 'MagicMirror', path: 'admin/services/magicmirror2' },
{ icon: '📰', name: 'HexoJS', path: 'admin/services/hexojs' },
{ icon: '📰', name: 'HexoJS', path: 'admin/services/hexojs', tabs: [
{ name: 'Overview', path: 'admin/services/hexojs/overview' },
{ name: 'Posts', path: 'admin/services/hexojs/posts' },
{ name: 'Editor', path: 'admin/services/hexojs/editor' },
{ name: 'Media', path: 'admin/services/hexojs/media' },
{ name: 'Deploy', path: 'admin/services/hexojs/deploy' },
{ name: 'Sync', path: 'admin/services/hexojs/sync' },
{ name: 'Theme', path: 'admin/services/hexojs/theme' },
{ name: 'Settings', path: 'admin/services/hexojs/settings' }
]},
{ icon: '📺', name: 'Netdata', path: 'admin/services/netdata-dashboard' },
{ icon: '🏠', name: 'Vhost Manager', path: 'admin/services/vhost-manager' },
{ icon: '📦', name: 'App Store', path: 'admin/secubox/apps' }