sillyspec 3.20.2 → 3.20.4
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/.claude/skills/sillyspec-archive/SKILL.md +21 -21
- package/.claude/skills/sillyspec-auto/SKILL.md +83 -83
- package/.claude/skills/sillyspec-brainstorm/SKILL.md +44 -44
- package/.claude/skills/sillyspec-commit/SKILL.md +106 -106
- package/.claude/skills/sillyspec-continue/SKILL.md +45 -45
- package/.claude/skills/sillyspec-doctor/SKILL.md +31 -31
- package/.claude/skills/sillyspec-execute/SKILL.md +30 -30
- package/.claude/skills/sillyspec-explore/SKILL.md +109 -109
- package/.claude/skills/sillyspec-knowledge/SKILL.md +269 -269
- package/.claude/skills/sillyspec-plan/SKILL.md +21 -21
- package/.claude/skills/sillyspec-propose/SKILL.md +21 -21
- package/.claude/skills/sillyspec-quick/SKILL.md +21 -21
- package/.claude/skills/sillyspec-resume/SKILL.md +68 -68
- package/.claude/skills/sillyspec-scan/SKILL.md +21 -21
- package/.claude/skills/sillyspec-state/SKILL.md +54 -54
- package/.claude/skills/sillyspec-status/SKILL.md +21 -21
- package/.claude/skills/sillyspec-verify/SKILL.md +21 -21
- package/.claude/skills/sillyspec-workspace/SKILL.md +157 -157
- package/.husky/pre-push +13 -13
- package/CLAUDE.md +18 -18
- package/README.md +198 -188
- package/SKILL.md +90 -91
- package/bin/sillyspec.js +2 -2
- package/docs/brainstorm-plan-contract.md +64 -64
- package/docs/plan-execute-contract.md +123 -123
- package/docs/platform-scan-protocol.md +298 -298
- package/docs/revision-mode.md +115 -115
- package/docs/sillyspec/file-lifecycle/known-implementation-gaps.md +99 -99
- package/docs/sillyspec/file-lifecycle/platform-workflows-sync.md +218 -218
- package/docs/sillyspec/file-lifecycle/stage-artifacts.md +167 -167
- package/docs/sillyspec/file-lifecycle/storage-and-state.md +148 -148
- package/docs/sillyspec/file-lifecycle/worktree-and-guard.md +211 -193
- package/docs/sillyspec/file-lifecycle.md +125 -125
- package/docs/workflow-contract-regression.md +106 -106
- package/docs/worktree-isolation.md +252 -252
- package/package.json +40 -40
- package/packages/dashboard/dist/assets/index-Bq_Z2hne.js +7446 -7446
- package/packages/dashboard/dist/assets/index-O2W5RV4z.css +1 -1
- package/packages/dashboard/dist/index.html +16 -16
- package/packages/dashboard/index.html +15 -15
- package/packages/dashboard/package-lock.json +2384 -2384
- package/packages/dashboard/package.json +25 -25
- package/packages/dashboard/server/executor.js +86 -86
- package/packages/dashboard/server/index.js +588 -588
- package/packages/dashboard/server/parser.js +526 -526
- package/packages/dashboard/server/watcher.js +344 -344
- package/packages/dashboard/src/App.vue +558 -558
- package/packages/dashboard/src/components/ActionBar.vue +93 -93
- package/packages/dashboard/src/components/CommandPalette.vue +96 -96
- package/packages/dashboard/src/components/DetailPanel.vue +137 -137
- package/packages/dashboard/src/components/LogStream.vue +65 -65
- package/packages/dashboard/src/components/PipelineStage.vue +95 -95
- package/packages/dashboard/src/components/PipelineView.vue +156 -156
- package/packages/dashboard/src/components/ProjectList.vue +210 -210
- package/packages/dashboard/src/components/StageBadge.vue +67 -67
- package/packages/dashboard/src/components/StepCard.vue +94 -94
- package/packages/dashboard/src/components/detail/DocsDetail.vue +48 -48
- package/packages/dashboard/src/components/detail/GitDetail.vue +61 -61
- package/packages/dashboard/src/components/detail/TechDetail.vue +43 -43
- package/packages/dashboard/src/composables/useDashboard.js +170 -170
- package/packages/dashboard/src/composables/useKeyboard.js +119 -119
- package/packages/dashboard/src/composables/useWebSocket.js +129 -129
- package/packages/dashboard/src/main.js +8 -8
- package/packages/dashboard/src/style.css +132 -132
- package/packages/dashboard/vite.config.js +18 -18
- package/src/brainstorm-postcheck.js +158 -158
- package/src/change-list.js +52 -52
- package/src/change-risk-profile.js +352 -352
- package/src/classify-change.js +73 -73
- package/src/constants.js +70 -70
- package/src/contract-matrix.js +278 -278
- package/src/db.js +201 -201
- package/src/endpoint-extractor.js +315 -315
- package/src/hooks/claude-pre-tool-use.cjs +125 -125
- package/src/hooks/worktree-guard.js +653 -653
- package/src/index.js +922 -900
- package/src/init.js +431 -431
- package/src/knowledge-match.js +130 -130
- package/src/migrate.js +117 -117
- package/src/modules.js +482 -482
- package/src/progress.js +1734 -1734
- package/src/run.js +3465 -3358
- package/src/scan-postcheck.js +387 -383
- package/src/setup.js +398 -398
- package/src/stage-contract.js +700 -700
- package/src/stages/archive.js +160 -160
- package/src/stages/brainstorm-auto.js +229 -229
- package/src/stages/brainstorm.js +645 -645
- package/src/stages/doctor.js +365 -365
- package/src/stages/execute.js +625 -625
- package/src/stages/explore.js +34 -34
- package/src/stages/index.js +29 -29
- package/src/stages/knowledge.js +498 -498
- package/src/stages/plan-postcheck.js +511 -513
- package/src/stages/plan.js +582 -582
- package/src/stages/propose.js +174 -174
- package/src/stages/quick.js +82 -82
- package/src/stages/scan.js +558 -558
- package/src/stages/status.js +65 -65
- package/src/stages/verify.js +322 -322
- package/src/sync.js +497 -497
- package/src/task-review.js +346 -346
- package/src/workflow.js +785 -785
- package/src/worktree-apply.js +549 -549
- package/src/worktree-deps.js +185 -0
- package/src/worktree.js +982 -932
- package/templates/workflows/archive-impact.yaml +79 -79
- package/templates/workflows/scan-docs.yaml +132 -132
- package/test/brainstorm-plan-contract.test.mjs +273 -273
- package/test/check-syntax.mjs +26 -26
- package/test/contract-artifacts.test.mjs +323 -323
- package/test/decision-supersede.test.mjs +277 -277
- package/test/knowledge-match.test.mjs +231 -231
- package/test/plan-execute-contract.test.mjs +330 -330
- package/test/plan-optimization.test.mjs +572 -572
- package/test/platform-artifacts.test.mjs +166 -166
- package/test/platform-failure-samples.test.mjs +199 -199
- package/test/platform-recovery-chain.test.mjs +167 -167
- package/test/platform-recovery.test.mjs +136 -136
- package/test/platform-scan-p0.test.mjs +168 -168
- package/test/revision-v1.test.mjs +1145 -1145
- package/test/run-scan-project-parse.test.mjs +200 -200
- package/test/run-tests.mjs +48 -48
- package/test/scan-knowledge.test.mjs +175 -175
- package/test/scan-paths.test.mjs +68 -68
- package/test/scan-postcheck.test.mjs +197 -197
- package/test/spec-dir.test.mjs +206 -206
- package/test/stage-contract.test.mjs +299 -299
- package/test/stage-definitions.test.mjs +39 -39
- package/test/wait-gates.test.mjs +496 -496
- package/test/worktree-deps-provision.test.mjs +148 -0
- package/test/worktree-guard.test.mjs +71 -71
- package/test/worktree-native-overlay.test.mjs +188 -188
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="['flex flex-col transition-all duration-300', isOpen ? 'w-[340px]' : 'w-0 opacity-0 overflow-hidden']"
|
|
4
|
-
style="background: #F5F5F7;"
|
|
5
|
-
>
|
|
6
|
-
<!-- Header -->
|
|
7
|
-
<div class="px-4 py-3 flex items-center justify-between flex-shrink-0" style="border-bottom: 1px solid #F0F0F3;">
|
|
8
|
-
<h2 class="text-[11px] font-semibold uppercase tracking-[0.2em] font-[JetBrains_Mono,monospace]" style="color: #6B7280;">{{ detailType ? detailTitle : '详情' }}</h2>
|
|
9
|
-
<n-button quaternary size="tiny" @click="handleClose">
|
|
10
|
-
<template #icon>
|
|
11
|
-
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
12
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
13
|
-
</svg>
|
|
14
|
-
</template>
|
|
15
|
-
</n-button>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<!-- Content -->
|
|
19
|
-
<div class="flex-1 overflow-y-auto">
|
|
20
|
-
<!-- Empty state -->
|
|
21
|
-
<n-empty v-if="!activeStep && !detailType" description="选择一个步骤" style="margin: auto; padding: 48px 0;" />
|
|
22
|
-
|
|
23
|
-
<!-- Detail views -->
|
|
24
|
-
<template v-if="detailType === 'git'">
|
|
25
|
-
<GitDetail :data="detailData" />
|
|
26
|
-
</template>
|
|
27
|
-
<template v-else-if="detailType === 'tech'">
|
|
28
|
-
<TechDetail :data="detailData" />
|
|
29
|
-
</template>
|
|
30
|
-
<template v-else-if="detailType === 'docs'">
|
|
31
|
-
<DocsDetail :data="detailData" @open-file="$emit('open-doc-file', $event)" />
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<!-- Step detail (original) -->
|
|
35
|
-
<div v-else-if="activeStep">
|
|
36
|
-
<!-- Title -->
|
|
37
|
-
<div class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
38
|
-
<h3 class="text-[13px] font-semibold font-[JetBrains_Mono,monospace]" style="color: #D97706;">
|
|
39
|
-
{{ activeStep.title || activeStep.name }}
|
|
40
|
-
</h3>
|
|
41
|
-
<div v-if="activeStep.status" class="mt-2">
|
|
42
|
-
<StageBadge :status="activeStep.status" />
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<!-- Description -->
|
|
47
|
-
<div v-if="activeStep.description || activeStep.summary" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
48
|
-
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">描述</h4>
|
|
49
|
-
<p class="text-[11px] leading-relaxed" style="color: #636366;">{{ activeStep.description || activeStep.summary }}</p>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<!-- Conclusion -->
|
|
53
|
-
<div v-if="activeStep.conclusion" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
54
|
-
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">结论</h4>
|
|
55
|
-
<p class="text-[11px] leading-relaxed" style="color: #1C1C1E;">{{ activeStep.conclusion }}</p>
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<!-- Decision -->
|
|
59
|
-
<div v-if="activeStep.decision" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
60
|
-
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">决策</h4>
|
|
61
|
-
<p class="text-[11px] leading-relaxed" style="color: #1C1C1E;">{{ activeStep.decision }}</p>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<!-- User Query -->
|
|
65
|
-
<div v-if="activeStep.userQuery" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
66
|
-
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">用户提问</h4>
|
|
67
|
-
<div class="px-3 py-2 rounded-md" style="background: #F5F5F7; border: 1px solid #F0F0F3;">
|
|
68
|
-
<p class="text-[11px] italic" style="color: #636366;">"{{ activeStep.userQuery }}"</p>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
|
|
72
|
-
<!-- Metadata -->
|
|
73
|
-
<div v-if="activeStep.duration || activeStep.timestamp" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
74
|
-
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">元信息</h4>
|
|
75
|
-
<div class="space-y-1 text-[11px]" style="color: #6B7280;">
|
|
76
|
-
<div v-if="activeStep.duration"><span style="color: #636366;">耗时:</span> {{ activeStep.duration }}</div>
|
|
77
|
-
<div v-if="activeStep.timestamp"><span style="color: #636366;">时间:</span> {{ formatTimestamp(activeStep.timestamp) }}</div>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<!-- Output -->
|
|
82
|
-
<div v-if="activeStep.output || activeStep.files" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
83
|
-
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">输出</h4>
|
|
84
|
-
<n-code v-if="activeStep.output" :code="activeStep.output" language="text" word-wrap style="max-height: 300px; overflow-y: auto; padding: 8px; border-radius: 4px; background: #F5F5F7;" />
|
|
85
|
-
<div v-if="activeStep.files" class="mt-2 space-y-1">
|
|
86
|
-
<div v-for="(file, i) in activeStep.files" :key="i" class="flex items-center gap-2 text-[10px]" style="color: #6B7280;">
|
|
87
|
-
<svg class="w-3 h-3 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
88
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
|
89
|
-
</svg>
|
|
90
|
-
<span class="truncate">{{ file }}</span>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
|
|
97
|
-
<!-- Log Stream -->
|
|
98
|
-
<div class="flex-shrink-0" style="height: 200px; border-top: 1px solid #F0F0F3;">
|
|
99
|
-
<LogStream :logs="logs" @clear="$emit('clear-logs')" />
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
</template>
|
|
103
|
-
|
|
104
|
-
<script setup>
|
|
105
|
-
import { computed } from 'vue'
|
|
106
|
-
import StageBadge from './StageBadge.vue'
|
|
107
|
-
import LogStream from './LogStream.vue'
|
|
108
|
-
import GitDetail from './detail/GitDetail.vue'
|
|
109
|
-
import TechDetail from './detail/TechDetail.vue'
|
|
110
|
-
import DocsDetail from './detail/DocsDetail.vue'
|
|
111
|
-
|
|
112
|
-
const props = defineProps({
|
|
113
|
-
isOpen: { type: Boolean, default: true },
|
|
114
|
-
activeStep: { type: Object, default: null },
|
|
115
|
-
logs: { type: Array, default: () => [] },
|
|
116
|
-
detailType: { type: String, default: null },
|
|
117
|
-
detailData: { type: [Object, Array], default: null }
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
const emit = defineEmits(['close', 'clear-logs', 'open-doc-file'])
|
|
121
|
-
|
|
122
|
-
const detailTitle = computed(() => {
|
|
123
|
-
if (props.detailType === 'git') return 'Git 详情'
|
|
124
|
-
if (props.detailType === 'tech') return '技术栈详情'
|
|
125
|
-
if (props.detailType === 'docs') return '文档列表'
|
|
126
|
-
return '详情'
|
|
127
|
-
})
|
|
128
|
-
|
|
129
|
-
function handleClose() {
|
|
130
|
-
emit('close')
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function formatTimestamp(ts) {
|
|
134
|
-
if (!ts) return ''
|
|
135
|
-
return new Date(ts).toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' })
|
|
136
|
-
}
|
|
137
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="['flex flex-col transition-all duration-300', isOpen ? 'w-[340px]' : 'w-0 opacity-0 overflow-hidden']"
|
|
4
|
+
style="background: #F5F5F7;"
|
|
5
|
+
>
|
|
6
|
+
<!-- Header -->
|
|
7
|
+
<div class="px-4 py-3 flex items-center justify-between flex-shrink-0" style="border-bottom: 1px solid #F0F0F3;">
|
|
8
|
+
<h2 class="text-[11px] font-semibold uppercase tracking-[0.2em] font-[JetBrains_Mono,monospace]" style="color: #6B7280;">{{ detailType ? detailTitle : '详情' }}</h2>
|
|
9
|
+
<n-button quaternary size="tiny" @click="handleClose">
|
|
10
|
+
<template #icon>
|
|
11
|
+
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
12
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
13
|
+
</svg>
|
|
14
|
+
</template>
|
|
15
|
+
</n-button>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<!-- Content -->
|
|
19
|
+
<div class="flex-1 overflow-y-auto">
|
|
20
|
+
<!-- Empty state -->
|
|
21
|
+
<n-empty v-if="!activeStep && !detailType" description="选择一个步骤" style="margin: auto; padding: 48px 0;" />
|
|
22
|
+
|
|
23
|
+
<!-- Detail views -->
|
|
24
|
+
<template v-if="detailType === 'git'">
|
|
25
|
+
<GitDetail :data="detailData" />
|
|
26
|
+
</template>
|
|
27
|
+
<template v-else-if="detailType === 'tech'">
|
|
28
|
+
<TechDetail :data="detailData" />
|
|
29
|
+
</template>
|
|
30
|
+
<template v-else-if="detailType === 'docs'">
|
|
31
|
+
<DocsDetail :data="detailData" @open-file="$emit('open-doc-file', $event)" />
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<!-- Step detail (original) -->
|
|
35
|
+
<div v-else-if="activeStep">
|
|
36
|
+
<!-- Title -->
|
|
37
|
+
<div class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
38
|
+
<h3 class="text-[13px] font-semibold font-[JetBrains_Mono,monospace]" style="color: #D97706;">
|
|
39
|
+
{{ activeStep.title || activeStep.name }}
|
|
40
|
+
</h3>
|
|
41
|
+
<div v-if="activeStep.status" class="mt-2">
|
|
42
|
+
<StageBadge :status="activeStep.status" />
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- Description -->
|
|
47
|
+
<div v-if="activeStep.description || activeStep.summary" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
48
|
+
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">描述</h4>
|
|
49
|
+
<p class="text-[11px] leading-relaxed" style="color: #636366;">{{ activeStep.description || activeStep.summary }}</p>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<!-- Conclusion -->
|
|
53
|
+
<div v-if="activeStep.conclusion" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
54
|
+
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">结论</h4>
|
|
55
|
+
<p class="text-[11px] leading-relaxed" style="color: #1C1C1E;">{{ activeStep.conclusion }}</p>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<!-- Decision -->
|
|
59
|
+
<div v-if="activeStep.decision" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
60
|
+
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">决策</h4>
|
|
61
|
+
<p class="text-[11px] leading-relaxed" style="color: #1C1C1E;">{{ activeStep.decision }}</p>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<!-- User Query -->
|
|
65
|
+
<div v-if="activeStep.userQuery" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
66
|
+
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">用户提问</h4>
|
|
67
|
+
<div class="px-3 py-2 rounded-md" style="background: #F5F5F7; border: 1px solid #F0F0F3;">
|
|
68
|
+
<p class="text-[11px] italic" style="color: #636366;">"{{ activeStep.userQuery }}"</p>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<!-- Metadata -->
|
|
73
|
+
<div v-if="activeStep.duration || activeStep.timestamp" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
74
|
+
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">元信息</h4>
|
|
75
|
+
<div class="space-y-1 text-[11px]" style="color: #6B7280;">
|
|
76
|
+
<div v-if="activeStep.duration"><span style="color: #636366;">耗时:</span> {{ activeStep.duration }}</div>
|
|
77
|
+
<div v-if="activeStep.timestamp"><span style="color: #636366;">时间:</span> {{ formatTimestamp(activeStep.timestamp) }}</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<!-- Output -->
|
|
82
|
+
<div v-if="activeStep.output || activeStep.files" class="px-4 py-3" style="border-bottom: 1px solid #F0F0F3;">
|
|
83
|
+
<h4 class="text-[9px] font-semibold uppercase tracking-[0.2em] mb-1.5 font-[JetBrains_Mono,monospace]" style="color: #6B7280;">输出</h4>
|
|
84
|
+
<n-code v-if="activeStep.output" :code="activeStep.output" language="text" word-wrap style="max-height: 300px; overflow-y: auto; padding: 8px; border-radius: 4px; background: #F5F5F7;" />
|
|
85
|
+
<div v-if="activeStep.files" class="mt-2 space-y-1">
|
|
86
|
+
<div v-for="(file, i) in activeStep.files" :key="i" class="flex items-center gap-2 text-[10px]" style="color: #6B7280;">
|
|
87
|
+
<svg class="w-3 h-3 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
88
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
|
89
|
+
</svg>
|
|
90
|
+
<span class="truncate">{{ file }}</span>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<!-- Log Stream -->
|
|
98
|
+
<div class="flex-shrink-0" style="height: 200px; border-top: 1px solid #F0F0F3;">
|
|
99
|
+
<LogStream :logs="logs" @clear="$emit('clear-logs')" />
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</template>
|
|
103
|
+
|
|
104
|
+
<script setup>
|
|
105
|
+
import { computed } from 'vue'
|
|
106
|
+
import StageBadge from './StageBadge.vue'
|
|
107
|
+
import LogStream from './LogStream.vue'
|
|
108
|
+
import GitDetail from './detail/GitDetail.vue'
|
|
109
|
+
import TechDetail from './detail/TechDetail.vue'
|
|
110
|
+
import DocsDetail from './detail/DocsDetail.vue'
|
|
111
|
+
|
|
112
|
+
const props = defineProps({
|
|
113
|
+
isOpen: { type: Boolean, default: true },
|
|
114
|
+
activeStep: { type: Object, default: null },
|
|
115
|
+
logs: { type: Array, default: () => [] },
|
|
116
|
+
detailType: { type: String, default: null },
|
|
117
|
+
detailData: { type: [Object, Array], default: null }
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
const emit = defineEmits(['close', 'clear-logs', 'open-doc-file'])
|
|
121
|
+
|
|
122
|
+
const detailTitle = computed(() => {
|
|
123
|
+
if (props.detailType === 'git') return 'Git 详情'
|
|
124
|
+
if (props.detailType === 'tech') return '技术栈详情'
|
|
125
|
+
if (props.detailType === 'docs') return '文档列表'
|
|
126
|
+
return '详情'
|
|
127
|
+
})
|
|
128
|
+
|
|
129
|
+
function handleClose() {
|
|
130
|
+
emit('close')
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function formatTimestamp(ts) {
|
|
134
|
+
if (!ts) return ''
|
|
135
|
+
return new Date(ts).toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' })
|
|
136
|
+
}
|
|
137
|
+
</script>
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex flex-col h-full" style="background: #F5F5F7;">
|
|
3
|
-
<!-- Header -->
|
|
4
|
-
<div class="px-3 py-2 flex items-center gap-2" style="border-bottom: 1px solid #F0F0F3;">
|
|
5
|
-
<n-input v-model:value="searchQuery" size="tiny" placeholder="过滤日志..." clearable style="flex: 1;" />
|
|
6
|
-
<n-button size="tiny" @click="clearLogs">清空</n-button>
|
|
7
|
-
<n-button size="tiny" :type="autoScroll ? 'primary' : 'default'" @click="toggleAutoScroll">
|
|
8
|
-
{{ autoScroll ? '自动' : '暂停' }}
|
|
9
|
-
</n-button>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<!-- Log output -->
|
|
13
|
-
<div ref="logContainer" class="flex-1 overflow-y-auto px-2 py-1.5 font-mono-log text-[10px]" style="background: #F0F0F3;" @scroll="handleScroll">
|
|
14
|
-
<div v-if="filteredLogs.length === 0" class="flex items-center justify-center h-full">
|
|
15
|
-
<span class="font-mono-log" style="color: #E5E5EA;">{{ logs.length === 0 ? '暂无日志' : '无匹配' }}</span>
|
|
16
|
-
</div>
|
|
17
|
-
<div v-else class="space-y-px">
|
|
18
|
-
<div v-for="log in filteredLogs" :key="log.id" class="px-1.5 py-px rounded-sm" :style="{ background: logBg(log.type) }">
|
|
19
|
-
<span style="color: #D1D1D6;" class="select-none">[{{ formatTime(log.timestamp) }}]</span>
|
|
20
|
-
<span :style="{ color: logColor(log.type) }">{{ escapeHtml(log.content) }}</span>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<!-- Footer -->
|
|
26
|
-
<div class="px-3 py-1 flex items-center justify-between text-[9px] font-mono-log" style="border-top: 1px solid #F0F0F3; background: #F5F5F7; color: #D1D1D6;">
|
|
27
|
-
<span>{{ filteredLogs.length }}/{{ logs.length }}</span>
|
|
28
|
-
<span v-if="!autoScroll" style="color: #EA580C;">已暂停</span>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script setup>
|
|
34
|
-
import { ref, computed, watch, nextTick } from 'vue'
|
|
35
|
-
|
|
36
|
-
const props = defineProps({ logs: { type: Array, default: () => [] } })
|
|
37
|
-
const emit = defineEmits(['clear'])
|
|
38
|
-
|
|
39
|
-
const searchQuery = ref('')
|
|
40
|
-
const autoScroll = ref(true)
|
|
41
|
-
const logContainer = ref(null)
|
|
42
|
-
|
|
43
|
-
const filteredLogs = computed(() => {
|
|
44
|
-
if (!searchQuery.value) return props.logs
|
|
45
|
-
const q = searchQuery.value.toLowerCase()
|
|
46
|
-
return props.logs.filter(l => l.content.toLowerCase().includes(q))
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
function formatTime(ts) { if (!ts) return ''; const d = new Date(ts); return d.toLocaleTimeString('zh-CN', { hour12: false }) }
|
|
50
|
-
function escapeHtml(t) { if (!t) return ''; return t.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>') }
|
|
51
|
-
function logBg(t) { return t === 'error' ? 'rgba(239,68,68,0.05)' : t === 'warn' ? 'rgba(251,146,60,0.05)' : 'transparent' }
|
|
52
|
-
function logColor(t) { return t === 'error' ? '#DC2626' : t === 'warn' ? '#EA580C' : t === 'debug' ? '#6B7280' : '#636366' }
|
|
53
|
-
function clearLogs() { emit('clear') }
|
|
54
|
-
function toggleAutoScroll() { autoScroll.value = !autoScroll.value; if (autoScroll.value) scrollToBottom() }
|
|
55
|
-
function handleScroll() {
|
|
56
|
-
if (!logContainer.value) return
|
|
57
|
-
const { scrollTop, scrollHeight, clientHeight } = logContainer.value
|
|
58
|
-
const atBottom = scrollHeight - scrollTop - clientHeight < 50
|
|
59
|
-
if (!atBottom && autoScroll.value) autoScroll.value = false
|
|
60
|
-
else if (atBottom && !autoScroll.value) autoScroll.value = true
|
|
61
|
-
}
|
|
62
|
-
function scrollToBottom() { nextTick(() => { if (logContainer.value && autoScroll.value) logContainer.value.scrollTop = logContainer.value.scrollHeight }) }
|
|
63
|
-
watch(() => props.logs.length, () => { scrollToBottom() }, { flush: 'post' })
|
|
64
|
-
watch(logContainer, () => { scrollToBottom() }, { once: true })
|
|
65
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex flex-col h-full" style="background: #F5F5F7;">
|
|
3
|
+
<!-- Header -->
|
|
4
|
+
<div class="px-3 py-2 flex items-center gap-2" style="border-bottom: 1px solid #F0F0F3;">
|
|
5
|
+
<n-input v-model:value="searchQuery" size="tiny" placeholder="过滤日志..." clearable style="flex: 1;" />
|
|
6
|
+
<n-button size="tiny" @click="clearLogs">清空</n-button>
|
|
7
|
+
<n-button size="tiny" :type="autoScroll ? 'primary' : 'default'" @click="toggleAutoScroll">
|
|
8
|
+
{{ autoScroll ? '自动' : '暂停' }}
|
|
9
|
+
</n-button>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<!-- Log output -->
|
|
13
|
+
<div ref="logContainer" class="flex-1 overflow-y-auto px-2 py-1.5 font-mono-log text-[10px]" style="background: #F0F0F3;" @scroll="handleScroll">
|
|
14
|
+
<div v-if="filteredLogs.length === 0" class="flex items-center justify-center h-full">
|
|
15
|
+
<span class="font-mono-log" style="color: #E5E5EA;">{{ logs.length === 0 ? '暂无日志' : '无匹配' }}</span>
|
|
16
|
+
</div>
|
|
17
|
+
<div v-else class="space-y-px">
|
|
18
|
+
<div v-for="log in filteredLogs" :key="log.id" class="px-1.5 py-px rounded-sm" :style="{ background: logBg(log.type) }">
|
|
19
|
+
<span style="color: #D1D1D6;" class="select-none">[{{ formatTime(log.timestamp) }}]</span>
|
|
20
|
+
<span :style="{ color: logColor(log.type) }">{{ escapeHtml(log.content) }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<!-- Footer -->
|
|
26
|
+
<div class="px-3 py-1 flex items-center justify-between text-[9px] font-mono-log" style="border-top: 1px solid #F0F0F3; background: #F5F5F7; color: #D1D1D6;">
|
|
27
|
+
<span>{{ filteredLogs.length }}/{{ logs.length }}</span>
|
|
28
|
+
<span v-if="!autoScroll" style="color: #EA580C;">已暂停</span>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script setup>
|
|
34
|
+
import { ref, computed, watch, nextTick } from 'vue'
|
|
35
|
+
|
|
36
|
+
const props = defineProps({ logs: { type: Array, default: () => [] } })
|
|
37
|
+
const emit = defineEmits(['clear'])
|
|
38
|
+
|
|
39
|
+
const searchQuery = ref('')
|
|
40
|
+
const autoScroll = ref(true)
|
|
41
|
+
const logContainer = ref(null)
|
|
42
|
+
|
|
43
|
+
const filteredLogs = computed(() => {
|
|
44
|
+
if (!searchQuery.value) return props.logs
|
|
45
|
+
const q = searchQuery.value.toLowerCase()
|
|
46
|
+
return props.logs.filter(l => l.content.toLowerCase().includes(q))
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
function formatTime(ts) { if (!ts) return ''; const d = new Date(ts); return d.toLocaleTimeString('zh-CN', { hour12: false }) }
|
|
50
|
+
function escapeHtml(t) { if (!t) return ''; return t.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>') }
|
|
51
|
+
function logBg(t) { return t === 'error' ? 'rgba(239,68,68,0.05)' : t === 'warn' ? 'rgba(251,146,60,0.05)' : 'transparent' }
|
|
52
|
+
function logColor(t) { return t === 'error' ? '#DC2626' : t === 'warn' ? '#EA580C' : t === 'debug' ? '#6B7280' : '#636366' }
|
|
53
|
+
function clearLogs() { emit('clear') }
|
|
54
|
+
function toggleAutoScroll() { autoScroll.value = !autoScroll.value; if (autoScroll.value) scrollToBottom() }
|
|
55
|
+
function handleScroll() {
|
|
56
|
+
if (!logContainer.value) return
|
|
57
|
+
const { scrollTop, scrollHeight, clientHeight } = logContainer.value
|
|
58
|
+
const atBottom = scrollHeight - scrollTop - clientHeight < 50
|
|
59
|
+
if (!atBottom && autoScroll.value) autoScroll.value = false
|
|
60
|
+
else if (atBottom && !autoScroll.value) autoScroll.value = true
|
|
61
|
+
}
|
|
62
|
+
function scrollToBottom() { nextTick(() => { if (logContainer.value && autoScroll.value) logContainer.value.scrollTop = logContainer.value.scrollHeight }) }
|
|
63
|
+
watch(() => props.logs.length, () => { scrollToBottom() }, { flush: 'post' })
|
|
64
|
+
watch(logContainer, () => { scrollToBottom() }, { once: true })
|
|
65
|
+
</script>
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="relative">
|
|
3
|
-
<div class="flex items-start gap-3">
|
|
4
|
-
<!-- Node indicator -->
|
|
5
|
-
<div class="flex flex-col items-center flex-shrink-0 pt-1.5">
|
|
6
|
-
<div
|
|
7
|
-
class="w-2 h-2 transition-colors duration-200"
|
|
8
|
-
:style="nodeStyle"
|
|
9
|
-
:class="{ 'animate-pulse-dot': isActive || status === 'in-progress' }"
|
|
10
|
-
/>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<!-- Content -->
|
|
14
|
-
<div class="flex-1 min-w-0 -mt-0.5">
|
|
15
|
-
<!-- Stage Header -->
|
|
16
|
-
<div class="flex items-center gap-2.5 mb-3">
|
|
17
|
-
<span
|
|
18
|
-
class="text-[12px] font-semibold font-[JetBrains_Mono,monospace] tracking-tight"
|
|
19
|
-
:style="{ color: isActive ? '#D97706' : '#1C1C1E' }"
|
|
20
|
-
>
|
|
21
|
-
{{ title }}
|
|
22
|
-
</span>
|
|
23
|
-
<StageBadge :status="status" />
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<!-- Steps -->
|
|
27
|
-
<div v-if="status === 'stale' && staleReason" class="mb-2 text-[10px] italic" style="color: #CA8A04;">
|
|
28
|
-
⚠️ {{ staleReason }}
|
|
29
|
-
<span v-if="name === 'archive'">(已有归档文件保留但不再可信)</span>
|
|
30
|
-
</div>
|
|
31
|
-
<div v-if="status === 'revising' && revisionInfo" class="mb-2 text-[10px]" style="color: #7C3AED;">
|
|
32
|
-
🔧 {{ revisionInfo }}
|
|
33
|
-
</div>
|
|
34
|
-
<div class="space-y-1">
|
|
35
|
-
<div v-if="steps.length === 0" class="text-[11px] italic py-1" style="color: #6B7280;">
|
|
36
|
-
No steps yet
|
|
37
|
-
</div>
|
|
38
|
-
<StepCard
|
|
39
|
-
v-for="step in steps"
|
|
40
|
-
:key="step.id || step.name"
|
|
41
|
-
:step="step"
|
|
42
|
-
:is-active="isActiveStep(step)"
|
|
43
|
-
@select="$emit('select-step', $event)"
|
|
44
|
-
/>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</template>
|
|
50
|
-
|
|
51
|
-
<script setup>
|
|
52
|
-
import { computed } from 'vue'
|
|
53
|
-
import StageBadge from './StageBadge.vue'
|
|
54
|
-
import StepCard from './StepCard.vue'
|
|
55
|
-
|
|
56
|
-
const props = defineProps({
|
|
57
|
-
name: { type: String, required: true },
|
|
58
|
-
title: { type: String, required: true },
|
|
59
|
-
steps: { type: Array, default: () => [] },
|
|
60
|
-
status: { type: String, default: 'pending' },
|
|
61
|
-
isActive: { type: Boolean, default: false },
|
|
62
|
-
activeStep: { type: Object, default: null },
|
|
63
|
-
staleReason: { type: String, default: '' },
|
|
64
|
-
revision: { type: Number, default: 0 },
|
|
65
|
-
reopenedFromStep: { type: String, default: '' },
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
const emit = defineEmits(['select-step'])
|
|
69
|
-
|
|
70
|
-
const revisionInfo = computed(() => {
|
|
71
|
-
if (!props.revision) return ''
|
|
72
|
-
const parts = [`revision ${props.revision}`]
|
|
73
|
-
if (props.reopenedFromStep) parts.push(`from: ${props.reopenedFromStep}`)
|
|
74
|
-
return parts.join(', ')
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
const nodeStyle = computed(() => {
|
|
78
|
-
if (props.isActive) return { background: '#D97706', boxShadow: '0 0 8px rgba(251,191,36,0.4)' }
|
|
79
|
-
const colors = {
|
|
80
|
-
'completed': '#16A34A',
|
|
81
|
-
'in-progress': '#D97706',
|
|
82
|
-
'blocked': '#EA580C',
|
|
83
|
-
'failed': '#DC2626',
|
|
84
|
-
'pending': '#E5E5EA',
|
|
85
|
-
'revising': '#7C3AED',
|
|
86
|
-
'stale': '#CA8A04',
|
|
87
|
-
'waiting': '#2563EB',
|
|
88
|
-
}
|
|
89
|
-
return { background: colors[props.status] || colors.pending }
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
function isActiveStep(step) {
|
|
93
|
-
return props.activeStep?.id === step.id || props.activeStep?.name === step.name
|
|
94
|
-
}
|
|
95
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<div class="flex items-start gap-3">
|
|
4
|
+
<!-- Node indicator -->
|
|
5
|
+
<div class="flex flex-col items-center flex-shrink-0 pt-1.5">
|
|
6
|
+
<div
|
|
7
|
+
class="w-2 h-2 transition-colors duration-200"
|
|
8
|
+
:style="nodeStyle"
|
|
9
|
+
:class="{ 'animate-pulse-dot': isActive || status === 'in-progress' }"
|
|
10
|
+
/>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<!-- Content -->
|
|
14
|
+
<div class="flex-1 min-w-0 -mt-0.5">
|
|
15
|
+
<!-- Stage Header -->
|
|
16
|
+
<div class="flex items-center gap-2.5 mb-3">
|
|
17
|
+
<span
|
|
18
|
+
class="text-[12px] font-semibold font-[JetBrains_Mono,monospace] tracking-tight"
|
|
19
|
+
:style="{ color: isActive ? '#D97706' : '#1C1C1E' }"
|
|
20
|
+
>
|
|
21
|
+
{{ title }}
|
|
22
|
+
</span>
|
|
23
|
+
<StageBadge :status="status" />
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<!-- Steps -->
|
|
27
|
+
<div v-if="status === 'stale' && staleReason" class="mb-2 text-[10px] italic" style="color: #CA8A04;">
|
|
28
|
+
⚠️ {{ staleReason }}
|
|
29
|
+
<span v-if="name === 'archive'">(已有归档文件保留但不再可信)</span>
|
|
30
|
+
</div>
|
|
31
|
+
<div v-if="status === 'revising' && revisionInfo" class="mb-2 text-[10px]" style="color: #7C3AED;">
|
|
32
|
+
🔧 {{ revisionInfo }}
|
|
33
|
+
</div>
|
|
34
|
+
<div class="space-y-1">
|
|
35
|
+
<div v-if="steps.length === 0" class="text-[11px] italic py-1" style="color: #6B7280;">
|
|
36
|
+
No steps yet
|
|
37
|
+
</div>
|
|
38
|
+
<StepCard
|
|
39
|
+
v-for="step in steps"
|
|
40
|
+
:key="step.id || step.name"
|
|
41
|
+
:step="step"
|
|
42
|
+
:is-active="isActiveStep(step)"
|
|
43
|
+
@select="$emit('select-step', $event)"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script setup>
|
|
52
|
+
import { computed } from 'vue'
|
|
53
|
+
import StageBadge from './StageBadge.vue'
|
|
54
|
+
import StepCard from './StepCard.vue'
|
|
55
|
+
|
|
56
|
+
const props = defineProps({
|
|
57
|
+
name: { type: String, required: true },
|
|
58
|
+
title: { type: String, required: true },
|
|
59
|
+
steps: { type: Array, default: () => [] },
|
|
60
|
+
status: { type: String, default: 'pending' },
|
|
61
|
+
isActive: { type: Boolean, default: false },
|
|
62
|
+
activeStep: { type: Object, default: null },
|
|
63
|
+
staleReason: { type: String, default: '' },
|
|
64
|
+
revision: { type: Number, default: 0 },
|
|
65
|
+
reopenedFromStep: { type: String, default: '' },
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
const emit = defineEmits(['select-step'])
|
|
69
|
+
|
|
70
|
+
const revisionInfo = computed(() => {
|
|
71
|
+
if (!props.revision) return ''
|
|
72
|
+
const parts = [`revision ${props.revision}`]
|
|
73
|
+
if (props.reopenedFromStep) parts.push(`from: ${props.reopenedFromStep}`)
|
|
74
|
+
return parts.join(', ')
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
const nodeStyle = computed(() => {
|
|
78
|
+
if (props.isActive) return { background: '#D97706', boxShadow: '0 0 8px rgba(251,191,36,0.4)' }
|
|
79
|
+
const colors = {
|
|
80
|
+
'completed': '#16A34A',
|
|
81
|
+
'in-progress': '#D97706',
|
|
82
|
+
'blocked': '#EA580C',
|
|
83
|
+
'failed': '#DC2626',
|
|
84
|
+
'pending': '#E5E5EA',
|
|
85
|
+
'revising': '#7C3AED',
|
|
86
|
+
'stale': '#CA8A04',
|
|
87
|
+
'waiting': '#2563EB',
|
|
88
|
+
}
|
|
89
|
+
return { background: colors[props.status] || colors.pending }
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
function isActiveStep(step) {
|
|
93
|
+
return props.activeStep?.id === step.id || props.activeStep?.name === step.name
|
|
94
|
+
}
|
|
95
|
+
</script>
|