@appthen/cli 1.2.10 → 1.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +1 -0
- package/bin/main.js +92 -0
- package/dist/index.js +7014 -14988
- package/package.json +8 -1
- package/tests/test-app/.appthen/shadow-space-100001-test-app-e99876b1.json +1862 -0
- package/tests/test-app/.appthen/space-config.json +8 -0
- package/tests/test-app/docs/AI-Workflow.flow +112 -0
- package/tests/test-app/docs/Logic-1.flow +16 -0
- package/tests/test-app/docs/Logic.flow +16 -0
- package/tests/test-app/docs/Project-Blueprint-1.flow +119 -0
- package/tests/test-app/docs/Project-Blueprint.flow +119 -0
- package/tests/test-app/docs/README.md +3 -0
- package/tests/test-app/docs/claude.md +194 -0
- package/tests/test-app/docs/page_requirement_analysis.md +149 -0
- package/tests/test-app/docs//345/267/245/345/215/225/347/256/241/347/220/206/347/263/273/347/273/237/350/257/246/347/273/206/350/256/276/350/256/241.md +377 -0
- package/tests/test-app/src/apis/AddTodoPost.api.ts +42 -0
- package/tests/test-app/src/apis/DeleteTodoPost.api.ts +32 -0
- package/tests/test-app/src/apis/GetListPost.api.ts +38 -0
- package/tests/test-app/src/apis/TicketAttachmentUploadPost.api.ts +42 -0
- package/tests/test-app/src/apis/UpdateTodoPost.api.ts +46 -0
- package/tests/test-app/src/app.css +15 -0
- package/tests/test-app/src/cloud_functions/ticket|attachment|upload.node.ts +86 -0
- package/tests/test-app/src/cloud_functions/ticket|comment|add.node.ts +65 -0
- package/tests/test-app/src/cloud_functions/types|entity|Ticket.node.ts +88 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketAttachment.node.ts +70 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketCategory.node.ts +56 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketComment.node.ts +62 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketHistory.node.ts +74 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketPriority.node.ts +68 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketStatus.node.ts +63 -0
- package/tests/test-app/src/cloud_functions/types|models|CreateTicketParams.node.ts +20 -0
- package/tests/test-app/src/cloud_functions/types|models|TicketListParams.node.ts +30 -0
- package/tests/test-app/src/cloud_functions/types|models|UpdateTicketParams.node.ts +22 -0
- package/tests/test-app/src/components/Button.js +11 -0
- package/tests/test-app/src/components/MessageCenter.tsx +506 -0
- package/tests/test-app/src/components/MouduleDemoNzp.tsx +40 -0
- package/tests/test-app/src/components/Timeline.tsx +145 -0
- package/tests/test-app/src/index.ts +2 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketCommentAddPost.api.ts +48 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketCreatePost.api.ts +52 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketDeleteDelete.api.ts +39 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketDetailGet.api.ts +39 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketListGet.api.ts +61 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketUpdatePut.api.ts +57 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorFaultListGet.ts +76 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorListGet.ts +76 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorOperationRecordsGet.ts +284 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorStatisticsGet.ts +96 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/category|list.node.ts +40 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/priority|list.node.ts +26 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/status|list.node.ts +26 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|create.node.ts +54 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|delete.node.ts +55 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|detail.node.ts +65 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|list.node.ts +85 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|update.node.ts +73 -0
- package/tests/test-app/src/modules/work_order_module/data_model/Ticket.m.ts +85 -0
- package/tests/test-app/src/modules/work_order_module/data_model/TicketCategory.m.ts +53 -0
- package/tests/test-app/src/modules/work_order_module/data_model/TicketStatus.m.ts +60 -0
- package/tests/test-app/src/modules/work_order_module//345/267/245/345/215/225/347/263/273/347/273/237/344/272/247/345/223/201/350/256/276/350/256/241/346/226/207/346/241/243.md +301 -0
- package/tests/test-app/src/modules/work_order_module//345/267/245/345/215/225/347/263/273/347/273/237/345/274/200/345/217/221/344/273/273/345/212/241/345/210/206/345/267/245/346/226/207/346/241/243.md +345 -0
- package/tests/test-app/src/pages/CustomerManagement.tsx +535 -0
- package/tests/test-app/src/pages/CyberpunkDashboard.tsx +348 -0
- package/tests/test-app/src/pages/CyberpunkProductManagement.tsx +637 -0
- package/tests/test-app/src/pages/CyberpunkUserList.tsx +316 -0
- package/tests/test-app/src/pages/DashboardV2.tsx +334 -0
- package/tests/test-app/src/pages/DataReport.tsx +298 -0
- package/tests/test-app/src/pages/DataStatistics.tsx +317 -0
- package/tests/test-app/src/pages/DepartmentManagement.tsx +503 -0
- package/tests/test-app/src/pages/FileExplorer.tsx +441 -0
- package/tests/test-app/src/pages/OrderDetail.tsx +393 -0
- package/tests/test-app/src/pages/ProductManagement.tsx +521 -0
- package/tests/test-app/src/pages/ProjectTimeline.tsx +395 -0
- package/tests/test-app/src/pages/RoleManagement.tsx +523 -0
- package/tests/test-app/src/pages/SLAManagement.tsx +668 -0
- package/tests/test-app/src/pages/StaticCyberpunkDashboard.tsx +462 -0
- package/tests/test-app/src/pages/StaticCyberpunkUserList.tsx +567 -0
- package/tests/test-app/src/pages/StudentWeaknessList.tsx +547 -0
- package/tests/test-app/src/pages/SystemSettings.tsx +422 -0
- package/tests/test-app/src/pages/TaskManagement.tsx +467 -0
- package/tests/test-app/src/pages/TicketCreate.tsx +27 -0
- package/tests/test-app/src/pages/TicketDetail.tsx +27 -0
- package/tests/test-app/src/pages/TicketList.tsx +27 -0
- package/tests/test-app/src/pages/TicketManagement.tsx +402 -0
- package/tests/test-app/src/pages/TicketManagementPage.tsx +1238 -0
- package/tests/test-app/src/pages/UserProfile.tsx +404 -0
- package/tests/test-app/src/pages/VisualAIIDEUpgrade.tsx +245 -0
- package/tests/test-app/src/pages/WorkflowDesigner.tsx +434 -0
- package/tests/test-app/src/pages/admin/dashboard.tsx +591 -0
- package/tests/test-app/src/pages/appthen_guide/ComponentTreeUnderstanding.tsx +26 -0
- package/tests/test-app/src/pages/appthen_guide/DataBindingLearning.tsx +26 -0
- package/tests/test-app/src/pages/article-list.tsx +222 -0
- package/tests/test-app/src/pages/babyProductRecommendationPage.tsx +168 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout.tsx +155 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout10.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout2.tsx +156 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout3.tsx +156 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout4.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout5.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout6.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout7.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout8.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout9.tsx +157 -0
- package/tests/test-app/src/pages/back-end/backgroundManagementSystem.css +5 -0
- package/tests/test-app/src/pages/back-end/backgroundManagementSystem.tsx +1745 -0
- package/tests/test-app/src/pages/category-list.tsx +179 -0
- package/tests/test-app/src/pages/comment-list.tsx +194 -0
- package/tests/test-app/src/pages/component/WorkOrderCard.tsx +140 -0
- package/tests/test-app/src/pages/cover.tsx +42 -0
- package/tests/test-app/src/pages/cyberpunk/cyberpunkCRMPage.tsx +1299 -0
- package/tests/test-app/src/pages/data-analytics.tsx +1872 -0
- package/tests/test-app/src/pages/data-overview.tsx +600 -0
- package/tests/test-app/src/pages/data_dashboard/blueBrightGreenTechnologyWind.css +181 -0
- package/tests/test-app/src/pages/data_dashboard/blueBrightGreenTechnologyWind.tsx +225 -0
- package/tests/test-app/src/pages/data_dashboard/blueLargeScreen.css +181 -0
- package/tests/test-app/src/pages/data_dashboard/blueLargeScreen.tsx +138 -0
- package/tests/test-app/src/pages/data_dashboard/component_library/BlueBrightGreenBorder.tsx +47 -0
- package/tests/test-app/src/pages/data_dashboard/component_library/FullScreenContainer.tsx +133 -0
- package/tests/test-app/src/pages/demo-error-page.tsx +119 -0
- package/tests/test-app/src/pages/department-list.tsx +183 -0
- package/tests/test-app/src/pages/description_of_mock_interface.md +32 -0
- package/tests/test-app/src/pages/digitalLargeScreen.css +181 -0
- package/tests/test-app/src/pages/digitalLargeScreen.tsx +1417 -0
- package/tests/test-app/src/pages/goods-list.tsx +233 -0
- package/tests/test-app/src/pages/housekeeping/adminDashboardPage.tsx +880 -0
- package/tests/test-app/src/pages/mobile_terminal/PersonalCenter.css +3 -0
- package/tests/test-app/src/pages/mobile_terminal/PersonalCenter.tsx +362 -0
- package/tests/test-app/src/pages/mobile_terminal/WorkOrderHomepage.tsx +337 -0
- package/tests/test-app/src/pages/mobile_terminal/newWorkOrder.tsx +224 -0
- package/tests/test-app/src/pages/mobile_terminal/tabbar.tsx +67 -0
- package/tests/test-app/src/pages/mobile_terminal/uiHandsOnPractice.tsx +638 -0
- package/tests/test-app/src/pages/mobile_terminal/workOrderDetails.tsx +346 -0
- package/tests/test-app/src/pages/mobile_terminal/workOrderPage.tsx +345 -0
- package/tests/test-app/src/pages/notice-list.tsx +217 -0
- package/tests/test-app/src/pages/order-detail.tsx +330 -0
- package/tests/test-app/src/pages/order-list.tsx +195 -0
- package/tests/test-app/src/pages/order-management.tsx +563 -0
- package/tests/test-app/src/pages/page/OrderList.tsx +230 -0
- package/tests/test-app/src/pages/role-list.tsx +184 -0
- package/tests/test-app/src/pages/simple/simplePage.tsx +92 -0
- package/tests/test-app/src/pages/simple-page.tsx +43 -0
- package/tests/test-app/src/pages/test-destructure.tsx +44 -0
- package/tests/test-app/src/pages/test-error-page.tsx +75 -0
- package/tests/test-app/src/pages/test-page-with-errors.tsx +51 -0
- package/tests/test-app/src/pages/test-page.tsx +101 -0
- package/tests/test-app/src/pages/test-render.tsx +52 -0
- package/tests/test-app/src/pages/test-return-type.tsx +41 -0
- package/tests/test-app/src/pages/test-type-assertion.tsx +37 -0
- package/tests/test-app/src/pages/testPage.css +3 -0
- package/tests/test-app/src/pages/testPage.tsx +158 -0
- package/tests/test-app/src/pages/ui/styleSelectorPage.tsx +1554 -0
- package/tests/test-app/src/pages/user-list.tsx +212 -0
- package/tests/test-app/src/pages/web_version/website.css +205 -0
- package/tests/test-app/src/pages/web_version/website.tsx +1066 -0
- package/tests/test-app/src/pages/wrong-page.tsx +50 -0
- package/tests/test-app/src/pages//345/276/205/345/212/236.apidoc.json +336 -0
- package/tests/test-app/src/project.json +1120 -0
- package/tests/test-app/src/store/global.store.ts +10 -0
- package/tests/test-app/src/types/CreateTicketParams.m.ts +20 -0
- package/tests/test-app/src/types/SLAPolicy.ts +50 -0
- package/tests/test-app/src/types/Ticket.ts +68 -0
- package/tests/test-app/src/types/TicketAttachment.m.ts +67 -0
- package/tests/test-app/src/types/TicketComment.m.ts +59 -0
- package/tests/test-app/src/types/TicketEvaluation.ts +44 -0
- package/tests/test-app/src/types/TicketHistory.m.ts +71 -0
- package/tests/test-app/src/types/TicketListParams.m.ts +30 -0
- package/tests/test-app/src/types/TicketPriority.m.ts +65 -0
- package/tests/test-app/src/types/TicketRecord.ts +47 -0
- package/tests/test-app/src/types/TrainDoor.ts +284 -0
- package/tests/test-app/src/types/UpdateTicketParams.m.ts +22 -0
- package/tests/test-app/src/utils/__afterRequest.util.ts +3 -0
- package/tests/test-app/src/utils/__beforeRequest.util.ts +10 -0
- package/tests/test-app/src/utils/testGlobalAction.util.ts +7 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 赛博朋克仪表板
|
|
3
|
+
* 充满未来科技感的数据展示页面,采用霓虹配色和动态效果
|
|
4
|
+
*
|
|
5
|
+
* @type Page
|
|
6
|
+
* @route /cyberpunk-dashboard
|
|
7
|
+
* @screen 1920x1080 #0a0a0f
|
|
8
|
+
* @frames web
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class IProps {
|
|
15
|
+
title?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* 数据与接口请求定义
|
|
20
|
+
*/
|
|
21
|
+
class IState {
|
|
22
|
+
currentTime?: string;
|
|
23
|
+
systemStatus?: string;
|
|
24
|
+
cpuUsage?: number;
|
|
25
|
+
memoryUsage?: number;
|
|
26
|
+
networkSpeed?: number;
|
|
27
|
+
activeNodes?: number;
|
|
28
|
+
showDetails?: boolean;
|
|
29
|
+
selectedModule?: string;
|
|
30
|
+
modules?: {
|
|
31
|
+
/* @example 1 */id?: number,
|
|
32
|
+
/* @example 神经链接 */name?: string,
|
|
33
|
+
/* @example active */status?: string,
|
|
34
|
+
/* @example 89 */level?: number,
|
|
35
|
+
}[];
|
|
36
|
+
logs?: {
|
|
37
|
+
/* @example 1 */id?: number,
|
|
38
|
+
/* @example 23:59:45 */time?: string,
|
|
39
|
+
/* @example info */type?: string,
|
|
40
|
+
/* @example 系统初始化完成 */message?: string,
|
|
41
|
+
}[];
|
|
42
|
+
glitchMode?: boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
class Document extends React.Component<IProps, IState> {
|
|
46
|
+
state = {
|
|
47
|
+
currentTime: '',
|
|
48
|
+
systemStatus: 'ONLINE',
|
|
49
|
+
cpuUsage: 67,
|
|
50
|
+
memoryUsage: 54,
|
|
51
|
+
networkSpeed: 1024,
|
|
52
|
+
activeNodes: 42,
|
|
53
|
+
showDetails: false,
|
|
54
|
+
selectedModule: null,
|
|
55
|
+
modules: [
|
|
56
|
+
{ id: 1, name: '神经链接', status: 'active', level: 89 },
|
|
57
|
+
{ id: 2, name: '数据流', status: 'active', level: 76 },
|
|
58
|
+
{ id: 3, name: '防火墙', status: 'warning', level: 45 },
|
|
59
|
+
{ id: 4, name: '加密模块', status: 'active', level: 92 },
|
|
60
|
+
{ id: 5, name: 'AI 核心', status: 'active', level: 98 },
|
|
61
|
+
{ id: 6, name: '量子网络', status: 'offline', level: 0 },
|
|
62
|
+
],
|
|
63
|
+
logs: [
|
|
64
|
+
{ id: 1, time: '23:59:45', type: 'info', message: '系统初始化完成' },
|
|
65
|
+
{ id: 2, time: '23:59:46', type: 'success', message: '神经链接已建立' },
|
|
66
|
+
{ id: 3, time: '23:59:47', type: 'warning', message: '检测到异常数据包' },
|
|
67
|
+
{ id: 4, time: '23:59:48', type: 'info', message: '防火墙更新中...' },
|
|
68
|
+
{ id: 5, time: '23:59:49', type: 'success', message: '数据同步完成' },
|
|
69
|
+
],
|
|
70
|
+
glitchMode: false,
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
componentDidMount() {
|
|
74
|
+
this.updateTime();
|
|
75
|
+
this.timer = setInterval(() => {
|
|
76
|
+
this.updateTime();
|
|
77
|
+
this.simulateData();
|
|
78
|
+
}, 1000);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
componentWillUnmount() {
|
|
82
|
+
if (this.timer) {
|
|
83
|
+
clearInterval(this.timer);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
updateTime() {
|
|
88
|
+
const now = new Date();
|
|
89
|
+
const timeStr = now.toLocaleTimeString('zh-CN', {
|
|
90
|
+
hour12: false,
|
|
91
|
+
});
|
|
92
|
+
this.setState({
|
|
93
|
+
currentTime: timeStr,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
simulateData() {
|
|
98
|
+
this.setState({
|
|
99
|
+
cpuUsage: Math.floor(Math.random() * 40) + 50,
|
|
100
|
+
memoryUsage: Math.floor(Math.random() * 30) + 40,
|
|
101
|
+
networkSpeed: Math.floor(Math.random() * 500) + 800,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
toggleDetails() {
|
|
106
|
+
this.setState({
|
|
107
|
+
showDetails: !this.state.showDetails,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
selectModule(module) {
|
|
112
|
+
this.setState({
|
|
113
|
+
selectedModule: module,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
toggleGlitchMode() {
|
|
118
|
+
this.setState({
|
|
119
|
+
glitchMode: !this.state.glitchMode,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
getStatusColor(status) {
|
|
124
|
+
switch (status) {
|
|
125
|
+
case 'active':
|
|
126
|
+
return '#00ff88';
|
|
127
|
+
case 'warning':
|
|
128
|
+
return '#ffaa00';
|
|
129
|
+
case 'offline':
|
|
130
|
+
return '#ff0055';
|
|
131
|
+
default:
|
|
132
|
+
return '#00ffff';
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
getLogTypeColor(type) {
|
|
137
|
+
switch (type) {
|
|
138
|
+
case 'success':
|
|
139
|
+
return '#00ff88';
|
|
140
|
+
case 'warning':
|
|
141
|
+
return '#ffaa00';
|
|
142
|
+
case 'error':
|
|
143
|
+
return '#ff0055';
|
|
144
|
+
default:
|
|
145
|
+
return '#00ffff';
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
render() {
|
|
150
|
+
return (
|
|
151
|
+
<Page style={styles.container}>
|
|
152
|
+
<View style={styles.scanlines} />
|
|
153
|
+
<View style={styles.grid} />
|
|
154
|
+
<View style={styles.header}>
|
|
155
|
+
<View style={styles.headerLeft}>
|
|
156
|
+
<Text style={styles.logo}>CYBERPUNK</Text>
|
|
157
|
+
<Text style={styles.logoSub}>DASHBOARD v2.077</Text>
|
|
158
|
+
</View>
|
|
159
|
+
<View style={styles.headerCenter}>
|
|
160
|
+
<Text style={styles.time}>{this.state.currentTime}</Text>
|
|
161
|
+
</View>
|
|
162
|
+
<View style={styles.headerRight}>
|
|
163
|
+
<View style={styles.statusBadge}>
|
|
164
|
+
<Text style={styles.statusText}>{this.state.systemStatus}</Text>
|
|
165
|
+
</View>
|
|
166
|
+
</View>
|
|
167
|
+
</View>
|
|
168
|
+
<View style={styles.mainContent}>
|
|
169
|
+
<View style={styles.leftPanel}>
|
|
170
|
+
<View style={styles.panel}>
|
|
171
|
+
<Text style={styles.panelTitle}>系统状态</Text>
|
|
172
|
+
<View style={styles.statRow}>
|
|
173
|
+
<Text style={styles.statLabel}>CPU 使用率</Text>
|
|
174
|
+
<View style={styles.statBarContainer}>
|
|
175
|
+
<View
|
|
176
|
+
style={[
|
|
177
|
+
styles.statBar,
|
|
178
|
+
{
|
|
179
|
+
width: this.state.cpuUsage + '%',
|
|
180
|
+
backgroundColor:
|
|
181
|
+
this.state.cpuUsage > 80 ? '#ff0055' : '#00ffff',
|
|
182
|
+
},
|
|
183
|
+
]}
|
|
184
|
+
/>
|
|
185
|
+
</View>
|
|
186
|
+
<Text style={styles.statValue}>{this.state.cpuUsage}%</Text>
|
|
187
|
+
</View>
|
|
188
|
+
<View style={styles.statRow}>
|
|
189
|
+
<Text style={styles.statLabel}>内存使用</Text>
|
|
190
|
+
<View style={styles.statBarContainer}>
|
|
191
|
+
<View
|
|
192
|
+
style={[
|
|
193
|
+
styles.statBar,
|
|
194
|
+
{
|
|
195
|
+
width: this.state.memoryUsage + '%',
|
|
196
|
+
backgroundColor: '#ff00ff',
|
|
197
|
+
},
|
|
198
|
+
]}
|
|
199
|
+
/>
|
|
200
|
+
</View>
|
|
201
|
+
<Text style={styles.statValue}>{this.state.memoryUsage}%</Text>
|
|
202
|
+
</View>
|
|
203
|
+
<View style={styles.statRow}>
|
|
204
|
+
<Text style={styles.statLabel}>网络速度</Text>
|
|
205
|
+
<Text style={styles.statValue}>
|
|
206
|
+
{this.state.networkSpeed}MB/s
|
|
207
|
+
</Text>
|
|
208
|
+
</View>
|
|
209
|
+
<View style={styles.statRow}>
|
|
210
|
+
<Text style={styles.statLabel}>活跃节点</Text>
|
|
211
|
+
<Text style={styles.statValue}>
|
|
212
|
+
{this.state.activeNodes}/ 64
|
|
213
|
+
</Text>
|
|
214
|
+
</View>
|
|
215
|
+
</View>
|
|
216
|
+
<View style={styles.panel}>
|
|
217
|
+
<Text style={styles.panelTitle}>模块状态</Text>
|
|
218
|
+
{this.state.modules.map((module, index) => (
|
|
219
|
+
<View
|
|
220
|
+
key={module.id}
|
|
221
|
+
style={[
|
|
222
|
+
styles.moduleItem,
|
|
223
|
+
this.state.selectedModule?.id === module.id &&
|
|
224
|
+
styles.moduleItemSelected,
|
|
225
|
+
]}
|
|
226
|
+
onClick={() => this.selectModule(module)}
|
|
227
|
+
>
|
|
228
|
+
<View
|
|
229
|
+
style={[
|
|
230
|
+
styles.moduleDot,
|
|
231
|
+
{ backgroundColor: this.getStatusColor(module.status) },
|
|
232
|
+
]}
|
|
233
|
+
/>
|
|
234
|
+
<Text style={styles.moduleName}>{module.name}</Text>
|
|
235
|
+
<Text style={styles.moduleLevel}>{module.level}%</Text>
|
|
236
|
+
</View>
|
|
237
|
+
))}
|
|
238
|
+
</View>
|
|
239
|
+
</View>
|
|
240
|
+
<View style={styles.centerPanel}>
|
|
241
|
+
<View style={styles.mainDisplay}>
|
|
242
|
+
<View style={styles.displayHeader}>
|
|
243
|
+
<Text style={styles.displayTitle}>数据可视化</Text>
|
|
244
|
+
<View style={styles.displayActions}>
|
|
245
|
+
<Button
|
|
246
|
+
style={styles.cyberButton}
|
|
247
|
+
onClick={() => this.toggleDetails()}
|
|
248
|
+
>
|
|
249
|
+
<Text style={styles.buttonText}>
|
|
250
|
+
{this.state.showDetails ? '隐藏详情' : '显示详情'}
|
|
251
|
+
</Text>
|
|
252
|
+
</Button>
|
|
253
|
+
<Button
|
|
254
|
+
style={[styles.cyberButton, styles.glitchButton]}
|
|
255
|
+
onClick={() => this.toggleGlitchMode()}
|
|
256
|
+
>
|
|
257
|
+
<Text style={styles.buttonText}>故障模式</Text>
|
|
258
|
+
</Button>
|
|
259
|
+
</View>
|
|
260
|
+
</View>
|
|
261
|
+
<View style={styles.dataDisplay}>
|
|
262
|
+
<View style={styles.dataGrid}>
|
|
263
|
+
{[1, 2, 3, 4, 5, 6, 7, 8, 9].map((item, index) => (
|
|
264
|
+
<View
|
|
265
|
+
key={item}
|
|
266
|
+
style={[
|
|
267
|
+
styles.dataBlock,
|
|
268
|
+
this.state.glitchMode && styles.dataBlockGlitch,
|
|
269
|
+
]}
|
|
270
|
+
>
|
|
271
|
+
<Text style={styles.dataBlockLabel}>
|
|
272
|
+
DATA-{item.toString().padStart(3, '0')}
|
|
273
|
+
</Text>
|
|
274
|
+
<Text style={styles.dataBlockValue}>
|
|
275
|
+
{Math.floor(Math.random() * 1000)}
|
|
276
|
+
</Text>
|
|
277
|
+
</View>
|
|
278
|
+
))}
|
|
279
|
+
</View>
|
|
280
|
+
{!!this.state.showDetails && (
|
|
281
|
+
<View style={styles.detailsPanel}>
|
|
282
|
+
<Text style={styles.detailsTitle}>详细数据分析</Text>
|
|
283
|
+
<View style={styles.detailsGrid}>
|
|
284
|
+
<View style={styles.detailItem}>
|
|
285
|
+
<Text style={styles.detailLabel}>数据吞吐量</Text>
|
|
286
|
+
<Text style={styles.detailValue}>2.4 TB/h</Text>
|
|
287
|
+
</View>
|
|
288
|
+
<View style={styles.detailItem}>
|
|
289
|
+
<Text style={styles.detailLabel}>响应时间</Text>
|
|
290
|
+
<Text style={styles.detailValue}>12 ms</Text>
|
|
291
|
+
</View>
|
|
292
|
+
<View style={styles.detailItem}>
|
|
293
|
+
<Text style={styles.detailLabel}>错误率</Text>
|
|
294
|
+
<Text style={styles.detailValue}>0.02%</Text>
|
|
295
|
+
</View>
|
|
296
|
+
<View style={styles.detailItem}>
|
|
297
|
+
<Text style={styles.detailLabel}>加密强度</Text>
|
|
298
|
+
<Text style={styles.detailValue}>AES-256</Text>
|
|
299
|
+
</View>
|
|
300
|
+
</View>
|
|
301
|
+
</View>
|
|
302
|
+
)}
|
|
303
|
+
</View>
|
|
304
|
+
</View>
|
|
305
|
+
</View>
|
|
306
|
+
<View style={styles.rightPanel}>
|
|
307
|
+
<View style={styles.panel}>
|
|
308
|
+
<Text style={styles.panelTitle}>系统日志</Text>
|
|
309
|
+
<View style={styles.logList}>
|
|
310
|
+
{this.state.logs.map((log, index) => (
|
|
311
|
+
<View key={log.id} style={styles.logItem}>
|
|
312
|
+
<Text style={styles.logTime}>{log.time}</Text>
|
|
313
|
+
<View
|
|
314
|
+
style={[
|
|
315
|
+
styles.logType,
|
|
316
|
+
{
|
|
317
|
+
backgroundColor:
|
|
318
|
+
this.getLogTypeColor(log.type) + '33',
|
|
319
|
+
},
|
|
320
|
+
]}
|
|
321
|
+
>
|
|
322
|
+
<Text
|
|
323
|
+
style={[
|
|
324
|
+
styles.logTypeText,
|
|
325
|
+
{ color: this.getLogTypeColor(log.type) },
|
|
326
|
+
]}
|
|
327
|
+
>
|
|
328
|
+
{log.type.toUpperCase()}
|
|
329
|
+
</Text>
|
|
330
|
+
</View>
|
|
331
|
+
<Text style={styles.logMessage}>{log.message}</Text>
|
|
332
|
+
</View>
|
|
333
|
+
))}
|
|
334
|
+
</View>
|
|
335
|
+
</View>
|
|
336
|
+
</View>
|
|
337
|
+
</View>
|
|
338
|
+
<View style={styles.footer}>
|
|
339
|
+
<Text style={styles.footerText}>NEURAL INTERFACE CONNECTED</Text>
|
|
340
|
+
<Text style={styles.footerText}>LATENCY: 12ms</Text>
|
|
341
|
+
<Text style={styles.footerText}>ENCRYPTION: ACTIVE</Text>
|
|
342
|
+
</View>
|
|
343
|
+
</Page>
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export default Document;
|