codexmate 0.0.41 → 0.0.43
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/README.md +168 -168
- package/README.zh.md +168 -168
- package/cli/agents-files.js +230 -230
- package/cli/analytics-export-args.js +68 -68
- package/cli/archive-helpers.js +453 -453
- package/cli/auth-profiles.js +375 -375
- package/cli/builtin-proxy.js +2144 -2144
- package/cli/claude-proxy.js +1022 -1022
- package/cli/config-bootstrap.js +407 -407
- package/cli/config-health.js +454 -454
- package/cli/doctor-core.js +903 -903
- package/cli/import-skills-url.js +356 -356
- package/cli/local-bridge.js +556 -556
- package/cli/openai-bridge.js +1984 -1984
- package/cli/openclaw-config.js +629 -629
- package/cli/session-convert-args.js +69 -69
- package/cli/session-convert-io.js +82 -82
- package/cli/session-convert.js +150 -150
- package/cli/session-usage.concurrent.js +28 -28
- package/cli/session-usage.js +304 -304
- package/cli/session-usage.models.js +176 -176
- package/cli/skills.js +1141 -1141
- package/cli/update.js +171 -171
- package/cli/zip-commands.js +510 -510
- package/cli.js +16495 -16458
- package/lib/automation.js +404 -404
- package/lib/cli-file-utils.js +151 -151
- package/lib/cli-models-utils.js +440 -440
- package/lib/cli-network-utils.js +190 -190
- package/lib/cli-path-utils.js +85 -85
- package/lib/cli-session-utils.js +121 -121
- package/lib/cli-sessions.js +427 -427
- package/lib/cli-utils.js +155 -155
- package/lib/cli-webhook.js +154 -154
- package/lib/download-artifacts.js +92 -92
- package/lib/mcp-stdio.js +453 -453
- package/lib/task-orchestrator.js +869 -869
- package/lib/text-diff.js +303 -303
- package/lib/win-tray.js +119 -119
- package/lib/workflow-engine.js +340 -340
- package/package.json +77 -77
- package/plugins/README.md +20 -20
- package/plugins/README.zh-CN.md +20 -20
- package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
- package/plugins/prompt-templates/computed.mjs +311 -311
- package/plugins/prompt-templates/index.mjs +8 -8
- package/plugins/prompt-templates/manifest.mjs +18 -18
- package/plugins/prompt-templates/methods.mjs +553 -553
- package/plugins/prompt-templates/overview.mjs +91 -91
- package/plugins/prompt-templates/ownership.mjs +19 -19
- package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
- package/plugins/prompt-templates/storage.mjs +64 -64
- package/plugins/registry.mjs +16 -16
- package/web-ui/app.js +705 -695
- package/web-ui/index.html +37 -37
- package/web-ui/logic.agents-diff.mjs +386 -386
- package/web-ui/logic.claude.mjs +172 -172
- package/web-ui/logic.codex.mjs +69 -69
- package/web-ui/logic.mjs +5 -5
- package/web-ui/logic.runtime.mjs +128 -128
- package/web-ui/logic.session-convert.mjs +70 -70
- package/web-ui/logic.sessions.mjs +782 -782
- package/web-ui/modules/api.mjs +90 -90
- package/web-ui/modules/app.computed.dashboard.mjs +252 -252
- package/web-ui/modules/app.computed.index.mjs +17 -17
- package/web-ui/modules/app.computed.main-tabs.mjs +214 -214
- package/web-ui/modules/app.computed.session.mjs +876 -876
- package/web-ui/modules/app.constants.mjs +15 -15
- package/web-ui/modules/app.methods.agents.mjs +651 -651
- package/web-ui/modules/app.methods.claude-config.mjs +412 -412
- package/web-ui/modules/app.methods.codex-config.mjs +869 -869
- package/web-ui/modules/app.methods.index.mjs +96 -96
- package/web-ui/modules/app.methods.install.mjs +205 -205
- package/web-ui/modules/app.methods.navigation.mjs +804 -804
- package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
- package/web-ui/modules/app.methods.openclaw-editing.mjs +420 -420
- package/web-ui/modules/app.methods.openclaw-persist.mjs +375 -375
- package/web-ui/modules/app.methods.providers.mjs +602 -601
- package/web-ui/modules/app.methods.runtime.mjs +426 -420
- package/web-ui/modules/app.methods.session-actions.mjs +617 -591
- package/web-ui/modules/app.methods.session-browser.mjs +1018 -1018
- package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
- package/web-ui/modules/app.methods.session-trash.mjs +468 -468
- package/web-ui/modules/app.methods.startup-claude.mjs +557 -554
- package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
- package/web-ui/modules/app.methods.tool-config-permissions.mjs +90 -87
- package/web-ui/modules/app.methods.webhook.mjs +87 -87
- package/web-ui/modules/config-mode.computed.mjs +124 -124
- package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
- package/web-ui/modules/i18n/locales/en.mjs +1187 -1140
- package/web-ui/modules/i18n/locales/ja.mjs +1178 -1130
- package/web-ui/modules/i18n/locales/vi.mjs +294 -239
- package/web-ui/modules/i18n/locales/zh.mjs +1190 -1143
- package/web-ui/modules/i18n.dict.mjs +14 -14
- package/web-ui/modules/i18n.mjs +111 -111
- package/web-ui/modules/plugins.computed.mjs +3 -3
- package/web-ui/modules/plugins.methods.mjs +3 -3
- package/web-ui/modules/plugins.storage.mjs +11 -11
- package/web-ui/modules/provider-url-display.mjs +17 -17
- package/web-ui/modules/sessions-filters-url.mjs +138 -138
- package/web-ui/modules/skills.computed.mjs +107 -107
- package/web-ui/modules/skills.methods.mjs +513 -513
- package/web-ui/partials/index/layout-footer.html +13 -13
- package/web-ui/partials/index/layout-header.html +478 -478
- package/web-ui/partials/index/modal-config-template-agents.html +185 -185
- package/web-ui/partials/index/modal-confirm-toast.html +32 -32
- package/web-ui/partials/index/modal-health-check.html +45 -45
- package/web-ui/partials/index/modal-openclaw-config.html +344 -344
- package/web-ui/partials/index/modal-skills.html +200 -200
- package/web-ui/partials/index/modal-webhook.html +42 -42
- package/web-ui/partials/index/modals-basic.html +263 -263
- package/web-ui/partials/index/panel-config-claude.html +187 -187
- package/web-ui/partials/index/panel-config-codex.html +205 -205
- package/web-ui/partials/index/panel-config-openclaw.html +89 -89
- package/web-ui/partials/index/panel-dashboard.html +171 -171
- package/web-ui/partials/index/panel-docs.html +114 -114
- package/web-ui/partials/index/panel-market.html +104 -104
- package/web-ui/partials/index/panel-orchestration.html +391 -391
- package/web-ui/partials/index/panel-plugins.html +253 -253
- package/web-ui/partials/index/panel-sessions.html +325 -319
- package/web-ui/partials/index/panel-settings.html +181 -181
- package/web-ui/partials/index/panel-trash.html +82 -82
- package/web-ui/partials/index/panel-usage.html +181 -181
- package/web-ui/res/json5.min.js +1 -1
- package/web-ui/res/vue.global.prod.js +13 -13
- package/web-ui/res/vue.runtime.global.prod.js +7 -7
- package/web-ui/res/web-ui-render.precompiled.js +7671 -7666
- package/web-ui/session-helpers.mjs +602 -602
- package/web-ui/source-bundle.cjs +305 -305
- package/web-ui/styles/base-theme.css +291 -291
- package/web-ui/styles/bridge-pool.css +266 -266
- package/web-ui/styles/controls-forms.css +532 -532
- package/web-ui/styles/dashboard.css +438 -438
- package/web-ui/styles/docs-panel.css +245 -245
- package/web-ui/styles/feedback.css +108 -108
- package/web-ui/styles/health-check-dialog.css +144 -144
- package/web-ui/styles/layout-shell.css +711 -711
- package/web-ui/styles/modals-core.css +499 -499
- package/web-ui/styles/navigation-panels.css +399 -399
- package/web-ui/styles/openclaw-structured.css +616 -616
- package/web-ui/styles/plugins-panel.css +564 -564
- package/web-ui/styles/responsive.css +501 -501
- package/web-ui/styles/sessions-list.css +683 -683
- package/web-ui/styles/sessions-preview.css +407 -407
- package/web-ui/styles/sessions-toolbar-trash.css +518 -518
- package/web-ui/styles/sessions-usage.css +849 -849
- package/web-ui/styles/settings-panel.css +419 -419
- package/web-ui/styles/skills-list.css +305 -305
- package/web-ui/styles/skills-market.css +723 -723
- package/web-ui/styles/task-orchestration.css +822 -822
- package/web-ui/styles/titles-cards.css +492 -486
- package/web-ui/styles/trash-panel.css +90 -90
- package/web-ui/styles/webhook.css +115 -115
- package/web-ui/styles.css +24 -24
- package/web-ui.html +17 -17
|
@@ -1,319 +1,325 @@
|
|
|
1
|
-
<!-- 会话浏览模式 -->
|
|
2
|
-
<div
|
|
3
|
-
v-show="mainTab === 'sessions'"
|
|
4
|
-
class="mode-content"
|
|
5
|
-
id="panel-sessions"
|
|
6
|
-
role="tabpanel"
|
|
7
|
-
:aria-labelledby="'tab-sessions'">
|
|
8
|
-
<div v-if="sessionStandalone" class="session-standalone-page">
|
|
9
|
-
<div v-if="sessionStandaloneLoading" class="state-message">
|
|
10
|
-
{{ t('sessions.loading') }}
|
|
11
|
-
</div>
|
|
12
|
-
<div v-else-if="sessionStandaloneError" class="state-message error">
|
|
13
|
-
{{ sessionStandaloneError }}
|
|
14
|
-
</div>
|
|
15
|
-
<div v-else>
|
|
16
|
-
<div class="session-standalone-title">
|
|
17
|
-
{{ sessionStandaloneTitle }}
|
|
18
|
-
<span v-if="sessionStandaloneSourceLabel"> · {{ sessionStandaloneSourceLabel }}</span>
|
|
19
|
-
</div>
|
|
20
|
-
<pre class="session-standalone-text">{{ sessionStandaloneText }}</pre>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div v-else>
|
|
24
|
-
<div class="selector-section">
|
|
25
|
-
<div class="selector-header" style="display:none">
|
|
26
|
-
<span class="selector-title">{{ t('sessions.sourceTitle') }}</span>
|
|
27
|
-
<div class="selector-actions sessions-header-actions"></div>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="session-toolbar">
|
|
30
|
-
<div class="session-toolbar-group session-toolbar-primary">
|
|
31
|
-
<div class="session-source-pills" role="radiogroup" aria-label="Session source">
|
|
32
|
-
<button
|
|
33
|
-
v-for="src in sessionSourceOptions"
|
|
34
|
-
:key="src.value"
|
|
35
|
-
:class="['session-source-pill', { active: sessionFilterSource === src.value }]"
|
|
36
|
-
:data-source="src.value"
|
|
37
|
-
@click="setSessionSource(src.value)"
|
|
38
|
-
:disabled="sessionsLoading"
|
|
39
|
-
:aria-pressed="sessionFilterSource === src.value"
|
|
40
|
-
role="radio"
|
|
41
|
-
type="button">
|
|
42
|
-
<span class="session-source-pill-dot"></span>
|
|
43
|
-
<span class="session-source-pill-label">{{ src.label }}</span>
|
|
44
|
-
</button>
|
|
45
|
-
</div>
|
|
46
|
-
<select
|
|
47
|
-
class="session-path-select"
|
|
48
|
-
v-model="sessionPathFilter"
|
|
49
|
-
@change="onSessionPathFilterChange"
|
|
50
|
-
@focus="loadSessionPathOptions({ source: sessionFilterSource })"
|
|
51
|
-
:disabled="sessionsLoading">
|
|
52
|
-
<option value="">{{ t('sessions.allPaths') }}</option>
|
|
53
|
-
<option v-for="cwd in sessionPathOptions" :key="cwd" :value="cwd">{{ cwd }}</option>
|
|
54
|
-
</select>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="session-toolbar-group session-toolbar-grow">
|
|
57
|
-
<input
|
|
58
|
-
class="session-query-input"
|
|
59
|
-
v-model="sessionQuery"
|
|
60
|
-
@keyup.enter="onSessionFilterChange"
|
|
61
|
-
:disabled="sessionsLoading || !isSessionQueryEnabled"
|
|
62
|
-
:placeholder="sessionQueryPlaceholder">
|
|
63
|
-
</div>
|
|
64
|
-
<div class="session-toolbar-group session-toolbar-secondary">
|
|
65
|
-
<select
|
|
66
|
-
class="session-role-select"
|
|
67
|
-
v-model="sessionRoleFilter"
|
|
68
|
-
@change="onSessionFilterChange"
|
|
69
|
-
:disabled="sessionsLoading">
|
|
70
|
-
<option value="all">{{ t('sessions.role.all') }}</option>
|
|
71
|
-
<option value="user">{{ t('sessions.role.user') }}</option>
|
|
72
|
-
<option value="assistant">{{ t('sessions.role.assistant') }}</option>
|
|
73
|
-
<option value="system">{{ t('sessions.role.system') }}</option>
|
|
74
|
-
</select>
|
|
75
|
-
<select
|
|
76
|
-
class="session-time-select"
|
|
77
|
-
v-model="sessionTimePreset"
|
|
78
|
-
@change="onSessionFilterChange"
|
|
79
|
-
:disabled="sessionsLoading">
|
|
80
|
-
<option value="all">{{ t('sessions.time.all') }}</option>
|
|
81
|
-
<option value="7d">{{ t('sessions.time.7d') }}</option>
|
|
82
|
-
<option value="30d">{{ t('sessions.time.30d') }}</option>
|
|
83
|
-
<option value="90d">{{ t('sessions.time.90d') }}</option>
|
|
84
|
-
</select>
|
|
85
|
-
<select
|
|
86
|
-
class="session-time-select"
|
|
87
|
-
v-model="sessionSortMode"
|
|
88
|
-
@change="onSessionSortChange"
|
|
89
|
-
:disabled="sessionsLoading">
|
|
90
|
-
<option value="time">{{ t('sessions.sort.time') }}</option>
|
|
91
|
-
<option value="hot">{{ t('sessions.sort.hot') }}</option>
|
|
92
|
-
</select>
|
|
93
|
-
<button class="btn-tool btn-tool-compact" @click="loadSessions({ forceRefresh: true })" :disabled="sessionsLoading" :title="t('sessions.refresh')">
|
|
94
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="btn-icon-sm"><path d="M21 2v6h-6M3 12a9 9 0 0 1 15-6.7L21 8M3 22v-6h6M21 12a9 9 0 0 1-15 6.7L3 16"/></svg>
|
|
95
|
-
</button>
|
|
96
|
-
<button class="btn-tool btn-tool-compact" type="button" @click="switchMainTab('dashboard')" :title="t('dashboard.doctor.title')">
|
|
97
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="btn-icon-sm"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>
|
|
98
|
-
</button>
|
|
99
|
-
<button class="btn-tool btn-tool-compact" type="button" @click="copySessionsFilterShareUrl" :disabled="sessionsLoading">
|
|
100
|
-
{{ t('sessions.filters.copyLink') }}
|
|
101
|
-
</button>
|
|
102
|
-
<button class="btn-tool btn-tool-compact" type="button" @click="clearSessionFilters" :disabled="sessionsLoading">
|
|
103
|
-
{{ t('common.resetFilters') }}
|
|
104
|
-
</button>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
<div v-if="hasActiveSessionFilters()" class="session-filter-chips" :aria-label="t('sessions.filters.copyLink')">
|
|
108
|
-
<button
|
|
109
|
-
v-for="chip in getSessionFilterChips()"
|
|
110
|
-
:key="'chip-' + chip.key"
|
|
111
|
-
type="button"
|
|
112
|
-
class="session-filter-chip"
|
|
113
|
-
@click="clearSessionFilterChip(chip.key)"
|
|
114
|
-
:title="`${chip.title}: ${chip.value}`">
|
|
115
|
-
<span class="session-filter-chip-title">{{ chip.title }}</span>
|
|
116
|
-
<span class="session-filter-chip-value">{{ chip.value }}</span>
|
|
117
|
-
<span class="session-filter-chip-close">×</span>
|
|
118
|
-
</button>
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
|
|
122
|
-
<div v-if="sessionsLoading" class="state-message">
|
|
123
|
-
{{ t('sessions.loadingList') }}
|
|
124
|
-
</div>
|
|
125
|
-
|
|
126
|
-
<div v-else-if="sessionsList.length === 0" class="session-empty">
|
|
127
|
-
{{ t('sessions.empty') }}
|
|
128
|
-
</div>
|
|
129
|
-
|
|
130
|
-
<div v-else class="session-layout">
|
|
131
|
-
<div
|
|
132
|
-
v-if="sessionListRenderEnabled"
|
|
133
|
-
class="session-list"
|
|
134
|
-
:ref="setSessionListRef"
|
|
135
|
-
@scroll.passive="onSessionListScroll">
|
|
136
|
-
<div
|
|
137
|
-
v-for="session in visibleSessionsList"
|
|
138
|
-
:key="session.source + '-' + session.sessionId + '-' + session.filePath"
|
|
139
|
-
v-memo="[activeSessionExportKey === getSessionExportKey(session), session.messageCount, session.updatedAt, session.title, session.sourceLabel, session.cwd, isSessionPinned(session), sessionsLoading, session.match && session.match.count]"
|
|
140
|
-
:class="[
|
|
141
|
-
'session-item',
|
|
142
|
-
{
|
|
143
|
-
active: activeSessionExportKey === getSessionExportKey(session),
|
|
144
|
-
pinned: isSessionPinned(session)
|
|
145
|
-
}
|
|
146
|
-
]"
|
|
147
|
-
@click="selectSession(session)"
|
|
148
|
-
@keydown.enter.self.prevent="selectSession(session)"
|
|
149
|
-
@keydown.space.self.prevent="selectSession(session)"
|
|
150
|
-
tabindex="0"
|
|
151
|
-
role="button"
|
|
152
|
-
:aria-current="activeSessionExportKey === getSessionExportKey(session) ? 'true' : null">
|
|
153
|
-
<div class="session-item-header">
|
|
154
|
-
<div class="session-item-main">
|
|
155
|
-
<div class="session-item-title">{{ session.title || session.sessionId }}</div>
|
|
156
|
-
<span class="session-count-badge">{{ session.messageCount == null ? '...' : session.messageCount }}</span>
|
|
157
|
-
<span v-if="session.match && session.match.hit" class="session-match-badge">{{ session.match.count }}</span>
|
|
158
|
-
<span
|
|
159
|
-
v-if="sessionContextUtilization[getSessionExportKey(session)] && sessionContextUtilization[getSessionExportKey(session)].percent > 0"
|
|
160
|
-
:class="['session-context-badge', 'session-context-' + sessionContextUtilization[getSessionExportKey(session)].level]"
|
|
161
|
-
:title="'Context: ' + sessionContextUtilization[getSessionExportKey(session)].percent + '%'">
|
|
162
|
-
{{ sessionContextUtilization[getSessionExportKey(session)].percent }}%
|
|
163
|
-
</span>
|
|
164
|
-
</div>
|
|
165
|
-
<div class="session-item-actions">
|
|
166
|
-
<button
|
|
167
|
-
class="session-item-copy session-item-pin"
|
|
168
|
-
@click.stop="toggleSessionPin(session)"
|
|
169
|
-
:disabled="sessionsLoading"
|
|
170
|
-
:aria-label="isSessionPinned(session) ? t('sessions.unpin') : t('sessions.pin')"
|
|
171
|
-
:title="isSessionPinned(session) ? t('sessions.unpin') : t('sessions.pin')"
|
|
172
|
-
:aria-pressed="isSessionPinned(session)">
|
|
173
|
-
<svg v-if="isSessionPinned(session)" class="pin-icon" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="1.6">
|
|
174
|
-
<path d="M12 22s8-6 8-12a8 8 0 1 0-16 0c0 6 8 12 8 12z"></path>
|
|
175
|
-
</svg>
|
|
176
|
-
<svg v-else class="pin-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6">
|
|
177
|
-
<path d="M12 22s8-6 8-12a8 8 0 1 0-16 0c0 6 8 12 8 12z"></path>
|
|
178
|
-
</svg>
|
|
179
|
-
</button>
|
|
180
|
-
<button
|
|
181
|
-
v-if="isResumeCommandAvailable(session)"
|
|
182
|
-
class="session-item-copy"
|
|
183
|
-
@click.stop="copyResumeCommand(session)"
|
|
184
|
-
:disabled="sessionsLoading"
|
|
185
|
-
:aria-label="getResumeCommandTitle(session)"
|
|
186
|
-
:title="getResumeCommandTitle(session)">
|
|
187
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
188
|
-
<rect x="8" y="8" width="12" height="12" rx="2"></rect>
|
|
189
|
-
<path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"></path>
|
|
190
|
-
</svg>
|
|
191
|
-
</button>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
<div class="session-item-meta">
|
|
195
|
-
<span class="session-source" :data-source="session.source">{{ session.sourceLabel }}</span>
|
|
196
|
-
<span class="session-item-time">{{ session.updatedAtLabel || session.updatedAt || t('sessions.unknownTime') }}</span>
|
|
197
|
-
<span v-if="getSessionHotLabel(session)" class="session-item-hot">{{ getSessionHotLabel(session) }}</span>
|
|
198
|
-
<span v-if="session.cwd" class="session-item-cwd session-item-sub">{{ session.cwd }}</span>
|
|
199
|
-
<div v-if="session.match && session.match.snippets && session.match.snippets.length" class="session-match-snippets">
|
|
200
|
-
<div v-for="(snip, si) in session.match.snippets.slice(0, 2)" :key="si" class="session-match-snippet">{{ snip }}</div>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
</div>
|
|
204
|
-
</div>
|
|
205
|
-
<div v-else class="session-list session-list-placeholder"></div>
|
|
206
|
-
|
|
207
|
-
<div :class="['session-preview', { active: !!activeSession }]" :ref="setSessionPreviewContainerRef">
|
|
208
|
-
<template v-if="activeSession">
|
|
209
|
-
<div class="session-preview-scroll" :ref="setSessionPreviewScrollRef" @scroll="onSessionPreviewScroll">
|
|
210
|
-
<div class="session-preview-header" :ref="setSessionPreviewHeaderRef">
|
|
211
|
-
<div>
|
|
212
|
-
<div class="session-preview-title">{{ activeSession.title || activeSession.sessionId }}</div>
|
|
213
|
-
<div class="session-preview-meta">
|
|
214
|
-
<span class="session-preview-meta-item session-source" :data-source="activeSession.source">{{ activeSession.sourceLabel }}</span>
|
|
215
|
-
<span class="session-preview-meta-item">{{ activeSession.updatedAtLabel || activeSession.updatedAt || t('sessions.unknownTime') }}</span>
|
|
216
|
-
</div>
|
|
217
|
-
<div class="session-preview-meta" v-if="activeSession.cwd">
|
|
218
|
-
<span class="session-preview-meta-item">{{ activeSession.cwd }}</span>
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
<div class="session-actions">
|
|
222
|
-
<button class="btn-session-refresh" @click="loadActiveSessionDetail" :disabled="sessionDetailLoading || !activeSession">
|
|
223
|
-
{{ sessionDetailLoading ? t('sessions.preview.loading') : t('sessions.preview.refresh') }}
|
|
224
|
-
</button>
|
|
225
|
-
<button
|
|
226
|
-
v-if="isDeleteAvailable(activeSession)"
|
|
227
|
-
class="btn-session-delete"
|
|
228
|
-
@click="deleteSession(activeSession)"
|
|
229
|
-
:disabled="!activeSession || sessionsLoading || sessionDeleting[getSessionExportKey(activeSession)]">
|
|
230
|
-
{{ (activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash')) }}
|
|
231
|
-
</button>
|
|
232
|
-
<button
|
|
233
|
-
class="btn-session-export"
|
|
234
|
-
@click="exportSession(activeSession)"
|
|
235
|
-
:disabled="!activeSession || sessionExporting[getSessionExportKey(activeSession)]">
|
|
236
|
-
{{ (activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export') }}
|
|
237
|
-
</button>
|
|
238
|
-
<button
|
|
239
|
-
class="btn-session-open"
|
|
240
|
-
@click="copySessionLink(activeSession)"
|
|
241
|
-
:disabled="!activeSession">
|
|
242
|
-
{{ t('sessions.preview.copyLink') }}
|
|
243
|
-
</button>
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
<div class="session-msg-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
1
|
+
<!-- 会话浏览模式 -->
|
|
2
|
+
<div
|
|
3
|
+
v-show="mainTab === 'sessions'"
|
|
4
|
+
class="mode-content"
|
|
5
|
+
id="panel-sessions"
|
|
6
|
+
role="tabpanel"
|
|
7
|
+
:aria-labelledby="'tab-sessions'">
|
|
8
|
+
<div v-if="sessionStandalone" class="session-standalone-page">
|
|
9
|
+
<div v-if="sessionStandaloneLoading" class="state-message">
|
|
10
|
+
{{ t('sessions.loading') }}
|
|
11
|
+
</div>
|
|
12
|
+
<div v-else-if="sessionStandaloneError" class="state-message error">
|
|
13
|
+
{{ sessionStandaloneError }}
|
|
14
|
+
</div>
|
|
15
|
+
<div v-else>
|
|
16
|
+
<div class="session-standalone-title">
|
|
17
|
+
{{ sessionStandaloneTitle }}
|
|
18
|
+
<span v-if="sessionStandaloneSourceLabel"> · {{ sessionStandaloneSourceLabel }}</span>
|
|
19
|
+
</div>
|
|
20
|
+
<pre class="session-standalone-text">{{ sessionStandaloneText }}</pre>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div v-else>
|
|
24
|
+
<div class="selector-section">
|
|
25
|
+
<div class="selector-header" style="display:none">
|
|
26
|
+
<span class="selector-title">{{ t('sessions.sourceTitle') }}</span>
|
|
27
|
+
<div class="selector-actions sessions-header-actions"></div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="session-toolbar">
|
|
30
|
+
<div class="session-toolbar-group session-toolbar-primary">
|
|
31
|
+
<div class="session-source-pills" role="radiogroup" aria-label="Session source">
|
|
32
|
+
<button
|
|
33
|
+
v-for="src in sessionSourceOptions"
|
|
34
|
+
:key="src.value"
|
|
35
|
+
:class="['session-source-pill', { active: sessionFilterSource === src.value }]"
|
|
36
|
+
:data-source="src.value"
|
|
37
|
+
@click="setSessionSource(src.value)"
|
|
38
|
+
:disabled="sessionsLoading"
|
|
39
|
+
:aria-pressed="sessionFilterSource === src.value"
|
|
40
|
+
role="radio"
|
|
41
|
+
type="button">
|
|
42
|
+
<span class="session-source-pill-dot"></span>
|
|
43
|
+
<span class="session-source-pill-label">{{ src.label }}</span>
|
|
44
|
+
</button>
|
|
45
|
+
</div>
|
|
46
|
+
<select
|
|
47
|
+
class="session-path-select"
|
|
48
|
+
v-model="sessionPathFilter"
|
|
49
|
+
@change="onSessionPathFilterChange"
|
|
50
|
+
@focus="loadSessionPathOptions({ source: sessionFilterSource })"
|
|
51
|
+
:disabled="sessionsLoading">
|
|
52
|
+
<option value="">{{ t('sessions.allPaths') }}</option>
|
|
53
|
+
<option v-for="cwd in sessionPathOptions" :key="cwd" :value="cwd">{{ cwd }}</option>
|
|
54
|
+
</select>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="session-toolbar-group session-toolbar-grow">
|
|
57
|
+
<input
|
|
58
|
+
class="session-query-input"
|
|
59
|
+
v-model="sessionQuery"
|
|
60
|
+
@keyup.enter="onSessionFilterChange"
|
|
61
|
+
:disabled="sessionsLoading || !isSessionQueryEnabled"
|
|
62
|
+
:placeholder="sessionQueryPlaceholder">
|
|
63
|
+
</div>
|
|
64
|
+
<div class="session-toolbar-group session-toolbar-secondary">
|
|
65
|
+
<select
|
|
66
|
+
class="session-role-select"
|
|
67
|
+
v-model="sessionRoleFilter"
|
|
68
|
+
@change="onSessionFilterChange"
|
|
69
|
+
:disabled="sessionsLoading">
|
|
70
|
+
<option value="all">{{ t('sessions.role.all') }}</option>
|
|
71
|
+
<option value="user">{{ t('sessions.role.user') }}</option>
|
|
72
|
+
<option value="assistant">{{ t('sessions.role.assistant') }}</option>
|
|
73
|
+
<option value="system">{{ t('sessions.role.system') }}</option>
|
|
74
|
+
</select>
|
|
75
|
+
<select
|
|
76
|
+
class="session-time-select"
|
|
77
|
+
v-model="sessionTimePreset"
|
|
78
|
+
@change="onSessionFilterChange"
|
|
79
|
+
:disabled="sessionsLoading">
|
|
80
|
+
<option value="all">{{ t('sessions.time.all') }}</option>
|
|
81
|
+
<option value="7d">{{ t('sessions.time.7d') }}</option>
|
|
82
|
+
<option value="30d">{{ t('sessions.time.30d') }}</option>
|
|
83
|
+
<option value="90d">{{ t('sessions.time.90d') }}</option>
|
|
84
|
+
</select>
|
|
85
|
+
<select
|
|
86
|
+
class="session-time-select"
|
|
87
|
+
v-model="sessionSortMode"
|
|
88
|
+
@change="onSessionSortChange"
|
|
89
|
+
:disabled="sessionsLoading">
|
|
90
|
+
<option value="time">{{ t('sessions.sort.time') }}</option>
|
|
91
|
+
<option value="hot">{{ t('sessions.sort.hot') }}</option>
|
|
92
|
+
</select>
|
|
93
|
+
<button class="btn-tool btn-tool-compact" @click="loadSessions({ forceRefresh: true })" :disabled="sessionsLoading" :title="t('sessions.refresh')">
|
|
94
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="btn-icon-sm"><path d="M21 2v6h-6M3 12a9 9 0 0 1 15-6.7L21 8M3 22v-6h6M21 12a9 9 0 0 1-15 6.7L3 16"/></svg>
|
|
95
|
+
</button>
|
|
96
|
+
<button class="btn-tool btn-tool-compact" type="button" @click="switchMainTab('dashboard')" :title="t('dashboard.doctor.title')">
|
|
97
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="btn-icon-sm"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>
|
|
98
|
+
</button>
|
|
99
|
+
<button class="btn-tool btn-tool-compact" type="button" @click="copySessionsFilterShareUrl" :disabled="sessionsLoading">
|
|
100
|
+
{{ t('sessions.filters.copyLink') }}
|
|
101
|
+
</button>
|
|
102
|
+
<button class="btn-tool btn-tool-compact" type="button" @click="clearSessionFilters" :disabled="sessionsLoading">
|
|
103
|
+
{{ t('common.resetFilters') }}
|
|
104
|
+
</button>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div v-if="hasActiveSessionFilters()" class="session-filter-chips" :aria-label="t('sessions.filters.copyLink')">
|
|
108
|
+
<button
|
|
109
|
+
v-for="chip in getSessionFilterChips()"
|
|
110
|
+
:key="'chip-' + chip.key"
|
|
111
|
+
type="button"
|
|
112
|
+
class="session-filter-chip"
|
|
113
|
+
@click="clearSessionFilterChip(chip.key)"
|
|
114
|
+
:title="`${chip.title}: ${chip.value}`">
|
|
115
|
+
<span class="session-filter-chip-title">{{ chip.title }}</span>
|
|
116
|
+
<span class="session-filter-chip-value">{{ chip.value }}</span>
|
|
117
|
+
<span class="session-filter-chip-close">×</span>
|
|
118
|
+
</button>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div v-if="sessionsLoading" class="state-message">
|
|
123
|
+
{{ t('sessions.loadingList') }}
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div v-else-if="sessionsList.length === 0" class="session-empty">
|
|
127
|
+
{{ t('sessions.empty') }}
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<div v-else class="session-layout">
|
|
131
|
+
<div
|
|
132
|
+
v-if="sessionListRenderEnabled"
|
|
133
|
+
class="session-list"
|
|
134
|
+
:ref="setSessionListRef"
|
|
135
|
+
@scroll.passive="onSessionListScroll">
|
|
136
|
+
<div
|
|
137
|
+
v-for="session in visibleSessionsList"
|
|
138
|
+
:key="session.source + '-' + session.sessionId + '-' + session.filePath"
|
|
139
|
+
v-memo="[activeSessionExportKey === getSessionExportKey(session), session.messageCount, session.updatedAt, session.title, session.sourceLabel, session.cwd, isSessionPinned(session), sessionsLoading, session.match && session.match.count]"
|
|
140
|
+
:class="[
|
|
141
|
+
'session-item',
|
|
142
|
+
{
|
|
143
|
+
active: activeSessionExportKey === getSessionExportKey(session),
|
|
144
|
+
pinned: isSessionPinned(session)
|
|
145
|
+
}
|
|
146
|
+
]"
|
|
147
|
+
@click="selectSession(session)"
|
|
148
|
+
@keydown.enter.self.prevent="selectSession(session)"
|
|
149
|
+
@keydown.space.self.prevent="selectSession(session)"
|
|
150
|
+
tabindex="0"
|
|
151
|
+
role="button"
|
|
152
|
+
:aria-current="activeSessionExportKey === getSessionExportKey(session) ? 'true' : null">
|
|
153
|
+
<div class="session-item-header">
|
|
154
|
+
<div class="session-item-main">
|
|
155
|
+
<div class="session-item-title">{{ session.title || session.sessionId }}</div>
|
|
156
|
+
<span class="session-count-badge">{{ session.messageCount == null ? '...' : session.messageCount }}</span>
|
|
157
|
+
<span v-if="session.match && session.match.hit" class="session-match-badge">{{ session.match.count }}</span>
|
|
158
|
+
<span
|
|
159
|
+
v-if="sessionContextUtilization[getSessionExportKey(session)] && sessionContextUtilization[getSessionExportKey(session)].percent > 0"
|
|
160
|
+
:class="['session-context-badge', 'session-context-' + sessionContextUtilization[getSessionExportKey(session)].level]"
|
|
161
|
+
:title="'Context: ' + sessionContextUtilization[getSessionExportKey(session)].percent + '%'">
|
|
162
|
+
{{ sessionContextUtilization[getSessionExportKey(session)].percent }}%
|
|
163
|
+
</span>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="session-item-actions">
|
|
166
|
+
<button
|
|
167
|
+
class="session-item-copy session-item-pin"
|
|
168
|
+
@click.stop="toggleSessionPin(session)"
|
|
169
|
+
:disabled="sessionsLoading"
|
|
170
|
+
:aria-label="isSessionPinned(session) ? t('sessions.unpin') : t('sessions.pin')"
|
|
171
|
+
:title="isSessionPinned(session) ? t('sessions.unpin') : t('sessions.pin')"
|
|
172
|
+
:aria-pressed="isSessionPinned(session)">
|
|
173
|
+
<svg v-if="isSessionPinned(session)" class="pin-icon" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="1.6">
|
|
174
|
+
<path d="M12 22s8-6 8-12a8 8 0 1 0-16 0c0 6 8 12 8 12z"></path>
|
|
175
|
+
</svg>
|
|
176
|
+
<svg v-else class="pin-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6">
|
|
177
|
+
<path d="M12 22s8-6 8-12a8 8 0 1 0-16 0c0 6 8 12 8 12z"></path>
|
|
178
|
+
</svg>
|
|
179
|
+
</button>
|
|
180
|
+
<button
|
|
181
|
+
v-if="isResumeCommandAvailable(session)"
|
|
182
|
+
class="session-item-copy"
|
|
183
|
+
@click.stop="copyResumeCommand(session)"
|
|
184
|
+
:disabled="sessionsLoading"
|
|
185
|
+
:aria-label="getResumeCommandTitle(session)"
|
|
186
|
+
:title="getResumeCommandTitle(session)">
|
|
187
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
188
|
+
<rect x="8" y="8" width="12" height="12" rx="2"></rect>
|
|
189
|
+
<path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"></path>
|
|
190
|
+
</svg>
|
|
191
|
+
</button>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
<div class="session-item-meta">
|
|
195
|
+
<span class="session-source" :data-source="session.source">{{ session.sourceLabel }}</span>
|
|
196
|
+
<span class="session-item-time">{{ session.updatedAtLabel || session.updatedAt || t('sessions.unknownTime') }}</span>
|
|
197
|
+
<span v-if="getSessionHotLabel(session)" class="session-item-hot">{{ getSessionHotLabel(session) }}</span>
|
|
198
|
+
<span v-if="session.cwd" class="session-item-cwd session-item-sub">{{ session.cwd }}</span>
|
|
199
|
+
<div v-if="session.match && session.match.snippets && session.match.snippets.length" class="session-match-snippets">
|
|
200
|
+
<div v-for="(snip, si) in session.match.snippets.slice(0, 2)" :key="si" class="session-match-snippet">{{ snip }}</div>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
<div v-else class="session-list session-list-placeholder"></div>
|
|
206
|
+
|
|
207
|
+
<div :class="['session-preview', { active: !!activeSession }]" :ref="setSessionPreviewContainerRef">
|
|
208
|
+
<template v-if="activeSession">
|
|
209
|
+
<div class="session-preview-scroll" :ref="setSessionPreviewScrollRef" @scroll="onSessionPreviewScroll">
|
|
210
|
+
<div class="session-preview-header" :ref="setSessionPreviewHeaderRef">
|
|
211
|
+
<div>
|
|
212
|
+
<div class="session-preview-title">{{ activeSession.title || activeSession.sessionId }}</div>
|
|
213
|
+
<div class="session-preview-meta">
|
|
214
|
+
<span class="session-preview-meta-item session-source" :data-source="activeSession.source">{{ activeSession.sourceLabel }}</span>
|
|
215
|
+
<span class="session-preview-meta-item">{{ activeSession.updatedAtLabel || activeSession.updatedAt || t('sessions.unknownTime') }}</span>
|
|
216
|
+
</div>
|
|
217
|
+
<div class="session-preview-meta" v-if="activeSession.cwd">
|
|
218
|
+
<span class="session-preview-meta-item">{{ activeSession.cwd }}</span>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
<div class="session-actions">
|
|
222
|
+
<button class="btn-session-refresh" @click="loadActiveSessionDetail" :disabled="sessionDetailLoading || !activeSession">
|
|
223
|
+
{{ sessionDetailLoading ? t('sessions.preview.loading') : t('sessions.preview.refresh') }}
|
|
224
|
+
</button>
|
|
225
|
+
<button
|
|
226
|
+
v-if="isDeleteAvailable(activeSession)"
|
|
227
|
+
class="btn-session-delete"
|
|
228
|
+
@click="deleteSession(activeSession)"
|
|
229
|
+
:disabled="!activeSession || sessionsLoading || sessionDeleting[getSessionExportKey(activeSession)]">
|
|
230
|
+
{{ (activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash')) }}
|
|
231
|
+
</button>
|
|
232
|
+
<button
|
|
233
|
+
class="btn-session-export"
|
|
234
|
+
@click="exportSession(activeSession)"
|
|
235
|
+
:disabled="!activeSession || sessionExporting[getSessionExportKey(activeSession)]">
|
|
236
|
+
{{ (activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export') }}
|
|
237
|
+
</button>
|
|
238
|
+
<button
|
|
239
|
+
class="btn-session-open"
|
|
240
|
+
@click="copySessionLink(activeSession)"
|
|
241
|
+
:disabled="!activeSession">
|
|
242
|
+
{{ t('sessions.preview.copyLink') }}
|
|
243
|
+
</button>
|
|
244
|
+
<button
|
|
245
|
+
class="btn-session-open"
|
|
246
|
+
@click="copySessionPath(activeSession)"
|
|
247
|
+
:disabled="!activeSession || !getSessionFilePath(activeSession)">
|
|
248
|
+
{{ t('sessions.preview.copyPath') }}
|
|
249
|
+
</button>
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
|
|
253
|
+
<div v-if="sessionDetailLoading && !sessionPreviewLoadingMore" class="session-preview-empty">
|
|
254
|
+
{{ t('sessions.preview.loadingBody') }}
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
<div v-else-if="activeSessionDetailError" class="session-preview-empty">
|
|
258
|
+
{{ activeSessionDetailError }}
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
<div v-else-if="!activeSessionMessages.length" class="session-preview-empty">
|
|
262
|
+
{{ t('sessions.preview.emptyMsgs') }}
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
<div v-else-if="sessionPreviewRenderEnabled && !activeSessionVisibleMessages.length" class="session-preview-empty">
|
|
266
|
+
<span>{{ t('sessions.preview.rendering') }}</span>
|
|
267
|
+
<button class="btn-session-refresh" @click="primeSessionPreviewMessageRender" :disabled="sessionDetailLoading">
|
|
268
|
+
{{ t('sessions.preview.rerender') }}
|
|
269
|
+
</button>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
<div v-else-if="!sessionPreviewRenderEnabled" class="session-preview-empty">
|
|
273
|
+
{{ t('sessions.preview.preparing') }}
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
<div v-else class="session-preview-body">
|
|
277
|
+
<div class="session-preview-messages">
|
|
278
|
+
<div v-if="activeSessionDetailClipped" class="session-item-sub session-item-wrap">
|
|
279
|
+
{{ t('sessions.preview.clipped', { count: activeSessionMessages.length }) }}
|
|
280
|
+
</div>
|
|
281
|
+
<div
|
|
282
|
+
v-for="(msg, idx) in activeSessionMessages"
|
|
283
|
+
:key="getRecordRenderKey(msg, idx)"
|
|
284
|
+
v-memo="[msg.text, msg.timestamp, msg.roleLabel, msg.normalizedRole]"
|
|
285
|
+
:data-message-key="getRecordRenderKey(msg, idx)"
|
|
286
|
+
:ref="getSessionMessageRefBinder(getRecordRenderKey(msg, idx))"
|
|
287
|
+
:class="['session-msg', msg.normalizedRole === 'user' ? 'user' : (msg.normalizedRole === 'system' ? 'system' : 'assistant')]">
|
|
288
|
+
<div class="session-msg-header">
|
|
289
|
+
<div class="session-msg-meta">
|
|
290
|
+
<span class="session-msg-role">{{ msg.roleLabel || (msg.normalizedRole === 'user' ? t('sessions.roleLabel.user') : (msg.normalizedRole === 'system' ? t('sessions.roleLabel.system') : t('sessions.roleLabel.assistant'))) }}</span>
|
|
291
|
+
<span class="session-msg-time">{{ msg.timestamp || '' }}</span>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
<div class="session-msg-content" v-html="highlightQueryText(msg.text) || ''"></div>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
</div>
|
|
299
|
+
<aside v-if="sessionPreviewRenderEnabled && sessionTimelineNodes.length" class="session-timeline" :aria-label="t('sessions.timeline.aria')">
|
|
300
|
+
<div class="session-timeline-track"></div>
|
|
301
|
+
<button
|
|
302
|
+
v-for="node in sessionTimelineNodes"
|
|
303
|
+
:key="'timeline-' + node.key"
|
|
304
|
+
v-memo="[sessionTimelineActiveKey === node.key, node.safePercent, node.title]"
|
|
305
|
+
type="button"
|
|
306
|
+
:class="['session-timeline-node', { active: sessionTimelineActiveKey === node.key }]"
|
|
307
|
+
:aria-current="sessionTimelineActiveKey === node.key ? 'true' : null"
|
|
308
|
+
:style="{ top: `${node.safePercent}%` }"
|
|
309
|
+
:title="node.title"
|
|
310
|
+
@click="jumpToSessionTimelineNode(node.key)">
|
|
311
|
+
<span class="sr-only">{{ node.title }}</span>
|
|
312
|
+
</button>
|
|
313
|
+
<div class="session-timeline-current" v-if="sessionTimelineActiveTitle">
|
|
314
|
+
{{ sessionTimelineActiveTitle }}
|
|
315
|
+
</div>
|
|
316
|
+
</aside>
|
|
317
|
+
</template>
|
|
318
|
+
|
|
319
|
+
<div v-else class="session-preview-empty">
|
|
320
|
+
<span>{{ t('sessions.selectHint') }}</span>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|