codexmate 0.1.3 → 0.1.5
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 +2 -2
- package/README.vi.md +2 -2
- package/README.zh.md +2 -2
- package/cli/analytics-export-args.js +2 -2
- package/cli/session-usage.js +5 -2
- package/cli.js +434 -57
- package/lib/cli-sessions.js +19 -0
- package/package.json +1 -1
- package/web-ui/app.js +2 -2
- package/web-ui/logic.sessions.mjs +5 -5
- package/web-ui/modules/app.computed.dashboard.mjs +0 -4
- package/web-ui/modules/app.computed.session.mjs +2 -1
- package/web-ui/modules/app.methods.session-actions.mjs +12 -4
- package/web-ui/modules/app.methods.session-browser.mjs +8 -4
- package/web-ui/modules/app.methods.session-trash.mjs +2 -2
- package/web-ui/modules/app.methods.startup-claude.mjs +2 -1
- package/web-ui/modules/app.methods.tool-config-permissions.mjs +3 -2
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +2 -1
- package/web-ui/modules/i18n/locales/en.mjs +6 -8
- package/web-ui/modules/i18n/locales/ja.mjs +6 -8
- package/web-ui/modules/i18n/locales/vi.mjs +6 -8
- package/web-ui/modules/i18n/locales/zh-tw.mjs +6 -8
- package/web-ui/modules/i18n/locales/zh.mjs +6 -8
- package/web-ui/partials/index/panel-config-openclaw.html +37 -8
- package/web-ui/partials/index/panel-docs.html +0 -26
- package/web-ui/res/web-ui-render.precompiled.js +175 -163
- package/web-ui/styles/docs-panel.css +75 -90
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
<div class="selector-section">
|
|
8
8
|
<div class="selector-header">
|
|
9
9
|
<span class="selector-title">{{ t('docs.title') }}</span>
|
|
10
|
-
<div class="skills-panel-note docs-section-note">{{ t('docs.subtitle') }}</div>
|
|
11
10
|
</div>
|
|
12
11
|
|
|
13
12
|
<div class="docs-toolbar-grid">
|
|
@@ -54,28 +53,11 @@
|
|
|
54
53
|
<strong class="docs-summary-value">{{ installRegistryPreview || 'npmmirror' }}</strong>
|
|
55
54
|
</div>
|
|
56
55
|
</div>
|
|
57
|
-
|
|
58
|
-
<div class="docs-installed-card">
|
|
59
|
-
<div class="docs-installed-head">
|
|
60
|
-
<span class="docs-installed-title">{{ t('docs.installed.title') }}</span>
|
|
61
|
-
<span class="docs-installed-count">{{ currentInstalledCommandCards.length ? t('docs.installed.count', { count: currentInstalledCommandCards.length }) : t('docs.installed.empty') }}</span>
|
|
62
|
-
</div>
|
|
63
|
-
<div v-if="currentInstalledCommandCards.length" class="docs-installed-list">
|
|
64
|
-
<div v-for="target in currentInstalledCommandCards" :key="'docs-installed-' + target.id" class="docs-installed-item">
|
|
65
|
-
<div class="docs-installed-main">
|
|
66
|
-
<span class="docs-installed-name">{{ target.name }}</span>
|
|
67
|
-
<span class="docs-installed-version">{{ target.version || '—' }}</span>
|
|
68
|
-
</div>
|
|
69
|
-
<code class="docs-installed-command">{{ target.commandPath || target.bin }}</code>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
56
|
</div>
|
|
74
57
|
|
|
75
58
|
<div class="selector-section">
|
|
76
59
|
<div class="selector-header">
|
|
77
60
|
<span class="selector-title">{{ t('docs.section.commands') }}</span>
|
|
78
|
-
<div class="skills-panel-note docs-section-note">{{ t('docs.section.commandsNote') }}</div>
|
|
79
61
|
</div>
|
|
80
62
|
|
|
81
63
|
<div class="install-list docs-install-list">
|
|
@@ -108,7 +90,6 @@
|
|
|
108
90
|
<div class="selector-section">
|
|
109
91
|
<div class="selector-header">
|
|
110
92
|
<span class="selector-title">{{ t('docs.section.faq') }}</span>
|
|
111
|
-
<div class="skills-panel-note docs-section-note">{{ t('docs.section.faqNote') }}</div>
|
|
112
93
|
</div>
|
|
113
94
|
|
|
114
95
|
<div class="docs-help-grid">
|
|
@@ -118,13 +99,6 @@
|
|
|
118
99
|
<li v-for="tip in installTroubleshootingTips" :key="tip">{{ tip }}</li>
|
|
119
100
|
</ul>
|
|
120
101
|
</div>
|
|
121
|
-
<div class="docs-note-card">
|
|
122
|
-
<div class="docs-note-title">{{ t('common.rules') }}</div>
|
|
123
|
-
<ul class="docs-static-list">
|
|
124
|
-
<li>{{ t('docs.rule.1') }}</li>
|
|
125
|
-
<li>{{ t('docs.rule.2') }}</li>
|
|
126
|
-
</ul>
|
|
127
|
-
</div>
|
|
128
102
|
</div>
|
|
129
103
|
</div>
|
|
130
104
|
</div>
|
|
@@ -2249,6 +2249,28 @@ return function render(_ctx, _cache) {
|
|
|
2249
2249
|
]))
|
|
2250
2250
|
: _createCommentVNode("v-if", true),
|
|
2251
2251
|
_createElementVNode("div", { class: "openclaw-layout" }, [
|
|
2252
|
+
_createElementVNode("section", {
|
|
2253
|
+
class: "tool-config-write-card",
|
|
2254
|
+
"aria-label": _ctx.t('toolConfig.openclaw.title')
|
|
2255
|
+
}, [
|
|
2256
|
+
_createElementVNode("div", { class: "tool-config-write-copy" }, [
|
|
2257
|
+
_createElementVNode("div", { class: "tool-config-write-title" }, _toDisplayString(_ctx.t('toolConfig.openclaw.title')), 1 /* TEXT */),
|
|
2258
|
+
_createElementVNode("p", { class: "tool-config-write-desc" }, _toDisplayString(_ctx.t('toolConfig.openclaw.desc')), 1 /* TEXT */)
|
|
2259
|
+
]),
|
|
2260
|
+
_createElementVNode("label", { class: "settings-toggle-row tool-config-write-toggle" }, [
|
|
2261
|
+
_createElementVNode("input", {
|
|
2262
|
+
type: "checkbox",
|
|
2263
|
+
autocomplete: "off",
|
|
2264
|
+
checked: _ctx.isToolConfigWriteAllowed('openclaw'),
|
|
2265
|
+
disabled: _ctx.toolConfigPermissionSaving.openclaw,
|
|
2266
|
+
onChange: $event => (_ctx.setToolConfigPermission('openclaw', $event.target.checked))
|
|
2267
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "disabled", "onChange"]),
|
|
2268
|
+
_createElementVNode("span", { class: "toggle-track" }, [
|
|
2269
|
+
_createElementVNode("span", { class: "toggle-thumb" })
|
|
2270
|
+
]),
|
|
2271
|
+
_createElementVNode("span", null, _toDisplayString(_ctx.toolConfigPermissionStatusLabel('openclaw')), 1 /* TEXT */)
|
|
2272
|
+
])
|
|
2273
|
+
], 8 /* PROPS */, ["aria-label"]),
|
|
2252
2274
|
_createElementVNode("section", {
|
|
2253
2275
|
class: "settings-card settings-card--wide openclaw-summary-card",
|
|
2254
2276
|
"aria-label": "OpenClaw 当前摘要"
|
|
@@ -2275,126 +2297,114 @@ return function render(_ctx, _cache) {
|
|
|
2275
2297
|
_createElementVNode("div", { class: "openclaw-diagnostic-note" }, " 本页仅管理配置与工作区文件。 ")
|
|
2276
2298
|
])
|
|
2277
2299
|
]),
|
|
2278
|
-
_createElementVNode("
|
|
2279
|
-
|
|
2280
|
-
_createElementVNode("div", { class: "openclaw-tools-grid" }, [
|
|
2281
|
-
_createElementVNode("button", {
|
|
2282
|
-
class: "openclaw-tool-btn",
|
|
2283
|
-
onClick: _ctx.openOpenclawAgentsEditor,
|
|
2284
|
-
disabled: _ctx.loading || !!_ctx.initError || _ctx.agentsLoading
|
|
2285
|
-
}, [
|
|
2286
|
-
_createElementVNode("div", { class: "tool-icon" }, "📄"),
|
|
2287
|
-
_createElementVNode("div", { class: "tool-content" }, [
|
|
2288
|
-
_createElementVNode("div", { class: "tool-title" }, "AGENTS.md"),
|
|
2289
|
-
_createElementVNode("div", { class: "tool-meta" }, _toDisplayString(_ctx.agentsLoading ? _ctx.t('config.modelLoading') : 'Workspace file'), 1 /* TEXT */)
|
|
2290
|
-
]),
|
|
2291
|
-
(_openBlock(), _createElementBlock("svg", {
|
|
2292
|
-
class: "tool-chevron",
|
|
2293
|
-
viewBox: "0 0 24 24",
|
|
2294
|
-
fill: "none",
|
|
2295
|
-
stroke: "currentColor",
|
|
2296
|
-
"stroke-width": "2"
|
|
2297
|
-
}, [
|
|
2298
|
-
_createElementVNode("path", { d: "M9 18l6-6-6-6" })
|
|
2299
|
-
]))
|
|
2300
|
-
], 8 /* PROPS */, ["onClick", "disabled"]),
|
|
2301
|
-
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getOpenclawQuickWorkspaceFiles(), (fileName) => {
|
|
2302
|
-
return (_openBlock(), _createElementBlock("button", {
|
|
2303
|
-
key: fileName,
|
|
2304
|
-
type: "button",
|
|
2305
|
-
class: "openclaw-tool-btn",
|
|
2306
|
-
onClick: $event => (_ctx.openOpenclawQuickWorkspaceFile(fileName)),
|
|
2307
|
-
disabled: _ctx.loading || !!_ctx.initError || _ctx.agentsLoading
|
|
2308
|
-
}, [
|
|
2309
|
-
_createElementVNode("div", { class: "tool-icon" }, "📄"),
|
|
2310
|
-
_createElementVNode("div", { class: "tool-content" }, [
|
|
2311
|
-
_createElementVNode("div", { class: "tool-title" }, _toDisplayString(fileName), 1 /* TEXT */),
|
|
2312
|
-
_createElementVNode("div", { class: "tool-meta" }, "Workspace file")
|
|
2313
|
-
]),
|
|
2314
|
-
(_openBlock(), _createElementBlock("svg", {
|
|
2315
|
-
class: "tool-chevron",
|
|
2316
|
-
viewBox: "0 0 24 24",
|
|
2317
|
-
fill: "none",
|
|
2318
|
-
stroke: "currentColor",
|
|
2319
|
-
"stroke-width": "2"
|
|
2320
|
-
}, [
|
|
2321
|
-
_createElementVNode("path", { d: "M9 18l6-6-6-6" })
|
|
2322
|
-
]))
|
|
2323
|
-
], 8 /* PROPS */, ["onClick", "disabled"]))
|
|
2324
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
2325
|
-
])
|
|
2326
|
-
])
|
|
2327
|
-
]),
|
|
2328
|
-
_createElementVNode("section", {
|
|
2329
|
-
class: "settings-card settings-card--wide openclaw-configs-card",
|
|
2330
|
-
"aria-labelledby": "openclaw-configs-title"
|
|
2300
|
+
_createElementVNode("div", {
|
|
2301
|
+
class: _normalizeClass(["tool-config-write-scope", { locked: !_ctx.isToolConfigWriteAllowed('openclaw') }])
|
|
2331
2302
|
}, [
|
|
2332
|
-
_createElementVNode("div", { class: "
|
|
2333
|
-
_createElementVNode("
|
|
2334
|
-
(
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
_createElementVNode("div", { class: "card-subtitle" }, _toDisplayString(_ctx.openclawSubtitle(config)), 1 /* TEXT */),
|
|
2353
|
-
(_ctx.openclawHasContent(config))
|
|
2354
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
2355
|
-
key: 0,
|
|
2356
|
-
class: "openclaw-config-summary-mini"
|
|
2357
|
-
}, [
|
|
2358
|
-
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getOpenclawConfigSummary(config).slice(0, 3), (item) => {
|
|
2359
|
-
return (_openBlock(), _createElementBlock("span", {
|
|
2360
|
-
key: item.key
|
|
2361
|
-
}, _toDisplayString(item.label) + ": " + _toDisplayString(item.value), 1 /* TEXT */))
|
|
2362
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
2363
|
-
]))
|
|
2364
|
-
: _createCommentVNode("v-if", true)
|
|
2365
|
-
])
|
|
2366
|
-
]),
|
|
2367
|
-
_createElementVNode("div", { class: "card-trailing" }, [
|
|
2368
|
-
_createElementVNode("span", {
|
|
2369
|
-
class: _normalizeClass(['pill', _ctx.openclawHasContent(config) ? 'configured' : 'empty'])
|
|
2370
|
-
}, _toDisplayString(_ctx.openclawHasContent(config) ? _ctx.t('openclaw.configured') : _ctx.t('openclaw.notConfigured')), 3 /* TEXT, CLASS */),
|
|
2371
|
-
_createElementVNode("div", {
|
|
2372
|
-
class: "card-actions",
|
|
2373
|
-
onClick: _withModifiers(() => {}, ["stop"])
|
|
2303
|
+
_createElementVNode("div", { class: "tool-config-write-body" }, [
|
|
2304
|
+
_createElementVNode("section", { class: "settings-card settings-card--wide openclaw-workspace-card" }, [
|
|
2305
|
+
_createElementVNode("div", { class: "settings-card-body" }, [
|
|
2306
|
+
_createElementVNode("div", { class: "openclaw-tools-grid" }, [
|
|
2307
|
+
_createElementVNode("button", {
|
|
2308
|
+
class: "openclaw-tool-btn",
|
|
2309
|
+
onClick: _ctx.openOpenclawAgentsEditor,
|
|
2310
|
+
disabled: _ctx.loading || !!_ctx.initError || _ctx.agentsLoading || !_ctx.isToolConfigWriteAllowed('openclaw')
|
|
2311
|
+
}, [
|
|
2312
|
+
_createElementVNode("div", { class: "tool-icon" }, "📄"),
|
|
2313
|
+
_createElementVNode("div", { class: "tool-content" }, [
|
|
2314
|
+
_createElementVNode("div", { class: "tool-title" }, "AGENTS.md"),
|
|
2315
|
+
_createElementVNode("div", { class: "tool-meta" }, _toDisplayString(_ctx.agentsLoading ? _ctx.t('config.modelLoading') : 'Workspace file'), 1 /* TEXT */)
|
|
2316
|
+
]),
|
|
2317
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
2318
|
+
class: "tool-chevron",
|
|
2319
|
+
viewBox: "0 0 24 24",
|
|
2320
|
+
fill: "none",
|
|
2321
|
+
stroke: "currentColor",
|
|
2322
|
+
"stroke-width": "2"
|
|
2374
2323
|
}, [
|
|
2375
|
-
_createElementVNode("
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2324
|
+
_createElementVNode("path", { d: "M9 18l6-6-6-6" })
|
|
2325
|
+
]))
|
|
2326
|
+
], 8 /* PROPS */, ["onClick", "disabled"]),
|
|
2327
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getOpenclawQuickWorkspaceFiles(), (fileName) => {
|
|
2328
|
+
return (_openBlock(), _createElementBlock("button", {
|
|
2329
|
+
key: fileName,
|
|
2330
|
+
type: "button",
|
|
2331
|
+
class: "openclaw-tool-btn",
|
|
2332
|
+
onClick: $event => (_ctx.openOpenclawQuickWorkspaceFile(fileName)),
|
|
2333
|
+
disabled: _ctx.loading || !!_ctx.initError || _ctx.agentsLoading || !_ctx.isToolConfigWriteAllowed('openclaw')
|
|
2334
|
+
}, [
|
|
2335
|
+
_createElementVNode("div", { class: "tool-icon" }, "📄"),
|
|
2336
|
+
_createElementVNode("div", { class: "tool-content" }, [
|
|
2337
|
+
_createElementVNode("div", { class: "tool-title" }, _toDisplayString(fileName), 1 /* TEXT */),
|
|
2338
|
+
_createElementVNode("div", { class: "tool-meta" }, "Workspace file")
|
|
2339
|
+
]),
|
|
2340
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
2341
|
+
class: "tool-chevron",
|
|
2342
|
+
viewBox: "0 0 24 24",
|
|
2343
|
+
fill: "none",
|
|
2344
|
+
stroke: "currentColor",
|
|
2345
|
+
"stroke-width": "2"
|
|
2380
2346
|
}, [
|
|
2381
|
-
(
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2347
|
+
_createElementVNode("path", { d: "M9 18l6-6-6-6" })
|
|
2348
|
+
]))
|
|
2349
|
+
], 8 /* PROPS */, ["onClick", "disabled"]))
|
|
2350
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
2351
|
+
])
|
|
2352
|
+
])
|
|
2353
|
+
]),
|
|
2354
|
+
_createElementVNode("section", {
|
|
2355
|
+
class: "settings-card settings-card--wide openclaw-configs-card",
|
|
2356
|
+
"aria-labelledby": "openclaw-configs-title"
|
|
2357
|
+
}, [
|
|
2358
|
+
_createElementVNode("div", { class: "settings-card-body" }, [
|
|
2359
|
+
_createElementVNode("div", { class: "card-list openclaw-card-list" }, [
|
|
2360
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.openclawConfigs, (config, name) => {
|
|
2361
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
2362
|
+
key: name,
|
|
2363
|
+
class: _normalizeClass(['card', { active: _ctx.currentOpenclawConfig === name, disabled: !_ctx.isToolConfigWriteAllowed('openclaw') }]),
|
|
2364
|
+
onClick: $event => (_ctx.isToolConfigWriteAllowed('openclaw') && _ctx.applyOpenclawConfig(name)),
|
|
2365
|
+
onKeydown: [
|
|
2366
|
+
_withKeys(_withModifiers($event => (_ctx.isToolConfigWriteAllowed('openclaw') && _ctx.applyOpenclawConfig(name)), ["self","prevent"]), ["enter"]),
|
|
2367
|
+
_withKeys(_withModifiers($event => (_ctx.isToolConfigWriteAllowed('openclaw') && _ctx.applyOpenclawConfig(name)), ["self","prevent"]), ["space"])
|
|
2368
|
+
],
|
|
2369
|
+
tabindex: _ctx.isToolConfigWriteAllowed('openclaw') ? 0 : -1,
|
|
2370
|
+
role: "button",
|
|
2371
|
+
"aria-label": _ctx.t('openclaw.action.applyAria', { name }),
|
|
2372
|
+
"aria-disabled": !_ctx.isToolConfigWriteAllowed('openclaw') ? 'true' : null,
|
|
2373
|
+
"aria-current": _ctx.currentOpenclawConfig === name ? 'true' : null
|
|
2374
|
+
}, [
|
|
2375
|
+
_createElementVNode("div", { class: "card-leading" }, [
|
|
2376
|
+
_createElementVNode("div", { class: "card-icon" }, _toDisplayString(name.charAt(0).toUpperCase()), 1 /* TEXT */),
|
|
2377
|
+
_createElementVNode("div", { class: "card-content" }, [
|
|
2378
|
+
_createElementVNode("div", { class: "card-title" }, _toDisplayString(name), 1 /* TEXT */),
|
|
2379
|
+
_createElementVNode("div", { class: "card-subtitle" }, _toDisplayString(_ctx.openclawSubtitle(config)), 1 /* TEXT */),
|
|
2380
|
+
(_ctx.openclawHasContent(config))
|
|
2381
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
2382
|
+
key: 0,
|
|
2383
|
+
class: "openclaw-config-summary-mini"
|
|
2384
|
+
}, [
|
|
2385
|
+
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getOpenclawConfigSummary(config).slice(0, 3), (item) => {
|
|
2386
|
+
return (_openBlock(), _createElementBlock("span", {
|
|
2387
|
+
key: item.key
|
|
2388
|
+
}, _toDisplayString(item.label) + ": " + _toDisplayString(item.value), 1 /* TEXT */))
|
|
2389
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
2390
|
+
]))
|
|
2391
|
+
: _createCommentVNode("v-if", true)
|
|
2392
|
+
])
|
|
2393
|
+
]),
|
|
2394
|
+
_createElementVNode("div", { class: "card-trailing" }, [
|
|
2395
|
+
_createElementVNode("span", {
|
|
2396
|
+
class: _normalizeClass(['pill', _ctx.openclawHasContent(config) ? 'configured' : 'empty'])
|
|
2397
|
+
}, _toDisplayString(_ctx.openclawHasContent(config) ? _ctx.t('openclaw.configured') : _ctx.t('openclaw.notConfigured')), 3 /* TEXT, CLASS */),
|
|
2398
|
+
_createElementVNode("div", {
|
|
2399
|
+
class: "card-actions",
|
|
2400
|
+
onClick: _withModifiers(() => {}, ["stop"])
|
|
2386
2401
|
}, [
|
|
2387
|
-
_createElementVNode("
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
key: 0,
|
|
2394
|
-
class: "card-action-btn delete",
|
|
2395
|
-
onClick: $event => (_ctx.deleteOpenclawConfig(name)),
|
|
2396
|
-
"aria-label": _ctx.t('openclaw.action.deleteAria', { name }),
|
|
2397
|
-
title: _ctx.t('openclaw.action.delete')
|
|
2402
|
+
_createElementVNode("button", {
|
|
2403
|
+
class: "card-action-btn",
|
|
2404
|
+
onClick: $event => (_ctx.openOpenclawEditModal(name)),
|
|
2405
|
+
disabled: !_ctx.isToolConfigWriteAllowed('openclaw'),
|
|
2406
|
+
"aria-label": _ctx.t('openclaw.action.editAria', { name }),
|
|
2407
|
+
title: _ctx.t('openclaw.action.edit')
|
|
2398
2408
|
}, [
|
|
2399
2409
|
(_openBlock(), _createElementBlock("svg", {
|
|
2400
2410
|
viewBox: "0 0 24 24",
|
|
@@ -2402,18 +2412,55 @@ return function render(_ctx, _cache) {
|
|
|
2402
2412
|
stroke: "currentColor",
|
|
2403
2413
|
"stroke-width": "2"
|
|
2404
2414
|
}, [
|
|
2405
|
-
_createElementVNode("path", { d: "
|
|
2406
|
-
_createElementVNode("path", { d: "
|
|
2415
|
+
_createElementVNode("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
2416
|
+
_createElementVNode("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
2407
2417
|
]))
|
|
2408
|
-
], 8 /* PROPS */, ["onClick", "aria-label", "title"])
|
|
2409
|
-
|
|
2410
|
-
|
|
2418
|
+
], 8 /* PROPS */, ["onClick", "disabled", "aria-label", "title"]),
|
|
2419
|
+
(!_ctx.isDefaultOpenclawConfig(name, config))
|
|
2420
|
+
? (_openBlock(), _createElementBlock("button", {
|
|
2421
|
+
key: 0,
|
|
2422
|
+
class: "card-action-btn delete",
|
|
2423
|
+
onClick: $event => (_ctx.deleteOpenclawConfig(name)),
|
|
2424
|
+
"aria-label": _ctx.t('openclaw.action.deleteAria', { name }),
|
|
2425
|
+
title: _ctx.t('openclaw.action.delete')
|
|
2426
|
+
}, [
|
|
2427
|
+
(_openBlock(), _createElementBlock("svg", {
|
|
2428
|
+
viewBox: "0 0 24 24",
|
|
2429
|
+
fill: "none",
|
|
2430
|
+
stroke: "currentColor",
|
|
2431
|
+
"stroke-width": "2"
|
|
2432
|
+
}, [
|
|
2433
|
+
_createElementVNode("path", { d: "M3 6h18" }),
|
|
2434
|
+
_createElementVNode("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
|
|
2435
|
+
]))
|
|
2436
|
+
], 8 /* PROPS */, ["onClick", "aria-label", "title"]))
|
|
2437
|
+
: _createCommentVNode("v-if", true)
|
|
2438
|
+
], 8 /* PROPS */, ["onClick"])
|
|
2439
|
+
])
|
|
2440
|
+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, ["onClick", "onKeydown", "tabindex", "aria-label", "aria-disabled", "aria-current"]))
|
|
2441
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
2442
|
+
])
|
|
2443
|
+
])
|
|
2444
|
+
]),
|
|
2445
|
+
(!_ctx.isToolConfigWriteAllowed('openclaw'))
|
|
2446
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
2447
|
+
key: 0,
|
|
2448
|
+
class: "tool-config-write-overlay"
|
|
2449
|
+
}, [
|
|
2450
|
+
_createElementVNode("div", { class: "tool-config-write-overlay-card" }, [
|
|
2451
|
+
_createElementVNode("div", { class: "tool-config-write-overlay-title" }, _toDisplayString(_ctx.t('toolConfig.openclaw.lockedTitle')), 1 /* TEXT */),
|
|
2452
|
+
_createElementVNode("p", null, _toDisplayString(_ctx.t('toolConfig.openclaw.lockedDesc')), 1 /* TEXT */),
|
|
2453
|
+
_createElementVNode("button", {
|
|
2454
|
+
type: "button",
|
|
2455
|
+
class: "btn-tool",
|
|
2456
|
+
onClick: $event => (_ctx.setToolConfigPermission('openclaw', true)),
|
|
2457
|
+
disabled: _ctx.toolConfigPermissionSaving.openclaw
|
|
2458
|
+
}, _toDisplayString(_ctx.t('toolConfig.enableWrite')), 9 /* TEXT, PROPS */, ["onClick", "disabled"])
|
|
2411
2459
|
])
|
|
2412
|
-
]
|
|
2413
|
-
|
|
2414
|
-
])
|
|
2460
|
+
]))
|
|
2461
|
+
: _createCommentVNode("v-if", true)
|
|
2415
2462
|
])
|
|
2416
|
-
])
|
|
2463
|
+
], 2 /* CLASS */)
|
|
2417
2464
|
])
|
|
2418
2465
|
], 8 /* PROPS */, ["aria-labelledby"]), [
|
|
2419
2466
|
[_vShow, _ctx.mainTab === 'config' && _ctx.configMode === 'openclaw']
|
|
@@ -5418,8 +5465,7 @@ return function render(_ctx, _cache) {
|
|
|
5418
5465
|
}, [
|
|
5419
5466
|
_createElementVNode("div", { class: "selector-section" }, [
|
|
5420
5467
|
_createElementVNode("div", { class: "selector-header" }, [
|
|
5421
|
-
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('docs.title')), 1 /* TEXT */)
|
|
5422
|
-
_createElementVNode("div", { class: "skills-panel-note docs-section-note" }, _toDisplayString(_ctx.t('docs.subtitle')), 1 /* TEXT */)
|
|
5468
|
+
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('docs.title')), 1 /* TEXT */)
|
|
5423
5469
|
]),
|
|
5424
5470
|
_createElementVNode("div", { class: "docs-toolbar-grid" }, [
|
|
5425
5471
|
_createElementVNode("div", { class: "docs-toolbar-card" }, [
|
|
@@ -5514,37 +5560,11 @@ return function render(_ctx, _cache) {
|
|
|
5514
5560
|
_createElementVNode("span", { class: "docs-summary-label" }, _toDisplayString(_ctx.t('common.registry')), 1 /* TEXT */),
|
|
5515
5561
|
_createElementVNode("strong", { class: "docs-summary-value" }, _toDisplayString(_ctx.installRegistryPreview || 'npmmirror'), 1 /* TEXT */)
|
|
5516
5562
|
])
|
|
5517
|
-
]),
|
|
5518
|
-
_createElementVNode("div", { class: "docs-installed-card" }, [
|
|
5519
|
-
_createElementVNode("div", { class: "docs-installed-head" }, [
|
|
5520
|
-
_createElementVNode("span", { class: "docs-installed-title" }, _toDisplayString(_ctx.t('docs.installed.title')), 1 /* TEXT */),
|
|
5521
|
-
_createElementVNode("span", { class: "docs-installed-count" }, _toDisplayString(_ctx.currentInstalledCommandCards.length ? _ctx.t('docs.installed.count', { count: _ctx.currentInstalledCommandCards.length }) : _ctx.t('docs.installed.empty')), 1 /* TEXT */)
|
|
5522
|
-
]),
|
|
5523
|
-
(_ctx.currentInstalledCommandCards.length)
|
|
5524
|
-
? (_openBlock(), _createElementBlock("div", {
|
|
5525
|
-
key: 0,
|
|
5526
|
-
class: "docs-installed-list"
|
|
5527
|
-
}, [
|
|
5528
|
-
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.currentInstalledCommandCards, (target) => {
|
|
5529
|
-
return (_openBlock(), _createElementBlock("div", {
|
|
5530
|
-
key: 'docs-installed-' + target.id,
|
|
5531
|
-
class: "docs-installed-item"
|
|
5532
|
-
}, [
|
|
5533
|
-
_createElementVNode("div", { class: "docs-installed-main" }, [
|
|
5534
|
-
_createElementVNode("span", { class: "docs-installed-name" }, _toDisplayString(target.name), 1 /* TEXT */),
|
|
5535
|
-
_createElementVNode("span", { class: "docs-installed-version" }, _toDisplayString(target.version || '—'), 1 /* TEXT */)
|
|
5536
|
-
]),
|
|
5537
|
-
_createElementVNode("code", { class: "docs-installed-command" }, _toDisplayString(target.commandPath || target.bin), 1 /* TEXT */)
|
|
5538
|
-
]))
|
|
5539
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
5540
|
-
]))
|
|
5541
|
-
: _createCommentVNode("v-if", true)
|
|
5542
5563
|
])
|
|
5543
5564
|
]),
|
|
5544
5565
|
_createElementVNode("div", { class: "selector-section" }, [
|
|
5545
5566
|
_createElementVNode("div", { class: "selector-header" }, [
|
|
5546
|
-
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('docs.section.commands')), 1 /* TEXT */)
|
|
5547
|
-
_createElementVNode("div", { class: "skills-panel-note docs-section-note" }, _toDisplayString(_ctx.t('docs.section.commandsNote')), 1 /* TEXT */)
|
|
5567
|
+
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('docs.section.commands')), 1 /* TEXT */)
|
|
5548
5568
|
]),
|
|
5549
5569
|
_createElementVNode("div", { class: "install-list docs-install-list" }, [
|
|
5550
5570
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.installTargetCards, (target) => {
|
|
@@ -5604,8 +5624,7 @@ return function render(_ctx, _cache) {
|
|
|
5604
5624
|
]),
|
|
5605
5625
|
_createElementVNode("div", { class: "selector-section" }, [
|
|
5606
5626
|
_createElementVNode("div", { class: "selector-header" }, [
|
|
5607
|
-
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('docs.section.faq')), 1 /* TEXT */)
|
|
5608
|
-
_createElementVNode("div", { class: "skills-panel-note docs-section-note" }, _toDisplayString(_ctx.t('docs.section.faqNote')), 1 /* TEXT */)
|
|
5627
|
+
_createElementVNode("span", { class: "selector-title" }, _toDisplayString(_ctx.t('docs.section.faq')), 1 /* TEXT */)
|
|
5609
5628
|
]),
|
|
5610
5629
|
_createElementVNode("div", { class: "docs-help-grid" }, [
|
|
5611
5630
|
_createElementVNode("div", { class: "docs-note-card" }, [
|
|
@@ -5615,13 +5634,6 @@ return function render(_ctx, _cache) {
|
|
|
5615
5634
|
return (_openBlock(), _createElementBlock("li", { key: tip }, _toDisplayString(tip), 1 /* TEXT */))
|
|
5616
5635
|
}), 128 /* KEYED_FRAGMENT */))
|
|
5617
5636
|
])
|
|
5618
|
-
]),
|
|
5619
|
-
_createElementVNode("div", { class: "docs-note-card" }, [
|
|
5620
|
-
_createElementVNode("div", { class: "docs-note-title" }, _toDisplayString(_ctx.t('common.rules')), 1 /* TEXT */),
|
|
5621
|
-
_createElementVNode("ul", { class: "docs-static-list" }, [
|
|
5622
|
-
_createElementVNode("li", null, _toDisplayString(_ctx.t('docs.rule.1')), 1 /* TEXT */),
|
|
5623
|
-
_createElementVNode("li", null, _toDisplayString(_ctx.t('docs.rule.2')), 1 /* TEXT */)
|
|
5624
|
-
])
|
|
5625
5637
|
])
|
|
5626
5638
|
])
|
|
5627
5639
|
])
|