{ "widgettype": "VBox", "options": { "width": "100%", "height": "100%" }, "subwidgets": [ { "widgettype": "HBox", "options": { "height": "48px", "width": "100%", "bgcolor": "#ffffff", "borderBottom": "1px solid #e2e8f0", "padding": "0 16px", "halign": "space-between", "valign": "center" }, "subwidgets": [ { "widgettype": "HBox", "options": { "spacing": "8px", "valign": "center" }, "subwidgets": [ { "widgettype": "Text", "options": { "otext": "PCCS", "cfontsize": 1.2, "fontWeight": "bold", "color": "#1e293b" } }, { "widgettype": "Text", "options": { "otext": "算力中心集群系统", "cfontsize": 0.8, "color": "#94a3b8" } } ] }, { "widgettype": "Filler" }, { "widgettype": "Button", "id": "theme_toggle_btn", "options": { "label": "🌓", "width": "36px", "height": "36px", "padding": "0" }, "binds": [ { "wid": "self", "event": "click", "actiontype": "script", "target": "app", "script": "var h=document.documentElement;var t=h.getAttribute('data-theme')||'light';var n=t=='light'?'dark':'light';h.setAttribute('data-theme',n);localStorage.setItem('pccs-theme',n);var b=bricks.getWidgetById('theme_toggle_btn',bricks.app);if(b){b.opts.label=n=='light'?'🌙':'☀️';b.dom_element.textContent=b.opts.label}" } ] }, { "widgettype": "urlwidget", "options": { "url": "{{entire_url('i18n/language.ui')}}" } }, { "widgettype": "urlwidget", "options": { "url": "{{entire_url('/rbac/user/user_panel.ui')}}" } } ] }, { "widgettype": "HBox", "options": { "css": "filler", "width": "100%" }, "subwidgets": [ { "widgettype": "VBox", "id": "pccs_sidebar", "options": { "width": "220px", "minWidth": "200px", "height": "100%", "bgcolor": "#0f172a", "padding": "16px 0" }, "subwidgets": [ { "widgettype": "Menu", "id": "pccs_menu", "options": { "width": "100%", "height": "100%", "menuitem_css": "menuitem", "items": [ { "name": "dashboard", "label": "📊 概览", "icon": "", "url": "{{entire_url('/pccs/overview.dspy')}}", "target": "app.pccs_main_content" }, { "name": "pool", "label": "📦 算力池管理", "icon": "", "items": [ { "name": "pool_list", "label": "算力池列表", "url": "{{entire_url('/pcpool/compute_pool_list/index.ui')}}", "target": "app.pccs_main_content" } ] }, { "name": "cluster", "label": "🖥 集群管理", "icon": "", "items": [ { "name": "cluster_list", "label": "集群列表", "url": "{{entire_url('/pcc/cluster_list/index.ui')}}", "target": "app.pccs_main_content" } ] }, { "name": "storage", "label": "💾 存储管理", "icon": "", "items": [ { "name": "storage_server", "label": "存储服务器", "url": "{{entire_url('/storage_mgr/storage_server_list/index.ui')}}", "target": "app.pccs_main_content" }, { "name": "storage_export", "label": "存储导出", "url": "{{entire_url('/storage_mgr/storage_export_list/index.ui')}}", "target": "app.pccs_main_content" }, { "name": "storage_mount", "label": "存储挂载", "url": "{{entire_url('/storage_mgr/storage_mount_list/index.ui')}}", "target": "app.pccs_main_content" } ] }, { "name": "image", "label": "🏗 镜像管理", "icon": "", "items": [ { "name": "mirror_source", "label": "镜像源配置", "url": "{{entire_url('/image_mgr/mirror_source_list/index.ui')}}", "target": "app.pccs_main_content" }, { "name": "image_registry", "label": "镜像仓库", "url": "{{entire_url('/image_mgr/image_registry_list/index.ui')}}", "target": "app.pccs_main_content" }, { "name": "container_image", "label": "容器镜像", "url": "{{entire_url('/image_mgr/container_image_list/index.ui')}}", "target": "app.pccs_main_content" } ] } ] } } ] }, { "widgettype": "VScrollPanel", "options": { "css": "filler", "width": "100%", "height": "100%" }, "subwidgets": [ { "widgettype": "urlwidget", "options": { "url": "{{entire_url('/pccs/overview.dspy')}}", "width": "100%", "height": "100%" } }, { "widgettype": "HBox", "options": { "width": "100%", "height": "32px", "bgcolor": "#f8fafc", "borderTop": "1px solid #e2e8f0", "padding": "0 16px", "halign": "center", "valign": "center" }, "subwidgets": [ { "widgettype": "Text", "options": { "otext": "© 2026 PCCS 算力中心集群系统 | ICP备案号:粤ICP备XXXXXXXX号", "cfontsize": 0.7, "color": "#94a3b8" } } ] } ], "id": "pccs_main_content" } ] } ] }