aifastdb-devplan 1.5.0 → 1.6.2
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/dist/autopilot.d.ts +58 -0
- package/dist/autopilot.d.ts.map +1 -0
- package/dist/autopilot.js +250 -0
- package/dist/autopilot.js.map +1 -0
- package/dist/dev-plan-document-store.d.ts +15 -1
- package/dist/dev-plan-document-store.d.ts.map +1 -1
- package/dist/dev-plan-document-store.js +122 -0
- package/dist/dev-plan-document-store.js.map +1 -1
- package/dist/dev-plan-factory.d.ts +69 -3
- package/dist/dev-plan-factory.d.ts.map +1 -1
- package/dist/dev-plan-factory.js +113 -19
- package/dist/dev-plan-factory.js.map +1 -1
- package/dist/dev-plan-graph-store.d.ts +79 -1
- package/dist/dev-plan-graph-store.d.ts.map +1 -1
- package/dist/dev-plan-graph-store.js +420 -3
- package/dist/dev-plan-graph-store.js.map +1 -1
- package/dist/dev-plan-interface.d.ts +24 -1
- package/dist/dev-plan-interface.d.ts.map +1 -1
- package/dist/dev-plan-migrate.d.ts +1 -0
- package/dist/dev-plan-migrate.d.ts.map +1 -1
- package/dist/dev-plan-migrate.js +28 -2
- package/dist/dev-plan-migrate.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/index.d.ts +3 -0
- package/dist/mcp-server/index.d.ts.map +1 -1
- package/dist/mcp-server/index.js +397 -4
- package/dist/mcp-server/index.js.map +1 -1
- package/dist/types.d.ts +160 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +9 -1
- package/dist/types.js.map +1 -1
- package/dist/visualize/graph-canvas/api-compat.d.ts +20 -0
- package/dist/visualize/graph-canvas/api-compat.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/api-compat.js +344 -0
- package/dist/visualize/graph-canvas/api-compat.js.map +1 -0
- package/dist/visualize/graph-canvas/clusterer.d.ts +16 -0
- package/dist/visualize/graph-canvas/clusterer.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/clusterer.js +460 -0
- package/dist/visualize/graph-canvas/clusterer.js.map +1 -0
- package/dist/visualize/graph-canvas/core.d.ts +11 -0
- package/dist/visualize/graph-canvas/core.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/core.js +1136 -0
- package/dist/visualize/graph-canvas/core.js.map +1 -0
- package/dist/visualize/graph-canvas/index.d.ts +22 -0
- package/dist/visualize/graph-canvas/index.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/index.js +69 -0
- package/dist/visualize/graph-canvas/index.js.map +1 -0
- package/dist/visualize/graph-canvas/interaction.d.ts +13 -0
- package/dist/visualize/graph-canvas/interaction.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/interaction.js +457 -0
- package/dist/visualize/graph-canvas/interaction.js.map +1 -0
- package/dist/visualize/graph-canvas/layout-worker.d.ts +17 -0
- package/dist/visualize/graph-canvas/layout-worker.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/layout-worker.js +577 -0
- package/dist/visualize/graph-canvas/layout-worker.js.map +1 -0
- package/dist/visualize/graph-canvas/lod.d.ts +10 -0
- package/dist/visualize/graph-canvas/lod.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/lod.js +111 -0
- package/dist/visualize/graph-canvas/lod.js.map +1 -0
- package/dist/visualize/graph-canvas/renderer.d.ts +12 -0
- package/dist/visualize/graph-canvas/renderer.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/renderer.js +813 -0
- package/dist/visualize/graph-canvas/renderer.js.map +1 -0
- package/dist/visualize/graph-canvas/spatial-index.d.ts +13 -0
- package/dist/visualize/graph-canvas/spatial-index.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/spatial-index.js +482 -0
- package/dist/visualize/graph-canvas/spatial-index.js.map +1 -0
- package/dist/visualize/graph-canvas/styles.d.ts +11 -0
- package/dist/visualize/graph-canvas/styles.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/styles.js +152 -0
- package/dist/visualize/graph-canvas/styles.js.map +1 -0
- package/dist/visualize/graph-canvas/viewport.d.ts +17 -0
- package/dist/visualize/graph-canvas/viewport.d.ts.map +1 -0
- package/dist/visualize/graph-canvas/viewport.js +385 -0
- package/dist/visualize/graph-canvas/viewport.js.map +1 -0
- package/dist/visualize/server.js +737 -7
- package/dist/visualize/server.js.map +1 -1
- package/dist/visualize/template-core.d.ts +9 -0
- package/dist/visualize/template-core.d.ts.map +1 -0
- package/dist/visualize/template-core.js +714 -0
- package/dist/visualize/template-core.js.map +1 -0
- package/dist/visualize/template-data-loading.d.ts +7 -0
- package/dist/visualize/template-data-loading.d.ts.map +1 -0
- package/dist/visualize/template-data-loading.js +677 -0
- package/dist/visualize/template-data-loading.js.map +1 -0
- package/dist/visualize/template-detail-panel.d.ts +14 -0
- package/dist/visualize/template-detail-panel.d.ts.map +1 -0
- package/dist/visualize/template-detail-panel.js +553 -0
- package/dist/visualize/template-detail-panel.js.map +1 -0
- package/dist/visualize/template-graph-3d.d.ts +7 -0
- package/dist/visualize/template-graph-3d.d.ts.map +1 -0
- package/dist/visualize/template-graph-3d.js +1112 -0
- package/dist/visualize/template-graph-3d.js.map +1 -0
- package/dist/visualize/template-graph-vis.d.ts +8 -0
- package/dist/visualize/template-graph-vis.d.ts.map +1 -0
- package/dist/visualize/template-graph-vis.js +1204 -0
- package/dist/visualize/template-graph-vis.js.map +1 -0
- package/dist/visualize/template-html.d.ts +9 -0
- package/dist/visualize/template-html.d.ts.map +1 -0
- package/dist/visualize/template-html.js +484 -0
- package/dist/visualize/template-html.js.map +1 -0
- package/dist/visualize/template-pages.d.ts +7 -0
- package/dist/visualize/template-pages.d.ts.map +1 -0
- package/dist/visualize/template-pages.js +806 -0
- package/dist/visualize/template-pages.js.map +1 -0
- package/dist/visualize/template-stats-modal.d.ts +7 -0
- package/dist/visualize/template-stats-modal.d.ts.map +1 -0
- package/dist/visualize/template-stats-modal.js +406 -0
- package/dist/visualize/template-stats-modal.js.map +1 -0
- package/dist/visualize/template-styles.d.ts +9 -0
- package/dist/visualize/template-styles.d.ts.map +1 -0
- package/dist/visualize/template-styles.js +487 -0
- package/dist/visualize/template-styles.js.map +1 -0
- package/dist/visualize/template.d.ts +14 -3
- package/dist/visualize/template.d.ts.map +1 -1
- package/dist/visualize/template.js +38 -2889
- package/dist/visualize/template.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DevPlan 图可视化 — CSS 样式模块
|
|
4
|
+
*
|
|
5
|
+
* 从 template.ts 拆分出的全部 CSS 样式定义。
|
|
6
|
+
* 包含: 布局、侧边栏、头部、统计栏、图谱容器、详情面板、图例、
|
|
7
|
+
* 设置页、统计仪表盘、文档浏览、RAG 聊天、统计弹层等样式。
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getStyles = getStyles;
|
|
11
|
+
function getStyles() {
|
|
12
|
+
return `
|
|
13
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
14
|
+
body { background: #111827; color: #e5e7eb; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; overflow: hidden; }
|
|
15
|
+
|
|
16
|
+
/* App Layout */
|
|
17
|
+
.app-layout { display: flex; height: 100vh; overflow: hidden; }
|
|
18
|
+
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
|
|
19
|
+
|
|
20
|
+
/* Sidebar */
|
|
21
|
+
.sidebar { width: 48px; background: #0f172a; border-right: 1px solid #1e293b; flex-shrink: 0; display: flex; flex-direction: column; transition: width 0.25s ease; overflow: hidden; z-index: 40; }
|
|
22
|
+
.sidebar.expanded { width: 200px; }
|
|
23
|
+
.sidebar-header { height: 56px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #1e293b; cursor: pointer; flex-shrink: 0; overflow: hidden; transition: all 0.2s; padding: 0 8px; }
|
|
24
|
+
.sidebar-header:hover { background: #1e293b; }
|
|
25
|
+
.sidebar-logo { font-size: 18px; font-weight: 900; background: linear-gradient(90deg, #38bdf8, #818cf8, #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; line-height: 1; }
|
|
26
|
+
.sidebar-menu-icon { display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: color 0.2s; }
|
|
27
|
+
.sidebar-header:hover .sidebar-menu-icon { color: #e2e8f0; }
|
|
28
|
+
.sidebar-logo-full { display: none; }
|
|
29
|
+
.sidebar-logo-short { display: block; }
|
|
30
|
+
.sidebar.expanded .sidebar-header { justify-content: flex-start; padding: 0 16px; }
|
|
31
|
+
.sidebar.expanded .sidebar-logo-full { display: block; }
|
|
32
|
+
.sidebar.expanded .sidebar-logo-short { display: none; }
|
|
33
|
+
.sidebar-nav { flex: 1; padding: 8px 0; display: flex; flex-direction: column; gap: 2px; }
|
|
34
|
+
.sidebar-footer { padding: 8px 0; border-top: 1px solid #1e293b; }
|
|
35
|
+
.nav-item { position: relative; display: flex; align-items: center; height: 40px; padding: 0 12px; cursor: pointer; color: #6b7280; transition: all 0.2s; white-space: nowrap; overflow: hidden; gap: 12px; border-left: 3px solid transparent; }
|
|
36
|
+
.nav-item:hover { background: #1e293b; color: #d1d5db; }
|
|
37
|
+
.nav-item.active { color: #a5b4fc; background: rgba(99,102,241,0.1); border-left-color: #6366f1; }
|
|
38
|
+
.nav-item.disabled { cursor: default; opacity: 0.5; }
|
|
39
|
+
.nav-item.disabled:hover { background: #1e293b; }
|
|
40
|
+
.nav-item-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
|
|
41
|
+
.nav-item-text { font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.2s; }
|
|
42
|
+
.sidebar.expanded .nav-item-text { opacity: 1; }
|
|
43
|
+
.nav-item-badge { font-size: 9px; padding: 1px 6px; border-radius: 4px; background: #374151; color: #6b7280; margin-left: auto; opacity: 0; transition: opacity 0.2s; }
|
|
44
|
+
.sidebar.expanded .nav-item-badge { opacity: 1; }
|
|
45
|
+
|
|
46
|
+
/* Sidebar tooltip (collapsed mode) */
|
|
47
|
+
.nav-item .nav-tooltip { position: absolute; left: 52px; top: 50%; transform: translateY(-50%); background: #1f2937; border: 1px solid #374151; color: #e5e7eb; padding: 4px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 50; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
|
|
48
|
+
.sidebar:not(.expanded) .nav-item:hover .nav-tooltip { opacity: 1; }
|
|
49
|
+
|
|
50
|
+
/* Header */
|
|
51
|
+
.header { background: transparent; border-bottom: none; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; height: 44px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; pointer-events: none; }
|
|
52
|
+
.header * { pointer-events: auto; }
|
|
53
|
+
.header h1 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
|
|
54
|
+
.header h1 .icon { font-size: 24px; }
|
|
55
|
+
.header .project-name { color: #818cf8; }
|
|
56
|
+
|
|
57
|
+
/* Stats Bar */
|
|
58
|
+
.stats-bar { display: flex; gap: 24px; align-items: center; }
|
|
59
|
+
.stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9ca3af; }
|
|
60
|
+
.stat .num { font-weight: 700; font-size: 16px; }
|
|
61
|
+
.stat .num.green { color: #10b981; }
|
|
62
|
+
.stat .num.blue { color: #3b82f6; }
|
|
63
|
+
.stat .num.purple { color: #8b5cf6; }
|
|
64
|
+
.stat .num.amber { color: #f59e0b; }
|
|
65
|
+
.stat.clickable { cursor: pointer; border-radius: 6px; padding: 2px 8px; margin: -2px -8px; transition: background 0.15s; }
|
|
66
|
+
.stat.clickable:hover { background: rgba(99,102,241,0.12); }
|
|
67
|
+
.progress-bar { width: 120px; height: 8px; background: #374151; border-radius: 4px; overflow: hidden; }
|
|
68
|
+
.progress-fill { height: 100%; background: linear-gradient(90deg, #10b981, #3b82f6); border-radius: 4px; transition: width 0.5s; }
|
|
69
|
+
|
|
70
|
+
/* Controls */
|
|
71
|
+
.controls { display: none; }
|
|
72
|
+
.filter-check { display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 12px; color: #9ca3af; user-select: none; }
|
|
73
|
+
.filter-check input { accent-color: #6366f1; width: 13px; height: 13px; cursor: pointer; }
|
|
74
|
+
.filter-check:hover { color: #d1d5db; }
|
|
75
|
+
/* Interactive legend toggle items (merged filter + legend) */
|
|
76
|
+
.legend-item.toggle { cursor: pointer; padding: 2px 8px; border-radius: 4px; transition: opacity 0.2s, background 0.2s; user-select: none; position: relative; }
|
|
77
|
+
.legend-item.toggle:hover { background: rgba(99,102,241,0.15); color: #e5e7eb; }
|
|
78
|
+
.legend-item.toggle:not(.active) { opacity: 0.3; }
|
|
79
|
+
.legend-item.toggle:not(.active):hover { opacity: 0.5; }
|
|
80
|
+
.legend-item.toggle.loading::after { content: ' ⏳'; font-size: 10px; }
|
|
81
|
+
.legend-item.toggle.not-loaded { opacity: 0.45; border: 1px dashed rgba(99,102,241,0.35); }
|
|
82
|
+
.legend-item.toggle.not-loaded::after { content: ' ↓'; font-size: 9px; color: #60a5fa; }
|
|
83
|
+
/* Checkbox inside toggle legend items */
|
|
84
|
+
.legend-item.toggle .filter-cb { width: 14px; height: 14px; accent-color: #6366f1; cursor: pointer; margin: 0; pointer-events: none; }
|
|
85
|
+
|
|
86
|
+
/* Graph — flex 自适应高度 */
|
|
87
|
+
.graph-container { position: relative; flex: 1; background: #111827; min-height: 0; }
|
|
88
|
+
#graph { width: 100%; height: 100%; }
|
|
89
|
+
|
|
90
|
+
.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(17,24,39,0.9); z-index: 20; }
|
|
91
|
+
.spinner { width: 40px; height: 40px; border: 4px solid #4f46e5; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
|
|
92
|
+
@keyframes spin { to { transform: rotate(360deg); } }
|
|
93
|
+
|
|
94
|
+
/* Detail Panel */
|
|
95
|
+
.panel { position: absolute; top: 12px; right: 12px; width: 340px; max-height: calc(100vh - 180px); background: #1f2937; border: 1px solid #374151; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 10; display: none; overflow: hidden; min-width: 280px; max-width: calc(100vw - 40px); transition: none; }
|
|
96
|
+
.panel.show { display: flex; flex-direction: column; }
|
|
97
|
+
.panel-resize-handle { position: absolute; top: 0; left: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 15; background: transparent; }
|
|
98
|
+
.panel-resize-handle:hover, .panel-resize-handle.active { background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent); }
|
|
99
|
+
.panel-resize-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 3px; height: 32px; background: #4b5563; border-radius: 2px; opacity: 0; transition: opacity 0.2s; }
|
|
100
|
+
.panel-resize-handle:hover::after, .panel-resize-handle.active::after { opacity: 1; background: #6366f1; }
|
|
101
|
+
.panel-header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; cursor: default; user-select: none; }
|
|
102
|
+
.panel-header.project { background: linear-gradient(135deg, #d97706, #f59e0b); }
|
|
103
|
+
.panel-header.module { background: linear-gradient(135deg, #cc5200, #ff6600); }
|
|
104
|
+
.panel-header.main-task { background: linear-gradient(135deg, #4f46e5, #6366f1); }
|
|
105
|
+
.panel-header.sub-task { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
|
|
106
|
+
.panel-header.document { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
|
|
107
|
+
.panel-title { font-weight: 600; font-size: 14px; color: #fff; pointer-events: none; }
|
|
108
|
+
.panel-close { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
|
|
109
|
+
.panel-close:hover { background: rgba(255,255,255,0.3); }
|
|
110
|
+
.panel-back { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; display: none; align-items: center; justify-content: center; margin-right: 8px; flex-shrink: 0; transition: background 0.15s, transform 0.15s; }
|
|
111
|
+
.panel-back:hover { background: rgba(255,255,255,0.3); transform: translateX(-1px); }
|
|
112
|
+
.panel-back.visible { display: flex; }
|
|
113
|
+
.panel-header-left { display: flex; align-items: center; min-width: 0; flex: 1; }
|
|
114
|
+
.panel-body { padding: 16px; overflow-y: auto; flex: 1; }
|
|
115
|
+
.panel-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #374151; }
|
|
116
|
+
.panel-row:last-child { border-bottom: none; }
|
|
117
|
+
.panel-label { color: #9ca3af; }
|
|
118
|
+
.panel-value { color: #e5e7eb; font-weight: 500; }
|
|
119
|
+
.status-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
|
|
120
|
+
.status-completed { background: #064e3b; color: #6ee7b7; }
|
|
121
|
+
.status-in_progress { background: #1e3a5f; color: #93c5fd; }
|
|
122
|
+
.status-pending { background: #374151; color: #9ca3af; }
|
|
123
|
+
.status-cancelled { background: #451a03; color: #fbbf24; }
|
|
124
|
+
.priority-P0 { background: #7f1d1d; color: #fca5a5; }
|
|
125
|
+
.priority-P1 { background: #78350f; color: #fde68a; }
|
|
126
|
+
.priority-P2 { background: #1e3a5f; color: #93c5fd; }
|
|
127
|
+
.panel-progress { margin-top: 8px; }
|
|
128
|
+
.panel-progress-bar { width: 100%; height: 6px; background: #374151; border-radius: 3px; overflow: hidden; margin-top: 4px; }
|
|
129
|
+
.panel-progress-fill { height: 100%; background: #10b981; border-radius: 3px; }
|
|
130
|
+
|
|
131
|
+
/* Sub-task List in Panel */
|
|
132
|
+
.subtask-section { margin-top: 12px; border-top: 1px solid #374151; padding-top: 10px; }
|
|
133
|
+
.subtask-section-title { font-size: 12px; color: #9ca3af; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
|
|
134
|
+
.subtask-list { list-style: none; padding: 0; margin: 0; }
|
|
135
|
+
.subtask-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(55,65,81,0.5); font-size: 12px; }
|
|
136
|
+
.subtask-item:last-child { border-bottom: none; }
|
|
137
|
+
.subtask-icon { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 10px; }
|
|
138
|
+
.subtask-icon.completed { background: #064e3b; color: #6ee7b7; }
|
|
139
|
+
.subtask-icon.in_progress { background: #1e3a5f; color: #93c5fd; }
|
|
140
|
+
.subtask-icon.pending { background: #374151; color: #6b7280; }
|
|
141
|
+
.subtask-icon.cancelled { background: #451a03; color: #fbbf24; }
|
|
142
|
+
.subtask-name { color: #d1d5db; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
143
|
+
.subtask-name.completed { color: #6ee7b7; text-decoration: line-through; text-decoration-color: rgba(110,231,183,0.3); }
|
|
144
|
+
.subtask-name.cancelled { color: #9ca3af; text-decoration: line-through; }
|
|
145
|
+
.subtask-id { color: #6b7280; font-size: 10px; flex-shrink: 0; font-family: monospace; }
|
|
146
|
+
.subtask-time { color: #6ee7b7; font-size: 10px; flex-shrink: 0; opacity: 0.75; margin-left: auto; }
|
|
147
|
+
|
|
148
|
+
/* Legend */
|
|
149
|
+
.legend { background: #1f2937; border-top: 1px solid #374151; padding: 6px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; font-size: 12px; color: #9ca3af; }
|
|
150
|
+
.legend-filters { display: flex; align-items: center; gap: 8px; }
|
|
151
|
+
.legend-divider { width: 1px; height: 18px; background: #374151; }
|
|
152
|
+
.legend-engine-badge { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7280; padding: 2px 8px; border-radius: 4px; background: rgba(99,102,241,0.08); border: 1px solid #1e293b; white-space: nowrap; cursor: pointer; transition: all 0.2s; }
|
|
153
|
+
.legend-engine-badge:hover { border-color: #4b5563; color: #a5b4fc; background: rgba(99,102,241,0.15); }
|
|
154
|
+
.legend-engine-badge .engine-name { font-weight: 600; color: #818cf8; }
|
|
155
|
+
.legend-refresh-btn { display: flex; align-items: center; justify-content: center; background: none; border: 1px solid #374151; border-radius: 4px; padding: 3px 6px; cursor: pointer; color: #9ca3af; transition: color 0.2s, border-color 0.2s, background 0.2s; }
|
|
156
|
+
.legend-refresh-btn:hover { color: #60a5fa; border-color: #60a5fa; background: rgba(96,165,250,0.08); }
|
|
157
|
+
.legend-refresh-btn:active { color: #3b82f6; }
|
|
158
|
+
.legend-refresh-btn.refreshing .legend-refresh-icon { animation: spin-refresh 0.8s linear infinite; }
|
|
159
|
+
@keyframes spin-refresh { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
160
|
+
.legend-sep { width: 100%; height: 0; }
|
|
161
|
+
.legend-item { display: flex; align-items: center; gap: 6px; }
|
|
162
|
+
.legend-icon { width: 12px; height: 12px; }
|
|
163
|
+
.legend-icon.star { background: #f59e0b; clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
|
|
164
|
+
.legend-icon.diamond { background: #ff6600; clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%); }
|
|
165
|
+
.legend-icon.circle { background: #22c55e; border-radius: 50%; }
|
|
166
|
+
.legend-icon.dot { background: #047857; border-radius: 50%; width: 8px; height: 8px; }
|
|
167
|
+
.legend-icon.square { background: #3b82f6; border-radius: 2px; width: 10px; height: 10px; }
|
|
168
|
+
.legend-line { width: 24px; height: 2px; }
|
|
169
|
+
.legend-line.solid { background: #6b7280; }
|
|
170
|
+
.legend-line.thin { background: #6b7280; height: 1px; }
|
|
171
|
+
.legend-line.dashed { border-top: 2px dashed #6b7280; background: none; height: 0; }
|
|
172
|
+
.legend-line.dotted { border-top: 2px dotted #10b981; background: none; height: 0; }
|
|
173
|
+
.legend-line.task-doc { border-top: 2px dashed #6b7280; background: none; height: 0; }
|
|
174
|
+
.legend-line.doc-child { border-top: 2px dashed #6b7280; background: none; height: 0; }
|
|
175
|
+
|
|
176
|
+
/* Document Content in Panel */
|
|
177
|
+
.doc-section { margin-top: 12px; border-top: 1px solid #374151; padding-top: 10px; }
|
|
178
|
+
.doc-section-title { font-size: 12px; color: #9ca3af; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
|
|
179
|
+
.doc-content { background: #111827; border: 1px solid #374151; border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.7; color: #d1d5db; overflow-x: auto; }
|
|
180
|
+
.doc-content h1, .doc-content h2, .doc-content h3, .doc-content h4 { color: #f3f4f6; margin: 12px 0 6px 0; }
|
|
181
|
+
.doc-content h1 { font-size: 16px; border-bottom: 1px solid #374151; padding-bottom: 4px; }
|
|
182
|
+
.doc-content h2 { font-size: 14px; border-bottom: 1px solid rgba(55,65,81,0.5); padding-bottom: 3px; }
|
|
183
|
+
.doc-content h3 { font-size: 13px; }
|
|
184
|
+
.doc-content h4 { font-size: 12px; color: #d1d5db; }
|
|
185
|
+
.doc-content p { margin: 6px 0; }
|
|
186
|
+
.doc-content code { background: #1e293b; color: #a5b4fc; padding: 1px 5px; border-radius: 3px; font-size: 11px; font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; }
|
|
187
|
+
.doc-content pre { background: #0f172a; border: 1px solid #1e293b; border-radius: 6px; padding: 10px; overflow-x: auto; margin: 8px 0; }
|
|
188
|
+
.doc-content pre code { background: none; padding: 0; color: #e2e8f0; display: block; white-space: pre; }
|
|
189
|
+
.doc-content ul, .doc-content ol { padding-left: 20px; margin: 6px 0; }
|
|
190
|
+
.doc-content li { margin: 2px 0; }
|
|
191
|
+
.doc-content blockquote { border-left: 3px solid #4f46e5; padding-left: 10px; color: #9ca3af; margin: 8px 0; font-style: italic; }
|
|
192
|
+
.doc-content table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 11px; }
|
|
193
|
+
.doc-content th { background: #1e293b; color: #a5b4fc; padding: 5px 8px; text-align: left; border: 1px solid #374151; font-weight: 600; }
|
|
194
|
+
.doc-content td { padding: 4px 8px; border: 1px solid #374151; }
|
|
195
|
+
.doc-content tr:nth-child(even) { background: rgba(30,41,59,0.3); }
|
|
196
|
+
.doc-content a { color: #818cf8; text-decoration: none; }
|
|
197
|
+
.doc-content a:hover { text-decoration: underline; }
|
|
198
|
+
.doc-content hr { border: none; border-top: 1px solid #374151; margin: 10px 0; }
|
|
199
|
+
.doc-content strong { color: #f3f4f6; }
|
|
200
|
+
.doc-content em { color: #c4b5fd; }
|
|
201
|
+
.doc-loading { text-align: center; color: #6b7280; padding: 16px; font-size: 12px; }
|
|
202
|
+
.doc-error { text-align: center; color: #f87171; padding: 12px; font-size: 12px; }
|
|
203
|
+
.doc-toggle { background: none; border: 1px solid #4b5563; color: #9ca3af; padding: 2px 8px; border-radius: 4px; font-size: 11px; cursor: pointer; }
|
|
204
|
+
.doc-toggle:hover { border-color: #6b7280; color: #d1d5db; }
|
|
205
|
+
|
|
206
|
+
/* Page Views */
|
|
207
|
+
.page-view { display: none; }
|
|
208
|
+
.page-view.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
|
|
209
|
+
.page-graph.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
|
|
210
|
+
|
|
211
|
+
/* Settings Page */
|
|
212
|
+
.settings-page { padding: 32px 48px; overflow-y: auto; background: #111827; flex: 1; width: 100%; }
|
|
213
|
+
.settings-page h2 { font-size: 22px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
|
|
214
|
+
.settings-page .settings-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 28px; }
|
|
215
|
+
.settings-grid { display: flex; flex-direction: column; gap: 28px; }
|
|
216
|
+
.settings-section { margin-bottom: 0; }
|
|
217
|
+
.settings-section-title { font-size: 14px; font-weight: 600; color: #d1d5db; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #1e293b; display: flex; align-items: center; gap: 8px; }
|
|
218
|
+
.settings-3d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
|
|
219
|
+
@media (max-width: 960px) { .settings-3d-grid { grid-template-columns: 1fr; } }
|
|
220
|
+
.settings-option-group { display: flex; flex-direction: column; gap: 10px; }
|
|
221
|
+
.settings-radio-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 2px solid #1e293b; background: #0f172a; cursor: pointer; transition: all 0.2s; }
|
|
222
|
+
.settings-radio-card:hover { border-color: #374151; background: #1e293b; }
|
|
223
|
+
.settings-radio-card.selected { border-color: #6366f1; background: rgba(99,102,241,0.08); }
|
|
224
|
+
.settings-radio-card input[type="radio"] { margin-top: 3px; accent-color: #6366f1; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
|
|
225
|
+
.settings-radio-card .radio-content { flex: 1; min-width: 0; }
|
|
226
|
+
.settings-radio-card .radio-label { font-size: 14px; font-weight: 600; color: #e5e7eb; display: flex; align-items: center; gap: 8px; }
|
|
227
|
+
.settings-radio-card .radio-label .default-badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #374151; color: #9ca3af; font-weight: 500; }
|
|
228
|
+
.settings-radio-card .radio-desc { font-size: 12px; color: #6b7280; margin-top: 4px; line-height: 1.5; }
|
|
229
|
+
.settings-radio-card.selected .radio-label { color: #a5b4fc; }
|
|
230
|
+
.settings-radio-card.selected .radio-desc { color: #818cf8; }
|
|
231
|
+
.settings-saved-toast { position: fixed; bottom: 24px; right: 24px; background: #059669; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 100; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; pointer-events: none; }
|
|
232
|
+
.settings-saved-toast.show { opacity: 1; transform: translateY(0); }
|
|
233
|
+
/* 3D Settings Panel */
|
|
234
|
+
.settings-3d-panel { margin-top: 0; padding: 16px; border-radius: 10px; border: 1px solid #1e293b; background: #0f172a; }
|
|
235
|
+
.settings-section > .settings-3d-panel { margin-top: 16px; }
|
|
236
|
+
.settings-3d-panel.collapsed .s3d-body { display: none; }
|
|
237
|
+
.s3d-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; padding: 4px 0; }
|
|
238
|
+
.s3d-header-title { font-size: 13px; font-weight: 600; color: #c7d2fe; display: flex; align-items: center; gap: 6px; }
|
|
239
|
+
.s3d-header-arrow { font-size: 11px; color: #6b7280; transition: transform 0.2s; }
|
|
240
|
+
.settings-3d-panel.collapsed .s3d-header-arrow { transform: rotate(-90deg); }
|
|
241
|
+
.s3d-body { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
|
|
242
|
+
.s3d-group { display: flex; flex-direction: column; gap: 10px; }
|
|
243
|
+
.s3d-group-title { font-size: 12px; font-weight: 600; color: #94a3b8; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
244
|
+
.s3d-row { display: flex; align-items: center; gap: 10px; }
|
|
245
|
+
.s3d-label { font-size: 12px; color: #9ca3af; min-width: 80px; flex-shrink: 0; }
|
|
246
|
+
.s3d-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: #374151; outline: none; cursor: pointer; }
|
|
247
|
+
.s3d-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #6366f1; cursor: pointer; border: 2px solid #1e1b4b; }
|
|
248
|
+
.s3d-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #6366f1; cursor: pointer; border: 2px solid #1e1b4b; }
|
|
249
|
+
.s3d-value { font-size: 11px; color: #6366f1; font-weight: 600; min-width: 36px; text-align: right; font-family: monospace; }
|
|
250
|
+
.s3d-color-row { display: flex; align-items: center; gap: 10px; }
|
|
251
|
+
.s3d-color-label { font-size: 12px; color: #9ca3af; flex: 1; display: flex; align-items: center; gap: 6px; }
|
|
252
|
+
.s3d-color-label .s3d-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
|
|
253
|
+
.s3d-color-input { width: 32px; height: 24px; border: 1px solid #374151; border-radius: 4px; background: transparent; cursor: pointer; padding: 0; }
|
|
254
|
+
.s3d-color-hex { font-size: 11px; color: #6b7280; font-family: monospace; min-width: 60px; }
|
|
255
|
+
.s3d-toggle-row { display: flex; align-items: center; justify-content: space-between; }
|
|
256
|
+
.s3d-toggle-label { font-size: 12px; color: #9ca3af; }
|
|
257
|
+
.s3d-toggle { position: relative; width: 36px; height: 20px; cursor: pointer; }
|
|
258
|
+
.s3d-toggle input { opacity: 0; width: 0; height: 0; }
|
|
259
|
+
.s3d-toggle-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #374151; border-radius: 10px; transition: 0.2s; }
|
|
260
|
+
.s3d-toggle-slider:before { content: ''; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
|
|
261
|
+
.s3d-toggle input:checked + .s3d-toggle-slider { background: #6366f1; }
|
|
262
|
+
.s3d-toggle input:checked + .s3d-toggle-slider:before { transform: translateX(16px); }
|
|
263
|
+
.s3d-reset-btn { margin-top: 8px; padding: 6px 14px; border: 1px solid #374151; border-radius: 6px; background: transparent; color: #9ca3af; font-size: 11px; cursor: pointer; transition: all 0.2s; align-self: flex-start; }
|
|
264
|
+
.s3d-reset-btn:hover { background: #1e293b; color: #e5e7eb; border-color: #4b5563; }
|
|
265
|
+
|
|
266
|
+
/* Stats Dashboard */
|
|
267
|
+
.stats-page { padding: 24px; overflow-y: auto; background: #111827; flex: 1; }
|
|
268
|
+
.stats-header { margin-bottom: 24px; }
|
|
269
|
+
.stats-header h2 { font-size: 22px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
|
|
270
|
+
.stats-header p { font-size: 13px; color: #6b7280; }
|
|
271
|
+
|
|
272
|
+
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
|
|
273
|
+
.stat-card { background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 20px; position: relative; overflow: hidden; }
|
|
274
|
+
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
|
|
275
|
+
.stat-card.purple::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
|
|
276
|
+
.stat-card.green::before { background: linear-gradient(90deg, #059669, #10b981); }
|
|
277
|
+
.stat-card.blue::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
|
|
278
|
+
.stat-card.amber::before { background: linear-gradient(90deg, #d97706, #f59e0b); }
|
|
279
|
+
.stat-card.rose::before { background: linear-gradient(90deg, #e11d48, #f43f5e); }
|
|
280
|
+
.stat-card-icon { font-size: 28px; margin-bottom: 8px; }
|
|
281
|
+
.stat-card-value { font-size: 32px; font-weight: 800; color: #f3f4f6; line-height: 1; }
|
|
282
|
+
.stat-card-label { font-size: 12px; color: #9ca3af; margin-top: 6px; }
|
|
283
|
+
.stat-card-sub { font-size: 11px; color: #6b7280; margin-top: 4px; }
|
|
284
|
+
|
|
285
|
+
.stats-section { margin-bottom: 28px; }
|
|
286
|
+
.stats-section-title { font-size: 15px; font-weight: 600; color: #e5e7eb; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
|
|
287
|
+
.stats-section-title .sec-icon { font-size: 18px; }
|
|
288
|
+
|
|
289
|
+
/* Overall Progress Ring */
|
|
290
|
+
.progress-ring-wrap { display: flex; align-items: center; gap: 24px; background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 24px; margin-bottom: 28px; }
|
|
291
|
+
.progress-ring-info { flex: 1; }
|
|
292
|
+
.progress-ring-info h3 { font-size: 18px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
|
|
293
|
+
.progress-ring-info p { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }
|
|
294
|
+
.progress-ring-info .motivate { font-size: 14px; color: #fbbf24; font-weight: 600; }
|
|
295
|
+
.ring-svg { flex-shrink: 0; }
|
|
296
|
+
|
|
297
|
+
/* Priority Bars */
|
|
298
|
+
.priority-bars { display: flex; flex-direction: column; gap: 12px; background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 20px; }
|
|
299
|
+
.priority-row { display: flex; align-items: center; gap: 12px; }
|
|
300
|
+
.priority-label { width: 32px; font-size: 12px; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 4px; flex-shrink: 0; }
|
|
301
|
+
.priority-label.P0 { background: #7f1d1d; color: #fca5a5; }
|
|
302
|
+
.priority-label.P1 { background: #78350f; color: #fde68a; }
|
|
303
|
+
.priority-label.P2 { background: #1e3a5f; color: #93c5fd; }
|
|
304
|
+
.priority-bar-track { flex: 1; height: 10px; background: #374151; border-radius: 5px; overflow: hidden; }
|
|
305
|
+
.priority-bar-fill { height: 100%; border-radius: 5px; transition: width 0.5s; }
|
|
306
|
+
.priority-bar-fill.P0 { background: linear-gradient(90deg, #dc2626, #f87171); }
|
|
307
|
+
.priority-bar-fill.P1 { background: linear-gradient(90deg, #d97706, #fbbf24); }
|
|
308
|
+
.priority-bar-fill.P2 { background: linear-gradient(90deg, #2563eb, #60a5fa); }
|
|
309
|
+
.priority-nums { font-size: 11px; color: #9ca3af; width: 70px; text-align: right; flex-shrink: 0; }
|
|
310
|
+
|
|
311
|
+
/* Phase List */
|
|
312
|
+
.phase-list { display: flex; flex-direction: column; gap: 8px; }
|
|
313
|
+
.phase-item { background: #1f2937; border: 1px solid #374151; border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
|
|
314
|
+
.phase-status-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
|
|
315
|
+
.phase-status-icon.completed { background: #064e3b; color: #6ee7b7; }
|
|
316
|
+
.phase-status-icon.in_progress { background: #1e3a5f; color: #93c5fd; }
|
|
317
|
+
.phase-status-icon.pending { background: #374151; color: #6b7280; }
|
|
318
|
+
.phase-info { flex: 1; min-width: 0; }
|
|
319
|
+
.phase-info-title { font-size: 13px; font-weight: 600; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
320
|
+
.phase-info-sub { font-size: 11px; color: #6b7280; margin-top: 2px; }
|
|
321
|
+
.phase-bar-mini { width: 80px; height: 6px; background: #374151; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
|
|
322
|
+
.phase-bar-mini-fill { height: 100%; background: #10b981; border-radius: 3px; }
|
|
323
|
+
.phase-pct { font-size: 12px; font-weight: 700; color: #9ca3af; width: 40px; text-align: right; flex-shrink: 0; }
|
|
324
|
+
.phase-item-wrap { background: #1f2937; border: 1px solid #374151; border-radius: 10px; overflow: hidden; }
|
|
325
|
+
.phase-item-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: background 0.15s; }
|
|
326
|
+
.phase-item-main:hover { background: rgba(55,65,81,0.3); }
|
|
327
|
+
.phase-expand-icon { width: 16px; font-size: 10px; color: #6b7280; flex-shrink: 0; transition: transform 0.2s; text-align: center; }
|
|
328
|
+
.phase-item-wrap.expanded .phase-expand-icon { transform: rotate(90deg); }
|
|
329
|
+
.phase-subtasks { display: none; border-top: 1px solid #374151; padding: 6px 0; }
|
|
330
|
+
.phase-item-wrap.expanded .phase-subtasks { display: block; }
|
|
331
|
+
.phase-sub-item { display: flex; align-items: center; gap: 8px; padding: 4px 16px 4px 62px; font-size: 12px; }
|
|
332
|
+
.phase-sub-icon { width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }
|
|
333
|
+
.phase-sub-icon.completed { background: #064e3b; color: #6ee7b7; }
|
|
334
|
+
.phase-sub-icon.in_progress { background: #1e3a5f; color: #93c5fd; }
|
|
335
|
+
.phase-sub-icon.pending { background: #374151; color: #6b7280; }
|
|
336
|
+
.phase-sub-icon.cancelled { background: #451a03; color: #fbbf24; }
|
|
337
|
+
.phase-sub-name { color: #d1d5db; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
338
|
+
.phase-sub-name.completed { color: #6ee7b7; text-decoration: line-through; text-decoration-color: rgba(110,231,183,0.3); }
|
|
339
|
+
.phase-sub-id { color: #4b5563; font-size: 10px; font-family: monospace; flex-shrink: 0; }
|
|
340
|
+
.phase-time { color: #6ee7b7; font-size: 10px; opacity: 0.8; }
|
|
341
|
+
.phase-sub-time { color: #6ee7b7; font-size: 10px; opacity: 0.7; flex-shrink: 0; margin-left: auto; }
|
|
342
|
+
.phase-time { color: #6ee7b7; font-size: 10px; }
|
|
343
|
+
.phase-sub-time { color: #6ee7b7; font-size: 10px; flex-shrink: 0; margin-left: auto; }
|
|
344
|
+
|
|
345
|
+
/* Module Cards */
|
|
346
|
+
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
|
|
347
|
+
.module-card { background: #1f2937; border: 1px solid #374151; border-radius: 10px; padding: 16px; }
|
|
348
|
+
.module-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
|
|
349
|
+
.module-card-dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
|
|
350
|
+
.module-card-name { font-size: 13px; font-weight: 600; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
351
|
+
.module-card-bar { width: 100%; height: 6px; background: #374151; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
|
|
352
|
+
.module-card-bar-fill { height: 100%; background: linear-gradient(90deg, #059669, #10b981); border-radius: 3px; }
|
|
353
|
+
.module-card-stats { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; }
|
|
354
|
+
|
|
355
|
+
/* ===== Docs Browser Page ===== */
|
|
356
|
+
.docs-page { display: flex; flex: 1; min-height: 0; overflow: hidden; background: #111827; }
|
|
357
|
+
.docs-sidebar { width: 280px; background: #1f2937; border-right: 1px solid #374151; display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden; }
|
|
358
|
+
.docs-sidebar-header { padding: 16px 20px 12px; border-bottom: 1px solid #374151; flex-shrink: 0; }
|
|
359
|
+
.docs-sidebar-header h3 { font-size: 15px; font-weight: 700; color: #f3f4f6; margin-bottom: 8px; }
|
|
360
|
+
.docs-search-wrap { position: relative; }
|
|
361
|
+
.docs-search { width: 100%; background: #111827; border: 1px solid #374151; border-radius: 6px; padding: 7px 30px 7px 10px; color: #e5e7eb; font-size: 12px; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
|
|
362
|
+
.docs-search:focus { border-color: #6366f1; }
|
|
363
|
+
.docs-search::placeholder { color: #6b7280; }
|
|
364
|
+
.docs-search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: none; background: none; color: #6b7280; font-size: 14px; cursor: pointer; display: none; align-items: center; justify-content: center; border-radius: 4px; padding: 0; line-height: 1; }
|
|
365
|
+
.docs-search-clear:hover { color: #e5e7eb; background: #374151; }
|
|
366
|
+
.docs-search-clear.show { display: flex; }
|
|
367
|
+
.docs-group-list { overflow-y: auto; flex: 1; padding: 8px 0; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
|
|
368
|
+
.docs-group-list::-webkit-scrollbar { width: 6px; }
|
|
369
|
+
.docs-group-list::-webkit-scrollbar-track { background: transparent; }
|
|
370
|
+
.docs-group-list::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
|
|
371
|
+
.docs-group { margin-bottom: 4px; }
|
|
372
|
+
.docs-group-title { display: flex; align-items: center; gap: 8px; padding: 8px 20px; font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; user-select: none; transition: color 0.15s; }
|
|
373
|
+
.docs-group-title:hover { color: #d1d5db; }
|
|
374
|
+
.docs-group-title .docs-group-arrow { font-size: 9px; transition: transform 0.2s; color: #6b7280; }
|
|
375
|
+
.docs-group.collapsed .docs-group-arrow { transform: rotate(-90deg); }
|
|
376
|
+
.docs-group.collapsed .docs-group-items { display: none; }
|
|
377
|
+
.docs-group-count { font-size: 10px; color: #4b5563; font-weight: 500; margin-left: auto; }
|
|
378
|
+
.docs-item { display: flex; align-items: center; gap: 8px; padding: 7px 20px 7px 28px; cursor: pointer; transition: background 0.15s; font-size: 13px; color: #d1d5db; border-left: 3px solid transparent; }
|
|
379
|
+
.docs-item:hover { background: rgba(55,65,81,0.4); }
|
|
380
|
+
.docs-item.active { background: rgba(99,102,241,0.12); border-left-color: #6366f1; color: #a5b4fc; }
|
|
381
|
+
.docs-item-icon { font-size: 14px; flex-shrink: 0; opacity: 0.7; }
|
|
382
|
+
.docs-item-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
383
|
+
.docs-item-sub { font-size: 10px; color: #6b7280; flex-shrink: 0; }
|
|
384
|
+
.docs-item-toggle { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3); color: #818cf8; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; transition: all 0.15s; line-height: 1; }
|
|
385
|
+
.docs-item-toggle:hover { background: rgba(99,102,241,0.3); color: #a5b4fc; }
|
|
386
|
+
.docs-children { overflow: hidden; transition: max-height 0.25s ease; }
|
|
387
|
+
.docs-children.collapsed { max-height: 0 !important; }
|
|
388
|
+
.docs-children .docs-item { padding-left: 44px; font-size: 12px; opacity: 0.85; }
|
|
389
|
+
.docs-children .docs-children .docs-item { padding-left: 60px; font-size: 11px; opacity: 0.75; }
|
|
390
|
+
.docs-child-line { position: absolute; left: 35px; top: 0; bottom: 0; width: 1px; background: #374151; }
|
|
391
|
+
.docs-item-wrapper { position: relative; }
|
|
392
|
+
|
|
393
|
+
.docs-content { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
|
|
394
|
+
.docs-content-header { padding: 16px 28px 12px; border-bottom: 1px solid #374151; flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
|
|
395
|
+
.docs-content-title { font-size: 20px; font-weight: 700; color: #f3f4f6; }
|
|
396
|
+
.docs-content-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
|
|
397
|
+
.docs-content-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #374151; color: #9ca3af; }
|
|
398
|
+
.docs-content-tag.section { background: rgba(99,102,241,0.15); color: #a5b4fc; }
|
|
399
|
+
.docs-content-tag.version { background: rgba(16,185,129,0.15); color: #6ee7b7; }
|
|
400
|
+
.docs-content-body { flex: 1; overflow-y: auto; padding: 20px 28px 40px; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
|
|
401
|
+
.docs-content-body::-webkit-scrollbar { width: 6px; }
|
|
402
|
+
.docs-content-body::-webkit-scrollbar-track { background: transparent; }
|
|
403
|
+
.docs-content-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
|
|
404
|
+
.docs-content-empty { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
405
|
+
.docs-content-empty .empty-icon { font-size: 48px; opacity: 0.4; }
|
|
406
|
+
|
|
407
|
+
/* RAG Chat UI */
|
|
408
|
+
.docs-chat-container { display: flex; flex-direction: column; flex: 1; min-height: 0; }
|
|
409
|
+
.docs-chat-messages { flex: 1; overflow-y: auto; padding: 20px 28px; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
|
|
410
|
+
.docs-chat-messages::-webkit-scrollbar { width: 6px; }
|
|
411
|
+
.docs-chat-messages::-webkit-scrollbar-track { background: transparent; }
|
|
412
|
+
.docs-chat-messages::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
|
|
413
|
+
.docs-chat-welcome { text-align: center; padding: 60px 40px 30px; color: #6b7280; }
|
|
414
|
+
.docs-chat-welcome .welcome-icon { font-size: 48px; opacity: 0.4; margin-bottom: 12px; }
|
|
415
|
+
.docs-chat-welcome .welcome-title { font-size: 16px; font-weight: 600; color: #9ca3af; margin-bottom: 6px; }
|
|
416
|
+
.docs-chat-welcome .welcome-desc { font-size: 13px; color: #6b7280; line-height: 1.6; }
|
|
417
|
+
.docs-chat-welcome .welcome-tips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
|
|
418
|
+
.docs-chat-welcome .tip-chip { font-size: 12px; padding: 6px 14px; border-radius: 16px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: #a5b4fc; cursor: pointer; transition: all 0.15s; }
|
|
419
|
+
.docs-chat-welcome .tip-chip:hover { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.4); }
|
|
420
|
+
|
|
421
|
+
.chat-bubble { margin-bottom: 16px; max-width: 90%; animation: chatFadeIn 0.25s ease; }
|
|
422
|
+
.chat-bubble.user { margin-left: auto; }
|
|
423
|
+
.chat-bubble.assistant { margin-right: auto; }
|
|
424
|
+
.chat-bubble-inner { padding: 10px 16px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
|
|
425
|
+
.chat-bubble.user .chat-bubble-inner { background: rgba(99,102,241,0.2); color: #c7d2fe; border-bottom-right-radius: 4px; }
|
|
426
|
+
.chat-bubble.assistant .chat-bubble-inner { background: #1f2937; color: #d1d5db; border: 1px solid #374151; border-bottom-left-radius: 4px; }
|
|
427
|
+
.chat-result-card { margin-top: 8px; padding: 10px 14px; border-radius: 8px; background: rgba(55,65,81,0.4); border: 1px solid #374151; cursor: pointer; transition: all 0.15s; }
|
|
428
|
+
.chat-result-card:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
|
|
429
|
+
.chat-result-title { font-size: 13px; font-weight: 600; color: #a5b4fc; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
|
|
430
|
+
.chat-result-score { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(16,185,129,0.15); color: #6ee7b7; font-weight: 500; }
|
|
431
|
+
.chat-result-snippet { font-size: 11px; color: #9ca3af; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
|
|
432
|
+
.chat-result-meta { font-size: 10px; color: #6b7280; margin-top: 4px; display: flex; gap: 8px; }
|
|
433
|
+
.chat-no-result { color: #6b7280; font-size: 12px; margin-top: 8px; }
|
|
434
|
+
.chat-typing { display: flex; gap: 4px; padding: 12px 16px; }
|
|
435
|
+
.chat-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: #6b7280; animation: chatTyping 1.2s infinite; }
|
|
436
|
+
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
|
|
437
|
+
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
|
|
438
|
+
@keyframes chatTyping { 0%,60%,100% { opacity: 0.3; transform: scale(0.8); } 30% { opacity: 1; transform: scale(1); } }
|
|
439
|
+
@keyframes chatFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
|
|
440
|
+
|
|
441
|
+
.docs-chat-input-wrap { padding: 12px 20px 16px; border-top: 1px solid #374151; flex-shrink: 0; display: flex; gap: 8px; align-items: flex-end; background: #111827; }
|
|
442
|
+
.docs-chat-input { flex: 1; background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 10px 16px; color: #e5e7eb; font-size: 13px; outline: none; resize: none; min-height: 20px; max-height: 120px; line-height: 1.5; font-family: inherit; transition: border-color 0.2s; }
|
|
443
|
+
.docs-chat-input:focus { border-color: #6366f1; }
|
|
444
|
+
.docs-chat-input::placeholder { color: #6b7280; }
|
|
445
|
+
.docs-chat-send { width: 36px; height: 36px; border-radius: 10px; border: none; background: #6366f1; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; font-size: 16px; }
|
|
446
|
+
.docs-chat-send:hover { background: #818cf8; }
|
|
447
|
+
.docs-chat-send:disabled { background: #374151; color: #6b7280; cursor: not-allowed; }
|
|
448
|
+
.docs-related { margin-top: 20px; border-top: 1px solid #374151; padding-top: 16px; }
|
|
449
|
+
.docs-related-title { font-size: 13px; font-weight: 600; color: #9ca3af; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
|
|
450
|
+
.docs-related-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; color: #d1d5db; }
|
|
451
|
+
.docs-related-item .rel-icon { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }
|
|
452
|
+
|
|
453
|
+
/* Debug bar */
|
|
454
|
+
.debug { position: absolute; bottom: 0; left: 12px; background: rgba(31,41,55,0.9); border: 1px solid #374151; border-radius: 8px 8px 0 0; padding: 8px 12px; font-size: 11px; color: #9ca3af; z-index: 30; max-width: 400px; }
|
|
455
|
+
.debug .ok { color: #10b981; }
|
|
456
|
+
.debug .err { color: #f87171; }
|
|
457
|
+
|
|
458
|
+
/* Stats Modal — left side panel */
|
|
459
|
+
.stats-modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
|
|
460
|
+
.stats-modal-overlay.active { display: block; }
|
|
461
|
+
.stats-modal { position: fixed; top: 0; bottom: 0; left: 48px; width: 300px; background: #1f2937; border-right: 1px solid #374151; display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,0.4); animation: modal-slide-in 0.2s ease; z-index: 201; pointer-events: auto; transition: left 0.25s ease; }
|
|
462
|
+
@keyframes modal-slide-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
|
|
463
|
+
.stats-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #374151; }
|
|
464
|
+
.stats-modal-title { font-size: 15px; font-weight: 700; color: #f3f4f6; }
|
|
465
|
+
.stats-modal-count { font-size: 12px; color: #6b7280; margin-left: 8px; }
|
|
466
|
+
.stats-modal-close { background: none; border: none; color: #6b7280; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 4px; line-height: 1; }
|
|
467
|
+
.stats-modal-close:hover { background: #374151; color: #e5e7eb; }
|
|
468
|
+
.stats-modal-body { overflow-y: auto; padding: 8px 0; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
|
|
469
|
+
.stats-modal-body::-webkit-scrollbar { width: 6px; }
|
|
470
|
+
.stats-modal-body::-webkit-scrollbar-track { background: transparent; }
|
|
471
|
+
.stats-modal-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
|
|
472
|
+
.stats-modal-body::-webkit-scrollbar-thumb:hover { background: #4b5563; }
|
|
473
|
+
.doc-modal-search-sticky { position: sticky; top: 0; z-index: 2; background: #1f2937; padding: 12px 16px 8px; border-bottom: 1px solid #374151; }
|
|
474
|
+
.stats-modal-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; cursor: pointer; transition: background 0.15s; }
|
|
475
|
+
.stats-modal-item:hover { background: #283344; }
|
|
476
|
+
.stats-modal-item-icon { font-size: 14px; flex-shrink: 0; width: 22px; text-align: center; }
|
|
477
|
+
.stats-modal-item-name { flex: 1; font-size: 13px; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
478
|
+
.stats-modal-item-badge { font-size: 11px; padding: 2px 8px; border-radius: 9999px; flex-shrink: 0; }
|
|
479
|
+
.stats-modal-item-badge.completed { background: rgba(16,185,129,0.15); color: #6ee7b7; }
|
|
480
|
+
.stats-modal-item-badge.in_progress { background: rgba(59,130,246,0.15); color: #93c5fd; }
|
|
481
|
+
.stats-modal-item-badge.pending { background: rgba(107,114,128,0.15); color: #9ca3af; }
|
|
482
|
+
.stats-modal-item-badge.cancelled { background: rgba(146,64,14,0.15); color: #fbbf24; }
|
|
483
|
+
.stats-modal-item-badge.active { background: rgba(16,185,129,0.15); color: #6ee7b7; }
|
|
484
|
+
.stats-modal-item-sub { font-size: 11px; color: #6b7280; flex-shrink: 0; font-family: monospace; }
|
|
485
|
+
`;
|
|
486
|
+
}
|
|
487
|
+
//# sourceMappingURL=template-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-styles.js","sourceRoot":"","sources":["../../src/visualize/template-styles.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,8BA2dC;AA3dD,SAAgB,SAAS;IACvB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAydR,CAAC;AACF,CAAC"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* DevPlan 图可视化 HTML 模板
|
|
2
|
+
* DevPlan 图可视化 HTML 模板 — 主入口
|
|
3
3
|
*
|
|
4
|
-
* 自包含的 HTML 页面,通过 CDN
|
|
5
|
-
*
|
|
4
|
+
* 自包含的 HTML 页面,通过 CDN 引入渲染引擎。
|
|
5
|
+
* 所有模块化代码通过 import 组合为完整页面。
|
|
6
|
+
*
|
|
7
|
+
* 模块结构:
|
|
8
|
+
* - template-styles.ts — CSS 样式
|
|
9
|
+
* - template-html.ts — HTML 结构
|
|
10
|
+
* - template-core.ts — 侧边栏、设置、引擎加载、状态
|
|
11
|
+
* - template-graph-vis.ts — vis-network 渲染、边高亮、文档展开、筛选
|
|
12
|
+
* - template-graph-3d.ts — 3D Force Graph 渲染
|
|
13
|
+
* - template-data-loading.ts — 数据加载
|
|
14
|
+
* - template-detail-panel.ts — 共享详情面板、Markdown 渲染
|
|
15
|
+
* - template-stats-modal.ts — 统计弹层、手动刷新
|
|
16
|
+
* - template-pages.ts — 文档浏览、RAG 聊天、统计仪表盘
|
|
6
17
|
*/
|
|
7
18
|
export declare function getVisualizationHTML(projectName: string): string;
|
|
8
19
|
//# sourceMappingURL=template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/visualize/template.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/visualize/template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAYH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAqChE"}
|