replace the monochrome theme with the CYBER neon-cyan skin
The project shipped a black-and-white theme that was only half converted: the login page looked right, the message page was halfway, and the settings page had not been started. This finishes the move to the CYBER reference in prototype_reference/. Colors now come from a single token source (styles/variables.scss), where every semantic color is declared twice: once as OKLCH for the CSS, and once as an RGB triple so translucent variants can be built as rgba(var(--*-rgb), alpha). Cyan is the system itself, amber means the user has to intervene, green means the machine is working, and red only ever means something broke. The RGB triples are derived from the OKLCH values so the two declarations cannot drift apart. Pages adopt the .cy-* shell classes from the reference (view, panel, kpis, tabs, grid, table, field) instead of ad-hoc markup, which is what makes 19 of 26 views consistent. The remaining seven are deliberately bespoke: chat streams, the kanban board, the workflow canvas, the terminal, and the missing-agent screen. The chart palette and the kanban column colors move into single-source modules so they cannot drift either. A new guard test rejects raw hex colors, named colors, and literal RGB triples anywhere in the client source, with an explicit exemption list for the places that genuinely cannot read a CSS variable. The existing chat semantics spec keeps the chat chain honest. No behavior changes: no logic, no i18n keys, no data structures, and the /chat-run event contract is untouched.
This commit is contained in:
@@ -320,6 +320,11 @@ export default {
|
||||
lastScanned: 'Last scanned: {time}',
|
||||
refresh: 'Refresh',
|
||||
empty: 'No devices found',
|
||||
kpiDiscovered: 'Discovered',
|
||||
kpiOnline: 'Online',
|
||||
kpiOffline: 'Offline',
|
||||
kpiRequests: 'Pending requests',
|
||||
discoveredHosts: 'Discovered hosts',
|
||||
computer: 'Computer',
|
||||
endpointLabel: 'Endpoint',
|
||||
statusLabel: 'Status',
|
||||
@@ -1009,6 +1014,7 @@ export default {
|
||||
runs: 'runs',
|
||||
noRuns: 'No run history found.',
|
||||
},
|
||||
sectionList: 'Task List',
|
||||
},
|
||||
|
||||
// Skills
|
||||
@@ -1525,6 +1531,12 @@ export default {
|
||||
searchPlaceholder: 'Search...',
|
||||
refresh: 'Refresh',
|
||||
noEntries: 'No log entries',
|
||||
total: 'Total',
|
||||
error: 'ERROR',
|
||||
warning: 'WARNING',
|
||||
info: 'INFO',
|
||||
stream: 'Log stream',
|
||||
window: 'Current window',
|
||||
},
|
||||
|
||||
// Settings
|
||||
|
||||
@@ -320,6 +320,11 @@ export default {
|
||||
lastScanned: '上次扫描:{time}',
|
||||
refresh: '刷新',
|
||||
empty: '暂无设备',
|
||||
kpiDiscovered: '已发现',
|
||||
kpiOnline: '在线',
|
||||
kpiOffline: '离线',
|
||||
kpiRequests: '待处理申请',
|
||||
discoveredHosts: '已发现主机',
|
||||
computer: '电脑',
|
||||
endpointLabel: '端',
|
||||
statusLabel: '状态',
|
||||
@@ -1009,6 +1014,7 @@ export default {
|
||||
runs: '次运行',
|
||||
noRuns: '暂无运行历史。',
|
||||
},
|
||||
sectionList: '任务列表',
|
||||
},
|
||||
|
||||
// 技能
|
||||
@@ -1517,6 +1523,12 @@ export default {
|
||||
searchPlaceholder: '搜索...',
|
||||
refresh: '刷新',
|
||||
noEntries: '暂无日志',
|
||||
total: '总数',
|
||||
error: 'ERROR',
|
||||
warning: 'WARNING',
|
||||
info: 'INFO',
|
||||
stream: '日志流',
|
||||
window: '当前窗口',
|
||||
},
|
||||
|
||||
// 设置
|
||||
|
||||
Reference in New Issue
Block a user