codexmate 0.1.28 → 0.1.30
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 +53 -44
- package/README.vi.md +45 -36
- package/README.zh.md +51 -42
- package/cli/session-usage.js +2 -2
- package/cli/skills.js +33 -8
- package/cli.js +379 -19
- package/package.json +6 -1
- package/web-ui/app.js +12 -1
- package/web-ui/index.html +3 -2
- package/web-ui/logic.sessions.mjs +30 -4
- package/web-ui/modules/app.computed.dashboard.mjs +1 -1
- package/web-ui/modules/app.computed.session.mjs +52 -33
- package/web-ui/modules/app.methods.agents.mjs +36 -0
- package/web-ui/modules/app.methods.codex-config.mjs +3 -1
- package/web-ui/modules/app.methods.providers.mjs +12 -4
- package/web-ui/modules/app.methods.session-actions.mjs +10 -8
- package/web-ui/modules/app.methods.session-browser.mjs +8 -2
- package/web-ui/modules/app.methods.session-trash.mjs +16 -16
- package/web-ui/modules/app.methods.system-prompt.mjs +1 -8
- package/web-ui/modules/app.methods.theme.mjs +5 -4
- package/web-ui/modules/i18n/locales/en.mjs +80 -1
- package/web-ui/modules/i18n/locales/ja.mjs +80 -1
- package/web-ui/modules/i18n/locales/vi.mjs +80 -1
- package/web-ui/modules/i18n/locales/zh-tw.mjs +80 -1
- package/web-ui/modules/i18n/locales/zh.mjs +80 -1
- package/web-ui/modules/i18n.mjs +23 -0
- package/web-ui/modules/skills.computed.mjs +11 -0
- package/web-ui/modules/skills.methods.mjs +58 -8
- package/web-ui/partials/index/layout-footer.html +1 -1
- package/web-ui/partials/index/layout-header.html +32 -12
- package/web-ui/partials/index/modal-config-template-agents.html +1 -1
- package/web-ui/partials/index/modal-health-check.html +1 -1
- package/web-ui/partials/index/modal-openclaw-config.html +50 -50
- package/web-ui/partials/index/panel-dashboard.html +1 -1
- package/web-ui/partials/index/panel-market.html +23 -5
- package/web-ui/partials/index/panel-prompts.html +2 -2
- package/web-ui/partials/index/panel-sessions.html +52 -42
- package/web-ui/partials/index/panel-settings.html +6 -0
- package/web-ui/partials/index/panel-trash.html +3 -0
- package/web-ui/res/web-ui-render.precompiled.js +567 -439
- package/web-ui/session-helpers.mjs +3 -0
- package/web-ui/styles/base-theme.css +2 -2
- package/web-ui/styles/bridge-pool.css +1 -1
- package/web-ui/styles/feedback.css +26 -0
- package/web-ui/styles/layout-shell.css +66 -3
- package/web-ui/styles/navigation-panels.css +4 -10
- package/web-ui/styles/sessions-list.css +19 -1
- package/web-ui/styles/sessions-preview.css +88 -1
- package/web-ui/styles/sessions-toolbar-trash.css +2 -2
- package/web-ui/styles/settings-panel.css +1 -1
- package/web-ui/styles/skills-market.css +47 -0
- package/web-ui/styles/theme-dark-tokens.css +2 -2
- package/web-ui/styles/theme-dark.css +2 -2
- package/web-ui/styles/theme-ocean-tokens.css +88 -0
- package/web-ui/styles/theme-ocean.css +920 -0
- package/web-ui/styles/titles-cards.css +1 -1
- package/web-ui/styles/trash-panel.css +43 -6
- package/web-ui/styles.css +1 -0
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
window.__CODEXMATE_WEB_UI_RENDER__ = (() => {
|
|
2
|
-
const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass,
|
|
2
|
+
const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass, withModifiers: _withModifiers, withKeys: _withKeys, renderList: _renderList, Fragment: _Fragment, vShow: _vShow, withDirectives: _withDirectives, vModelSelect: _vModelSelect, vModelText: _vModelText, vModelDynamic: _vModelDynamic, vModelCheckbox: _vModelCheckbox, isMemoSame: _isMemoSame, withMemo: _withMemo, normalizeStyle: _normalizeStyle } = Vue
|
|
3
3
|
|
|
4
4
|
return function render(_ctx, _cache) {
|
|
5
5
|
return (_openBlock(), _createElementBlock(_Fragment, null, [
|
|
6
|
-
(!_ctx.
|
|
6
|
+
(!_ctx.navigationReady)
|
|
7
7
|
? (_openBlock(), _createElementBlock("div", {
|
|
8
8
|
key: 0,
|
|
9
|
+
class: "app-navigation-loading-state",
|
|
10
|
+
role: "status",
|
|
11
|
+
"aria-live": "polite"
|
|
12
|
+
}, _toDisplayString(_ctx.t('app.loadingConfig')), 1 /* TEXT */))
|
|
13
|
+
: _createCommentVNode("v-if", true),
|
|
14
|
+
(!_ctx.sessionStandalone)
|
|
15
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
16
|
+
key: 1,
|
|
9
17
|
class: "mobile-brand-bar"
|
|
10
18
|
}, [
|
|
11
19
|
_createElementVNode("div", { class: "mobile-brand-title" }, [
|
|
@@ -33,7 +41,7 @@ return function render(_ctx, _cache) {
|
|
|
33
41
|
: _createCommentVNode("v-if", true),
|
|
34
42
|
(!_ctx.sessionStandalone)
|
|
35
43
|
? (_openBlock(), _createElementBlock("div", {
|
|
36
|
-
key:
|
|
44
|
+
key: 2,
|
|
37
45
|
class: "top-tabs",
|
|
38
46
|
role: "tablist",
|
|
39
47
|
"aria-label": _ctx.t('nav.topTabs.aria')
|
|
@@ -151,7 +159,7 @@ return function render(_ctx, _cache) {
|
|
|
151
159
|
: _createCommentVNode("v-if", true),
|
|
152
160
|
(!_ctx.sessionStandalone)
|
|
153
161
|
? (_openBlock(), _createElementBlock("div", {
|
|
154
|
-
key:
|
|
162
|
+
key: 3,
|
|
155
163
|
class: "lang-fab"
|
|
156
164
|
}, [
|
|
157
165
|
_createElementVNode("button", {
|
|
@@ -581,12 +589,66 @@ return function render(_ctx, _cache) {
|
|
|
581
589
|
]),
|
|
582
590
|
_createElementVNode("div", { class: "side-rail-lang" }, [
|
|
583
591
|
_createElementVNode("div", { class: "side-rail-lang-actions" }, [
|
|
584
|
-
_createElementVNode("
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
592
|
+
_createElementVNode("div", { class: "side-language-menu" }, [
|
|
593
|
+
_createElementVNode("button", {
|
|
594
|
+
type: "button",
|
|
595
|
+
class: "language-settings-link",
|
|
596
|
+
"aria-label": _ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() }),
|
|
597
|
+
"aria-expanded": _ctx.languageMenuOpen ? 'true' : 'false',
|
|
598
|
+
"aria-haspopup": "menu",
|
|
599
|
+
onClick: _ctx.toggleLanguageMenu,
|
|
600
|
+
onKeydown: _withKeys(_withModifiers(_ctx.closeLanguageMenu, ["prevent"]), ["esc"])
|
|
601
|
+
}, [
|
|
602
|
+
_createTextVNode(_toDisplayString(_ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() })) + " ", 1 /* TEXT */),
|
|
603
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
604
|
+
viewBox: "0 0 16 16",
|
|
605
|
+
fill: "none",
|
|
606
|
+
stroke: "currentColor",
|
|
607
|
+
"stroke-width": "1.8",
|
|
608
|
+
"stroke-linecap": "round",
|
|
609
|
+
"stroke-linejoin": "round",
|
|
610
|
+
"aria-hidden": "true"
|
|
611
|
+
}, [
|
|
612
|
+
_createElementVNode("path", { d: "M4 6l4 4 4-4" })
|
|
613
|
+
]))
|
|
614
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["aria-label", "aria-expanded", "onClick", "onKeydown"]),
|
|
615
|
+
(_ctx.languageMenuOpen)
|
|
616
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
617
|
+
key: 0,
|
|
618
|
+
class: "side-language-dropdown",
|
|
619
|
+
role: "menu",
|
|
620
|
+
onFocusout: _ctx.handleLanguageMenuFocusOut
|
|
621
|
+
}, [
|
|
622
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.languageOptions(), (option) => {
|
|
623
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
624
|
+
key: option.code,
|
|
625
|
+
type: "button",
|
|
626
|
+
class: _normalizeClass(["side-language-option", { active: option.code === _ctx.lang }]),
|
|
627
|
+
role: "menuitemradio",
|
|
628
|
+
"aria-checked": option.code === _ctx.lang ? 'true' : 'false',
|
|
629
|
+
onClick: $event => (_ctx.selectLanguage(option.code))
|
|
630
|
+
}, [
|
|
631
|
+
_createElementVNode("span", null, _toDisplayString(option.nativeName), 1 /* TEXT */),
|
|
632
|
+
_createElementVNode("small", null, _toDisplayString(option.englishName), 1 /* TEXT */),
|
|
633
|
+
(option.code === _ctx.lang)
|
|
634
|
+
? (_openBlock(), _createElementBlock("svg", {
|
|
635
|
+
key: 0,
|
|
636
|
+
viewBox: "0 0 16 16",
|
|
637
|
+
fill: "none",
|
|
638
|
+
stroke: "currentColor",
|
|
639
|
+
"stroke-width": "2",
|
|
640
|
+
"stroke-linecap": "round",
|
|
641
|
+
"stroke-linejoin": "round",
|
|
642
|
+
"aria-hidden": "true"
|
|
643
|
+
}, [
|
|
644
|
+
_createElementVNode("path", { d: "M3.5 8.5l3 3 6-7" })
|
|
645
|
+
]))
|
|
646
|
+
: _createCommentVNode("v-if", true)
|
|
647
|
+
], 10 /* CLASS, PROPS */, ["aria-checked", "onClick"]))
|
|
648
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
649
|
+
], 40 /* PROPS, NEED_HYDRATION */, ["onFocusout"]))
|
|
650
|
+
: _createCommentVNode("v-if", true)
|
|
651
|
+
]),
|
|
590
652
|
_createElementVNode("button", {
|
|
591
653
|
type: "button",
|
|
592
654
|
class: "side-announcement-button",
|
|
@@ -794,21 +856,10 @@ return function render(_ctx, _cache) {
|
|
|
794
856
|
_createElementVNode("span", { class: "value" }, _toDisplayString(_ctx.installRegistryPreview || 'npmmirror'), 1 /* TEXT */)
|
|
795
857
|
])
|
|
796
858
|
]))
|
|
797
|
-
: (
|
|
798
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
799
|
-
key: 6,
|
|
800
|
-
class: "status-strip status-strip-placeholder",
|
|
801
|
-
"aria-hidden": "true"
|
|
802
|
-
}, [
|
|
803
|
-
_createElementVNode("div", { class: "status-chip" }, [
|
|
804
|
-
_createElementVNode("span", { class: "label" }, " "),
|
|
805
|
-
_createElementVNode("span", { class: "value" }, " ")
|
|
806
|
-
])
|
|
807
|
-
]))
|
|
808
|
-
: _createCommentVNode("v-if", true),
|
|
859
|
+
: _createCommentVNode("v-if", true),
|
|
809
860
|
(!_ctx.sessionStandalone && _ctx.mainTab === 'config' && _ctx.isProviderConfigMode && _ctx.forceCompactLayout && !_ctx.loading && !_ctx.initError && _ctx.displayProvidersList.length > 1)
|
|
810
861
|
? (_openBlock(), _createElementBlock("div", {
|
|
811
|
-
key:
|
|
862
|
+
key: 6,
|
|
812
863
|
class: "provider-fast-switch"
|
|
813
864
|
}, [
|
|
814
865
|
_createElementVNode("label", {
|
|
@@ -875,7 +926,7 @@ return function render(_ctx, _cache) {
|
|
|
875
926
|
_createElementVNode("div", { class: "doctor-health-title" }, [
|
|
876
927
|
_createTextVNode(_toDisplayString(_ctx.healthCheckResult.ok ? _ctx.t('dashboard.health.ok') : _ctx.t('dashboard.health.fail')) + " ", 1 /* TEXT */),
|
|
877
928
|
(_ctx.healthCheckResult.issues && _ctx.healthCheckResult.issues.length)
|
|
878
|
-
? (_openBlock(), _createElementBlock("span", { key: 0 },
|
|
929
|
+
? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.paren(_ctx.t('dashboard.health.issues', { count: _ctx.healthCheckResult.issues.length }))), 1 /* TEXT */))
|
|
879
930
|
: _createCommentVNode("v-if", true)
|
|
880
931
|
])
|
|
881
932
|
], 2 /* CLASS */),
|
|
@@ -3857,7 +3908,7 @@ return function render(_ctx, _cache) {
|
|
|
3857
3908
|
: _createCommentVNode("v-if", true),
|
|
3858
3909
|
_createCommentVNode(" 会话浏览模式 "),
|
|
3859
3910
|
_withDirectives(_createElementVNode("div", {
|
|
3860
|
-
class: "mode-content",
|
|
3911
|
+
class: "mode-content session-browser-refined",
|
|
3861
3912
|
id: "panel-sessions",
|
|
3862
3913
|
role: "tabpanel",
|
|
3863
3914
|
"aria-labelledby": 'tab-sessions'
|
|
@@ -4105,17 +4156,39 @@ return function render(_ctx, _cache) {
|
|
|
4105
4156
|
], 8 /* PROPS */, ["aria-label"]))
|
|
4106
4157
|
: _createCommentVNode("v-if", true)
|
|
4107
4158
|
]),
|
|
4108
|
-
(_ctx.
|
|
4159
|
+
(_ctx.sessionSearchInfo && !_ctx.sessionsLoading)
|
|
4109
4160
|
? (_openBlock(), _createElementBlock("div", {
|
|
4110
4161
|
key: 0,
|
|
4111
|
-
class: "
|
|
4112
|
-
|
|
4113
|
-
|
|
4162
|
+
class: "session-search-status",
|
|
4163
|
+
role: "status"
|
|
4164
|
+
}, [
|
|
4165
|
+
_createElementVNode("span", { class: "session-search-count" }, _toDisplayString(_ctx.t('sessions.search.coverage', { scanned: _ctx.sessionSearchInfo.scanned, candidates: _ctx.sessionSearchInfo.candidates })), 1 /* TEXT */),
|
|
4166
|
+
(!_ctx.sessionSearchInfo.complete)
|
|
4167
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
4168
|
+
key: 0,
|
|
4169
|
+
class: "session-search-partial"
|
|
4170
|
+
}, _toDisplayString(_ctx.t('sessions.search.partial')), 1 /* TEXT */))
|
|
4171
|
+
: _createCommentVNode("v-if", true),
|
|
4172
|
+
_createElementVNode("small", { class: "session-search-scope" }, _toDisplayString(_ctx.t('sessions.search.scopeHint')), 1 /* TEXT */)
|
|
4173
|
+
]))
|
|
4174
|
+
: _createCommentVNode("v-if", true),
|
|
4175
|
+
(!_ctx.sessionsLoading && _ctx.sessionsList.length === 0)
|
|
4176
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
4177
|
+
key: 1,
|
|
4178
|
+
class: "session-empty session-empty-refined"
|
|
4179
|
+
}, [
|
|
4180
|
+
_createElementVNode("p", null, _toDisplayString(_ctx.t(_ctx.hasActiveSessionFilters() ? 'sessions.empty.filtered' : 'sessions.empty.source')), 1 /* TEXT */),
|
|
4181
|
+
(_ctx.hasActiveSessionFilters())
|
|
4182
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
4183
|
+
key: 0,
|
|
4184
|
+
class: "btn-tool btn-tool-compact",
|
|
4185
|
+
type: "button",
|
|
4186
|
+
onClick: _ctx.clearSessionFilters
|
|
4187
|
+
}, _toDisplayString(_ctx.t('sessions.empty.clearFilters')), 9 /* TEXT, PROPS */, ["onClick"]))
|
|
4188
|
+
: _createCommentVNode("v-if", true)
|
|
4189
|
+
]))
|
|
4190
|
+
: (_ctx.sessionsList.length > 0)
|
|
4114
4191
|
? (_openBlock(), _createElementBlock("div", {
|
|
4115
|
-
key: 1,
|
|
4116
|
-
class: "session-empty"
|
|
4117
|
-
}, _toDisplayString(_ctx.t('sessions.empty')), 1 /* TEXT */))
|
|
4118
|
-
: (_openBlock(), _createElementBlock("div", {
|
|
4119
4192
|
key: 2,
|
|
4120
4193
|
class: "session-layout"
|
|
4121
4194
|
}, [
|
|
@@ -4169,7 +4242,16 @@ return function render(_ctx, _cache) {
|
|
|
4169
4242
|
], 8 /* PROPS */, ["onClick", "data-session-key"]))
|
|
4170
4243
|
: _createCommentVNode("v-if", true),
|
|
4171
4244
|
_createElementVNode("div", { class: "session-item-main" }, [
|
|
4172
|
-
_createElementVNode("div", { class: "session-item-
|
|
4245
|
+
_createElementVNode("div", { class: "session-item-heading" }, [
|
|
4246
|
+
_createElementVNode("div", { class: "session-item-title" }, _toDisplayString(_ctx.parseSessionTitleInfo(session).title || session.sessionId), 1 /* TEXT */),
|
|
4247
|
+
(_ctx.parseSessionTitleInfo(session).location)
|
|
4248
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
4249
|
+
key: 0,
|
|
4250
|
+
class: "session-item-location",
|
|
4251
|
+
title: _ctx.parseSessionTitleInfo(session).location
|
|
4252
|
+
}, _toDisplayString(_ctx.parseSessionTitleInfo(session).location), 9 /* TEXT, PROPS */, ["title"]))
|
|
4253
|
+
: _createCommentVNode("v-if", true)
|
|
4254
|
+
]),
|
|
4173
4255
|
_createElementVNode("span", { class: "session-count-badge" }, _toDisplayString(session.messageCount == null ? '...' : session.messageCount), 1 /* TEXT */),
|
|
4174
4256
|
(session.match && session.match.hit)
|
|
4175
4257
|
? (_openBlock(), _createElementBlock("span", {
|
|
@@ -4256,15 +4338,9 @@ return function render(_ctx, _cache) {
|
|
|
4256
4338
|
class: "session-item-hot"
|
|
4257
4339
|
}, _toDisplayString(_ctx.getSessionHotLabel(session)), 1 /* TEXT */))
|
|
4258
4340
|
: _createCommentVNode("v-if", true),
|
|
4259
|
-
(session.cwd)
|
|
4260
|
-
? (_openBlock(), _createElementBlock("span", {
|
|
4261
|
-
key: 1,
|
|
4262
|
-
class: "session-item-cwd session-item-sub"
|
|
4263
|
-
}, _toDisplayString(session.cwd), 1 /* TEXT */))
|
|
4264
|
-
: _createCommentVNode("v-if", true),
|
|
4265
4341
|
(session.match && session.match.snippets && session.match.snippets.length)
|
|
4266
4342
|
? (_openBlock(), _createElementBlock("div", {
|
|
4267
|
-
key:
|
|
4343
|
+
key: 1,
|
|
4268
4344
|
class: "session-match-snippets"
|
|
4269
4345
|
}, [
|
|
4270
4346
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(session.match.snippets.slice(0, 2), (snip, si) => {
|
|
@@ -4318,37 +4394,37 @@ return function render(_ctx, _cache) {
|
|
|
4318
4394
|
]))
|
|
4319
4395
|
: _createCommentVNode("v-if", true)
|
|
4320
4396
|
]),
|
|
4321
|
-
_createElementVNode("div", { class: "session-actions" }, [
|
|
4322
|
-
_createElementVNode("
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
(_openBlock(), _createElementBlock("svg", {
|
|
4330
|
-
viewBox: "0 0 16 16",
|
|
4331
|
-
fill: "none",
|
|
4332
|
-
stroke: "currentColor",
|
|
4333
|
-
"stroke-width": "1.8",
|
|
4334
|
-
"stroke-linecap": "round",
|
|
4335
|
-
"stroke-linejoin": "round"
|
|
4397
|
+
_createElementVNode("div", { class: "session-actions session-preview-actions" }, [
|
|
4398
|
+
_createElementVNode("div", { class: "session-secondary-actions" }, [
|
|
4399
|
+
_createElementVNode("button", {
|
|
4400
|
+
class: "btn-session-refresh has-label session-action-optional-label",
|
|
4401
|
+
onClick: _ctx.loadActiveSessionDetail,
|
|
4402
|
+
disabled: _ctx.sessionDetailLoading || !_ctx.activeSession,
|
|
4403
|
+
title: _ctx.sessionDetailLoading ? _ctx.t('sessions.preview.loading') : _ctx.t('sessions.preview.refresh'),
|
|
4404
|
+
"aria-label": _ctx.sessionDetailLoading ? _ctx.t('sessions.preview.loading') : _ctx.t('sessions.preview.refresh')
|
|
4336
4405
|
}, [
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4406
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
4407
|
+
viewBox: "0 0 16 16",
|
|
4408
|
+
fill: "none",
|
|
4409
|
+
stroke: "currentColor",
|
|
4410
|
+
"stroke-width": "1.8",
|
|
4411
|
+
"stroke-linecap": "round",
|
|
4412
|
+
"stroke-linejoin": "round"
|
|
4413
|
+
}, [
|
|
4414
|
+
_createElementVNode("path", { d: "M2.5 8a5.5 5.5 0 0 1 9.4-3.8" }),
|
|
4415
|
+
_createElementVNode("path", { d: "M13.5 8a5.5 5.5 0 0 1-9.4 3.8" }),
|
|
4416
|
+
_createElementVNode("polyline", { points: "2.5 2 2.5 5 5.5 5" }),
|
|
4417
|
+
_createElementVNode("polyline", { points: "13.5 14 13.5 11 10.5 11" })
|
|
4418
|
+
])),
|
|
4419
|
+
_createElementVNode("span", { class: "session-action-label session-action-optional-text" }, _toDisplayString(_ctx.t('sessions.preview.refresh')), 1 /* TEXT */)
|
|
4420
|
+
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
|
|
4421
|
+
_createElementVNode("div", { class: "session-link-group" }, [
|
|
4422
|
+
_createElementVNode("button", {
|
|
4423
|
+
class: "btn-session-open",
|
|
4424
|
+
onClick: $event => (_ctx.copySessionLink(_ctx.activeSession)),
|
|
4425
|
+
disabled: !_ctx.activeSession || !_ctx.canBuildStandaloneUrl(_ctx.activeSession),
|
|
4426
|
+
title: _ctx.t('sessions.preview.copyLink'),
|
|
4427
|
+
"aria-label": _ctx.t('sessions.preview.copyLink')
|
|
4352
4428
|
}, [
|
|
4353
4429
|
(_openBlock(), _createElementBlock("svg", {
|
|
4354
4430
|
viewBox: "0 0 16 16",
|
|
@@ -4358,41 +4434,38 @@ return function render(_ctx, _cache) {
|
|
|
4358
4434
|
"stroke-linecap": "round",
|
|
4359
4435
|
"stroke-linejoin": "round"
|
|
4360
4436
|
}, [
|
|
4361
|
-
_createElementVNode("
|
|
4362
|
-
_createElementVNode("path", { d: "
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
])
|
|
4387
|
-
_createElementVNode("span", { class: "session-action-label" }, _toDisplayString((_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export')), 1 /* TEXT */)
|
|
4388
|
-
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
|
|
4389
|
-
_createElementVNode("div", { class: "session-link-group" }, [
|
|
4437
|
+
_createElementVNode("path", { d: "M6.5 9.5a3.5 3.5 0 0 0 5 0l2-2a3.5 3.5 0 0 0-5-5l-1 1" }),
|
|
4438
|
+
_createElementVNode("path", { d: "M9.5 6.5a3.5 3.5 0 0 0-5 0l-2 2a3.5 3.5 0 0 0 5 5l1-1" })
|
|
4439
|
+
]))
|
|
4440
|
+
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
|
|
4441
|
+
_createTextVNode(),
|
|
4442
|
+
_createElementVNode("button", {
|
|
4443
|
+
class: "btn-session-open",
|
|
4444
|
+
onClick: $event => (_ctx.openSessionLink(_ctx.activeSession)),
|
|
4445
|
+
disabled: !_ctx.activeSession || !_ctx.canBuildStandaloneUrl(_ctx.activeSession),
|
|
4446
|
+
title: _ctx.t('sessions.preview.openLink'),
|
|
4447
|
+
"aria-label": _ctx.t('sessions.preview.openLink')
|
|
4448
|
+
}, [
|
|
4449
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
4450
|
+
viewBox: "0 0 16 16",
|
|
4451
|
+
fill: "none",
|
|
4452
|
+
stroke: "currentColor",
|
|
4453
|
+
"stroke-width": "1.8",
|
|
4454
|
+
"stroke-linecap": "round",
|
|
4455
|
+
"stroke-linejoin": "round"
|
|
4456
|
+
}, [
|
|
4457
|
+
_createElementVNode("path", { d: "M12 2h-8.5A1.5 1.5 0 0 0 2 3.5v8A1.5 1.5 0 0 0 3.5 13h8a1.5 1.5 0 0 0 1.5-1.5v-3" }),
|
|
4458
|
+
_createElementVNode("path", { d: "M13 2v4h-4" }),
|
|
4459
|
+
_createElementVNode("path", { d: "M13 2L7 8" })
|
|
4460
|
+
]))
|
|
4461
|
+
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
|
|
4462
|
+
]),
|
|
4390
4463
|
_createElementVNode("button", {
|
|
4391
|
-
class: "btn-session-open",
|
|
4392
|
-
onClick: $event => (_ctx.
|
|
4393
|
-
disabled: !_ctx.activeSession || !_ctx.
|
|
4394
|
-
title: _ctx.t('sessions.preview.
|
|
4395
|
-
"aria-label": _ctx.t('sessions.preview.
|
|
4464
|
+
class: "btn-session-open has-label session-action-optional-label",
|
|
4465
|
+
onClick: $event => (_ctx.copySessionPath(_ctx.activeSession)),
|
|
4466
|
+
disabled: !_ctx.activeSession || !_ctx.getSessionFilePath(_ctx.activeSession),
|
|
4467
|
+
title: _ctx.t('sessions.preview.copyPath'),
|
|
4468
|
+
"aria-label": _ctx.t('sessions.preview.copyPath')
|
|
4396
4469
|
}, [
|
|
4397
4470
|
(_openBlock(), _createElementBlock("svg", {
|
|
4398
4471
|
viewBox: "0 0 16 16",
|
|
@@ -4402,16 +4475,18 @@ return function render(_ctx, _cache) {
|
|
|
4402
4475
|
"stroke-linecap": "round",
|
|
4403
4476
|
"stroke-linejoin": "round"
|
|
4404
4477
|
}, [
|
|
4405
|
-
_createElementVNode("path", { d: "
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
|
|
4478
|
+
_createElementVNode("path", { d: "M2 5.5V12.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a1 1 0 0 0-1-1H8L6.5 5H3a1 1 0 0 0-1 1z" })
|
|
4479
|
+
])),
|
|
4480
|
+
_createElementVNode("span", { class: "session-action-label session-action-optional-text" }, _toDisplayString(_ctx.t('sessions.preview.copyPath')), 1 /* TEXT */)
|
|
4481
|
+
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
|
|
4482
|
+
]),
|
|
4483
|
+
_createElementVNode("div", { class: "session-primary-actions" }, [
|
|
4409
4484
|
_createElementVNode("button", {
|
|
4410
|
-
class: "btn-session-
|
|
4411
|
-
onClick: $event => (_ctx.
|
|
4412
|
-
disabled: !_ctx.activeSession ||
|
|
4413
|
-
title: _ctx.t('sessions.preview.
|
|
4414
|
-
"aria-label": _ctx.t('sessions.preview.
|
|
4485
|
+
class: "btn-session-export has-label",
|
|
4486
|
+
onClick: $event => (_ctx.exportSession(_ctx.activeSession)),
|
|
4487
|
+
disabled: !_ctx.activeSession || _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)],
|
|
4488
|
+
title: (_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export'),
|
|
4489
|
+
"aria-label": (_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export')
|
|
4415
4490
|
}, [
|
|
4416
4491
|
(_openBlock(), _createElementBlock("svg", {
|
|
4417
4492
|
viewBox: "0 0 16 16",
|
|
@@ -4421,33 +4496,36 @@ return function render(_ctx, _cache) {
|
|
|
4421
4496
|
"stroke-linecap": "round",
|
|
4422
4497
|
"stroke-linejoin": "round"
|
|
4423
4498
|
}, [
|
|
4424
|
-
_createElementVNode("path", { d: "
|
|
4425
|
-
_createElementVNode("
|
|
4426
|
-
_createElementVNode("path", { d: "
|
|
4427
|
-
]))
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
"stroke-linejoin": "round"
|
|
4444
|
-
}, [
|
|
4445
|
-
_createElementVNode("path", { d: "M2 5.5V12.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a1 1 0 0 0-1-1H8L6.5 5H3a1 1 0 0 0-1 1z" })
|
|
4446
|
-
])),
|
|
4447
|
-
_createElementVNode("span", { class: "session-action-label" }, _toDisplayString(_ctx.t('sessions.preview.copyPath')), 1 /* TEXT */)
|
|
4448
|
-
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"])
|
|
4499
|
+
_createElementVNode("path", { d: "M8 2v8" }),
|
|
4500
|
+
_createElementVNode("polyline", { points: "4 7 8 10.5 12 7" }),
|
|
4501
|
+
_createElementVNode("path", { d: "M2.5 12v1.5a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V12" })
|
|
4502
|
+
])),
|
|
4503
|
+
_createElementVNode("span", { class: "session-action-label" }, _toDisplayString((_ctx.activeSession && _ctx.sessionExporting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? _ctx.t('sessions.preview.exporting') : _ctx.t('sessions.preview.export')), 1 /* TEXT */)
|
|
4504
|
+
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]),
|
|
4505
|
+
(_ctx.isDeleteAvailable(_ctx.activeSession))
|
|
4506
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
4507
|
+
key: 0,
|
|
4508
|
+
class: "btn-session-delete has-label session-delete-text-button",
|
|
4509
|
+
onClick: $event => (_ctx.deleteSession(_ctx.activeSession)),
|
|
4510
|
+
disabled: !_ctx.activeSession || _ctx.sessionsLoading || _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)],
|
|
4511
|
+
title: (_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash')),
|
|
4512
|
+
"aria-label": (_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash'))
|
|
4513
|
+
}, [
|
|
4514
|
+
_createElementVNode("span", { class: "session-action-label" }, _toDisplayString((_ctx.activeSession && _ctx.sessionDeleting[_ctx.getSessionExportKey(_ctx.activeSession)]) ? (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleting') : _ctx.t('sessions.preview.moving')) : (_ctx.sessionTrashEnabled === false ? _ctx.t('sessions.preview.deleteHard') : _ctx.t('sessions.preview.moveToTrash'))), 1 /* TEXT */)
|
|
4515
|
+
], 8 /* PROPS */, ["onClick", "disabled", "title", "aria-label"]))
|
|
4516
|
+
: _createCommentVNode("v-if", true)
|
|
4517
|
+
])
|
|
4449
4518
|
])
|
|
4450
4519
|
], 512 /* NEED_PATCH */),
|
|
4520
|
+
_createElementVNode("div", { class: "session-export-feedback" }, [
|
|
4521
|
+
(_ctx.sessionExportNotice && _ctx.sessionExportNotice.key === _ctx.getSessionExportKey(_ctx.activeSession))
|
|
4522
|
+
? (_openBlock(), _createElementBlock("p", {
|
|
4523
|
+
key: 0,
|
|
4524
|
+
class: "session-export-notice",
|
|
4525
|
+
role: "status"
|
|
4526
|
+
}, _toDisplayString(_ctx.t('sessions.export.truncated')), 1 /* TEXT */))
|
|
4527
|
+
: _createCommentVNode("v-if", true)
|
|
4528
|
+
]),
|
|
4451
4529
|
(_ctx.sessionDetailLoading && !_ctx.sessionPreviewLoadingMore)
|
|
4452
4530
|
? (_openBlock(), _createElementBlock("div", {
|
|
4453
4531
|
key: 0,
|
|
@@ -4807,6 +4885,7 @@ return function render(_ctx, _cache) {
|
|
|
4807
4885
|
]))
|
|
4808
4886
|
], 2 /* CLASS */)
|
|
4809
4887
|
]))
|
|
4888
|
+
: _createCommentVNode("v-if", true)
|
|
4810
4889
|
]))
|
|
4811
4890
|
], 512 /* NEED_PATCH */), [
|
|
4812
4891
|
[_vShow, _ctx.mainTab === 'sessions']
|
|
@@ -5553,7 +5632,12 @@ return function render(_ctx, _cache) {
|
|
|
5553
5632
|
type: "button",
|
|
5554
5633
|
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'dark' }]),
|
|
5555
5634
|
onClick: $event => (_ctx.setTheme('dark'))
|
|
5556
|
-
}, _toDisplayString(_ctx.t('settings.theme.dark')), 11 /* TEXT, CLASS, PROPS */, ["onClick"])
|
|
5635
|
+
}, _toDisplayString(_ctx.t('settings.theme.dark')), 11 /* TEXT, CLASS, PROPS */, ["onClick"]),
|
|
5636
|
+
_createElementVNode("button", {
|
|
5637
|
+
type: "button",
|
|
5638
|
+
class: _normalizeClass(['toggle-btn', { active: _ctx.theme === 'ocean' }]),
|
|
5639
|
+
onClick: $event => (_ctx.setTheme('ocean'))
|
|
5640
|
+
}, _toDisplayString(_ctx.t('settings.theme.ocean')), 11 /* TEXT, CLASS, PROPS */, ["onClick"])
|
|
5557
5641
|
]),
|
|
5558
5642
|
_createElementVNode("p", { class: "settings-card-hint" }, _toDisplayString(_ctx.t('settings.theme.hint')), 1 /* TEXT */)
|
|
5559
5643
|
])
|
|
@@ -5902,199 +5986,204 @@ return function render(_ctx, _cache) {
|
|
|
5902
5986
|
])
|
|
5903
5987
|
])
|
|
5904
5988
|
], 8 /* PROPS */, ["aria-label"]),
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
fill: "none",
|
|
5915
|
-
stroke: "currentColor",
|
|
5916
|
-
"stroke-width": "1.2"
|
|
5989
|
+
_createElementVNode("section", {
|
|
5990
|
+
class: "trash-content-section",
|
|
5991
|
+
"aria-label": _ctx.t('settings.trash.title')
|
|
5992
|
+
}, [
|
|
5993
|
+
_createCommentVNode(" Disabled state "),
|
|
5994
|
+
(_ctx.getSessionTrashViewState() === 'disabled')
|
|
5995
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
5996
|
+
key: 0,
|
|
5997
|
+
class: "trash-empty-state trash-disabled-state"
|
|
5917
5998
|
}, [
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
"stroke-width": "2"
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
}, [
|
|
5941
|
-
_createElementVNode("path", { d: "M20 22l4 32h16l4-32" }),
|
|
5942
|
-
_createElementVNode("path", { d: "M14 22h36" }),
|
|
5943
|
-
_createElementVNode("path", { d: "M24 22v-4a4 4 0 014-4h8a4 4 0 014 4v4" }),
|
|
5944
|
-
_createElementVNode("path", {
|
|
5945
|
-
d: "M28 30v16M36 30v16",
|
|
5946
|
-
"stroke-width": "1.6",
|
|
5947
|
-
"stroke-linecap": "round"
|
|
5948
|
-
})
|
|
5949
|
-
])),
|
|
5950
|
-
_createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.empty')), 1 /* TEXT */),
|
|
5951
|
-
_createElementVNode("div", { class: "trash-empty-hint" }, _toDisplayString(_ctx.t('settings.trash.emptyHint', { days: _ctx.sessionTrashRetentionDays })), 1 /* TEXT */)
|
|
5952
|
-
])
|
|
5953
|
-
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
5954
|
-
: (_ctx.getSessionTrashViewState() === 'loading')
|
|
5955
|
-
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
5956
|
-
_createCommentVNode(" Loading state "),
|
|
5999
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
6000
|
+
class: "trash-empty-svg",
|
|
6001
|
+
viewBox: "0 0 64 64",
|
|
6002
|
+
fill: "none",
|
|
6003
|
+
stroke: "currentColor",
|
|
6004
|
+
"stroke-width": "1.2"
|
|
6005
|
+
}, [
|
|
6006
|
+
_createElementVNode("path", { d: "M20 22l4 32h16l4-32" }),
|
|
6007
|
+
_createElementVNode("path", { d: "M14 22h36" }),
|
|
6008
|
+
_createElementVNode("path", { d: "M24 22v-4a4 4 0 014-4h8a4 4 0 014 4v4" }),
|
|
6009
|
+
_createElementVNode("path", {
|
|
6010
|
+
d: "M10 10l44 44",
|
|
6011
|
+
"stroke-width": "2",
|
|
6012
|
+
"stroke-linecap": "round"
|
|
6013
|
+
})
|
|
6014
|
+
])),
|
|
6015
|
+
_createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.disabled')), 1 /* TEXT */),
|
|
6016
|
+
_createElementVNode("div", { class: "trash-empty-hint" }, _toDisplayString(_ctx.t('settings.trash.disabledHint')), 1 /* TEXT */)
|
|
6017
|
+
]))
|
|
6018
|
+
: (_ctx.getSessionTrashViewState() === 'empty')
|
|
6019
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
|
|
6020
|
+
_createCommentVNode(" Empty state "),
|
|
5957
6021
|
_createElementVNode("div", { class: "trash-empty-state" }, [
|
|
5958
|
-
|
|
5959
|
-
|
|
6022
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
6023
|
+
class: "trash-empty-svg",
|
|
6024
|
+
viewBox: "0 0 64 64",
|
|
6025
|
+
fill: "none",
|
|
6026
|
+
stroke: "currentColor",
|
|
6027
|
+
"stroke-width": "1.2"
|
|
6028
|
+
}, [
|
|
6029
|
+
_createElementVNode("path", { d: "M20 22l4 32h16l4-32" }),
|
|
6030
|
+
_createElementVNode("path", { d: "M14 22h36" }),
|
|
6031
|
+
_createElementVNode("path", { d: "M24 22v-4a4 4 0 014-4h8a4 4 0 014 4v4" }),
|
|
6032
|
+
_createElementVNode("path", {
|
|
6033
|
+
d: "M28 30v16M36 30v16",
|
|
6034
|
+
"stroke-width": "1.6",
|
|
6035
|
+
"stroke-linecap": "round"
|
|
6036
|
+
})
|
|
6037
|
+
])),
|
|
6038
|
+
_createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.empty')), 1 /* TEXT */),
|
|
6039
|
+
_createElementVNode("div", { class: "trash-empty-hint" }, _toDisplayString(_ctx.t('settings.trash.emptyHint', { days: _ctx.sessionTrashRetentionDays })), 1 /* TEXT */)
|
|
5960
6040
|
])
|
|
5961
6041
|
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
5962
|
-
: (_ctx.getSessionTrashViewState() === '
|
|
5963
|
-
? (_openBlock(), _createElementBlock(_Fragment, { key:
|
|
5964
|
-
_createCommentVNode("
|
|
6042
|
+
: (_ctx.getSessionTrashViewState() === 'loading')
|
|
6043
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
|
|
6044
|
+
_createCommentVNode(" Loading state "),
|
|
5965
6045
|
_createElementVNode("div", { class: "trash-empty-state" }, [
|
|
5966
|
-
(
|
|
5967
|
-
|
|
5968
|
-
viewBox: "0 0 64 64",
|
|
5969
|
-
fill: "none",
|
|
5970
|
-
stroke: "currentColor",
|
|
5971
|
-
"stroke-width": "1.2"
|
|
5972
|
-
}, [
|
|
5973
|
-
_createElementVNode("circle", {
|
|
5974
|
-
cx: "32",
|
|
5975
|
-
cy: "32",
|
|
5976
|
-
r: "22"
|
|
5977
|
-
}),
|
|
5978
|
-
_createElementVNode("path", {
|
|
5979
|
-
d: "M32 20v16M32 44v2",
|
|
5980
|
-
"stroke-width": "2",
|
|
5981
|
-
"stroke-linecap": "round"
|
|
5982
|
-
})
|
|
5983
|
-
])),
|
|
5984
|
-
_createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.retry')), 1 /* TEXT */),
|
|
5985
|
-
_createElementVNode("button", {
|
|
5986
|
-
class: "btn-tool",
|
|
5987
|
-
onClick: $event => (_ctx.loadSessionTrash({ forceRefresh: true }))
|
|
5988
|
-
}, _toDisplayString(_ctx.t('common.retry')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
6046
|
+
_createElementVNode("div", { class: "trash-spinner" }),
|
|
6047
|
+
_createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.loading')), 1 /* TEXT */)
|
|
5989
6048
|
])
|
|
5990
6049
|
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
5991
|
-
: (
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
_createElementVNode("div", { class: "trash-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
onClick: $event => (_ctx.loadSessionTrash({ forceRefresh: true })),
|
|
6002
|
-
disabled: _ctx.sessionTrashLoading,
|
|
6003
|
-
"aria-label": _ctx.t('sessions.refresh'),
|
|
6004
|
-
title: _ctx.t('sessions.refresh')
|
|
6050
|
+
: (_ctx.getSessionTrashViewState() === 'retry')
|
|
6051
|
+
? (_openBlock(), _createElementBlock(_Fragment, { key: 3 }, [
|
|
6052
|
+
_createCommentVNode(" Error state "),
|
|
6053
|
+
_createElementVNode("div", { class: "trash-empty-state" }, [
|
|
6054
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
6055
|
+
class: "trash-empty-svg",
|
|
6056
|
+
viewBox: "0 0 64 64",
|
|
6057
|
+
fill: "none",
|
|
6058
|
+
stroke: "currentColor",
|
|
6059
|
+
"stroke-width": "1.2"
|
|
6005
6060
|
}, [
|
|
6006
|
-
(
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6061
|
+
_createElementVNode("circle", {
|
|
6062
|
+
cx: "32",
|
|
6063
|
+
cy: "32",
|
|
6064
|
+
r: "22"
|
|
6065
|
+
}),
|
|
6066
|
+
_createElementVNode("path", {
|
|
6067
|
+
d: "M32 20v16M32 44v2",
|
|
6010
6068
|
"stroke-width": "2",
|
|
6011
|
-
|
|
6012
|
-
}
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"]),
|
|
6069
|
+
"stroke-linecap": "round"
|
|
6070
|
+
})
|
|
6071
|
+
])),
|
|
6072
|
+
_createElementVNode("div", { class: "trash-empty-title" }, _toDisplayString(_ctx.t('settings.trash.retry')), 1 /* TEXT */),
|
|
6016
6073
|
_createElementVNode("button", {
|
|
6017
|
-
class: "btn-
|
|
6018
|
-
onClick: _ctx.
|
|
6019
|
-
|
|
6020
|
-
}, _toDisplayString(_ctx.sessionTrashClearing ? _ctx.t('settings.trash.clearing') : _ctx.t('settings.trash.clearShort')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6074
|
+
class: "btn-tool",
|
|
6075
|
+
onClick: $event => (_ctx.loadSessionTrash({ forceRefresh: true }))
|
|
6076
|
+
}, _toDisplayString(_ctx.t('common.retry')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
6021
6077
|
])
|
|
6022
|
-
])
|
|
6023
|
-
|
|
6024
|
-
(
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
class: "trash-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6078
|
+
], 2112 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */))
|
|
6079
|
+
: (_openBlock(), _createElementBlock(_Fragment, { key: 4 }, [
|
|
6080
|
+
_createCommentVNode(" List state "),
|
|
6081
|
+
_createElementVNode("div", { class: "trash-toolbar" }, [
|
|
6082
|
+
_createElementVNode("div", { class: "trash-toolbar-left" }, [
|
|
6083
|
+
_createElementVNode("span", { class: "trash-toolbar-count" }, _toDisplayString(_ctx.t('settings.trash.count', { count: _ctx.sessionTrashCount })), 1 /* TEXT */),
|
|
6084
|
+
_createElementVNode("span", { class: "trash-toolbar-retention" }, _toDisplayString(_ctx.t('settings.trash.retentionShort', { days: _ctx.sessionTrashRetentionDays })), 1 /* TEXT */)
|
|
6085
|
+
]),
|
|
6086
|
+
_createElementVNode("div", { class: "trash-toolbar-right" }, [
|
|
6087
|
+
_createElementVNode("button", {
|
|
6088
|
+
class: "btn-mini",
|
|
6089
|
+
onClick: $event => (_ctx.loadSessionTrash({ forceRefresh: true })),
|
|
6090
|
+
disabled: _ctx.sessionTrashLoading,
|
|
6091
|
+
"aria-label": _ctx.t('sessions.refresh'),
|
|
6092
|
+
title: _ctx.t('sessions.refresh')
|
|
6093
|
+
}, [
|
|
6094
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
6095
|
+
viewBox: "0 0 24 24",
|
|
6096
|
+
fill: "none",
|
|
6097
|
+
stroke: "currentColor",
|
|
6098
|
+
"stroke-width": "2",
|
|
6099
|
+
class: "btn-icon-sm"
|
|
6100
|
+
}, [
|
|
6101
|
+
_createElementVNode("path", { d: "M21 2v6h-6M3 12a9 9 0 0115-6.7L21 8M3 22v-6h6M21 12a9 9 0 01-15 6.7L3 16" })
|
|
6102
|
+
]))
|
|
6103
|
+
], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"]),
|
|
6104
|
+
_createElementVNode("button", {
|
|
6105
|
+
class: "btn-mini delete",
|
|
6106
|
+
onClick: _ctx.clearSessionTrash,
|
|
6107
|
+
disabled: _ctx.sessionTrashClearing || _ctx.sessionTrashLoading || !(Number(_ctx.sessionTrashCount) > 0)
|
|
6108
|
+
}, _toDisplayString(_ctx.sessionTrashClearing ? _ctx.t('settings.trash.clearing') : _ctx.t('settings.trash.clearShort')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6109
|
+
])
|
|
6110
|
+
]),
|
|
6111
|
+
_createElementVNode("div", { class: "trash-list" }, [
|
|
6112
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.visibleSessionTrashItems, (item) => {
|
|
6113
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
6114
|
+
key: item.trashId,
|
|
6115
|
+
class: "trash-item"
|
|
6116
|
+
}, [
|
|
6117
|
+
_createElementVNode("div", { class: "trash-item-body" }, [
|
|
6118
|
+
_createElementVNode("div", { class: "trash-item-main" }, [
|
|
6119
|
+
_createElementVNode("div", { class: "trash-item-title" }, _toDisplayString(item.title || item.sessionId), 1 /* TEXT */),
|
|
6120
|
+
_createElementVNode("div", { class: "trash-item-meta" }, [
|
|
6121
|
+
_createElementVNode("span", {
|
|
6122
|
+
class: "session-source",
|
|
6123
|
+
"data-source": item.source
|
|
6124
|
+
}, _toDisplayString(item.sourceLabel), 9 /* TEXT, PROPS */, ["data-source"]),
|
|
6125
|
+
_createElementVNode("span", { class: "trash-item-time" }, _toDisplayString(item.deletedAt || item.updatedAt || _ctx.t('sessions.unknownTime')), 1 /* TEXT */),
|
|
6126
|
+
(item.cwd)
|
|
6127
|
+
? (_openBlock(), _createElementBlock("span", {
|
|
6128
|
+
key: 0,
|
|
6129
|
+
class: "trash-item-cwd"
|
|
6130
|
+
}, _toDisplayString(item.cwd), 1 /* TEXT */))
|
|
6131
|
+
: _createCommentVNode("v-if", true)
|
|
6132
|
+
])
|
|
6133
|
+
]),
|
|
6134
|
+
_createElementVNode("div", { class: "trash-item-actions" }, [
|
|
6135
|
+
_createElementVNode("button", {
|
|
6136
|
+
class: "trash-action-btn restore",
|
|
6137
|
+
onClick: $event => (_ctx.restoreSessionTrash(item)),
|
|
6138
|
+
disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing || _ctx.isSessionTrashActionBusy(item),
|
|
6139
|
+
"aria-label": _ctx.sessionTrashRestoring[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.restoring') : _ctx.t('settings.trash.restore'),
|
|
6140
|
+
title: _ctx.sessionTrashRestoring[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.restoring') : _ctx.t('settings.trash.restore')
|
|
6059
6141
|
}, [
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6142
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
6143
|
+
viewBox: "0 0 24 24",
|
|
6144
|
+
fill: "none",
|
|
6145
|
+
stroke: "currentColor",
|
|
6146
|
+
"stroke-width": "2"
|
|
6147
|
+
}, [
|
|
6148
|
+
_createElementVNode("path", { d: "M3 12a9 9 0 119 9" }),
|
|
6149
|
+
_createElementVNode("path", { d: "M3 4v6h6" })
|
|
6150
|
+
]))
|
|
6151
|
+
], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"]),
|
|
6152
|
+
_createElementVNode("button", {
|
|
6153
|
+
class: "trash-action-btn delete",
|
|
6154
|
+
onClick: $event => (_ctx.purgeSessionTrash(item)),
|
|
6155
|
+
disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing || _ctx.isSessionTrashActionBusy(item),
|
|
6156
|
+
"aria-label": _ctx.sessionTrashPurging[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.purging') : _ctx.t('settings.trash.purge'),
|
|
6157
|
+
title: _ctx.sessionTrashPurging[_ctx.getSessionTrashActionKey(item)] ? _ctx.t('settings.trash.purging') : _ctx.t('settings.trash.purge')
|
|
6076
6158
|
}, [
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6159
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
6160
|
+
viewBox: "0 0 24 24",
|
|
6161
|
+
fill: "none",
|
|
6162
|
+
stroke: "currentColor",
|
|
6163
|
+
"stroke-width": "2"
|
|
6164
|
+
}, [
|
|
6165
|
+
_createElementVNode("path", { d: "M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6M10 11v6M14 11v6" })
|
|
6166
|
+
]))
|
|
6167
|
+
], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"])
|
|
6168
|
+
])
|
|
6080
6169
|
])
|
|
6081
|
-
])
|
|
6082
|
-
]))
|
|
6083
|
-
}), 128 /* KEYED_FRAGMENT */)),
|
|
6084
|
-
(_ctx.sessionTrashHasMoreItems)
|
|
6085
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
6086
|
-
key: 0,
|
|
6087
|
-
class: "trash-list-footer"
|
|
6088
|
-
}, [
|
|
6089
|
-
_createElementVNode("button", {
|
|
6090
|
-
class: "btn-tool btn-tool-compact",
|
|
6091
|
-
onClick: _ctx.loadMoreSessionTrashItems,
|
|
6092
|
-
disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing
|
|
6093
|
-
}, _toDisplayString(_ctx.t('settings.trash.loadMoreItems', { count: _ctx.sessionTrashHiddenCount })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6094
6170
|
]))
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6171
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
6172
|
+
(_ctx.sessionTrashHasMoreItems)
|
|
6173
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
6174
|
+
key: 0,
|
|
6175
|
+
class: "trash-list-footer"
|
|
6176
|
+
}, [
|
|
6177
|
+
_createElementVNode("button", {
|
|
6178
|
+
class: "btn-tool btn-tool-compact",
|
|
6179
|
+
onClick: _ctx.loadMoreSessionTrashItems,
|
|
6180
|
+
disabled: _ctx.sessionTrashLoading || _ctx.sessionTrashClearing
|
|
6181
|
+
}, _toDisplayString(_ctx.t('settings.trash.loadMoreItems', { count: _ctx.sessionTrashHiddenCount })), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
6182
|
+
]))
|
|
6183
|
+
: _createCommentVNode("v-if", true)
|
|
6184
|
+
])
|
|
6185
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
6186
|
+
], 8 /* PROPS */, ["aria-label"])
|
|
6098
6187
|
]))
|
|
6099
6188
|
: _createCommentVNode("v-if", true)
|
|
6100
6189
|
], 512 /* NEED_PATCH */), [
|
|
@@ -6180,60 +6269,99 @@ return function render(_ctx, _cache) {
|
|
|
6180
6269
|
_createElementVNode("span", { class: "skills-flow-title" }, _toDisplayString(_ctx.t('market.installed.title')), 1 /* TEXT */),
|
|
6181
6270
|
_createElementVNode("span", { class: "skills-flow-count" }, _toDisplayString(_ctx.skillsList.length), 1 /* TEXT */)
|
|
6182
6271
|
]),
|
|
6183
|
-
_createElementVNode("
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
(
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6272
|
+
_createElementVNode("div", { class: "skills-flow-actions" }, [
|
|
6273
|
+
_createElementVNode("button", {
|
|
6274
|
+
type: "button",
|
|
6275
|
+
class: "skills-action-btn",
|
|
6276
|
+
onClick: _ctx.backupCurrentSkills,
|
|
6277
|
+
disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy || _ctx.skillsList.length === 0
|
|
6278
|
+
}, _toDisplayString(_ctx.skillsBackingUp ? _ctx.t('market.backup.running') : _ctx.t('market.backup.action')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
6279
|
+
_createElementVNode("button", {
|
|
6280
|
+
type: "button",
|
|
6281
|
+
class: "skills-action-btn",
|
|
6282
|
+
onClick: _ctx.exportMarketSelectedSkills,
|
|
6283
|
+
disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy || _ctx.skillsMarketSelectedCount === 0
|
|
6284
|
+
}, _toDisplayString(_ctx.skillsExporting ? _ctx.t('market.export.running') : _ctx.t('market.export.action')) + " (" + _toDisplayString(_ctx.skillsMarketSelectedCount) + ") ", 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
6285
|
+
_createElementVNode("button", {
|
|
6286
|
+
type: "button",
|
|
6287
|
+
class: "btn-mini",
|
|
6288
|
+
onClick: $event => (_ctx.refreshSkillsList({ silent: false })),
|
|
6289
|
+
disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy
|
|
6290
|
+
}, [
|
|
6291
|
+
(!_ctx.skillsLoading)
|
|
6292
|
+
? (_openBlock(), _createElementBlock("svg", {
|
|
6293
|
+
key: 0,
|
|
6294
|
+
viewBox: "0 0 20 20",
|
|
6295
|
+
fill: "none",
|
|
6296
|
+
stroke: "currentColor",
|
|
6297
|
+
"stroke-width": "1.8",
|
|
6298
|
+
width: "14",
|
|
6299
|
+
height: "14"
|
|
6300
|
+
}, [
|
|
6301
|
+
_createElementVNode("path", { d: "M17 1l4 4-4 4" }),
|
|
6302
|
+
_createElementVNode("path", { d: "M3 11V9a4 4 0 014-4h14" }),
|
|
6303
|
+
_createElementVNode("path", { d: "M3 19l-4-4 4-4" }),
|
|
6304
|
+
_createElementVNode("path", { d: "M17 9v2a4 4 0 01-4 4H3" })
|
|
6305
|
+
]))
|
|
6306
|
+
: (_openBlock(), _createElementBlock("svg", {
|
|
6307
|
+
key: 1,
|
|
6308
|
+
viewBox: "0 0 20 20",
|
|
6309
|
+
fill: "none",
|
|
6310
|
+
stroke: "currentColor",
|
|
6311
|
+
"stroke-width": "1.8",
|
|
6312
|
+
width: "14",
|
|
6313
|
+
height: "14",
|
|
6314
|
+
class: "spin"
|
|
6315
|
+
}, [
|
|
6316
|
+
_createElementVNode("path", { d: "M10 2v4m0 8v4M2 10h4m8 0h4m-3.5-6.5l2.5 2.5M4 4l2.5 2.5M16 16l-2.5-2.5M4 16l2.5-2.5" })
|
|
6317
|
+
]))
|
|
6318
|
+
], 8 /* PROPS */, ["onClick", "disabled"])
|
|
6319
|
+
])
|
|
6217
6320
|
]),
|
|
6218
|
-
(_ctx.
|
|
6321
|
+
(_ctx.skillsList.length > 0)
|
|
6219
6322
|
? (_openBlock(), _createElementBlock("div", {
|
|
6220
6323
|
key: 0,
|
|
6324
|
+
class: "skills-market-selection-bar"
|
|
6325
|
+
}, [
|
|
6326
|
+
_createElementVNode("label", { class: "skills-market-select-all" }, [
|
|
6327
|
+
_createElementVNode("input", {
|
|
6328
|
+
type: "checkbox",
|
|
6329
|
+
checked: _ctx.skillsMarketAllSelected,
|
|
6330
|
+
onChange: _ctx.toggleAllSkillsMarketSelection,
|
|
6331
|
+
disabled: _ctx.skillsMarketBusy
|
|
6332
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange", "disabled"]),
|
|
6333
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.t('market.selection.all')), 1 /* TEXT */)
|
|
6334
|
+
]),
|
|
6335
|
+
_createElementVNode("span", { class: "skills-market-selection-count" }, _toDisplayString(_ctx.t('market.selection.count', { count: _ctx.skillsMarketSelectedCount })), 1 /* TEXT */)
|
|
6336
|
+
]))
|
|
6337
|
+
: _createCommentVNode("v-if", true),
|
|
6338
|
+
(_ctx.skillsLoading && !_ctx.skillsMarketLocalLoadedOnce)
|
|
6339
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
6340
|
+
key: 1,
|
|
6221
6341
|
class: "skills-flow-loading"
|
|
6222
6342
|
}, _toDisplayString(_ctx.t('market.local.loading')), 1 /* TEXT */))
|
|
6223
6343
|
: (_ctx.skillsList.length === 0)
|
|
6224
6344
|
? (_openBlock(), _createElementBlock("div", {
|
|
6225
|
-
key:
|
|
6345
|
+
key: 2,
|
|
6226
6346
|
class: "skills-flow-empty"
|
|
6227
6347
|
}, _toDisplayString(_ctx.t('market.local.empty')), 1 /* TEXT */))
|
|
6228
6348
|
: (_openBlock(), _createElementBlock("div", {
|
|
6229
|
-
key:
|
|
6349
|
+
key: 3,
|
|
6230
6350
|
class: "skills-flow-list"
|
|
6231
6351
|
}, [
|
|
6232
6352
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.skillsList, (skill) => {
|
|
6233
6353
|
return (_openBlock(), _createElementBlock("div", {
|
|
6234
6354
|
key: 'skill-' + skill.name,
|
|
6235
|
-
class: _normalizeClass(["skills-flow-item", { 'has-issue': !skill.hasSkillFile }])
|
|
6355
|
+
class: _normalizeClass(["skills-flow-item", { 'has-issue': !skill.hasSkillFile, selected: _ctx.skillsMarketSelectedNames.includes(skill.name) }])
|
|
6236
6356
|
}, [
|
|
6357
|
+
_createElementVNode("label", { class: "skills-market-item-check" }, [
|
|
6358
|
+
_createElementVNode("input", {
|
|
6359
|
+
type: "checkbox",
|
|
6360
|
+
checked: _ctx.skillsMarketSelectedNames.includes(skill.name),
|
|
6361
|
+
onChange: $event => (_ctx.toggleSkillsMarketSelection(skill.name)),
|
|
6362
|
+
disabled: _ctx.skillsMarketBusy
|
|
6363
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange", "disabled"])
|
|
6364
|
+
]),
|
|
6237
6365
|
_createElementVNode("div", { class: "skills-flow-main" }, [
|
|
6238
6366
|
_createElementVNode("span", { class: "skills-flow-name" }, _toDisplayString(skill.displayName || skill.name), 1 /* TEXT */),
|
|
6239
6367
|
_createElementVNode("span", { class: "skills-flow-path" }, _toDisplayString(skill.path), 1 /* TEXT */)
|
|
@@ -7091,7 +7219,7 @@ return function render(_ctx, _cache) {
|
|
|
7091
7219
|
_createElementVNode("div", { class: "form-hint" }, [
|
|
7092
7220
|
_createTextVNode(_toDisplayString(_ctx.agentsPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
|
|
7093
7221
|
(_ctx.agentsPath)
|
|
7094
|
-
? (_openBlock(), _createElementBlock("span", { key: 0 },
|
|
7222
|
+
? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.paren(_ctx.agentsExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnSave'))), 1 /* TEXT */))
|
|
7095
7223
|
: _createCommentVNode("v-if", true),
|
|
7096
7224
|
(_ctx.agentsPath)
|
|
7097
7225
|
? (_openBlock(), _createElementBlock("span", {
|
|
@@ -7643,7 +7771,7 @@ return function render(_ctx, _cache) {
|
|
|
7643
7771
|
_createElementVNode("div", { class: "form-hint" }, [
|
|
7644
7772
|
_createTextVNode(_toDisplayString(_ctx.sysPromptPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
|
|
7645
7773
|
(_ctx.sysPromptPath)
|
|
7646
|
-
? (_openBlock(), _createElementBlock("span", { key: 0 },
|
|
7774
|
+
? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.paren(_ctx.sysPromptExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnSave'))), 1 /* TEXT */))
|
|
7647
7775
|
: _createCommentVNode("v-if", true),
|
|
7648
7776
|
(_ctx.sysPromptPath)
|
|
7649
7777
|
? (_openBlock(), _createElementBlock("span", {
|
|
@@ -8074,7 +8202,7 @@ return function render(_ctx, _cache) {
|
|
|
8074
8202
|
(_ctx.loading && _ctx.mainTab !== 'usage')
|
|
8075
8203
|
? (_openBlock(), _createElementBlock("div", {
|
|
8076
8204
|
key: 3,
|
|
8077
|
-
class: "state-message"
|
|
8205
|
+
class: "state-message app-loading-state"
|
|
8078
8206
|
}, _toDisplayString(_ctx.t('app.loadingConfig')), 1 /* TEXT */))
|
|
8079
8207
|
: (_ctx.initError)
|
|
8080
8208
|
? (_openBlock(), _createElementBlock("div", {
|
|
@@ -8091,7 +8219,7 @@ return function render(_ctx, _cache) {
|
|
|
8091
8219
|
_createCommentVNode(" 添加提供商模态框 "),
|
|
8092
8220
|
(_ctx.showAddModal)
|
|
8093
8221
|
? (_openBlock(), _createElementBlock("div", {
|
|
8094
|
-
key:
|
|
8222
|
+
key: 4,
|
|
8095
8223
|
class: "modal-overlay",
|
|
8096
8224
|
onClick: _withModifiers(_ctx.closeAddModal, ["self"])
|
|
8097
8225
|
}, [
|
|
@@ -8248,7 +8376,7 @@ return function render(_ctx, _cache) {
|
|
|
8248
8376
|
_createCommentVNode(" 编辑提供商模态框 "),
|
|
8249
8377
|
(_ctx.showEditModal)
|
|
8250
8378
|
? (_openBlock(), _createElementBlock("div", {
|
|
8251
|
-
key:
|
|
8379
|
+
key: 5,
|
|
8252
8380
|
class: "modal-overlay",
|
|
8253
8381
|
onClick: _withModifiers(_ctx.closeEditModal, ["self"])
|
|
8254
8382
|
}, [
|
|
@@ -8360,7 +8488,7 @@ return function render(_ctx, _cache) {
|
|
|
8360
8488
|
_createCommentVNode(" 添加模型模态框 "),
|
|
8361
8489
|
(_ctx.showModelModal)
|
|
8362
8490
|
? (_openBlock(), _createElementBlock("div", {
|
|
8363
|
-
key:
|
|
8491
|
+
key: 6,
|
|
8364
8492
|
class: "modal-overlay",
|
|
8365
8493
|
onClick: _withModifiers(_ctx.closeModelModal, ["self"])
|
|
8366
8494
|
}, [
|
|
@@ -8400,7 +8528,7 @@ return function render(_ctx, _cache) {
|
|
|
8400
8528
|
_createCommentVNode(" 模型列表模态框 "),
|
|
8401
8529
|
(_ctx.showModelListModal)
|
|
8402
8530
|
? (_openBlock(), _createElementBlock("div", {
|
|
8403
|
-
key:
|
|
8531
|
+
key: 7,
|
|
8404
8532
|
class: "modal-overlay",
|
|
8405
8533
|
onClick: _withModifiers($event => (_ctx.showModelListModal = false), ["self"])
|
|
8406
8534
|
}, [
|
|
@@ -8441,7 +8569,7 @@ return function render(_ctx, _cache) {
|
|
|
8441
8569
|
_createCommentVNode(" 项目功能公告模态框 "),
|
|
8442
8570
|
(_ctx.showProviderCacheAnnouncementModal)
|
|
8443
8571
|
? (_openBlock(), _createElementBlock("div", {
|
|
8444
|
-
key:
|
|
8572
|
+
key: 8,
|
|
8445
8573
|
class: "modal-overlay project-announcement-overlay",
|
|
8446
8574
|
onClick: _withModifiers(_ctx.closeProviderCacheAnnouncementModal, ["self"])
|
|
8447
8575
|
}, [
|
|
@@ -8610,7 +8738,7 @@ return function render(_ctx, _cache) {
|
|
|
8610
8738
|
_createCommentVNode(" Provider 缓存记录模态框 "),
|
|
8611
8739
|
(_ctx.showProviderCacheModal)
|
|
8612
8740
|
? (_openBlock(), _createElementBlock("div", {
|
|
8613
|
-
key:
|
|
8741
|
+
key: 9,
|
|
8614
8742
|
class: "modal-overlay",
|
|
8615
8743
|
onClick: _withModifiers(_ctx.closeProviderCacheModal, ["self"])
|
|
8616
8744
|
}, [
|
|
@@ -8758,7 +8886,7 @@ return function render(_ctx, _cache) {
|
|
|
8758
8886
|
_createCommentVNode(" 添加Claude配置模态框 "),
|
|
8759
8887
|
(_ctx.showClaudeConfigModal)
|
|
8760
8888
|
? (_openBlock(), _createElementBlock("div", {
|
|
8761
|
-
key:
|
|
8889
|
+
key: 10,
|
|
8762
8890
|
class: "modal-overlay",
|
|
8763
8891
|
onClick: _withModifiers(_ctx.closeClaudeConfigModal, ["self"])
|
|
8764
8892
|
}, [
|
|
@@ -8910,7 +9038,7 @@ return function render(_ctx, _cache) {
|
|
|
8910
9038
|
_createCommentVNode(" 编辑Claude配置模态框 "),
|
|
8911
9039
|
(_ctx.showEditConfigModal)
|
|
8912
9040
|
? (_openBlock(), _createElementBlock("div", {
|
|
8913
|
-
key:
|
|
9041
|
+
key: 11,
|
|
8914
9042
|
class: "modal-overlay",
|
|
8915
9043
|
onClick: _withModifiers(_ctx.closeEditConfigModal, ["self"])
|
|
8916
9044
|
}, [
|
|
@@ -9063,7 +9191,7 @@ return function render(_ctx, _cache) {
|
|
|
9063
9191
|
_createCommentVNode(" Codex bridge pool modal "),
|
|
9064
9192
|
(_ctx.showCodexBridgePoolModal)
|
|
9065
9193
|
? (_openBlock(), _createElementBlock("div", {
|
|
9066
|
-
key:
|
|
9194
|
+
key: 12,
|
|
9067
9195
|
class: "modal-overlay",
|
|
9068
9196
|
onClick: _withModifiers($event => (_ctx.showCodexBridgePoolModal = false), ["self"])
|
|
9069
9197
|
}, [
|
|
@@ -9156,7 +9284,7 @@ return function render(_ctx, _cache) {
|
|
|
9156
9284
|
: _createCommentVNode("v-if", true),
|
|
9157
9285
|
(_ctx.showClaudeBridgePoolModal)
|
|
9158
9286
|
? (_openBlock(), _createElementBlock("div", {
|
|
9159
|
-
key:
|
|
9287
|
+
key: 13,
|
|
9160
9288
|
class: "modal-overlay",
|
|
9161
9289
|
onClick: _withModifiers($event => (_ctx.showClaudeBridgePoolModal = false), ["self"])
|
|
9162
9290
|
}, [
|
|
@@ -9250,7 +9378,7 @@ return function render(_ctx, _cache) {
|
|
|
9250
9378
|
_createCommentVNode(" Webhook settings modal "),
|
|
9251
9379
|
(_ctx.showWebhookModal)
|
|
9252
9380
|
? (_openBlock(), _createElementBlock("div", {
|
|
9253
|
-
key:
|
|
9381
|
+
key: 14,
|
|
9254
9382
|
class: "modal-overlay",
|
|
9255
9383
|
onClick: _withModifiers(_ctx.closeWebhookModal, ["self"])
|
|
9256
9384
|
}, [
|
|
@@ -9323,7 +9451,7 @@ return function render(_ctx, _cache) {
|
|
|
9323
9451
|
: _createCommentVNode("v-if", true),
|
|
9324
9452
|
(_ctx.showOpenclawConfigModal)
|
|
9325
9453
|
? (_openBlock(), _createElementBlock("div", {
|
|
9326
|
-
key:
|
|
9454
|
+
key: 15,
|
|
9327
9455
|
class: "modal-overlay",
|
|
9328
9456
|
onClick: _withModifiers($event => (!(_ctx.openclawSaving || _ctx.openclawApplying) && _ctx.closeOpenclawConfigModal()), ["self"])
|
|
9329
9457
|
}, [
|
|
@@ -9353,7 +9481,7 @@ return function render(_ctx, _cache) {
|
|
|
9353
9481
|
_createElementVNode("div", { class: "form-hint" }, [
|
|
9354
9482
|
_createTextVNode(_toDisplayString(_ctx.openclawConfigPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
|
|
9355
9483
|
(_ctx.openclawConfigPath)
|
|
9356
|
-
? (_openBlock(), _createElementBlock("span", { key: 0 },
|
|
9484
|
+
? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.paren(_ctx.openclawConfigExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnApply'))), 1 /* TEXT */))
|
|
9357
9485
|
: _createCommentVNode("v-if", true)
|
|
9358
9486
|
]),
|
|
9359
9487
|
_createElementVNode("div", {
|
|
@@ -9427,9 +9555,9 @@ return function render(_ctx, _cache) {
|
|
|
9427
9555
|
_withDirectives(_createElementVNode("input", {
|
|
9428
9556
|
"onUpdate:modelValue": $event => ((_ctx.openclawQuick.providerName) = $event),
|
|
9429
9557
|
class: "form-input",
|
|
9430
|
-
placeholder:
|
|
9558
|
+
placeholder: _ctx.t('modal.openclaw.quick.providerNamePlaceholder'),
|
|
9431
9559
|
onInput: _ctx.validateProviderName
|
|
9432
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "onInput"]), [
|
|
9560
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "placeholder", "onInput"]), [
|
|
9433
9561
|
[_vModelText, _ctx.openclawQuick.providerName]
|
|
9434
9562
|
]),
|
|
9435
9563
|
_createElementVNode("div", {
|
|
@@ -9515,7 +9643,7 @@ return function render(_ctx, _cache) {
|
|
|
9515
9643
|
class: "btn btn-confirm btn-sm",
|
|
9516
9644
|
onClick: _ctx.nextAccordionStep,
|
|
9517
9645
|
disabled: !_ctx.openclawQuick.providerName
|
|
9518
|
-
},
|
|
9646
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.next')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
9519
9647
|
])
|
|
9520
9648
|
], 512 /* NEED_PATCH */), [
|
|
9521
9649
|
[_vShow, _ctx.openclawAccordionStep === 1]
|
|
@@ -9569,7 +9697,7 @@ return function render(_ctx, _cache) {
|
|
|
9569
9697
|
]),
|
|
9570
9698
|
_createElementVNode("div", {
|
|
9571
9699
|
class: _normalizeClass(["form-hint", { 'hint-error': !_ctx.openclawValidation.modelId.valid }])
|
|
9572
|
-
}, _toDisplayString(_ctx.openclawValidation.modelId.message || '
|
|
9700
|
+
}, _toDisplayString(_ctx.openclawValidation.modelId.message || _ctx.t('modal.openclaw.quick.modelIdHint')), 3 /* TEXT, CLASS */)
|
|
9573
9701
|
]),
|
|
9574
9702
|
_createElementVNode("div", { class: "form-group" }, [
|
|
9575
9703
|
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('field.displayName')), 1 /* TEXT */),
|
|
@@ -9580,7 +9708,7 @@ return function render(_ctx, _cache) {
|
|
|
9580
9708
|
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9581
9709
|
[_vModelText, _ctx.openclawQuick.modelName]
|
|
9582
9710
|
]),
|
|
9583
|
-
_createElementVNode("div", { class: "form-hint" },
|
|
9711
|
+
_createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('modal.openclaw.quick.modelNameHint')), 1 /* TEXT */)
|
|
9584
9712
|
]),
|
|
9585
9713
|
_createElementVNode("div", { class: "form-group" }, [
|
|
9586
9714
|
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('field.contextAndMaxOutput')), 1 /* TEXT */),
|
|
@@ -9606,12 +9734,12 @@ return function render(_ctx, _cache) {
|
|
|
9606
9734
|
_createElementVNode("button", {
|
|
9607
9735
|
class: "btn btn-cancel btn-sm",
|
|
9608
9736
|
onClick: _ctx.prevAccordionStep
|
|
9609
|
-
},
|
|
9737
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.prev')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
9610
9738
|
_createElementVNode("button", {
|
|
9611
9739
|
class: "btn btn-confirm btn-sm",
|
|
9612
9740
|
onClick: _ctx.nextAccordionStep,
|
|
9613
9741
|
disabled: !_ctx.openclawQuick.modelId
|
|
9614
|
-
},
|
|
9742
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.next')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
9615
9743
|
])
|
|
9616
9744
|
], 512 /* NEED_PATCH */), [
|
|
9617
9745
|
[_vShow, _ctx.openclawAccordionStep === 2]
|
|
@@ -9636,7 +9764,7 @@ return function render(_ctx, _cache) {
|
|
|
9636
9764
|
], 64 /* STABLE_FRAGMENT */))
|
|
9637
9765
|
]),
|
|
9638
9766
|
_createElementVNode("span", { class: "accordion-title" }, _toDisplayString(_ctx.t('modal.openclaw.quick.optionsTitle')), 1 /* TEXT */),
|
|
9639
|
-
_createElementVNode("span", { class: "accordion-status" },
|
|
9767
|
+
_createElementVNode("span", { class: "accordion-status" }, _toDisplayString(_ctx.t('modal.openclaw.quick.advancedOptions')), 1 /* TEXT */),
|
|
9640
9768
|
(_openBlock(), _createElementBlock("svg", {
|
|
9641
9769
|
class: "accordion-chevron",
|
|
9642
9770
|
viewBox: "0 0 24 24",
|
|
@@ -9680,11 +9808,11 @@ return function render(_ctx, _cache) {
|
|
|
9680
9808
|
_createElementVNode("button", {
|
|
9681
9809
|
class: "btn btn-cancel btn-sm",
|
|
9682
9810
|
onClick: _ctx.prevAccordionStep
|
|
9683
|
-
},
|
|
9811
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.prev')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
9684
9812
|
_createElementVNode("button", {
|
|
9685
9813
|
class: "btn btn-confirm btn-sm",
|
|
9686
9814
|
onClick: _ctx.finishAccordionStep
|
|
9687
|
-
},
|
|
9815
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.finish')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9688
9816
|
])
|
|
9689
9817
|
], 512 /* NEED_PATCH */), [
|
|
9690
9818
|
[_vShow, _ctx.openclawAccordionStep === 3]
|
|
@@ -9700,24 +9828,24 @@ return function render(_ctx, _cache) {
|
|
|
9700
9828
|
]),
|
|
9701
9829
|
_createElementVNode("div", { class: "structured-section" }, [
|
|
9702
9830
|
_createElementVNode("div", { class: "structured-header" }, [
|
|
9703
|
-
_createElementVNode("span", { class: "structured-title" },
|
|
9831
|
+
_createElementVNode("span", { class: "structured-title" }, _toDisplayString(_ctx.t('modal.openclaw.structured.title')), 1 /* TEXT */),
|
|
9704
9832
|
_createElementVNode("span", { class: "form-hint" }, _toDisplayString(_ctx.t('modal.openclaw.structured.writeHint')), 1 /* TEXT */)
|
|
9705
9833
|
]),
|
|
9706
9834
|
_createElementVNode("div", { class: "structured-grid" }, [
|
|
9707
9835
|
_createElementVNode("div", { class: "structured-card" }, [
|
|
9708
9836
|
_createElementVNode("div", { class: "structured-card-title" }, "Agents Defaults"),
|
|
9709
9837
|
_createElementVNode("div", { class: "form-group" }, [
|
|
9710
|
-
_createElementVNode("label", { class: "form-label" },
|
|
9838
|
+
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('modal.openclaw.structured.primaryModel')), 1 /* TEXT */),
|
|
9711
9839
|
_withDirectives(_createElementVNode("input", {
|
|
9712
9840
|
"onUpdate:modelValue": $event => ((_ctx.openclawStructured.agentPrimary) = $event),
|
|
9713
9841
|
class: "form-input",
|
|
9714
|
-
placeholder:
|
|
9715
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
9842
|
+
placeholder: _ctx.t('modal.openclaw.structured.providerModelPlaceholder')
|
|
9843
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9716
9844
|
[_vModelText, _ctx.openclawStructured.agentPrimary]
|
|
9717
9845
|
])
|
|
9718
9846
|
]),
|
|
9719
9847
|
_createElementVNode("div", { class: "form-group" }, [
|
|
9720
|
-
_createElementVNode("label", { class: "form-label" },
|
|
9848
|
+
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('modal.openclaw.structured.fallbackModels')), 1 /* TEXT */),
|
|
9721
9849
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.openclawStructured.agentFallbacks, (item, index) => {
|
|
9722
9850
|
return (_openBlock(), _createElementBlock("div", {
|
|
9723
9851
|
class: "list-row",
|
|
@@ -9726,28 +9854,28 @@ return function render(_ctx, _cache) {
|
|
|
9726
9854
|
_withDirectives(_createElementVNode("input", {
|
|
9727
9855
|
"onUpdate:modelValue": $event => ((_ctx.openclawStructured.agentFallbacks[index]) = $event),
|
|
9728
9856
|
class: "form-input",
|
|
9729
|
-
placeholder:
|
|
9730
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
9857
|
+
placeholder: _ctx.t('modal.openclaw.structured.providerModelPlaceholder')
|
|
9858
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9731
9859
|
[_vModelText, _ctx.openclawStructured.agentFallbacks[index]]
|
|
9732
9860
|
]),
|
|
9733
9861
|
_createElementVNode("button", {
|
|
9734
9862
|
class: "btn-mini delete",
|
|
9735
9863
|
onClick: $event => (_ctx.removeOpenclawFallback(index))
|
|
9736
|
-
},
|
|
9864
|
+
}, _toDisplayString(_ctx.t('common.delete')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9737
9865
|
]))
|
|
9738
9866
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
9739
9867
|
_createElementVNode("button", {
|
|
9740
9868
|
class: "btn-mini",
|
|
9741
9869
|
onClick: _ctx.addOpenclawFallback
|
|
9742
|
-
},
|
|
9870
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.addFallback')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9743
9871
|
]),
|
|
9744
9872
|
_createElementVNode("div", { class: "form-group" }, [
|
|
9745
9873
|
_createElementVNode("label", { class: "form-label" }, "Workspace"),
|
|
9746
9874
|
_withDirectives(_createElementVNode("input", {
|
|
9747
9875
|
"onUpdate:modelValue": $event => ((_ctx.openclawStructured.workspace) = $event),
|
|
9748
9876
|
class: "form-input",
|
|
9749
|
-
placeholder:
|
|
9750
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
9877
|
+
placeholder: _ctx.t('modal.openclaw.structured.workspacePlaceholder')
|
|
9878
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9751
9879
|
[_vModelText, _ctx.openclawStructured.workspace]
|
|
9752
9880
|
])
|
|
9753
9881
|
]),
|
|
@@ -9756,8 +9884,8 @@ return function render(_ctx, _cache) {
|
|
|
9756
9884
|
_withDirectives(_createElementVNode("input", {
|
|
9757
9885
|
"onUpdate:modelValue": $event => ((_ctx.openclawStructured.timeout) = $event),
|
|
9758
9886
|
class: "form-input",
|
|
9759
|
-
placeholder:
|
|
9760
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
9887
|
+
placeholder: _ctx.t('modal.openclaw.structured.timeoutPlaceholder')
|
|
9888
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9761
9889
|
[_vModelText, _ctx.openclawStructured.timeout]
|
|
9762
9890
|
])
|
|
9763
9891
|
]),
|
|
@@ -9766,8 +9894,8 @@ return function render(_ctx, _cache) {
|
|
|
9766
9894
|
_withDirectives(_createElementVNode("input", {
|
|
9767
9895
|
"onUpdate:modelValue": $event => ((_ctx.openclawStructured.contextTokens) = $event),
|
|
9768
9896
|
class: "form-input",
|
|
9769
|
-
placeholder:
|
|
9770
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
9897
|
+
placeholder: _ctx.t('modal.openclaw.structured.contextTokensPlaceholder')
|
|
9898
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9771
9899
|
[_vModelText, _ctx.openclawStructured.contextTokens]
|
|
9772
9900
|
])
|
|
9773
9901
|
]),
|
|
@@ -9776,8 +9904,8 @@ return function render(_ctx, _cache) {
|
|
|
9776
9904
|
_withDirectives(_createElementVNode("input", {
|
|
9777
9905
|
"onUpdate:modelValue": $event => ((_ctx.openclawStructured.maxConcurrent) = $event),
|
|
9778
9906
|
class: "form-input",
|
|
9779
|
-
placeholder:
|
|
9780
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
9907
|
+
placeholder: _ctx.t('modal.openclaw.structured.maxConcurrentPlaceholder')
|
|
9908
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9781
9909
|
[_vModelText, _ctx.openclawStructured.maxConcurrent]
|
|
9782
9910
|
])
|
|
9783
9911
|
])
|
|
@@ -9785,7 +9913,7 @@ return function render(_ctx, _cache) {
|
|
|
9785
9913
|
_createElementVNode("div", { class: "structured-card" }, [
|
|
9786
9914
|
_createElementVNode("div", { class: "structured-card-title" }, "Env"),
|
|
9787
9915
|
_createElementVNode("div", { class: "form-group" }, [
|
|
9788
|
-
_createElementVNode("label", { class: "form-label" },
|
|
9916
|
+
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('modal.openclaw.structured.envVars')), 1 /* TEXT */),
|
|
9789
9917
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.openclawStructured.envItems, (item, index) => {
|
|
9790
9918
|
return (_openBlock(), _createElementBlock("div", {
|
|
9791
9919
|
class: "list-row",
|
|
@@ -9809,17 +9937,17 @@ return function render(_ctx, _cache) {
|
|
|
9809
9937
|
_createElementVNode("button", {
|
|
9810
9938
|
class: "btn-mini",
|
|
9811
9939
|
onClick: $event => (_ctx.toggleOpenclawEnvItem(index))
|
|
9812
|
-
}, _toDisplayString(item.show ? '
|
|
9940
|
+
}, _toDisplayString(item.show ? _ctx.t('common.hide') : _ctx.t('common.show')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
9813
9941
|
_createElementVNode("button", {
|
|
9814
9942
|
class: "btn-mini delete",
|
|
9815
9943
|
onClick: $event => (_ctx.removeOpenclawEnvItem(index))
|
|
9816
|
-
},
|
|
9944
|
+
}, _toDisplayString(_ctx.t('common.delete')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9817
9945
|
]))
|
|
9818
9946
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
9819
9947
|
_createElementVNode("button", {
|
|
9820
9948
|
class: "btn-mini",
|
|
9821
9949
|
onClick: _ctx.addOpenclawEnvItem
|
|
9822
|
-
},
|
|
9950
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.addEnvVar')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9823
9951
|
])
|
|
9824
9952
|
]),
|
|
9825
9953
|
_createElementVNode("div", { class: "structured-card" }, [
|
|
@@ -9848,20 +9976,20 @@ return function render(_ctx, _cache) {
|
|
|
9848
9976
|
_withDirectives(_createElementVNode("input", {
|
|
9849
9977
|
"onUpdate:modelValue": $event => ((_ctx.openclawStructured.toolsAllow[index]) = $event),
|
|
9850
9978
|
class: "form-input",
|
|
9851
|
-
placeholder:
|
|
9852
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
9979
|
+
placeholder: _ctx.t('modal.openclaw.structured.allowPlaceholder')
|
|
9980
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9853
9981
|
[_vModelText, _ctx.openclawStructured.toolsAllow[index]]
|
|
9854
9982
|
]),
|
|
9855
9983
|
_createElementVNode("button", {
|
|
9856
9984
|
class: "btn-mini delete",
|
|
9857
9985
|
onClick: $event => (_ctx.removeOpenclawToolsAllow(index))
|
|
9858
|
-
},
|
|
9986
|
+
}, _toDisplayString(_ctx.t('common.delete')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9859
9987
|
]))
|
|
9860
9988
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
9861
9989
|
_createElementVNode("button", {
|
|
9862
9990
|
class: "btn-mini",
|
|
9863
9991
|
onClick: _ctx.addOpenclawToolsAllow
|
|
9864
|
-
},
|
|
9992
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.addAllow')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9865
9993
|
]),
|
|
9866
9994
|
_createElementVNode("div", { class: "form-group" }, [
|
|
9867
9995
|
_createElementVNode("label", { class: "form-label" }, "Deny"),
|
|
@@ -9873,29 +10001,29 @@ return function render(_ctx, _cache) {
|
|
|
9873
10001
|
_withDirectives(_createElementVNode("input", {
|
|
9874
10002
|
"onUpdate:modelValue": $event => ((_ctx.openclawStructured.toolsDeny[index]) = $event),
|
|
9875
10003
|
class: "form-input",
|
|
9876
|
-
placeholder:
|
|
9877
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue"]), [
|
|
10004
|
+
placeholder: _ctx.t('modal.openclaw.structured.denyPlaceholder')
|
|
10005
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "placeholder"]), [
|
|
9878
10006
|
[_vModelText, _ctx.openclawStructured.toolsDeny[index]]
|
|
9879
10007
|
]),
|
|
9880
10008
|
_createElementVNode("button", {
|
|
9881
10009
|
class: "btn-mini delete",
|
|
9882
10010
|
onClick: $event => (_ctx.removeOpenclawToolsDeny(index))
|
|
9883
|
-
},
|
|
10011
|
+
}, _toDisplayString(_ctx.t('common.delete')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9884
10012
|
]))
|
|
9885
10013
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
9886
10014
|
_createElementVNode("button", {
|
|
9887
10015
|
class: "btn-mini",
|
|
9888
10016
|
onClick: _ctx.addOpenclawToolsDeny
|
|
9889
|
-
},
|
|
10017
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.addDeny')), 9 /* TEXT, PROPS */, ["onClick"])
|
|
9890
10018
|
])
|
|
9891
10019
|
]),
|
|
9892
10020
|
_createElementVNode("div", { class: "structured-card" }, [
|
|
9893
|
-
_createElementVNode("div", { class: "structured-card-title" },
|
|
10021
|
+
_createElementVNode("div", { class: "structured-card-title" }, _toDisplayString(_ctx.t('modal.openclaw.structured.providersTitle')), 1 /* TEXT */),
|
|
9894
10022
|
(_ctx.openclawProviders.length === 0)
|
|
9895
10023
|
? (_openBlock(), _createElementBlock("div", {
|
|
9896
10024
|
key: 0,
|
|
9897
10025
|
class: "form-hint"
|
|
9898
|
-
},
|
|
10026
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.noProviders')), 1 /* TEXT */))
|
|
9899
10027
|
: (_openBlock(), _createElementBlock("div", {
|
|
9900
10028
|
key: 1,
|
|
9901
10029
|
class: "provider-list"
|
|
@@ -9907,19 +10035,19 @@ return function render(_ctx, _cache) {
|
|
|
9907
10035
|
}, [
|
|
9908
10036
|
_createElementVNode("div", { class: "provider-header" }, [
|
|
9909
10037
|
_createElementVNode("span", { class: "provider-name" }, _toDisplayString(provider.key), 1 /* TEXT */),
|
|
9910
|
-
_createElementVNode("span", { class: "provider-source" }, "
|
|
10038
|
+
_createElementVNode("span", { class: "provider-source" }, _toDisplayString(_ctx.t('modal.openclaw.structured.sourceLabel')) + ": " + _toDisplayString(provider.source), 1 /* TEXT */),
|
|
9911
10039
|
(provider.isActive)
|
|
9912
10040
|
? (_openBlock(), _createElementBlock("span", {
|
|
9913
10041
|
key: 0,
|
|
9914
10042
|
class: "pill configured"
|
|
9915
|
-
},
|
|
10043
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.active')), 1 /* TEXT */))
|
|
9916
10044
|
: _createCommentVNode("v-if", true)
|
|
9917
10045
|
]),
|
|
9918
10046
|
(provider.fields.length === 0)
|
|
9919
10047
|
? (_openBlock(), _createElementBlock("div", {
|
|
9920
10048
|
key: 0,
|
|
9921
10049
|
class: "form-hint"
|
|
9922
|
-
},
|
|
10050
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.noFields')), 1 /* TEXT */))
|
|
9923
10051
|
: (_openBlock(), _createElementBlock("div", {
|
|
9924
10052
|
key: 1,
|
|
9925
10053
|
class: "provider-fields"
|
|
@@ -9941,16 +10069,16 @@ return function render(_ctx, _cache) {
|
|
|
9941
10069
|
? (_openBlock(), _createElementBlock("div", {
|
|
9942
10070
|
key: 2,
|
|
9943
10071
|
class: "form-hint"
|
|
9944
|
-
},
|
|
10072
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.missingProviders', { list: _ctx.openclawMissingProviders.join(', ') })), 1 /* TEXT */))
|
|
9945
10073
|
: _createCommentVNode("v-if", true)
|
|
9946
10074
|
]),
|
|
9947
10075
|
_createElementVNode("div", { class: "structured-card" }, [
|
|
9948
|
-
_createElementVNode("div", { class: "structured-card-title" },
|
|
10076
|
+
_createElementVNode("div", { class: "structured-card-title" }, _toDisplayString(_ctx.t('modal.openclaw.structured.agentsTitle')), 1 /* TEXT */),
|
|
9949
10077
|
(_ctx.openclawAgentsList.length === 0)
|
|
9950
10078
|
? (_openBlock(), _createElementBlock("div", {
|
|
9951
10079
|
key: 0,
|
|
9952
10080
|
class: "form-hint"
|
|
9953
|
-
},
|
|
10081
|
+
}, _toDisplayString(_ctx.t('modal.openclaw.structured.noAgents')), 1 /* TEXT */))
|
|
9954
10082
|
: (_openBlock(), _createElementBlock("div", {
|
|
9955
10083
|
key: 1,
|
|
9956
10084
|
class: "agent-list"
|
|
@@ -9970,13 +10098,13 @@ return function render(_ctx, _cache) {
|
|
|
9970
10098
|
class: "agent-meta"
|
|
9971
10099
|
}, [
|
|
9972
10100
|
(agent.theme)
|
|
9973
|
-
? (_openBlock(), _createElementBlock("span", { key: 0 }, "
|
|
10101
|
+
? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.t('modal.openclaw.structured.themeLabel')) + ": " + _toDisplayString(agent.theme), 1 /* TEXT */))
|
|
9974
10102
|
: _createCommentVNode("v-if", true),
|
|
9975
10103
|
(agent.emoji)
|
|
9976
|
-
? (_openBlock(), _createElementBlock("span", { key: 1 }, "
|
|
10104
|
+
? (_openBlock(), _createElementBlock("span", { key: 1 }, _toDisplayString(_ctx.t('modal.openclaw.structured.emojiLabel')) + ": " + _toDisplayString(agent.emoji), 1 /* TEXT */))
|
|
9977
10105
|
: _createCommentVNode("v-if", true),
|
|
9978
10106
|
(agent.avatar)
|
|
9979
|
-
? (_openBlock(), _createElementBlock("span", { key: 2 }, "
|
|
10107
|
+
? (_openBlock(), _createElementBlock("span", { key: 2 }, _toDisplayString(_ctx.t('modal.openclaw.structured.avatarLabel')) + ": " + _toDisplayString(agent.avatar), 1 /* TEXT */))
|
|
9980
10108
|
: _createCommentVNode("v-if", true)
|
|
9981
10109
|
]))
|
|
9982
10110
|
: _createCommentVNode("v-if", true)
|
|
@@ -9989,7 +10117,7 @@ return function render(_ctx, _cache) {
|
|
|
9989
10117
|
_createElementVNode("button", {
|
|
9990
10118
|
class: "btn btn-confirm secondary",
|
|
9991
10119
|
onClick: _ctx.syncOpenclawStructuredFromText
|
|
9992
|
-
},
|
|
10120
|
+
}, _toDisplayString(_ctx.t('common.refreshFromText')), 9 /* TEXT, PROPS */, ["onClick"]),
|
|
9993
10121
|
_createElementVNode("button", {
|
|
9994
10122
|
class: "btn btn-confirm",
|
|
9995
10123
|
onClick: _ctx.applyOpenclawStructuredToText
|
|
@@ -9997,20 +10125,20 @@ return function render(_ctx, _cache) {
|
|
|
9997
10125
|
])
|
|
9998
10126
|
]),
|
|
9999
10127
|
_createElementVNode("div", { class: "form-group" }, [
|
|
10000
|
-
_createElementVNode("label", { class: "form-label" },
|
|
10128
|
+
_createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('modal.openclaw.editorLabel')), 1 /* TEXT */),
|
|
10001
10129
|
_withDirectives(_createElementVNode("textarea", {
|
|
10002
10130
|
"onUpdate:modelValue": $event => ((_ctx.openclawEditing.content) = $event),
|
|
10003
10131
|
class: "form-input template-editor",
|
|
10004
10132
|
spellcheck: "false",
|
|
10005
10133
|
readonly: _ctx.openclawSaving || _ctx.openclawApplying,
|
|
10006
|
-
placeholder:
|
|
10007
|
-
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "readonly"]), [
|
|
10134
|
+
placeholder: _ctx.t('modal.openclaw.editorPlaceholder')
|
|
10135
|
+
}, null, 8 /* PROPS */, ["onUpdate:modelValue", "readonly", "placeholder"]), [
|
|
10008
10136
|
[_vModelText, _ctx.openclawEditing.content]
|
|
10009
10137
|
]),
|
|
10010
10138
|
_createElementVNode("div", { class: "template-editor-warning" }, [
|
|
10011
10139
|
(_ctx.openclawEditing.lockName && _ctx.isDefaultOpenclawConfig(_ctx.openclawEditing.name))
|
|
10012
|
-
? (_openBlock(), _createElementBlock("span", { key: 0 },
|
|
10013
|
-
: (_openBlock(), _createElementBlock("span", { key: 1 },
|
|
10140
|
+
? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.t('modal.openclaw.defaultConfigHint')), 1 /* TEXT */))
|
|
10141
|
+
: (_openBlock(), _createElementBlock("span", { key: 1 }, _toDisplayString(_ctx.t('modal.openclaw.saveOnlyHint')), 1 /* TEXT */))
|
|
10014
10142
|
])
|
|
10015
10143
|
]),
|
|
10016
10144
|
_createElementVNode("div", { class: "btn-group" }, [
|
|
@@ -10018,24 +10146,24 @@ return function render(_ctx, _cache) {
|
|
|
10018
10146
|
class: "btn btn-cancel",
|
|
10019
10147
|
onClick: _ctx.closeOpenclawConfigModal,
|
|
10020
10148
|
disabled: _ctx.openclawSaving || _ctx.openclawApplying
|
|
10021
|
-
},
|
|
10149
|
+
}, _toDisplayString(_ctx.t('common.cancel')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
10022
10150
|
_createElementVNode("button", {
|
|
10023
10151
|
class: "btn btn-confirm",
|
|
10024
10152
|
onClick: _ctx.saveOpenclawConfig,
|
|
10025
10153
|
disabled: _ctx.openclawSaving || _ctx.openclawApplying || (_ctx.openclawEditing.lockName && _ctx.isDefaultOpenclawConfig(_ctx.openclawEditing.name))
|
|
10026
|
-
}, _toDisplayString(_ctx.openclawSaving ? '
|
|
10154
|
+
}, _toDisplayString(_ctx.openclawSaving ? _ctx.t('common.saving') : _ctx.t('common.save')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
|
|
10027
10155
|
_createElementVNode("button", {
|
|
10028
10156
|
class: "btn btn-confirm secondary",
|
|
10029
10157
|
onClick: _ctx.saveAndApplyOpenclawConfig,
|
|
10030
10158
|
disabled: _ctx.openclawSaving || _ctx.openclawApplying
|
|
10031
|
-
}, _toDisplayString(_ctx.openclawApplying ? '
|
|
10159
|
+
}, _toDisplayString(_ctx.openclawApplying ? _ctx.t('common.applying') : _ctx.t('common.saveApply')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
10032
10160
|
])
|
|
10033
10161
|
])
|
|
10034
10162
|
], 8 /* PROPS */, ["onClick"]))
|
|
10035
10163
|
: _createCommentVNode("v-if", true),
|
|
10036
10164
|
(_ctx.showConfigTemplateModal)
|
|
10037
10165
|
? (_openBlock(), _createElementBlock("div", {
|
|
10038
|
-
key:
|
|
10166
|
+
key: 16,
|
|
10039
10167
|
class: "modal-overlay",
|
|
10040
10168
|
onClick: _withModifiers($event => (!_ctx.configTemplateApplying && _ctx.closeConfigTemplateModal()), ["self"])
|
|
10041
10169
|
}, [
|
|
@@ -10180,7 +10308,7 @@ return function render(_ctx, _cache) {
|
|
|
10180
10308
|
: _createCommentVNode("v-if", true),
|
|
10181
10309
|
(_ctx.showAgentsModal)
|
|
10182
10310
|
? (_openBlock(), _createElementBlock("div", {
|
|
10183
|
-
key:
|
|
10311
|
+
key: 17,
|
|
10184
10312
|
class: "modal-overlay",
|
|
10185
10313
|
onClick: _withModifiers(_ctx.closeAgentsModal, ["self"])
|
|
10186
10314
|
}, [
|
|
@@ -10240,7 +10368,7 @@ return function render(_ctx, _cache) {
|
|
|
10240
10368
|
_createElementVNode("div", { class: "form-hint" }, [
|
|
10241
10369
|
_createTextVNode(_toDisplayString(_ctx.agentsPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
|
|
10242
10370
|
(_ctx.agentsPath)
|
|
10243
|
-
? (_openBlock(), _createElementBlock("span", { key: 0 },
|
|
10371
|
+
? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.paren(_ctx.agentsExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnSave'))), 1 /* TEXT */))
|
|
10244
10372
|
: _createCommentVNode("v-if", true)
|
|
10245
10373
|
])
|
|
10246
10374
|
]),
|
|
@@ -10351,7 +10479,7 @@ return function render(_ctx, _cache) {
|
|
|
10351
10479
|
: _createCommentVNode("v-if", true),
|
|
10352
10480
|
(_ctx.showSkillsModal)
|
|
10353
10481
|
? (_openBlock(), _createElementBlock("div", {
|
|
10354
|
-
key:
|
|
10482
|
+
key: 18,
|
|
10355
10483
|
class: "modal-overlay",
|
|
10356
10484
|
onClick: _withModifiers(_ctx.closeSkillsModal, ["self"])
|
|
10357
10485
|
}, [
|
|
@@ -10656,7 +10784,7 @@ return function render(_ctx, _cache) {
|
|
|
10656
10784
|
}, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange"]),
|
|
10657
10785
|
(_ctx.showHealthCheckModal)
|
|
10658
10786
|
? (_openBlock(), _createElementBlock("div", {
|
|
10659
|
-
key:
|
|
10787
|
+
key: 19,
|
|
10660
10788
|
class: "modal-overlay",
|
|
10661
10789
|
onClick: _withModifiers($event => (_ctx.showHealthCheckModal = false), ["self"])
|
|
10662
10790
|
}, [
|
|
@@ -10680,7 +10808,7 @@ return function render(_ctx, _cache) {
|
|
|
10680
10808
|
_createElementVNode("div", { class: "form-hint" }, [
|
|
10681
10809
|
_createTextVNode(_toDisplayString(_ctx.healthCheckResult.ok ? _ctx.t('config.health.ok') : _ctx.t('config.health.fail')) + " ", 1 /* TEXT */),
|
|
10682
10810
|
(_ctx.healthCheckResult.issues)
|
|
10683
|
-
? (_openBlock(), _createElementBlock("span", { key: 0 },
|
|
10811
|
+
? (_openBlock(), _createElementBlock("span", { key: 0 }, _toDisplayString(_ctx.paren(_ctx.t('config.health.issues', { count: _ctx.healthCheckResult.issues.length }))), 1 /* TEXT */))
|
|
10684
10812
|
: _createCommentVNode("v-if", true)
|
|
10685
10813
|
]),
|
|
10686
10814
|
(_ctx.healthCheckResult.remote && _ctx.healthCheckResult.remote.type === 'remote-health-check')
|
|
@@ -10829,7 +10957,7 @@ return function render(_ctx, _cache) {
|
|
|
10829
10957
|
: _createCommentVNode("v-if", true),
|
|
10830
10958
|
(_ctx.showConfirmDialog)
|
|
10831
10959
|
? (_openBlock(), _createElementBlock("div", {
|
|
10832
|
-
key:
|
|
10960
|
+
key: 20,
|
|
10833
10961
|
class: "modal-overlay",
|
|
10834
10962
|
onClick: _withModifiers(_ctx.closeConfirmDialog, ["self"])
|
|
10835
10963
|
}, [
|
|
@@ -10867,7 +10995,7 @@ return function render(_ctx, _cache) {
|
|
|
10867
10995
|
_createCommentVNode(" Toast "),
|
|
10868
10996
|
(_ctx.message)
|
|
10869
10997
|
? (_openBlock(), _createElementBlock("div", {
|
|
10870
|
-
key:
|
|
10998
|
+
key: 21,
|
|
10871
10999
|
class: _normalizeClass(['toast', _ctx.messageType]),
|
|
10872
11000
|
role: "status",
|
|
10873
11001
|
"aria-live": "polite",
|