@lsamien/yaoyao 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -8
- package/bin/hermes-yaoyao.mjs +10 -1
- package/build-info.json +15 -3
- package/desktop/main.mjs +21 -55
- package/dist/admin/admin.html +18 -0
- package/dist/admin/assets/AccountPage-BM-5BzEC.js +2 -0
- package/dist/admin/assets/AccountPage-BM-5BzEC.js.map +1 -0
- package/dist/admin/assets/AccountPage-DuED6n3Z.css +1 -0
- package/dist/admin/assets/AppIcon-Ci5jJQ_z.css +1 -0
- package/dist/admin/assets/AppIcon-DT0aZXKp.js +2 -0
- package/dist/admin/assets/AppIcon-DT0aZXKp.js.map +1 -0
- package/dist/admin/assets/AuditPage-BYC3Sj8A.js +2 -0
- package/dist/admin/assets/AuditPage-BYC3Sj8A.js.map +1 -0
- package/dist/admin/assets/AuditPage-CCU02Ssr.css +1 -0
- package/dist/admin/assets/DesktopHostSettingsPanel-0ExrDTcn.css +1 -0
- package/dist/admin/assets/DesktopHostSettingsPanel-va4JiNPy.js +3 -0
- package/dist/admin/assets/DesktopHostSettingsPanel-va4JiNPy.js.map +1 -0
- package/dist/admin/assets/DevicesPage-D7-OiBsf.js +2 -0
- package/dist/admin/assets/DevicesPage-D7-OiBsf.js.map +1 -0
- package/dist/admin/assets/DevicesPage-vlD4SH1G.css +1 -0
- package/dist/admin/assets/ExecutionPage-C7dAaW56.css +1 -0
- package/dist/admin/assets/ExecutionPage-yK_unxZe.js +4 -0
- package/dist/admin/assets/ExecutionPage-yK_unxZe.js.map +1 -0
- package/dist/admin/assets/HermesModelSettingsPanel-CjdtWrj3.css +1 -0
- package/dist/admin/assets/HermesModelSettingsPanel-DbvAMOaL.js +4 -0
- package/dist/admin/assets/HermesModelSettingsPanel-DbvAMOaL.js.map +1 -0
- package/dist/admin/assets/LocalVmSettingsPanel-Mts0IE2D.js +2 -0
- package/dist/admin/assets/LocalVmSettingsPanel-Mts0IE2D.js.map +1 -0
- package/dist/admin/assets/MemoryPage-BbN5Cy7z.js +2 -0
- package/dist/admin/assets/MemoryPage-BbN5Cy7z.js.map +1 -0
- package/dist/admin/assets/NetworkPage-CFr7H5d3.css +1 -0
- package/dist/admin/assets/NetworkPage-DJpVHDkh.js +2 -0
- package/dist/admin/assets/NetworkPage-DJpVHDkh.js.map +1 -0
- package/dist/admin/assets/OverviewPage-C6p0VjPP.css +1 -0
- package/dist/admin/assets/OverviewPage-COSbych-.js +2 -0
- package/dist/admin/assets/OverviewPage-COSbych-.js.map +1 -0
- package/dist/admin/assets/PushPage-DPIZOOyb.js +2 -0
- package/dist/admin/assets/PushPage-DPIZOOyb.js.map +1 -0
- package/dist/admin/assets/RunnerSettingsPanel-CcDBl75r.css +1 -0
- package/dist/admin/assets/RunnerSettingsPanel-DVkI577k.js +4 -0
- package/dist/admin/assets/RunnerSettingsPanel-DVkI577k.js.map +1 -0
- package/dist/admin/assets/SystemManagementPanel-CPqP2Jjj.js +6 -0
- package/dist/admin/assets/SystemManagementPanel-CPqP2Jjj.js.map +1 -0
- package/dist/admin/assets/SystemManagementPanel-bwpHvkQn.css +1 -0
- package/dist/admin/assets/UpdatePage-pSh40naO.js +2 -0
- package/dist/admin/assets/UpdatePage-pSh40naO.js.map +1 -0
- package/dist/admin/assets/UpdatePage-sEtLezMA.css +1 -0
- package/dist/admin/assets/UsersPage-BArUB_g5.js +2 -0
- package/dist/admin/assets/UsersPage-BArUB_g5.js.map +1 -0
- package/dist/admin/assets/VoicePage-Bt778ia-.js +2 -0
- package/dist/admin/assets/VoicePage-Bt778ia-.js.map +1 -0
- package/dist/admin/assets/VoicePage-CVMwNSdM.css +1 -0
- package/dist/admin/assets/_plugin-vue_export-helper-B5sAOsbt.js +2 -0
- package/dist/admin/assets/_plugin-vue_export-helper-B5sAOsbt.js.map +1 -0
- package/dist/admin/assets/admin-BuMvp0yU.css +1 -0
- package/dist/admin/assets/admin-C-rH6P63.js +4 -0
- package/dist/admin/assets/admin-C-rH6P63.js.map +1 -0
- package/dist/admin/assets/agentManagement-BJKdxRR4.js +2 -0
- package/dist/admin/assets/agentManagement-BJKdxRR4.js.map +1 -0
- package/dist/admin/assets/id-JJk5w4N8.js +2 -0
- package/dist/admin/assets/id-JJk5w4N8.js.map +1 -0
- package/dist/admin/assets/webOrigin-B8RkRJQC.js +2 -0
- package/dist/admin/assets/webOrigin-B8RkRJQC.js.map +1 -0
- package/dist/admin/brand/AppIcon-1024.png +0 -0
- package/dist/admin/icons/apple-touch-icon.png +0 -0
- package/dist/admin/icons/favicon-32.png +0 -0
- package/dist/admin/icons/icon-192.png +0 -0
- package/dist/admin/icons/icon-512.png +0 -0
- package/dist/admin/icons/logo-64.png +0 -0
- package/dist/admin/manifest.webmanifest +21 -0
- package/dist/admin/provider-logos/airtable.svg +13 -0
- package/dist/admin/provider-logos/discord.svg +15 -0
- package/dist/admin/provider-logos/github.svg +10 -0
- package/dist/admin/provider-logos/gmail.svg +1 -0
- package/dist/admin/provider-logos/googlecalendar.svg +148 -0
- package/dist/admin/provider-logos/googledrive.svg +25 -0
- package/dist/admin/provider-logos/linear.svg +5 -0
- package/dist/admin/provider-logos/notion.svg +11 -0
- package/dist/admin/provider-logos/outlook.svg +76 -0
- package/dist/admin/provider-logos/slack.svg +22 -0
- package/dist/admin/provider-logos/trello.svg +19 -0
- package/dist/admin/provider-logos/twitter.svg +128 -0
- package/dist/admin/setting-previews/dark.png +0 -0
- package/dist/admin/setting-previews/light.png +0 -0
- package/dist/admin/setting-previews/system.png +0 -0
- package/dist/assets/AboutDialog-CuQClWtI.js +2 -0
- package/dist/assets/AboutDialog-CuQClWtI.js.map +1 -0
- package/dist/assets/{AgentAvatar-C37KUyoW.js → AgentAvatar-DGAfESjC.js} +3 -3
- package/dist/assets/AgentAvatar-DGAfESjC.js.map +1 -0
- package/dist/assets/{AppIcon-BPvEfb2q.js → AppIcon-BSQW3rNo.js} +2 -2
- package/dist/assets/{AppIcon-BPvEfb2q.js.map → AppIcon-BSQW3rNo.js.map} +1 -1
- package/dist/assets/BotAutomationsView-F2DUYiMz.js +2 -0
- package/dist/assets/{BotAutomationsView-gKt3Ynba.js.map → BotAutomationsView-F2DUYiMz.js.map} +1 -1
- package/dist/assets/BotPluginsDialog-GWss_AWD.js +2 -0
- package/dist/assets/{BotPluginsDialog-BDb-ov2N.js.map → BotPluginsDialog-GWss_AWD.js.map} +1 -1
- package/dist/assets/BotSettingsDialog-CJbJ-etj.css +1 -0
- package/dist/assets/BotSettingsDialog-DeAfjy5V.js +2 -0
- package/dist/assets/BotSettingsDialog-DeAfjy5V.js.map +1 -0
- package/dist/assets/BrandMark-y7NnuoOH.js +2 -0
- package/dist/assets/BrandMark-y7NnuoOH.js.map +1 -0
- package/dist/assets/ComputerPanel-BttazrS8.js +2 -0
- package/dist/assets/{ComputerPanel-CzE73VoT.js.map → ComputerPanel-BttazrS8.js.map} +1 -1
- package/dist/assets/ComputerViewerView-cIjIUTqR.js +2 -0
- package/dist/assets/{ComputerViewerView-Lc3DX3Qp.js.map → ComputerViewerView-cIjIUTqR.js.map} +1 -1
- package/dist/assets/ConversationsView-BLo8VLvG.js +81 -0
- package/dist/assets/ConversationsView-BLo8VLvG.js.map +1 -0
- package/dist/assets/{ConversationsView-Cbj8h0ms.css → ConversationsView-Y7Npknvu.css} +1 -1
- package/dist/assets/StandaloneDialog-Dakzt5_X.js +2 -0
- package/dist/assets/{StandaloneDialog-DibKSM6U.js.map → StandaloneDialog-Dakzt5_X.js.map} +1 -1
- package/dist/assets/TeamAvatar-C5dodifX.js +2 -0
- package/dist/assets/TeamAvatar-C5dodifX.js.map +1 -0
- package/dist/assets/WorkspaceKnowledgePanel-B6xMyHdp.css +1 -0
- package/dist/assets/WorkspaceKnowledgePanel-ChnX-SdQ.js +2 -0
- package/dist/assets/WorkspaceKnowledgePanel-ChnX-SdQ.js.map +1 -0
- package/dist/assets/WorkspaceRoutinesPanel-Dfi6aiNd.js +2 -0
- package/dist/assets/{WorkspaceRoutinesPanel-CIJJtGi1.js.map → WorkspaceRoutinesPanel-Dfi6aiNd.js.map} +1 -1
- package/dist/assets/{_plugin-vue_export-helper-CW5Ldrk2.js → _plugin-vue_export-helper-CscYwSBt.js} +2 -2
- package/dist/assets/_plugin-vue_export-helper-CscYwSBt.js.map +1 -0
- package/dist/assets/browser-B97PQaMt.js.map +1 -1
- package/dist/assets/client-DlFcPeeo.js +2 -0
- package/dist/assets/{client-BQtZaYs8.js.map → client-DlFcPeeo.js.map} +1 -1
- package/dist/assets/docx-preview-DZusoPTe.js.map +1 -1
- package/dist/assets/{index-BRikiCOi.css → index-CXNB3OJV.css} +1 -1
- package/dist/assets/index-q-PRe7O6.js +3 -0
- package/dist/assets/index-q-PRe7O6.js.map +1 -0
- package/dist/assets/pdf-tIZzkLfe.js.map +1 -1
- package/dist/assets/vue-router-BhrrTMUg.js +2 -0
- package/dist/assets/vue-router-BhrrTMUg.js.map +1 -0
- package/dist/index.html +9 -9
- package/dist-server/server/admin/app.js +291 -0
- package/dist-server/server/admin/audit.js +106 -0
- package/dist-server/server/admin/routes.js +68 -0
- package/dist-server/server/admin/sessions.js +121 -0
- package/dist-server/server/admin/throttle.js +51 -0
- package/dist-server/server/app.js +94 -22
- package/dist-server/server/computerControls.js +1 -1
- package/dist-server/server/config.js +26 -0
- package/dist-server/server/desktopHosts.js +57 -0
- package/dist-server/server/index.js +46 -0
- package/dist-server/server/localAuth.js +59 -8
- package/dist-server/server/routes.js +4 -4
- package/dist-server/server/security.js +5 -3
- package/dist-server/server/workspaceRoutes.js +4 -4
- package/package.json +2 -2
- package/release.json +3 -3
- package/dist/assets/AboutDialog-nXDYG57h.js +0 -2
- package/dist/assets/AboutDialog-nXDYG57h.js.map +0 -1
- package/dist/assets/AgentAvatar-C37KUyoW.js.map +0 -1
- package/dist/assets/BotAutomationsView-gKt3Ynba.js +0 -2
- package/dist/assets/BotPluginsDialog-BDb-ov2N.js +0 -2
- package/dist/assets/BotSettingsDialog-DqA2zJZK.js +0 -5
- package/dist/assets/BotSettingsDialog-DqA2zJZK.js.map +0 -1
- package/dist/assets/BotSettingsDialog-yxqKMuZ-.css +0 -1
- package/dist/assets/BrandMark-DHKCL6jN.js +0 -2
- package/dist/assets/BrandMark-DHKCL6jN.js.map +0 -1
- package/dist/assets/ComputerPanel-CzE73VoT.js +0 -2
- package/dist/assets/ComputerViewerView-Lc3DX3Qp.js +0 -2
- package/dist/assets/ConversationsView-CTqxBOQ9.js +0 -83
- package/dist/assets/ConversationsView-CTqxBOQ9.js.map +0 -1
- package/dist/assets/LocalVmSettingsPanel-D2kMqDFb.js +0 -2
- package/dist/assets/LocalVmSettingsPanel-D2kMqDFb.js.map +0 -1
- package/dist/assets/RunnerSettingsPanel-C85I5Md_.css +0 -1
- package/dist/assets/RunnerSettingsPanel-Hw8OyWFI.js +0 -4
- package/dist/assets/RunnerSettingsPanel-Hw8OyWFI.js.map +0 -1
- package/dist/assets/StandaloneDialog-DibKSM6U.js +0 -2
- package/dist/assets/SystemManagementPanel-5uMrQ0km.css +0 -1
- package/dist/assets/SystemManagementPanel-_N_phucL.js +0 -7
- package/dist/assets/SystemManagementPanel-_N_phucL.js.map +0 -1
- package/dist/assets/TeamAvatar-C9jl8KF_.js +0 -2
- package/dist/assets/TeamAvatar-C9jl8KF_.js.map +0 -1
- package/dist/assets/UpdateCheckDialog-CPKcCSFt.js +0 -2
- package/dist/assets/UpdateCheckDialog-CPKcCSFt.js.map +0 -1
- package/dist/assets/UpdateCheckDialog-CRlyWnE7.css +0 -1
- package/dist/assets/WorkspaceRoutinesPanel-CIJJtGi1.js +0 -2
- package/dist/assets/_plugin-vue_export-helper-CW5Ldrk2.js.map +0 -1
- package/dist/assets/client-BQtZaYs8.js +0 -2
- package/dist/assets/index-B9T7NLfA.js +0 -3
- package/dist/assets/index-B9T7NLfA.js.map +0 -1
- package/dist/assets/localVm-owThjmhy.js +0 -2
- package/dist/assets/localVm-owThjmhy.js.map +0 -1
- package/dist/assets/systemUpdate-CXMCaKgI.js +0 -2
- package/dist/assets/systemUpdate-CXMCaKgI.js.map +0 -1
- package/dist/assets/vue-router-DYhC9cWJ.js +0 -2
- package/dist/assets/vue-router-DYhC9cWJ.js.map +0 -1
- /package/dist/{assets → admin/assets}/LocalVmSettingsPanel-Dedfhqlq.css +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 夭夭 AI
|
|
2
2
|
|
|
3
|
-
当前 Web 与 macOS
|
|
3
|
+
当前 Web 与 macOS 客户端版本为 **v0.5.2**,Android 版本为 **1.5.0(230)**。下载与升级步骤见[发布说明](docs/releases/v0.5.2.md)。
|
|
4
4
|
|
|
5
5
|
夭夭 AI 为网页、iOS 和安卓提供统一的 Agent、群聊、文件库及语音配置服务。Hermes(0.23.0)已内置在夭夭服务中,由服务端直接拉起内核进程执行任务,不再需要单独运行 9119 服务。
|
|
6
6
|
|
|
@@ -29,7 +29,11 @@ npm run build
|
|
|
29
29
|
npm start
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
默认 Web 地址为 `http://127.0.0.1:15300`。首次打开 Web
|
|
32
|
+
默认 Web 地址为 `http://127.0.0.1:15300`。首次打开 Web 时自行创建管理员账号;服务不会生成固定的默认账号或密码。之后在服务器本机打开管理后台 `http://127.0.0.1:15301`,用管理员账号登录,在「模型服务」中配置模型供应商和默认模型。
|
|
33
|
+
|
|
34
|
+
### 管理后台
|
|
35
|
+
|
|
36
|
+
用户、模型服务与 API Key、执行与权限、电脑与执行节点、本地虚拟机、推送、语音、访问地址和更新,都在独立的管理后台中设置。后台与 Web 同进程运行,但使用单独的端口(默认只监听 `127.0.0.1:15301`)、登录和会话,只允许管理员用账号密码登录;高风险操作需再次确认密码,所有操作记入审计日志。夭夭 Web 不再提供管理接口。从其他电脑管理请用 SSH 隧道。详见 [管理后台](docs/admin-console.md)。
|
|
33
37
|
|
|
34
38
|
### 内置 Hermes
|
|
35
39
|
|
|
@@ -37,7 +41,7 @@ npm start
|
|
|
37
41
|
- 数据保存在 `<数据目录>/hermes`:默认 Profile 即该目录,具名 Profile 在 `hermes/profiles/<名称>`;每个 Bot 使用独立的 `bots/<Bot ID>/runtime`,以所选 Profile 为父级读取配置和凭据。
|
|
38
42
|
- 首次启动时如果检测到原有 `~/.hermes`(或 `YAOYAO_IMPORT_HERMES_HOME` 指定的目录),会只读导入会话、Profile、配置、凭据、技能和附件,不修改原目录;导入失败时从空数据启动并在日志中提示。设置 `YAOYAO_IMPORT_HERMES=0` 可跳过导入。
|
|
39
43
|
- Hermes 原生终端、文件和代码工具在服务器上执行,按系统设置中的审批策略逐次确认。
|
|
40
|
-
-
|
|
44
|
+
- 管理员在管理后台「模型服务」中配置供应商与默认模型、订阅账号登录(设备码 / 粘贴凭据)、API Key 与工具密钥,以及视觉、压缩、标题等辅助模型,替代原来的 Hermes Dashboard 页面。可按 Profile 分别配置。
|
|
41
45
|
- 不再支持:连接外部 9119、工具桥插件 `yaoyao-bot-bridge`、Hermes 看板(Kanban)、直连远程 Hermes 的节点。设置 `HERMES_YAOYAO_UPSTREAM*`、`HERMES_YAOYAO_SUPERVISE_DASHBOARD`、`HERMES_YAOYAO_BRIDGE_*` 后,启动时会提示这些变量已停用。
|
|
42
46
|
- 迁移方案与实施记录见 [内置 Hermes 迁移](docs/embedded-hermes-migration.md)。
|
|
43
47
|
|
|
@@ -75,11 +79,11 @@ yaoyao service install
|
|
|
75
79
|
|
|
76
80
|
| 镜像 | 架构 |
|
|
77
81
|
| --- | --- |
|
|
78
|
-
| `samienluo/yaoyao:v0.5.
|
|
79
|
-
| `samienluo/yaoyao:v0.5.
|
|
80
|
-
| `samienluo/yaoyao:latest` | 最新稳定版通用镜像,当前与 `v0.5.
|
|
82
|
+
| `samienluo/yaoyao:v0.5.2-amd` | AMD64 |
|
|
83
|
+
| `samienluo/yaoyao:v0.5.2` | 自动匹配 AMD64 / ARM64 |
|
|
84
|
+
| `samienluo/yaoyao:latest` | 最新稳定版通用镜像,当前与 `v0.5.2` 相同 |
|
|
81
85
|
|
|
82
|
-
准备好 Docker Engine/Compose,在仓库目录将 `docker.env.example` 复制为 `docker.env`。镜像已内置 Hermes 内核和 Python 依赖;如需导入原有 Hermes 数据,设置 `HERMES_YAOYAO_HERMES_DIR` 并在启动命令中加 `-f compose.hermes-import.yaml`。设置 `HERMES_YAOYAO_IMAGE=samienluo/yaoyao:v0.5.
|
|
86
|
+
准备好 Docker Engine/Compose,在仓库目录将 `docker.env.example` 复制为 `docker.env`。镜像已内置 Hermes 内核和 Python 依赖;如需导入原有 Hermes 数据,设置 `HERMES_YAOYAO_HERMES_DIR` 并在启动命令中加 `-f compose.hermes-import.yaml`。设置 `HERMES_YAOYAO_IMAGE=samienluo/yaoyao:v0.5.2`(或 `samienluo/yaoyao:latest`),即可使用远程镜像:
|
|
83
87
|
|
|
84
88
|
```sh
|
|
85
89
|
docker compose --env-file docker.env pull web
|
|
@@ -95,7 +99,7 @@ docker compose --env-file docker.env config --quiet
|
|
|
95
99
|
docker compose --env-file docker.env up -d --build
|
|
96
100
|
```
|
|
97
101
|
|
|
98
|
-
默认访问 `http://127.0.0.1:15300`。应用数据保存在 `yaoyao-data` 命名卷,容器内路径为 `/home/node/.yaoyao
|
|
102
|
+
默认访问 `http://127.0.0.1:15300`。应用数据保存在 `yaoyao-data` 命名卷,容器内路径为 `/home/node/.yaoyao`;默认工作目录 `/home/node/Agents` 保存在 `yaoyao-home` 命名卷。首次打开页面创建管理员账号,并在管理后台(`http://127.0.0.1:15301`)的「模型服务」中配置模型。
|
|
99
103
|
|
|
100
104
|
宿主机连接、局域网访问、验证及升级步骤见 [Docker 部署说明](docs/docker-install.md)。
|
|
101
105
|
|
package/bin/hermes-yaoyao.mjs
CHANGED
|
@@ -40,6 +40,10 @@ function environment(env = process.env) {
|
|
|
40
40
|
const allowed = [
|
|
41
41
|
'HERMES_YAOYAO_HOST',
|
|
42
42
|
'HERMES_YAOYAO_PORT',
|
|
43
|
+
'YAOYAO_ADMIN_HOST',
|
|
44
|
+
'YAOYAO_ADMIN_PORT',
|
|
45
|
+
'YAOYAO_ADMIN_ALLOW_IPS',
|
|
46
|
+
'YAOYAO_ADMIN_INSECURE_HTTP',
|
|
43
47
|
'HERMES_YAOYAO_ALLOWED_HOSTS',
|
|
44
48
|
'HERMES_YAOYAO_HOME',
|
|
45
49
|
'HERMES_YAOYAO_TLS_CERT',
|
|
@@ -239,7 +243,12 @@ async function main() {
|
|
|
239
243
|
if (group === 'uploads' && command === 'prune') return pruneUploads(args)
|
|
240
244
|
if (group === 'setup') { await prepareKernel({ root: serviceRoot, force: command === '--force' }); process.stdout.write('内置 Hermes 内核已就绪\n'); return }
|
|
241
245
|
if (group === 'doctor') { verifyKernel({ root: serviceRoot }); return }
|
|
242
|
-
|
|
246
|
+
if (group === 'admin') {
|
|
247
|
+
const port = process.env.YAOYAO_ADMIN_PORT || '15301'
|
|
248
|
+
process.stdout.write(`管理后台:http://127.0.0.1:${port}\n只允许管理员账号登录。从其他电脑访问请使用 SSH 隧道:ssh -L ${port}:127.0.0.1:${port} 这台服务器\n`)
|
|
249
|
+
return
|
|
250
|
+
}
|
|
251
|
+
process.stdout.write(`夭夭 AI\n\n用法:\n yaoyao setup [--force] 准备内置 Hermes 内核\n yaoyao doctor 检查内置 Hermes 内核\n yaoyao admin 显示管理后台地址\n yaoyao service install|start|restart|stop|status|uninstall\n yaoyao version | --version | -v\n yaoyao uploads prune --older-than 30 --yes\n`)
|
|
243
252
|
}
|
|
244
253
|
|
|
245
254
|
export function isMainModule(entry = process.argv[1]) {
|
package/build-info.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "75d787d4b39da42fc2cdb04d1f864e33e56f0673",
|
|
3
3
|
"ancestors": [
|
|
4
|
+
"75d787d4b39da42fc2cdb04d1f864e33e56f0673",
|
|
5
|
+
"40951b273262fc4984f9015d00a9436eb401b484",
|
|
6
|
+
"a68ebbcf2757ceabdea7b7654b7a18162d431166",
|
|
7
|
+
"dd1239bbeb01541e09c5ec10b0f21b895417e7ed",
|
|
8
|
+
"93ea4558858f0dd4bff5544532c9a11ca38e54de",
|
|
9
|
+
"daa0f4c44c4c8d303a3c2363545e1662684636fc",
|
|
10
|
+
"729fb19855edf4369be082d81ea65f21a289f2d3",
|
|
11
|
+
"e5ef649ea0d6fff5784c80b5db1b08095b919668",
|
|
12
|
+
"6ba818f227f2db770528d782a72b65a1f6944c25",
|
|
13
|
+
"eaf5db6e80ce8127a368595b35786781be81bdbc",
|
|
14
|
+
"e4c6cdc9ac44f3259f70afc6fd2ca2f829dae228",
|
|
15
|
+
"241ecf97f6083fd016f3895fcc0c0e3a7d5b5248",
|
|
4
16
|
"637829aa65c2cd616b967a3cdbcc1797cfe8e670",
|
|
5
17
|
"6443bb23833cd456194efff8a07551e07e869832",
|
|
6
18
|
"a592dab1f8065f610c0fabdfe7f96251ff7f2898",
|
|
@@ -358,7 +370,7 @@
|
|
|
358
370
|
"905a058b312ca00d6aa82f010f0abca7a3338961",
|
|
359
371
|
"8b62378932e55e8615e701e0bf4689a3f8fd4860"
|
|
360
372
|
],
|
|
361
|
-
"buildNumber":
|
|
373
|
+
"buildNumber": 368,
|
|
362
374
|
"dirty": false,
|
|
363
|
-
"builtAt": "2026-11-
|
|
375
|
+
"builtAt": "2026-11-25T02:24:57.530Z"
|
|
364
376
|
}
|
package/desktop/main.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { synchronizeLocalService, stopLocalService, migrateLocalData } from './s
|
|
|
12
12
|
import { resolveDataHome } from './data-home.mjs'
|
|
13
13
|
import { DesktopEnvironmentHost, DesktopHostCore } from './environment-host.mjs'
|
|
14
14
|
import { DesktopHostManager } from './host-manager.mjs'
|
|
15
|
-
import { remoteRegistration, remoteSession,
|
|
15
|
+
import { remoteRegistration, remoteSession, enrollDesktopHostWithCode, inspectServer, persistRemoteSession, sessionCookieDetails } from './remote-login.mjs'
|
|
16
16
|
import { authorizeCurrentComputer } from './computer-authorization.mjs'
|
|
17
17
|
import { DesktopLoginSessions } from './login-sessions.mjs'
|
|
18
18
|
import { DesktopOnboarding } from './onboarding.mjs'
|
|
@@ -145,6 +145,11 @@ else {
|
|
|
145
145
|
window.show(); window.focus()
|
|
146
146
|
if (serverModeActive && manager) void manager.reconnect().then(() => stateChanged(manager.state)).catch(error => log(error.message))
|
|
147
147
|
}
|
|
148
|
+
/** Complete edition: the local admin console listens next to the Web, on loopback only. */
|
|
149
|
+
function openAdminConsole() {
|
|
150
|
+
if (!platform.server || manager?.state.phase !== 'ready') { void dialog.showMessageBox({ type: 'info', message: '管理后台随本机服务运行', detail: '请先切换到服务器模式并等待服务就绪。连接远程服务器时,请在服务器本机打开管理后台。' }); return }
|
|
151
|
+
safeExternal(`http://127.0.0.1:${port + 1}/`)
|
|
152
|
+
}
|
|
148
153
|
function safeExternal(url) {
|
|
149
154
|
try { const parsed = new URL(url); if (['https:', 'http:', 'mailto:'].includes(parsed.protocol)) void shell.openExternal(url) }
|
|
150
155
|
catch { /* No arbitrary file, shell or custom URL dispatch. */ }
|
|
@@ -209,8 +214,8 @@ else {
|
|
|
209
214
|
if (closing || quitting || remoteMode) return
|
|
210
215
|
const serviceStatus=Menu.getApplicationMenu()?.getMenuItemById('desktop-service-status')
|
|
211
216
|
if(serviceStatus)serviceStatus.label=state.phase==='ready'?'后台服务运行中':state.message
|
|
212
|
-
const
|
|
213
|
-
if(
|
|
217
|
+
const adminConsoleMenu=Menu.getApplicationMenu()?.getMenuItemById('desktop-admin-console')
|
|
218
|
+
if(adminConsoleMenu)adminConsoleMenu.enabled=state.phase==='ready'
|
|
214
219
|
const notice = Menu.getApplicationMenu()?.getMenuItemById('desktop-sync-notice')
|
|
215
220
|
if (notice) notice.visible = Boolean(state.updateNotice)
|
|
216
221
|
const retrySync = Menu.getApplicationMenu()?.getMenuItemById('desktop-sync-retry')
|
|
@@ -390,7 +395,7 @@ else {
|
|
|
390
395
|
const env = { ...process.env, NODE_ENV: 'production', NODE_USE_ENV_PROXY: '0',
|
|
391
396
|
PATH: [join(homedir(), '.local/bin'), '/opt/homebrew/bin', '/usr/local/bin', process.env.PATH || '/usr/bin:/bin'].join(':'),
|
|
392
397
|
HERMES_YAOYAO_DESKTOP: '1', HERMES_YAOYAO_HOME: home, HERMES_YAOYAO_HOST: '127.0.0.1',
|
|
393
|
-
HERMES_YAOYAO_PORT: String(port), HERMES_YAOYAO_STATIC_DIR: join(root, 'ui'),
|
|
398
|
+
HERMES_YAOYAO_PORT: String(port), YAOYAO_ADMIN_HOST: '127.0.0.1', YAOYAO_ADMIN_PORT: String(port + 1), HERMES_YAOYAO_STATIC_DIR: join(root, 'ui'),
|
|
394
399
|
HERMES_YAOYAO_DEFER_HERMES: '1', ...kernelEnvironment() }
|
|
395
400
|
delete env.ELECTRON_RUN_AS_NODE
|
|
396
401
|
delete env.HERMES_YAOYAO_TLS_CERT; delete env.HERMES_YAOYAO_TLS_KEY
|
|
@@ -431,14 +436,6 @@ else {
|
|
|
431
436
|
})
|
|
432
437
|
async function hostAction(action){try{await action()}catch(error){await dialog.showMessageBox(window,{type:'error',message:'电脑操作未完成',detail:error.message})}}
|
|
433
438
|
const appDialog = options => window && !window.isDestroyed() ? dialog.showMessageBox(window, options) : dialog.showMessageBox(options)
|
|
434
|
-
let authorizedOnboardingServer = ''
|
|
435
|
-
async function authorizeComputer(server,session){
|
|
436
|
-
const previous=await hostManager.read().catch(()=>undefined)
|
|
437
|
-
const previousHostId=previous&&new URL(previous.serverURL).origin===new URL(server).origin?previous.hostId:undefined
|
|
438
|
-
const registration=await enrollDesktopHost(session,{name:hostname(),installId:await hostManager.installIdentity(),previousHostId},authFetch)
|
|
439
|
-
await hostManager.adopt({protocol:1,serverURL:server,hostId:registration.host.id,token:registration.token,...(server.startsWith('http://')?{allowInsecureLan:true}:{})})
|
|
440
|
-
return registration
|
|
441
|
-
}
|
|
442
439
|
function requireModePage(event){
|
|
443
440
|
let trusted=false
|
|
444
441
|
try{trusted=event.sender===window?.webContents&&event.senderFrame===window.webContents.mainFrame
|
|
@@ -472,27 +469,17 @@ else {
|
|
|
472
469
|
if (!isCurrent()) throw new Error('当前连接已改变,请重新打开 Bot 设置')
|
|
473
470
|
return authorizeCurrentComputer({ scope, core, origin, cookies, fetchImpl: authFetch, isCurrent })
|
|
474
471
|
})
|
|
475
|
-
ipcMain.handle('desktop:
|
|
472
|
+
ipcMain.handle('desktop:open-admin-console',event=>{requireModePage(event);openAdminConsole()})
|
|
473
|
+
ipcMain.handle('desktop:computer-pair',async(event,code)=>{
|
|
476
474
|
requireModePage(event)
|
|
477
|
-
if(!remoteMode||!remoteURL)
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}catch(error){
|
|
485
|
-
const message=error instanceof Error?error.message:'电脑授权恢复失败'
|
|
486
|
-
hostManager.publish(`电脑授权未恢复:${message}`)
|
|
487
|
-
return {registered:false}
|
|
488
|
-
}
|
|
475
|
+
if(!remoteMode||!remoteURL)throw new Error('请先在客户端模式下登录服务器')
|
|
476
|
+
const previous=await hostManager.read().catch(()=>undefined)
|
|
477
|
+
const previousHostId=previous&&new URL(previous.serverURL).origin===new URL(remoteURL).origin?previous.hostId:undefined
|
|
478
|
+
const registration=await enrollDesktopHostWithCode(remoteURL,String(code??''),{name:hostname(),installId:await hostManager.installIdentity(),previousHostId},authFetch)
|
|
479
|
+
await hostManager.adopt({protocol:1,serverURL:remoteURL,hostId:registration.host.id,token:registration.token,...(remoteURL.startsWith('http://')?{allowInsecureLan:true}:{})})
|
|
480
|
+
await hostManager.start().catch(error=>hostManager.publish(error.message))
|
|
481
|
+
return {registered:true,hostId:registration.host.id}
|
|
489
482
|
})
|
|
490
|
-
async function importDesktopHost(){
|
|
491
|
-
const selection=window&&!window.isDestroyed()
|
|
492
|
-
?await dialog.showOpenDialog(window,{title:'导入电脑配置',properties:['openFile'],filters:[{name:'电脑配置',extensions:['json']}]})
|
|
493
|
-
:await dialog.showOpenDialog({title:'导入电脑配置',properties:['openFile'],filters:[{name:'电脑配置',extensions:['json']}]})
|
|
494
|
-
if(!selection.canceled&&selection.filePaths[0]&&!closing)await hostAction(()=>hostManager.importFile(selection.filePaths[0]))
|
|
495
|
-
}
|
|
496
483
|
if (!preferences.value.remoteServer) {
|
|
497
484
|
const enrolled = await hostManager.read().catch(() => undefined)
|
|
498
485
|
if (enrolled?.serverURL) await preferences.setRemoteServer(enrolled.serverURL)
|
|
@@ -518,21 +505,13 @@ else {
|
|
|
518
505
|
},
|
|
519
506
|
register: ({ serverURL, username, password }) => remoteRegistration(serverURL, { username, password }, authFetch),
|
|
520
507
|
authenticate: async ({ mode, serverURL, setup, username, password }) => {
|
|
521
|
-
authorizedOnboardingServer = ''
|
|
522
508
|
const auth = await remoteSession(serverURL, { setup, username, password }, authFetch)
|
|
523
509
|
if (mode === 'remote') await loginSessions.save(serverURL, auth.cookieDetails)
|
|
524
510
|
await installSessionCookies(serverURL, auth.cookieDetails)
|
|
525
|
-
|
|
526
|
-
if (mode === 'remote' && auth.user.role === 'admin') {
|
|
527
|
-
try { await authorizeComputer(serverURL, auth); authorizedOnboardingServer = serverURL }
|
|
528
|
-
catch (error) { warning = `账号已登录,但电脑授权未恢复:${error.message}。可先进入夭夭,稍后在“电脑”菜单重新授权。` }
|
|
529
|
-
}
|
|
530
|
-
return { username: auth.user.username, warning }
|
|
511
|
+
return { username: auth.user.username }
|
|
531
512
|
},
|
|
532
513
|
activate: async ({ mode, serverURL, remember }) => {
|
|
533
514
|
if (closing || quitting) throw new Error('App 正在退出')
|
|
534
|
-
const alreadyAuthorized = authorizedOnboardingServer === serverURL
|
|
535
|
-
authorizedOnboardingServer = ''
|
|
536
515
|
if (mode === 'remote') {
|
|
537
516
|
// Detach only; an independently installed local service keeps running.
|
|
538
517
|
serverModeActive = false
|
|
@@ -541,18 +520,6 @@ else {
|
|
|
541
520
|
await manager?.stop()
|
|
542
521
|
remoteMode = true; remoteURL = serverURL
|
|
543
522
|
await preferences.setRemoteServer(serverURL)
|
|
544
|
-
if (!alreadyAuthorized) {
|
|
545
|
-
// A remembered browser session skips password authentication. Restore
|
|
546
|
-
// its device authorization only on entry, never during detection.
|
|
547
|
-
try {
|
|
548
|
-
const current = await inspectServer(serverURL, (...args) => net.fetch(...args))
|
|
549
|
-
if (current.authenticated && current.user?.role === 'admin') {
|
|
550
|
-
const cookies = await electronSession.defaultSession.cookies.get({ url: serverURL })
|
|
551
|
-
await authorizeComputer(serverURL, { origin: serverURL, csrfToken: current.csrfToken,
|
|
552
|
-
cookies: cookies.map(cookie => [cookie.name, cookie.value]) })
|
|
553
|
-
}
|
|
554
|
-
} catch (error) { hostManager.publish(`电脑授权未恢复:${error.message}`) }
|
|
555
|
-
}
|
|
556
523
|
const enrolled = await hostManager.read().catch(error => { log(error.message); return undefined })
|
|
557
524
|
if (enrolled && new URL(enrolled.serverURL).origin === new URL(serverURL).origin)
|
|
558
525
|
await hostManager.start().catch(error => hostManager.publish(error.message))
|
|
@@ -645,7 +612,7 @@ else {
|
|
|
645
612
|
{ label: '夭夭', submenu: [{ role: 'about', label: '关于夭夭' }, { type: 'separator' },
|
|
646
613
|
{ id:'desktop-service-status',label:'正在连接后台服务…',enabled:false },
|
|
647
614
|
{ label: '显示窗口', click: show }, { label: '在浏览器中打开', click: () => { const url = serviceURL(); if (url) safeExternal(url) } },
|
|
648
|
-
{ id:'desktop-
|
|
615
|
+
{ id:'desktop-admin-console',label:'打开管理后台…',click:()=>openAdminConsole() },
|
|
649
616
|
{ label: '查看服务日志', click: () => shell.showItemInFolder(logFile) },
|
|
650
617
|
{ id:'desktop-sync-notice', label:'Web 同步待完成:服务忙碌', enabled:false, visible:false },
|
|
651
618
|
{ id:'desktop-sync-retry', label:'重试同步本机 Web…', enabled:false,
|
|
@@ -675,8 +642,7 @@ else {
|
|
|
675
642
|
{id:'desktop-host-ask',label:'启动时询问运行模式',type:'checkbox',checked:preferences.value.startupChoice==='ask',
|
|
676
643
|
click:item=>{void preferences.setStartupChoice(item.checked?'ask':remoteMode?'remote':'local').catch(async error=>{item.checked=preferences.value.startupChoice==='ask';await appDialog({type:'error',message:'无法保存启动偏好',detail:error.message})})}}]},
|
|
677
644
|
{label:'电脑',submenu:[{id:'desktop-host-status',label:'未配置电脑',enabled:false},{type:'separator'},
|
|
678
|
-
{id:'desktop-host-
|
|
679
|
-
{id:'desktop-host-import',label:'导入电脑配置…',click:importDesktopHost},
|
|
645
|
+
{id:'desktop-host-pair',label:'用配对码注册这台电脑…',click:()=>{show();void window.webContents.executeJavaScript("window.dispatchEvent(new CustomEvent('yaoyao:computer-pairing'))")}},
|
|
680
646
|
{id:'desktop-host-reconnect',label:'重新连接',click:()=>hostAction(()=>hostManager.start())},
|
|
681
647
|
{id:'desktop-host-forget',label:'断开并忘记配置',click:()=>hostAction(()=>hostManager.forget())}]},
|
|
682
648
|
{ role: 'editMenu', label: '编辑' }, { role: 'viewMenu', label: '显示' }, { role: 'windowMenu', label: '窗口' },
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
6
|
+
<meta name="theme-color" content="#151515" />
|
|
7
|
+
<meta name="robots" content="noindex" />
|
|
8
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32.png" />
|
|
9
|
+
<title>夭夭管理后台</title>
|
|
10
|
+
<script type="module" crossorigin src="/assets/admin-C-rH6P63.js"></script>
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/_plugin-vue_export-helper-B5sAOsbt.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/webOrigin-B8RkRJQC.js">
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/admin-BuMvp0yU.css">
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<div id="app"></div>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{A as e,C as t,I as n,P as r,S as i,T as a,_ as o,at as s,b as c,t as l,y as u,z as d}from"./_plugin-vue_export-helper-B5sAOsbt.js";import{i as f,l as p,t as m,u as h}from"./admin-C-rH6P63.js";var g={class:`stack`},_={for:`console-username-new`},v=[`disabled`],y={for:`console-username-password`},b=[`disabled`],x={key:0,class:`error`,role:`alert`},S={key:1,class:`notice`,role:`status`},C=[`disabled`],w=l(a({__name:`AccountPage`,props:{session:{}},emits:[`changed`],setup(a,{emit:l}){let w=a,T=l,E=d(w.session.user?.username??``),D=d(``),O=d(!1),k=d(``),A=d(``);r(()=>w.session.user?.username,e=>{e&&!O.value&&(E.value=e)});async function j(){if(!O.value){O.value=!0,k.value=``,A.value=``;try{await f(E.value.trim(),D.value),D.value=``,A.value=`用户名已修改,下次登录请使用新用户名。`,T(`changed`)}catch(e){k.value=e instanceof Error?e.message:`修改失败`}finally{O.value=!1}}}return(r,l)=>(e(),c(`div`,g,[o(`section`,null,[l[5]||=o(`h2`,null,`用户名`,-1),o(`form`,{class:`form`,onSubmit:h(j,[`prevent`])},[o(`label`,_,[l[3]||=i(`新用户名`,-1),n(o(`input`,{id:`console-username-new`,"onUpdate:modelValue":l[0]||=e=>E.value=e,autocomplete:`username`,maxlength:`100`,required:``,disabled:O.value},null,8,v),[[p,E.value]])]),o(`label`,y,[l[4]||=i(`当前密码`,-1),n(o(`input`,{id:`console-username-password`,"onUpdate:modelValue":l[1]||=e=>D.value=e,type:`password`,autocomplete:`current-password`,required:``,disabled:O.value},null,8,b),[[p,D.value]])]),k.value?(e(),c(`p`,x,s(k.value),1)):u(``,!0),A.value?(e(),c(`p`,S,s(A.value),1)):u(``,!0),o(`button`,{class:`solid-button`,disabled:O.value||!D.value||!E.value.trim()||E.value.trim()===a.session.user?.username},s(O.value?`正在保存…`:`修改用户名`),9,C)],32)]),o(`section`,null,[l[6]||=o(`h2`,null,`修改密码`,-1),l[7]||=o(`p`,{class:`hint`},`修改后,这个管理员账号在夭夭 Web、手机和电脑客户端上的登录都会退出。`,-1),t(m,{onDone:l[2]||=e=>T(`changed`)})])]))}}),[[`__scopeId`,`data-v-1e57884a`]]);export{w as default};
|
|
2
|
+
//# sourceMappingURL=AccountPage-BM-5BzEC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountPage-BM-5BzEC.js","names":[],"sources":["../../../src/client/admin/pages/AccountPage.vue","../../../src/client/admin/pages/AccountPage.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ref, watch } from 'vue'\nimport PasswordForm from '../PasswordForm.vue'\nimport { changeUsername, type ConsoleSession } from '../api'\n\nconst props = defineProps<{ session: ConsoleSession }>()\nconst emit = defineEmits<{ changed: [] }>()\nconst username = ref(props.session.user?.username ?? '')\nconst password = ref('')\nconst busy = ref(false)\nconst error = ref('')\nconst notice = ref('')\nwatch(() => props.session.user?.username, value => { if (value && !busy.value) username.value = value })\n\nasync function rename() {\n if (busy.value) return\n busy.value = true; error.value = ''; notice.value = ''\n try {\n await changeUsername(username.value.trim(), password.value)\n password.value = ''\n notice.value = '用户名已修改,下次登录请使用新用户名。'\n emit('changed')\n } catch (cause) { error.value = cause instanceof Error ? cause.message : '修改失败' }\n finally { busy.value = false }\n}\n</script>\n\n<template>\n <div class=\"stack\">\n <section>\n <h2>用户名</h2>\n <form class=\"form\" @submit.prevent=\"rename\">\n <label for=\"console-username-new\">新用户名<input id=\"console-username-new\" v-model=\"username\" autocomplete=\"username\" maxlength=\"100\" required :disabled=\"busy\" /></label>\n <label for=\"console-username-password\">当前密码<input id=\"console-username-password\" v-model=\"password\" type=\"password\" autocomplete=\"current-password\" required :disabled=\"busy\" /></label>\n <p v-if=\"error\" class=\"error\" role=\"alert\">{{ error }}</p>\n <p v-if=\"notice\" class=\"notice\" role=\"status\">{{ notice }}</p>\n <button class=\"solid-button\" :disabled=\"busy || !password || !username.trim() || username.trim() === session.user?.username\">{{ busy ? '正在保存…' : '修改用户名' }}</button>\n </form>\n </section>\n <section>\n <h2>修改密码</h2>\n <p class=\"hint\">修改后,这个管理员账号在夭夭 Web、手机和电脑客户端上的登录都会退出。</p>\n <PasswordForm @done=\"emit('changed')\" />\n </section>\n </div>\n</template>\n\n<style scoped>\n.stack { display: grid; gap: 28px; max-width: 640px; }\nsection { display: grid; gap: 12px; }\nh2 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 15px; }\n.hint { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }\n.form { display: grid; gap: 12px; max-width: 380px; }\nlabel { display: grid; gap: 6px; font-size: 13px; color: var(--text-secondary); font-weight: 600; }\ninput { height: 40px; padding: 0 12px; border: 1px solid var(--input-border-color); border-radius: 9px; background: var(--surface); color: var(--text-primary); font: 14px var(--font-ui); }\ninput:focus { outline: 0; border-color: var(--input-border-focus-color); box-shadow: 0 0 0 3px var(--focus-ring); }\n.solid-button { height: 40px; border: 0; border-radius: 9px; background: var(--accent); color: var(--text-on-solid); font: 600 13px var(--font-ui); cursor: pointer; }\n.solid-button:disabled { opacity: .5; cursor: default; }\n.error { margin: 0; color: var(--danger); font-size: 13px; }\n.notice { margin: 0; color: var(--success); font-size: 13px; }\n</style>\n","<script setup lang=\"ts\">\nimport { ref, watch } from 'vue'\nimport PasswordForm from '../PasswordForm.vue'\nimport { changeUsername, type ConsoleSession } from '../api'\n\nconst props = defineProps<{ session: ConsoleSession }>()\nconst emit = defineEmits<{ changed: [] }>()\nconst username = ref(props.session.user?.username ?? '')\nconst password = ref('')\nconst busy = ref(false)\nconst error = ref('')\nconst notice = ref('')\nwatch(() => props.session.user?.username, value => { if (value && !busy.value) username.value = value })\n\nasync function rename() {\n if (busy.value) return\n busy.value = true; error.value = ''; notice.value = ''\n try {\n await changeUsername(username.value.trim(), password.value)\n password.value = ''\n notice.value = '用户名已修改,下次登录请使用新用户名。'\n emit('changed')\n } catch (cause) { error.value = cause instanceof Error ? cause.message : '修改失败' }\n finally { busy.value = false }\n}\n</script>\n\n<template>\n <div class=\"stack\">\n <section>\n <h2>用户名</h2>\n <form class=\"form\" @submit.prevent=\"rename\">\n <label for=\"console-username-new\">新用户名<input id=\"console-username-new\" v-model=\"username\" autocomplete=\"username\" maxlength=\"100\" required :disabled=\"busy\" /></label>\n <label for=\"console-username-password\">当前密码<input id=\"console-username-password\" v-model=\"password\" type=\"password\" autocomplete=\"current-password\" required :disabled=\"busy\" /></label>\n <p v-if=\"error\" class=\"error\" role=\"alert\">{{ error }}</p>\n <p v-if=\"notice\" class=\"notice\" role=\"status\">{{ notice }}</p>\n <button class=\"solid-button\" :disabled=\"busy || !password || !username.trim() || username.trim() === session.user?.username\">{{ busy ? '正在保存…' : '修改用户名' }}</button>\n </form>\n </section>\n <section>\n <h2>修改密码</h2>\n <p class=\"hint\">修改后,这个管理员账号在夭夭 Web、手机和电脑客户端上的登录都会退出。</p>\n <PasswordForm @done=\"emit('changed')\" />\n </section>\n </div>\n</template>\n\n<style scoped>\n.stack { display: grid; gap: 28px; max-width: 640px; }\nsection { display: grid; gap: 12px; }\nh2 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 15px; }\n.hint { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }\n.form { display: grid; gap: 12px; max-width: 380px; }\nlabel { display: grid; gap: 6px; font-size: 13px; color: var(--text-secondary); font-weight: 600; }\ninput { height: 40px; padding: 0 12px; border: 1px solid var(--input-border-color); border-radius: 9px; background: var(--surface); color: var(--text-primary); font: 14px var(--font-ui); }\ninput:focus { outline: 0; border-color: var(--input-border-focus-color); box-shadow: 0 0 0 3px var(--focus-ring); }\n.solid-button { height: 40px; border: 0; border-radius: 9px; background: var(--accent); color: var(--text-on-solid); font: 600 13px var(--font-ui); cursor: pointer; }\n.solid-button:disabled { opacity: .5; cursor: default; }\n.error { margin: 0; color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AA,OAAI,EAAA,EAAA,EAAA,EAAqI,QAAA,CAA9H,GAAG,4BAAqC,sBAAA,AAAA,EAAA,KAAA,GAAA,EAAQ,MAAA,EAAE,KAAK,WAAW,aAAa,mBAAmB,SAAA,GAAU,SAAU,EAAA,KAA9E,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA,EAAA,KAAQ,CAAA,CAAA,CAAA,CAAA,EACzF,EAAA,OAAT,EAAA,EAAA,EAA0D,IAA1D,EAA0D,EAAZ,EAAA,KAAK,EAAA,CAAA,GAAA,EAAA,GAAA,EAAA,EAC1C,EAAA,OAAT,EAAA,EAAA,EAA8D,IAA9D,EAA8D,EAAb,EAAA,KAAM,EAAA,CAAA,GAAA,EAAA,GAAA,EAAA,EACvD,EAAoK,SAAA,CAA5J,MAAM,eAAgB,SAAU,EAAA,OAAI,CAAK,EAAA,OAAQ,CAAK,EAAA,MAAS,KAAI,GAAM,EAAA,MAAS,KAAI,IAAO,EAAA,QAAQ,MAAM,QAAa,EAAA,EAAA,EAAA,MAAI,QAAA,OAAA,EAAA,EAAA,CAAA,CAGxI,EAAA,EAAA,CAAA,CAAA,EAAA,EAIU,UAAA,KAAA,CAHR,AAAA,EAAA,KAAA,EAAa,KAAA,KAAT,OAAI,EAAA,EACR,AAAA,EAAA,KAAA,EAAwD,IAAA,CAArD,MAAM,MAAM,EAAC,uCAAoC,EAAA,EACpD,EAAwC,EAAA,CAAzB,OAAI,AAAA,EAAA,KAAA,GAAE,EAAI,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.stack[data-v-1e57884a]{gap:28px;max-width:640px;display:grid}section[data-v-1e57884a]{gap:12px;display:grid}h2[data-v-1e57884a]{border-bottom:1px solid var(--line);margin:0;padding-bottom:6px;font-size:15px}.hint[data-v-1e57884a]{color:var(--text-muted);margin:0;font-size:12px;line-height:1.6}.form[data-v-1e57884a]{gap:12px;max-width:380px;display:grid}label[data-v-1e57884a]{color:var(--text-secondary);gap:6px;font-size:13px;font-weight:600;display:grid}input[data-v-1e57884a]{border:1px solid var(--input-border-color);background:var(--surface);height:40px;color:var(--text-primary);font:14px var(--font-ui);border-radius:9px;padding:0 12px}input[data-v-1e57884a]:focus{border-color:var(--input-border-focus-color);box-shadow:0 0 0 3px var(--focus-ring);outline:0}.solid-button[data-v-1e57884a]{background:var(--accent);height:40px;color:var(--text-on-solid);font:600 13px var(--font-ui);cursor:pointer;border:0;border-radius:9px}.solid-button[data-v-1e57884a]:disabled{opacity:.5;cursor:default}.error[data-v-1e57884a]{color:var(--danger);margin:0;font-size:13px}.notice[data-v-1e57884a]{color:var(--success);margin:0;font-size:13px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.app-icon[data-v-9ea2deee]{flex:none;display:block}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{A as e,T as t,_ as n,b as r,f as i,t as a,y as o}from"./_plugin-vue_export-helper-B5sAOsbt.js";var s=[`width`,`height`],c={key:1,d:`M8 9h8v7a4 4 0 0 1-8 0V9ZM9 9V6a3 3 0 0 1 6 0v3M12 10v10M4 10h4M16 10h4M3 15h5M16 15h5M5 21l3-3M16 18l3 3M5 4l4 3M15 7l4-3`},l={key:6,d:`M4 4a2 2 0 0 1 2-2h5l2 3h5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z`},u={key:7,d:`M12 3 3 8l9 5 9-5zM3 12l9 5 9-5M3 16l9 5 9-5`},d={key:9,d:`M12 5v14M5 12h14`},f={key:13,d:`M20.5 14.2A8.5 8.5 0 0 1 9.8 3.5 8.5 8.5 0 1 0 20.5 14.2z`},p={key:14,d:`M10 17l5-5-5-5M15 12H3M21 19V5a2 2 0 0 0-2-2h-6`},m={key:15,d:`M4 7h16M4 12h16M4 17h16`},h={key:16,d:`m6 6 12 12M18 6 6 18`},g={key:17,d:`m21.4 11.6-8.9 8.9a6 6 0 0 1-8.5-8.5l9.5-9.5a4 4 0 1 1 5.7 5.7l-9.6 9.5a2 2 0 0 1-2.8-2.8l8.9-8.9`},_={key:21,d:`M13.3 2 4.5 13h6.2L9.8 22l9.7-12h-6.2z`,fill:`currentColor`,stroke:`none`},v={key:22,d:`M12 19V5m-7 7 7-7 7 7`,"stroke-width":`2.2`},y={key:23,x:`6`,y:`6`,width:`12`,height:`12`,rx:`2.5`,fill:`currentColor`,stroke:`none`},b={key:24,d:`M14.7 6.3a4 4 0 0 0-5-5L12 3.6 8.4 7.2 6.1 4.9a4 4 0 0 0 5 5l-7.4 7.4a2.1 2.1 0 0 0 3 3l7.4-7.4a4 4 0 0 0 5-5l-2.3 2.3-3.6-3.6z`},x={key:28,d:`m6 9 6 6 6-6`},S={key:29,d:`m15 18-6-6 6-6`},C={key:30,d:`M12 3v12m-5-5 5 5 5-5M5 21h14`},w={key:31,d:`M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`},T={key:36,d:`M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1`},E={key:38,d:`M3 21c3 0 7-1 7-8V5H4v8h3c0 3-1 4-4 5zM14 21c3 0 7-1 7-8V5h-6v8h3c0 3-1 4-4 5z`},D={key:39,d:`m5 12 4 4L19 6`},O={key:40,d:`M12 3 2 21h20zM12 9v4M12 17h.01`},k={key:43,d:`M5 9h14M5 15h14M9 5 7 19M17 5l-2 14`},A={key:44,d:`M3 6h18M5 6v14h14V6M3 3h18v3H3zM9 10h6`},j={key:45,d:`M3 6h18M8 6V4h8v2M19 6l-1 15H6L5 6M10 11v5M14 11v5`},M={key:46,d:`M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4z`},N={key:48,d:`M9 4v6l-2 4v2h10v-2l-2-4V4M12 16v5M8 4h8`},P={key:49,d:`M8 3a1 1 0 0 0 0 2h1v4.72l-2.8 4.7A1 1 0 0 0 7.06 16H11v5a1 1 0 1 0 2 0v-5h3.94a1 1 0 0 0 .86-1.58L15 9.72V5h1a1 1 0 1 0 0-2z`,fill:`currentColor`,stroke:`none`},F={key:52,d:`M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4`},I=a(t({__name:`AppIcon`,props:{name:{},size:{default:18}},setup(t){return(a,I)=>(e(),r(`svg`,{class:`app-icon`,width:t.size,height:t.size,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.75`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[t.name===`calendar`?(e(),r(i,{key:0},[I[0]||=n(`rect`,{x:`3`,y:`5`,width:`18`,height:`16`,rx:`2`},null,-1),I[1]||=n(`path`,{d:`M16 3v4M8 3v4M3 11h18M8 15h2M14 15h2M8 18h2`},null,-1)],64)):t.name===`bug`?(e(),r(`path`,c)):t.name===`monitor`?(e(),r(i,{key:2},[I[2]||=n(`rect`,{x:`3`,y:`3`,width:`18`,height:`13`,rx:`2`},null,-1),I[3]||=n(`path`,{d:`M8 21h8M12 16v5`},null,-1)],64)):t.name===`chat`?(e(),r(i,{key:3},[I[4]||=n(`path`,{d:`M8 18h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-5l-6 4z`},null,-1),I[5]||=n(`path`,{d:`M8 9h8M8 13h5`},null,-1)],64)):t.name===`history`?(e(),r(i,{key:4},[I[6]||=n(`circle`,{cx:`12`,cy:`12`,r:`9`},null,-1),I[7]||=n(`path`,{d:`M12 7v5l3 2M3 12H1m2 0 2-2m-2 2 2 2`},null,-1)],64)):t.name===`groups`?(e(),r(i,{key:5},[I[8]||=n(`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`},null,-1),I[9]||=n(`circle`,{cx:`9`,cy:`7`,r:`4`},null,-1),I[10]||=n(`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75`},null,-1)],64)):t.name===`files`?(e(),r(`path`,l)):t.name===`artifacts`?(e(),r(`path`,u)):t.name===`board`?(e(),r(i,{key:8},[I[11]||=n(`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`2`},null,-1),I[12]||=n(`path`,{d:`M9 4v16M15 4v16M5.5 8h1M11.5 8h1M17.5 8h1`},null,-1)],64)):t.name===`plus`?(e(),r(`path`,d)):t.name===`search`?(e(),r(i,{key:10},[I[13]||=n(`circle`,{cx:`11`,cy:`11`,r:`7`},null,-1),I[14]||=n(`path`,{d:`m20 20-4-4`},null,-1)],64)):t.name===`dots`?(e(),r(i,{key:11},[I[15]||=n(`circle`,{cx:`5`,cy:`12`,r:`1`,fill:`currentColor`,stroke:`none`},null,-1),I[16]||=n(`circle`,{cx:`12`,cy:`12`,r:`1`,fill:`currentColor`,stroke:`none`},null,-1),I[17]||=n(`circle`,{cx:`19`,cy:`12`,r:`1`,fill:`currentColor`,stroke:`none`},null,-1)],64)):t.name===`sun`?(e(),r(i,{key:12},[I[18]||=n(`circle`,{cx:`12`,cy:`12`,r:`4`},null,-1),I[19]||=n(`path`,{d:`M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.65 17.65l1.42 1.42M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.65 6.35l1.42-1.42`},null,-1)],64)):t.name===`moon`?(e(),r(`path`,f)):t.name===`logout`?(e(),r(`path`,p)):t.name===`menu`?(e(),r(`path`,m)):t.name===`close`?(e(),r(`path`,h)):t.name===`paperclip`?(e(),r(`path`,g)):t.name===`brain`?(e(),r(i,{key:18},[I[20]||=n(`path`,{d:`M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-5-.1 2.5 2.5 0 0 1-3-3 3 3 0 0 1 0-5.8A2.5 2.5 0 0 1 7 6a2.5 2.5 0 0 1 2.5-4Z`},null,-1),I[21]||=n(`path`,{d:`M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 5-.1 2.5 2.5 0 0 0 3-3 3 3 0 0 0 0-5.8A2.5 2.5 0 0 0 17 6a2.5 2.5 0 0 0-2.5-4Z`},null,-1)],64)):t.name===`settings`?(e(),r(i,{key:19},[I[22]||=n(`circle`,{cx:`12`,cy:`12`,r:`3`},null,-1),I[23]||=n(`path`,{d:`M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5v.2h-4v-.2a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1-2.8-2.8.1-.1A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.5-1H3v-4h.1A1.7 1.7 0 0 0 4.6 9a1.7 1.7 0 0 0-.3-1.8l-.1-.1 2.8-2.8.1.1a1.7 1.7 0 0 0 1.8.3 1.7 1.7 0 0 0 1-1.5V3h4v.2a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1 2.8 2.8-.1.1A1.7 1.7 0 0 0 19.4 9a1.7 1.7 0 0 0 1.5 1h.1v4h-.1a1.7 1.7 0 0 0-1.5 1Z`},null,-1)],64)):t.name===`model`?(e(),r(i,{key:20},[I[24]||=n(`circle`,{cx:`12`,cy:`12`,r:`3`},null,-1),I[25]||=n(`path`,{d:`M12 2v4M12 18v4M2 12h4M18 12h4M5 5l3 3M16 16l3 3M5 19l3-3M16 8l3-3`},null,-1)],64)):t.name===`bolt`?(e(),r(`path`,_)):t.name===`arrow-up`?(e(),r(`path`,v)):t.name===`stop`?(e(),r(`rect`,y)):t.name===`tools`?(e(),r(`path`,b)):t.name===`info`?(e(),r(i,{key:25},[I[26]||=n(`circle`,{cx:`12`,cy:`12`,r:`9`},null,-1),I[27]||=n(`path`,{d:`M12 11v6M12 7h.01`},null,-1)],64)):t.name===`clock`?(e(),r(i,{key:26},[I[28]||=n(`circle`,{cx:`12`,cy:`12`,r:`9`},null,-1),I[29]||=n(`path`,{d:`M12 7v5l3 2`},null,-1)],64)):t.name===`users`?(e(),r(i,{key:27},[I[30]||=n(`circle`,{cx:`9`,cy:`8`,r:`3`},null,-1),I[31]||=n(`path`,{d:`M3 21v-2a6 6 0 0 1 12 0v2M16 3a3 3 0 0 1 0 6M18 14a5 5 0 0 1 3 5v2`},null,-1)],64)):t.name===`chevron-down`?(e(),r(`path`,x)):t.name===`chevron-left`?(e(),r(`path`,S)):t.name===`download`?(e(),r(`path`,C)):t.name===`external`?(e(),r(`path`,w)):t.name===`image`?(e(),r(i,{key:32},[I[32]||=n(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`},null,-1),I[33]||=n(`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`},null,-1),I[34]||=n(`path`,{d:`m21 15-5-5L5 21`},null,-1)],64)):t.name===`video`?(e(),r(i,{key:33},[I[35]||=n(`rect`,{x:`2`,y:`5`,width:`15`,height:`14`,rx:`2`},null,-1),I[36]||=n(`path`,{d:`m17 10 5-3v10l-5-3z`},null,-1)],64)):t.name===`audio`?(e(),r(i,{key:34},[I[37]||=n(`path`,{d:`M9 18V5l11-2v13M9 9l11-2`},null,-1),I[38]||=n(`circle`,{cx:`6`,cy:`18`,r:`3`},null,-1),I[39]||=n(`circle`,{cx:`17`,cy:`16`,r:`3`},null,-1)],64)):t.name===`file`?(e(),r(i,{key:35},[I[40]||=n(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`},null,-1),I[41]||=n(`path`,{d:`M14 2v6h6`},null,-1)],64)):t.name===`link`?(e(),r(`path`,T)):t.name===`refresh`?(e(),r(i,{key:37},[I[42]||=n(`path`,{d:`M20 7v5h-5M4 17v-5h5`},null,-1),I[43]||=n(`path`,{d:`M5.1 9a8 8 0 0 1 13-3l2 2M18.9 15a8 8 0 0 1-13 3l-2-2`},null,-1)],64)):t.name===`quote`?(e(),r(`path`,E)):t.name===`check`?(e(),r(`path`,D)):t.name===`alert`?(e(),r(`path`,O)):t.name===`copy`?(e(),r(i,{key:41},[I[44]||=n(`rect`,{x:`9`,y:`9`,width:`11`,height:`11`,rx:`2`},null,-1),I[45]||=n(`path`,{d:`M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3`},null,-1)],64)):t.name===`branch`?(e(),r(i,{key:42},[I[46]||=n(`circle`,{cx:`6`,cy:`5`,r:`2`},null,-1),I[47]||=n(`circle`,{cx:`18`,cy:`6`,r:`2`},null,-1),I[48]||=n(`circle`,{cx:`6`,cy:`19`,r:`2`},null,-1),I[49]||=n(`path`,{d:`M6 7v10M8 7c6 0 4 6 8 6h2`},null,-1)],64)):t.name===`topic`?(e(),r(`path`,k)):t.name===`archive`?(e(),r(`path`,A)):t.name===`trash`?(e(),r(`path`,j)):t.name===`edit`?(e(),r(`path`,M)):t.name===`panel`?(e(),r(i,{key:47},[I[50]||=n(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`},null,-1),I[51]||=n(`path`,{d:`M15 3v18`},null,-1)],64)):t.name===`pin`?(e(),r(`path`,N)):t.name===`pin-filled`?(e(),r(`path`,P)):t.name===`pin-off`?(e(),r(i,{key:50},[I[52]||=n(`path`,{d:`M9 4v6l-2 4v2h10v-2l-2-4V4M12 16v5M8 4h8`},null,-1),I[53]||=n(`path`,{d:`M4 4l16 16`},null,-1)],64)):t.name===`globe`?(e(),r(i,{key:51},[I[54]||=n(`circle`,{cx:`12`,cy:`12`,r:`9`},null,-1),I[55]||=n(`path`,{d:`M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18`},null,-1)],64)):t.name===`bell`?(e(),r(`path`,F)):o(``,!0)],8,s))}}),[[`__scopeId`,`data-v-9ea2deee`]]);export{I as t};
|
|
2
|
+
//# sourceMappingURL=AppIcon-DT0aZXKp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppIcon-DT0aZXKp.js","names":[],"sources":["../../../src/client/components/common/AppIcon.vue","../../../src/client/components/common/AppIcon.vue"],"sourcesContent":["<script setup lang=\"ts\">\ntype IconName =\n | 'info'\n | 'clock'\n | 'chat'\n | 'history'\n | 'groups'\n | 'files'\n | 'artifacts'\n | 'board'\n | 'plus'\n | 'search'\n | 'dots'\n | 'sun'\n | 'moon'\n | 'logout'\n | 'menu'\n | 'close'\n | 'paperclip'\n | 'brain'\n | 'settings'\n | 'model'\n | 'bolt'\n | 'arrow-up'\n | 'stop'\n | 'tools'\n | 'users'\n | 'chevron-down'\n | 'chevron-left'\n | 'download'\n | 'external'\n | 'image'\n | 'video'\n | 'audio'\n | 'file'\n | 'link'\n | 'refresh'\n | 'quote'\n | 'check'\n | 'alert'\n | 'copy'\n | 'branch'\n | 'topic'\n | 'archive'\n | 'trash'\n | 'edit'\n | 'panel'\n | 'pin'\n | 'pin-filled'\n | 'pin-off'\n | 'globe'\n | 'bell'\n | 'monitor'\n | 'calendar'\n | 'bug'\n\nwithDefaults(defineProps<{ name: IconName; size?: number }>(), { size: 18 })\n</script>\n\n<template>\n <svg\n class=\"app-icon\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.75\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <template v-if=\"name === 'calendar'\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M16 3v4M8 3v4M3 11h18M8 15h2M14 15h2M8 18h2\"/></template>\n <template v-else-if=\"name === 'bug'\"><path d=\"M8 9h8v7a4 4 0 0 1-8 0V9ZM9 9V6a3 3 0 0 1 6 0v3M12 10v10M4 10h4M16 10h4M3 15h5M16 15h5M5 21l3-3M16 18l3 3M5 4l4 3M15 7l4-3\"/></template>\n <template v-else-if=\"name === 'monitor'\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M8 21h8M12 16v5\"/></template>\n <template v-else-if=\"name === 'chat'\">\n <path d=\"M8 18h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-5l-6 4z\" />\n <path d=\"M8 9h8M8 13h5\" />\n </template>\n <template v-else-if=\"name === 'history'\"><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 7v5l3 2M3 12H1m2 0 2-2m-2 2 2 2\" /></template>\n <template v-else-if=\"name === 'groups'\">\n <path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75\" />\n </template>\n <template v-else-if=\"name === 'files'\">\n <path d=\"M4 4a2 2 0 0 1 2-2h5l2 3h5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z\" />\n </template>\n <template v-else-if=\"name === 'artifacts'\">\n <path d=\"M12 3 3 8l9 5 9-5zM3 12l9 5 9-5M3 16l9 5 9-5\" />\n </template>\n <template v-else-if=\"name === 'board'\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" /><path d=\"M9 4v16M15 4v16M5.5 8h1M11.5 8h1M17.5 8h1\" /></template>\n <template v-else-if=\"name === 'plus'\"><path d=\"M12 5v14M5 12h14\" /></template>\n <template v-else-if=\"name === 'search'\"><circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-4-4\" /></template>\n <template v-else-if=\"name === 'dots'\"><circle cx=\"5\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\" /><circle cx=\"12\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\" /><circle cx=\"19\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\" /></template>\n <template v-else-if=\"name === 'sun'\"><circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.65 17.65l1.42 1.42M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.65 6.35l1.42-1.42\" /></template>\n <template v-else-if=\"name === 'moon'\"><path d=\"M20.5 14.2A8.5 8.5 0 0 1 9.8 3.5 8.5 8.5 0 1 0 20.5 14.2z\" /></template>\n <template v-else-if=\"name === 'logout'\"><path d=\"M10 17l5-5-5-5M15 12H3M21 19V5a2 2 0 0 0-2-2h-6\" /></template>\n <template v-else-if=\"name === 'menu'\"><path d=\"M4 7h16M4 12h16M4 17h16\" /></template>\n <template v-else-if=\"name === 'close'\"><path d=\"m6 6 12 12M18 6 6 18\" /></template>\n <template v-else-if=\"name === 'paperclip'\"><path d=\"m21.4 11.6-8.9 8.9a6 6 0 0 1-8.5-8.5l9.5-9.5a4 4 0 1 1 5.7 5.7l-9.6 9.5a2 2 0 0 1-2.8-2.8l8.9-8.9\" /></template>\n <template v-else-if=\"name === 'brain'\"><path d=\"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-5-.1 2.5 2.5 0 0 1-3-3 3 3 0 0 1 0-5.8A2.5 2.5 0 0 1 7 6a2.5 2.5 0 0 1 2.5-4Z\" /><path d=\"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 5-.1 2.5 2.5 0 0 0 3-3 3 3 0 0 0 0-5.8A2.5 2.5 0 0 0 17 6a2.5 2.5 0 0 0-2.5-4Z\" /></template>\n <template v-else-if=\"name === 'settings'\"><circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5v.2h-4v-.2a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1-2.8-2.8.1-.1A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.5-1H3v-4h.1A1.7 1.7 0 0 0 4.6 9a1.7 1.7 0 0 0-.3-1.8l-.1-.1 2.8-2.8.1.1a1.7 1.7 0 0 0 1.8.3 1.7 1.7 0 0 0 1-1.5V3h4v.2a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1 2.8 2.8-.1.1A1.7 1.7 0 0 0 19.4 9a1.7 1.7 0 0 0 1.5 1h.1v4h-.1a1.7 1.7 0 0 0-1.5 1Z\" /></template>\n <template v-else-if=\"name === 'model'\"><circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M12 2v4M12 18v4M2 12h4M18 12h4M5 5l3 3M16 16l3 3M5 19l3-3M16 8l3-3\" /></template>\n <template v-else-if=\"name === 'bolt'\"><path d=\"M13.3 2 4.5 13h6.2L9.8 22l9.7-12h-6.2z\" fill=\"currentColor\" stroke=\"none\" /></template>\n <template v-else-if=\"name === 'arrow-up'\"><path d=\"M12 19V5m-7 7 7-7 7 7\" stroke-width=\"2.2\" /></template>\n <template v-else-if=\"name === 'stop'\"><rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"2.5\" fill=\"currentColor\" stroke=\"none\" /></template>\n <template v-else-if=\"name === 'tools'\"><path d=\"M14.7 6.3a4 4 0 0 0-5-5L12 3.6 8.4 7.2 6.1 4.9a4 4 0 0 0 5 5l-7.4 7.4a2.1 2.1 0 0 0 3 3l7.4-7.4a4 4 0 0 0 5-5l-2.3 2.3-3.6-3.6z\" /></template>\n <template v-else-if=\"name === 'info'\"><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 11v6M12 7h.01\" /></template>\n <template v-else-if=\"name === 'clock'\"><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 7v5l3 2\" /></template>\n <template v-else-if=\"name === 'users'\"><circle cx=\"9\" cy=\"8\" r=\"3\" /><path d=\"M3 21v-2a6 6 0 0 1 12 0v2M16 3a3 3 0 0 1 0 6M18 14a5 5 0 0 1 3 5v2\" /></template>\n <template v-else-if=\"name === 'chevron-down'\"><path d=\"m6 9 6 6 6-6\" /></template>\n <template v-else-if=\"name === 'chevron-left'\"><path d=\"m15 18-6-6 6-6\" /></template>\n <template v-else-if=\"name === 'download'\"><path d=\"M12 3v12m-5-5 5 5 5-5M5 21h14\" /></template>\n <template v-else-if=\"name === 'external'\"><path d=\"M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" /></template>\n <template v-else-if=\"name === 'image'\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\" /><path d=\"m21 15-5-5L5 21\" /></template>\n <template v-else-if=\"name === 'video'\"><rect x=\"2\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" /><path d=\"m17 10 5-3v10l-5-3z\" /></template>\n <template v-else-if=\"name === 'audio'\"><path d=\"M9 18V5l11-2v13M9 9l11-2\" /><circle cx=\"6\" cy=\"18\" r=\"3\" /><circle cx=\"17\" cy=\"16\" r=\"3\" /></template>\n <template v-else-if=\"name === 'file'\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\" /><path d=\"M14 2v6h6\" /></template>\n <template v-else-if=\"name === 'link'\"><path d=\"M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1\" /></template>\n <template v-else-if=\"name === 'refresh'\"><path d=\"M20 7v5h-5M4 17v-5h5\" /><path d=\"M5.1 9a8 8 0 0 1 13-3l2 2M18.9 15a8 8 0 0 1-13 3l-2-2\" /></template>\n <template v-else-if=\"name === 'quote'\"><path d=\"M3 21c3 0 7-1 7-8V5H4v8h3c0 3-1 4-4 5zM14 21c3 0 7-1 7-8V5h-6v8h3c0 3-1 4-4 5z\" /></template>\n <template v-else-if=\"name === 'check'\"><path d=\"m5 12 4 4L19 6\" /></template>\n <template v-else-if=\"name === 'alert'\"><path d=\"M12 3 2 21h20zM12 9v4M12 17h.01\" /></template>\n <template v-else-if=\"name === 'copy'\"><rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3\" /></template>\n <template v-else-if=\"name === 'branch'\"><circle cx=\"6\" cy=\"5\" r=\"2\" /><circle cx=\"18\" cy=\"6\" r=\"2\" /><circle cx=\"6\" cy=\"19\" r=\"2\" /><path d=\"M6 7v10M8 7c6 0 4 6 8 6h2\" /></template>\n <template v-else-if=\"name === 'topic'\"><path d=\"M5 9h14M5 15h14M9 5 7 19M17 5l-2 14\" /></template>\n <template v-else-if=\"name === 'archive'\"><path d=\"M3 6h18M5 6v14h14V6M3 3h18v3H3zM9 10h6\" /></template>\n <template v-else-if=\"name === 'trash'\"><path d=\"M3 6h18M8 6V4h8v2M19 6l-1 15H6L5 6M10 11v5M14 11v5\" /></template>\n <template v-else-if=\"name === 'edit'\"><path d=\"M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4z\" /></template>\n <template v-else-if=\"name === 'panel'\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><path d=\"M15 3v18\" /></template>\n <template v-else-if=\"name === 'pin'\"><path d=\"M9 4v6l-2 4v2h10v-2l-2-4V4M12 16v5M8 4h8\" /></template>\n <template v-else-if=\"name === 'pin-filled'\"><path d=\"M8 3a1 1 0 0 0 0 2h1v4.72l-2.8 4.7A1 1 0 0 0 7.06 16H11v5a1 1 0 1 0 2 0v-5h3.94a1 1 0 0 0 .86-1.58L15 9.72V5h1a1 1 0 1 0 0-2z\" fill=\"currentColor\" stroke=\"none\" /></template>\n <template v-else-if=\"name === 'pin-off'\"><path d=\"M9 4v6l-2 4v2h10v-2l-2-4V4M12 16v5M8 4h8\" /><path d=\"M4 4l16 16\" /></template>\n <template v-else-if=\"name === 'globe'\"><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\" /></template>\n <template v-else-if=\"name === 'bell'\"><path d=\"M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4\" /></template>\n </svg>\n</template>\n\n<style scoped>\n.app-icon { display: block; flex: 0 0 auto; }\n</style>\n","<script setup lang=\"ts\">\ntype IconName =\n | 'info'\n | 'clock'\n | 'chat'\n | 'history'\n | 'groups'\n | 'files'\n | 'artifacts'\n | 'board'\n | 'plus'\n | 'search'\n | 'dots'\n | 'sun'\n | 'moon'\n | 'logout'\n | 'menu'\n | 'close'\n | 'paperclip'\n | 'brain'\n | 'settings'\n | 'model'\n | 'bolt'\n | 'arrow-up'\n | 'stop'\n | 'tools'\n | 'users'\n | 'chevron-down'\n | 'chevron-left'\n | 'download'\n | 'external'\n | 'image'\n | 'video'\n | 'audio'\n | 'file'\n | 'link'\n | 'refresh'\n | 'quote'\n | 'check'\n | 'alert'\n | 'copy'\n | 'branch'\n | 'topic'\n | 'archive'\n | 'trash'\n | 'edit'\n | 'panel'\n | 'pin'\n | 'pin-filled'\n | 'pin-off'\n | 'globe'\n | 'bell'\n | 'monitor'\n | 'calendar'\n | 'bug'\n\nwithDefaults(defineProps<{ name: IconName; size?: number }>(), { size: 18 })\n</script>\n\n<template>\n <svg\n class=\"app-icon\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.75\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <template v-if=\"name === 'calendar'\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M16 3v4M8 3v4M3 11h18M8 15h2M14 15h2M8 18h2\"/></template>\n <template v-else-if=\"name === 'bug'\"><path d=\"M8 9h8v7a4 4 0 0 1-8 0V9ZM9 9V6a3 3 0 0 1 6 0v3M12 10v10M4 10h4M16 10h4M3 15h5M16 15h5M5 21l3-3M16 18l3 3M5 4l4 3M15 7l4-3\"/></template>\n <template v-else-if=\"name === 'monitor'\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M8 21h8M12 16v5\"/></template>\n <template v-else-if=\"name === 'chat'\">\n <path d=\"M8 18h-3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-5l-6 4z\" />\n <path d=\"M8 9h8M8 13h5\" />\n </template>\n <template v-else-if=\"name === 'history'\"><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 7v5l3 2M3 12H1m2 0 2-2m-2 2 2 2\" /></template>\n <template v-else-if=\"name === 'groups'\">\n <path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" />\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75\" />\n </template>\n <template v-else-if=\"name === 'files'\">\n <path d=\"M4 4a2 2 0 0 1 2-2h5l2 3h5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z\" />\n </template>\n <template v-else-if=\"name === 'artifacts'\">\n <path d=\"M12 3 3 8l9 5 9-5zM3 12l9 5 9-5M3 16l9 5 9-5\" />\n </template>\n <template v-else-if=\"name === 'board'\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" /><path d=\"M9 4v16M15 4v16M5.5 8h1M11.5 8h1M17.5 8h1\" /></template>\n <template v-else-if=\"name === 'plus'\"><path d=\"M12 5v14M5 12h14\" /></template>\n <template v-else-if=\"name === 'search'\"><circle cx=\"11\" cy=\"11\" r=\"7\" /><path d=\"m20 20-4-4\" /></template>\n <template v-else-if=\"name === 'dots'\"><circle cx=\"5\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\" /><circle cx=\"12\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\" /><circle cx=\"19\" cy=\"12\" r=\"1\" fill=\"currentColor\" stroke=\"none\" /></template>\n <template v-else-if=\"name === 'sun'\"><circle cx=\"12\" cy=\"12\" r=\"4\" /><path d=\"M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.65 17.65l1.42 1.42M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.65 6.35l1.42-1.42\" /></template>\n <template v-else-if=\"name === 'moon'\"><path d=\"M20.5 14.2A8.5 8.5 0 0 1 9.8 3.5 8.5 8.5 0 1 0 20.5 14.2z\" /></template>\n <template v-else-if=\"name === 'logout'\"><path d=\"M10 17l5-5-5-5M15 12H3M21 19V5a2 2 0 0 0-2-2h-6\" /></template>\n <template v-else-if=\"name === 'menu'\"><path d=\"M4 7h16M4 12h16M4 17h16\" /></template>\n <template v-else-if=\"name === 'close'\"><path d=\"m6 6 12 12M18 6 6 18\" /></template>\n <template v-else-if=\"name === 'paperclip'\"><path d=\"m21.4 11.6-8.9 8.9a6 6 0 0 1-8.5-8.5l9.5-9.5a4 4 0 1 1 5.7 5.7l-9.6 9.5a2 2 0 0 1-2.8-2.8l8.9-8.9\" /></template>\n <template v-else-if=\"name === 'brain'\"><path d=\"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-5-.1 2.5 2.5 0 0 1-3-3 3 3 0 0 1 0-5.8A2.5 2.5 0 0 1 7 6a2.5 2.5 0 0 1 2.5-4Z\" /><path d=\"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 5-.1 2.5 2.5 0 0 0 3-3 3 3 0 0 0 0-5.8A2.5 2.5 0 0 0 17 6a2.5 2.5 0 0 0-2.5-4Z\" /></template>\n <template v-else-if=\"name === 'settings'\"><circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5v.2h-4v-.2a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1-2.8-2.8.1-.1A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.5-1H3v-4h.1A1.7 1.7 0 0 0 4.6 9a1.7 1.7 0 0 0-.3-1.8l-.1-.1 2.8-2.8.1.1a1.7 1.7 0 0 0 1.8.3 1.7 1.7 0 0 0 1-1.5V3h4v.2a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1 2.8 2.8-.1.1A1.7 1.7 0 0 0 19.4 9a1.7 1.7 0 0 0 1.5 1h.1v4h-.1a1.7 1.7 0 0 0-1.5 1Z\" /></template>\n <template v-else-if=\"name === 'model'\"><circle cx=\"12\" cy=\"12\" r=\"3\" /><path d=\"M12 2v4M12 18v4M2 12h4M18 12h4M5 5l3 3M16 16l3 3M5 19l3-3M16 8l3-3\" /></template>\n <template v-else-if=\"name === 'bolt'\"><path d=\"M13.3 2 4.5 13h6.2L9.8 22l9.7-12h-6.2z\" fill=\"currentColor\" stroke=\"none\" /></template>\n <template v-else-if=\"name === 'arrow-up'\"><path d=\"M12 19V5m-7 7 7-7 7 7\" stroke-width=\"2.2\" /></template>\n <template v-else-if=\"name === 'stop'\"><rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"2.5\" fill=\"currentColor\" stroke=\"none\" /></template>\n <template v-else-if=\"name === 'tools'\"><path d=\"M14.7 6.3a4 4 0 0 0-5-5L12 3.6 8.4 7.2 6.1 4.9a4 4 0 0 0 5 5l-7.4 7.4a2.1 2.1 0 0 0 3 3l7.4-7.4a4 4 0 0 0 5-5l-2.3 2.3-3.6-3.6z\" /></template>\n <template v-else-if=\"name === 'info'\"><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 11v6M12 7h.01\" /></template>\n <template v-else-if=\"name === 'clock'\"><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M12 7v5l3 2\" /></template>\n <template v-else-if=\"name === 'users'\"><circle cx=\"9\" cy=\"8\" r=\"3\" /><path d=\"M3 21v-2a6 6 0 0 1 12 0v2M16 3a3 3 0 0 1 0 6M18 14a5 5 0 0 1 3 5v2\" /></template>\n <template v-else-if=\"name === 'chevron-down'\"><path d=\"m6 9 6 6 6-6\" /></template>\n <template v-else-if=\"name === 'chevron-left'\"><path d=\"m15 18-6-6 6-6\" /></template>\n <template v-else-if=\"name === 'download'\"><path d=\"M12 3v12m-5-5 5 5 5-5M5 21h14\" /></template>\n <template v-else-if=\"name === 'external'\"><path d=\"M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" /></template>\n <template v-else-if=\"name === 'image'\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\" /><path d=\"m21 15-5-5L5 21\" /></template>\n <template v-else-if=\"name === 'video'\"><rect x=\"2\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" /><path d=\"m17 10 5-3v10l-5-3z\" /></template>\n <template v-else-if=\"name === 'audio'\"><path d=\"M9 18V5l11-2v13M9 9l11-2\" /><circle cx=\"6\" cy=\"18\" r=\"3\" /><circle cx=\"17\" cy=\"16\" r=\"3\" /></template>\n <template v-else-if=\"name === 'file'\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\" /><path d=\"M14 2v6h6\" /></template>\n <template v-else-if=\"name === 'link'\"><path d=\"M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1\" /></template>\n <template v-else-if=\"name === 'refresh'\"><path d=\"M20 7v5h-5M4 17v-5h5\" /><path d=\"M5.1 9a8 8 0 0 1 13-3l2 2M18.9 15a8 8 0 0 1-13 3l-2-2\" /></template>\n <template v-else-if=\"name === 'quote'\"><path d=\"M3 21c3 0 7-1 7-8V5H4v8h3c0 3-1 4-4 5zM14 21c3 0 7-1 7-8V5h-6v8h3c0 3-1 4-4 5z\" /></template>\n <template v-else-if=\"name === 'check'\"><path d=\"m5 12 4 4L19 6\" /></template>\n <template v-else-if=\"name === 'alert'\"><path d=\"M12 3 2 21h20zM12 9v4M12 17h.01\" /></template>\n <template v-else-if=\"name === 'copy'\"><rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3\" /></template>\n <template v-else-if=\"name === 'branch'\"><circle cx=\"6\" cy=\"5\" r=\"2\" /><circle cx=\"18\" cy=\"6\" r=\"2\" /><circle cx=\"6\" cy=\"19\" r=\"2\" /><path d=\"M6 7v10M8 7c6 0 4 6 8 6h2\" /></template>\n <template v-else-if=\"name === 'topic'\"><path d=\"M5 9h14M5 15h14M9 5 7 19M17 5l-2 14\" /></template>\n <template v-else-if=\"name === 'archive'\"><path d=\"M3 6h18M5 6v14h14V6M3 3h18v3H3zM9 10h6\" /></template>\n <template v-else-if=\"name === 'trash'\"><path d=\"M3 6h18M8 6V4h8v2M19 6l-1 15H6L5 6M10 11v5M14 11v5\" /></template>\n <template v-else-if=\"name === 'edit'\"><path d=\"M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L8 18l-4 1 1-4z\" /></template>\n <template v-else-if=\"name === 'panel'\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" /><path d=\"M15 3v18\" /></template>\n <template v-else-if=\"name === 'pin'\"><path d=\"M9 4v6l-2 4v2h10v-2l-2-4V4M12 16v5M8 4h8\" /></template>\n <template v-else-if=\"name === 'pin-filled'\"><path d=\"M8 3a1 1 0 0 0 0 2h1v4.72l-2.8 4.7A1 1 0 0 0 7.06 16H11v5a1 1 0 1 0 2 0v-5h3.94a1 1 0 0 0 .86-1.58L15 9.72V5h1a1 1 0 1 0 0-2z\" fill=\"currentColor\" stroke=\"none\" /></template>\n <template v-else-if=\"name === 'pin-off'\"><path d=\"M9 4v6l-2 4v2h10v-2l-2-4V4M12 16v5M8 4h8\" /><path d=\"M4 4l16 16\" /></template>\n <template v-else-if=\"name === 'globe'\"><circle cx=\"12\" cy=\"12\" r=\"9\" /><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\" /></template>\n <template v-else-if=\"name === 'bell'\"><path d=\"M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4\" /></template>\n </svg>\n</template>\n\n<style scoped>\n.app-icon { display: block; flex: 0 0 auto; }\n</style>\n"],"mappings":"4sEA4DE,EAAA,EAAA,EA4EM,MAAA,CA3EJ,MAAM,WACL,MAAO,EAAA,KACP,OAAQ,EAAA,KACT,QAAQ,YACR,KAAK,OACL,OAAO,eACP,eAAa,OACb,iBAAe,QACf,kBAAgB,QAChB,cAAY,MAEI,EAAA,CAAA,EAAA,OAAI,YAApB,EAAA,EAAA,EAAwJ,EAAA,CAAA,IAAA,CAAA,EAAA,CAAnH,AAAA,EAAA,KAAA,EAAiD,OAAA,CAA3C,EAAE,IAAI,EAAE,IAAI,MAAM,KAAK,OAAO,KAAK,GAAG,GAAK,EAAA,KAAA,EAAA,EAAA,AAAA,EAAA,KAAA,EAAuD,OAAA,CAAjD,EAAE,6CAA6C,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,GACtH,EAAA,OAAI,OAAY,EAAA,EAAA,EAAsI,OAAtI,CAAsI,GACtJ,EAA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,k as f,t as p,y as m,z as h}from"./_plugin-vue_export-helper-B5sAOsbt.js";import{c as g,n as _,r as v}from"./admin-C-rH6P63.js";var y={class:`audit`},b={class:`filters`},x={for:`audit-module`},S=[`value`],C={for:`audit-outcome`},w={for:`audit-days`},T=[`href`],E={key:0,class:`error`,role:`alert`},D={class:`table-scroll`},O={class:`mono`},k={class:`mono`},A={class:`mono action`},j={key:0},M={key:0},N=[`disabled`],P=100,F=p(a({__name:`AuditPage`,setup(a){let p=h([]),F=h([]),I=h(``),L=h(``),R=h(`7`),z=h(!1),B=h(``),V=h(!1);function H(e){return{module:I.value||void 0,outcome:L.value||void 0,since:R.value?Date.now()-Number(R.value)*864e5:void 0,before:e}}async function U(e=!1){z.value=!0,B.value=``;try{let t=e?p.value.at(-1)?.id:void 0,n=await _(H(t),P);p.value=e?[...p.value,...n.entries]:n.entries,F.value=n.modules,V.value=n.entries.length===P}catch(e){B.value=e instanceof Error?e.message:`读取失败`}finally{z.value=!1}}r([I,L,R],()=>{U()}),f(()=>{U()});let W=e=>new Date(e).toLocaleString(`zh-CN`,{hour12:!1}),G={ok:`成功`,denied:`拒绝`,failed:`失败`};return(r,a)=>(e(),c(`div`,y,[o(`div`,b,[o(`label`,x,[a[5]||=i(`模块`,-1),n(o(`select`,{id:`audit-module`,"onUpdate:modelValue":a[0]||=e=>I.value=e},[a[4]||=o(`option`,{value:``},`全部模块`,-1),(e(!0),c(l,null,d(F.value,t=>(e(),c(`option`,{key:t,value:t},s(t),9,S))),128))],512),[[g,I.value]])]),o(`label`,C,[a[7]||=i(`结果`,-1),n(o(`select`,{id:`audit-outcome`,"onUpdate:modelValue":a[1]||=e=>L.value=e},[...a[6]||=[o(`option`,{value:``},`全部`,-1),o(`option`,{value:`ok`},`成功`,-1),o(`option`,{value:`denied`},`拒绝`,-1),o(`option`,{value:`failed`},`失败`,-1)]],512),[[g,L.value]])]),o(`label`,w,[a[9]||=i(`时间`,-1),n(o(`select`,{id:`audit-days`,"onUpdate:modelValue":a[2]||=e=>R.value=e},[...a[8]||=[o(`option`,{value:`1`},`最近 1 天`,-1),o(`option`,{value:`7`},`最近 7 天`,-1),o(`option`,{value:`30`},`最近 30 天`,-1),o(`option`,{value:``},`全部(保留 180 天)`,-1)]],512),[[g,R.value]])]),o(`a`,{class:`ghost`,href:t(v)(H())},`导出 CSV`,8,T)]),B.value?(e(),c(`p`,E,s(B.value),1)):m(``,!0),o(`div`,D,[o(`table`,null,[a[11]||=o(`thead`,null,[o(`tr`,null,[o(`th`,null,`时间`),o(`th`,null,`账号`),o(`th`,null,`来源`),o(`th`,null,`模块`),o(`th`,null,`操作`),o(`th`,null,`结果`)])],-1),o(`tbody`,null,[(e(!0),c(l,null,d(p.value,t=>(e(),c(`tr`,{key:t.id},[o(`td`,O,s(W(t.at)),1),o(`td`,null,s(t.actor),1),o(`td`,k,s(t.ip),1),o(`td`,null,s(t.module),1),o(`td`,null,[o(`span`,A,s(t.action),1),t.detail?(e(),c(`small`,j,s(t.detail),1)):m(``,!0)]),o(`td`,null,[o(`span`,{class:u([`badge`,t.outcome])},s(G[t.outcome])+` `+s(t.status),3)])]))),128)),!p.value.length&&!z.value?(e(),c(`tr`,M,[...a[10]||=[o(`td`,{colspan:`6`,class:`empty`},`没有符合条件的记录。`,-1)]])):m(``,!0)])])]),V.value?(e(),c(`button`,{key:1,class:`ghost`,type:`button`,disabled:z.value,onClick:a[3]||=e=>U(!0)},`加载更多`,8,N)):m(``,!0)]))}}),[[`__scopeId`,`data-v-7d613b0c`]]);export{F as default};
|
|
2
|
+
//# sourceMappingURL=AuditPage-BYC3Sj8A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditPage-BYC3Sj8A.js","names":[],"sources":["../../../src/client/admin/pages/AuditPage.vue","../../../src/client/admin/pages/AuditPage.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { onMounted, ref, watch } from 'vue'\nimport { audit, auditCsvUrl, type AuditEntry, type AuditFilter } from '../api'\n\nconst entries = ref<AuditEntry[]>([])\nconst modules = ref<string[]>([])\nconst module = ref('')\nconst outcome = ref('')\nconst days = ref('7')\nconst loading = ref(false)\nconst error = ref('')\nconst more = ref(false)\nconst PAGE = 100\n\nfunction filter(before?: number): AuditFilter {\n return { module: module.value || undefined, outcome: outcome.value || undefined, since: days.value ? Date.now() - Number(days.value) * 86_400_000 : undefined, before }\n}\nasync function load(append = false) {\n loading.value = true; error.value = ''\n try {\n const before = append ? entries.value.at(-1)?.id : undefined\n const result = await audit(filter(before), PAGE)\n entries.value = append ? [...entries.value, ...result.entries] : result.entries\n modules.value = result.modules\n more.value = result.entries.length === PAGE\n } catch (cause) { error.value = cause instanceof Error ? cause.message : '读取失败' }\n finally { loading.value = false }\n}\nwatch([module, outcome, days], () => { void load() })\nonMounted(() => { void load() })\nconst time = (value: number) => new Date(value).toLocaleString('zh-CN', { hour12: false })\nconst outcomeLabel: Record<string, string> = { ok: '成功', denied: '拒绝', failed: '失败' }\n</script>\n\n<template>\n <div class=\"audit\">\n <div class=\"filters\">\n <label for=\"audit-module\">模块<select id=\"audit-module\" v-model=\"module\"><option value=\"\">全部模块</option><option v-for=\"item in modules\" :key=\"item\" :value=\"item\">{{ item }}</option></select></label>\n <label for=\"audit-outcome\">结果<select id=\"audit-outcome\" v-model=\"outcome\"><option value=\"\">全部</option><option value=\"ok\">成功</option><option value=\"denied\">拒绝</option><option value=\"failed\">失败</option></select></label>\n <label for=\"audit-days\">时间<select id=\"audit-days\" v-model=\"days\"><option value=\"1\">最近 1 天</option><option value=\"7\">最近 7 天</option><option value=\"30\">最近 30 天</option><option value=\"\">全部(保留 180 天)</option></select></label>\n <a class=\"ghost\" :href=\"auditCsvUrl(filter())\">导出 CSV</a>\n </div>\n <p v-if=\"error\" class=\"error\" role=\"alert\">{{ error }}</p>\n <div class=\"table-scroll\">\n <table>\n <thead><tr><th>时间</th><th>账号</th><th>来源</th><th>模块</th><th>操作</th><th>结果</th></tr></thead>\n <tbody>\n <tr v-for=\"entry in entries\" :key=\"entry.id\">\n <td class=\"mono\">{{ time(entry.at) }}</td>\n <td>{{ entry.actor }}</td>\n <td class=\"mono\">{{ entry.ip }}</td>\n <td>{{ entry.module }}</td>\n <td><span class=\"mono action\">{{ entry.action }}</span><small v-if=\"entry.detail\">{{ entry.detail }}</small></td>\n <td><span class=\"badge\" :class=\"entry.outcome\">{{ outcomeLabel[entry.outcome] }} {{ entry.status }}</span></td>\n </tr>\n <tr v-if=\"!entries.length && !loading\"><td colspan=\"6\" class=\"empty\">没有符合条件的记录。</td></tr>\n </tbody>\n </table>\n </div>\n <button v-if=\"more\" class=\"ghost\" type=\"button\" :disabled=\"loading\" @click=\"load(true)\">加载更多</button>\n </div>\n</template>\n\n<style scoped>\n.audit { display: grid; gap: 14px; }\n.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }\nlabel { display: grid; gap: 4px; font-size: 12px; color: var(--text-muted); }\nselect { height: 34px; padding: 0 10px; border: 1px solid var(--input-border-color); border-radius: 8px; background: var(--surface); color: var(--text-primary); font: 13px var(--font-ui); }\n.ghost { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text-primary); font: 13px var(--font-ui); text-decoration: none; cursor: pointer; justify-self: start; }\n.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }\ntable { width: 100%; border-collapse: collapse; font-size: 12.5px; }\nth, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }\nth { color: var(--text-muted); font-weight: 600; background: var(--surface-soft); }\ntr:last-child td { border-bottom: 0; }\n.mono { font-family: var(--font-code); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }\n.action { display: block; white-space: normal; overflow-wrap: anywhere; }\ntd small { display: block; margin-top: 3px; color: var(--text-muted); overflow-wrap: anywhere; }\n.badge { font-size: 11px; white-space: nowrap; }\n.badge.ok { color: var(--success); } .badge.denied { color: var(--warning); } .badge.failed { color: var(--danger); }\n.empty { color: var(--text-muted); text-align: center; }\n.error { margin: 0; color: var(--danger); font-size: 13px; }\n</style>\n","<script setup lang=\"ts\">\nimport { onMounted, ref, watch } from 'vue'\nimport { audit, auditCsvUrl, type AuditEntry, type AuditFilter } from '../api'\n\nconst entries = ref<AuditEntry[]>([])\nconst modules = ref<string[]>([])\nconst module = ref('')\nconst outcome = ref('')\nconst days = ref('7')\nconst loading = ref(false)\nconst error = ref('')\nconst more = ref(false)\nconst PAGE = 100\n\nfunction filter(before?: number): AuditFilter {\n return { module: module.value || undefined, outcome: outcome.value || undefined, since: days.value ? Date.now() - Number(days.value) * 86_400_000 : undefined, before }\n}\nasync function load(append = false) {\n loading.value = true; error.value = ''\n try {\n const before = append ? entries.value.at(-1)?.id : undefined\n const result = await audit(filter(before), PAGE)\n entries.value = append ? [...entries.value, ...result.entries] : result.entries\n modules.value = result.modules\n more.value = result.entries.length === PAGE\n } catch (cause) { error.value = cause instanceof Error ? cause.message : '读取失败' }\n finally { loading.value = false }\n}\nwatch([module, outcome, days], () => { void load() })\nonMounted(() => { void load() })\nconst time = (value: number) => new Date(value).toLocaleString('zh-CN', { hour12: false })\nconst outcomeLabel: Record<string, string> = { ok: '成功', denied: '拒绝', failed: '失败' }\n</script>\n\n<template>\n <div class=\"audit\">\n <div class=\"filters\">\n <label for=\"audit-module\">模块<select id=\"audit-module\" v-model=\"module\"><option value=\"\">全部模块</option><option v-for=\"item in modules\" :key=\"item\" :value=\"item\">{{ item }}</option></select></label>\n <label for=\"audit-outcome\">结果<select id=\"audit-outcome\" v-model=\"outcome\"><option value=\"\">全部</option><option value=\"ok\">成功</option><option value=\"denied\">拒绝</option><option value=\"failed\">失败</option></select></label>\n <label for=\"audit-days\">时间<select id=\"audit-days\" v-model=\"days\"><option value=\"1\">最近 1 天</option><option value=\"7\">最近 7 天</option><option value=\"30\">最近 30 天</option><option value=\"\">全部(保留 180 天)</option></select></label>\n <a class=\"ghost\" :href=\"auditCsvUrl(filter())\">导出 CSV</a>\n </div>\n <p v-if=\"error\" class=\"error\" role=\"alert\">{{ error }}</p>\n <div class=\"table-scroll\">\n <table>\n <thead><tr><th>时间</th><th>账号</th><th>来源</th><th>模块</th><th>操作</th><th>结果</th></tr></thead>\n <tbody>\n <tr v-for=\"entry in entries\" :key=\"entry.id\">\n <td class=\"mono\">{{ time(entry.at) }}</td>\n <td>{{ entry.actor }}</td>\n <td class=\"mono\">{{ entry.ip }}</td>\n <td>{{ entry.module }}</td>\n <td><span class=\"mono action\">{{ entry.action }}</span><small v-if=\"entry.detail\">{{ entry.detail }}</small></td>\n <td><span class=\"badge\" :class=\"entry.outcome\">{{ outcomeLabel[entry.outcome] }} {{ entry.status }}</span></td>\n </tr>\n <tr v-if=\"!entries.length && !loading\"><td colspan=\"6\" class=\"empty\">没有符合条件的记录。</td></tr>\n </tbody>\n </table>\n </div>\n <button v-if=\"more\" class=\"ghost\" type=\"button\" :disabled=\"loading\" @click=\"load(true)\">加载更多</button>\n </div>\n</template>\n\n<style scoped>\n.audit { display: grid; gap: 14px; }\n.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }\nlabel { display: grid; gap: 4px; font-size: 12px; color: var(--text-muted); }\nselect { height: 34px; padding: 0 10px; border: 1px solid var(--input-border-color); border-radius: 8px; background: var(--surface); color: var(--text-primary); font: 13px var(--font-ui); }\n.ghost { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text-primary); font: 13px var(--font-ui); text-decoration: none; cursor: pointer; justify-self: start; }\n.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }\ntable { width: 100%; border-collapse: collapse; font-size: 12.5px; }\nth, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }\nth { color: var(--text-muted); font-weight: 600; background: var(--surface-soft); }\ntr:last-child td { border-bottom: 0; }\n.mono { font-family: var(--font-code); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }\n.action { display: block; white-space: normal; overflow-wrap: anywhere; }\ntd small { display: block; margin-top: 3px; color: var(--text-muted); overflow-wrap: anywhere; }\n.badge { font-size: 11px; white-space: nowrap; }\n.badge.ok { color: var(--success); } .badge.denied { color: var(--warning); } .badge.failed { color: var(--danger); }\n.empty { color: var(--text-muted); text-align: center; }\n.error { margin: 0; color: var(--danger); font-size: 13px; }\n</style>\n"],"mappings":"6fAYM,EAAO,uCARb,IAAM,EAAU,EAAkB,CAAC,CAAC,EAC9B,EAAU,EAAc,CAAC,CAAC,EAC1B,EAAS,EAAI,EAAE,EACf,EAAU,EAAI,EAAE,EAChB,EAAO,EAAI,GAAG,EACd,EAAU,EAAI,EAAK,EACnB,EAAQ,EAAI,EAAE,EACd,EAAO,EAAI,EAAK,EAGtB,SAAS,EAAO,EAA8B,CAC5C,MAAO,CAAE,OAAQ,EAAO,OAAS,IAAA,GAAW,QAAS,EAAQ,OAAS,IAAA,GAAW,MAAO,EAAK,MAAQ,KAAK,IAAI,EAAI,OAAO,EAAK,KAAK,EAAI,MAAa,IAAA,GAAW,QAAO,CACxK,CACA,eAAe,EAAK,EAAS,GAAO,CAClC,EAAQ,MAAQ,GAAM,EAAM,MAAQ,GACpC,GAAI,CACF,IAAM,EAAS,EAAS,EAAQ,MAAM,GAAG,EAAE,CAAC,EAAE,GAAK,IAAA,GAC7C,EAAS,MAAM,EAAM,EAAO,CAAM,EAAG,CAAI,EAC/C,EAAQ,MAAQ,EAAS,CAAC,GAAG,EAAQ,MAAO,GAAG,EAAO,OAAO,EAAI,EAAO,QACxE,EAAQ,MAAQ,EAAO,QACvB,EAAK,MAAQ,EAAO,QAAQ,SAAW,CACzC,OAAS,EAAO,CAAE,EAAM,MAAQ,aAAiB,MAAQ,EAAM,QAAU,MAAO,QACxE,CAAE,EAAQ,MAAQ,EAAM,CAClC,CACA,EAAM,CAAC,EAAQ,EAAS,CAAI,MAAS,CAAE,EAA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;display:grid}select[data-v-7d613b0c]{border:1px solid var(--input-border-color);background:var(--surface);height:34px;color:var(--text-primary);font:13px var(--font-ui);border-radius:8px;padding:0 10px}.ghost[data-v-7d613b0c]{border:1px solid var(--line-strong);background:var(--surface);height:34px;color:var(--text-primary);font:13px var(--font-ui);cursor:pointer;border-radius:8px;justify-self:start;align-items:center;padding:0 14px;text-decoration:none;display:inline-flex}.table-scroll[data-v-7d613b0c]{border:1px solid var(--line);background:var(--surface);border-radius:11px;overflow-x:auto}table[data-v-7d613b0c]{border-collapse:collapse;width:100%;font-size:12.5px}th[data-v-7d613b0c],td[data-v-7d613b0c]{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:9px 12px}th[data-v-7d613b0c]{color:var(--text-muted);background:var(--surface-soft);font-weight:600}tr:last-child td[data-v-7d613b0c]{border-bottom:0}.mono[data-v-7d613b0c]{font-family:var(--font-code);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11.5px}.action[data-v-7d613b0c]{white-space:normal;overflow-wrap:anywhere;display:block}td small[data-v-7d613b0c]{color:var(--text-muted);overflow-wrap:anywhere;margin-top:3px;display:block}.badge[data-v-7d613b0c]{white-space:nowrap;font-size:11px}.badge.ok[data-v-7d613b0c]{color:var(--success)}.badge.denied[data-v-7d613b0c]{color:var(--warning)}.badge.failed[data-v-7d613b0c]{color:var(--danger)}.empty[data-v-7d613b0c]{color:var(--text-muted);text-align:center}.error[data-v-7d613b0c]{color:var(--danger);margin:0;font-size:13px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.desktop-host-panel[data-v-65fb3929]{gap:14px;min-width:0;font-size:13px;display:grid}.desktop-host-panel p[data-v-65fb3929]{color:var(--text-secondary);margin:0;line-height:1.6}.host-toolbar[data-v-65fb3929],.host-list li[data-v-65fb3929]{justify-content:space-between;align-items:center;gap:12px;display:flex}.desktop-host-panel button[data-v-65fb3929]{border:1px solid var(--line);background:var(--surface-raised);min-height:36px;color:var(--text-primary);cursor:pointer;border-radius:8px;padding:7px 12px}.desktop-host-panel button[data-v-65fb3929]:disabled{opacity:.5;cursor:default}.host-list[data-v-65fb3929]{gap:8px;margin:0;padding:0;list-style:none;display:grid}.host-list li[data-v-65fb3929]{border:1px solid var(--line);border-radius:10px;padding:12px}.host-list li div[data-v-65fb3929]{overflow-wrap:anywhere;gap:5px;display:grid}.host-list span[data-v-65fb3929],.desktop-host-panel small[data-v-65fb3929]{color:var(--text-secondary);font-size:12px;line-height:1.5}.desktop-host-panel form[data-v-65fb3929],.desktop-host-panel label[data-v-65fb3929],.host-setup[data-v-65fb3929]{gap:8px;min-width:0;display:grid}.desktop-host-panel form[data-v-65fb3929]{gap:14px}.desktop-host-panel input[data-v-65fb3929]:not([type=checkbox]){box-sizing:border-box;border:1px solid var(--line);background:var(--surface-raised);width:100%;min-width:0;color:var(--text-primary);font:inherit;border-radius:8px;padding:9px 11px}.desktop-host-panel .host-check[data-v-65fb3929]{align-items:center;display:flex}.desktop-host-panel .host-error[data-v-65fb3929]{color:var(--danger)}.desktop-host-panel[data-v-65fb3929] :is(input,select,button):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{A as e,I as t,S as n,T as r,_ as i,at as a,b as o,f as s,j as c,k as l,n as u,t as d,y as f,z as p}from"./_plugin-vue_export-helper-B5sAOsbt.js";import{n as m}from"./webOrigin-B8RkRJQC.js";import{l as h,o as g,u as _}from"./admin-C-rH6P63.js";var v={class:`desktop-host-panel`,"aria-label":`电脑设置`},y={class:`host-toolbar`},b=[`disabled`],x={key:0,class:`host-list`},S=[`disabled`,`aria-label`,`onClick`],C={key:1},w=[`disabled`],T=[`disabled`],E={class:`host-check`},D=[`disabled`],O=[`disabled`],k={key:3,class:`host-setup`},A={key:4,class:`host-error`,role:`alert`},j={key:5,class:`host-notice`,role:`status`},M=d(r({__name:`DesktopHostSettingsPanel`,setup(r){let d=p([]),M=p(!1),N=p(``),P=p(``),F=p(``),I=p(m()),L=p(!1),R=p();async function z(){let e=await u(`/api/app/admin/desktop-hosts`);d.value=e.hosts}async function B(e){if(!M.value){N.value=``,P.value=``,M.value=!0;try{await e()}catch(e){N.value=e instanceof Error?e.message:`电脑操作失败`}finally{M.value=!1}}}async function V(){await B(async()=>{let e=new URL(I.value);if(![`http:`,`https:`].includes(e.protocol)||e.username||e.password||e.search||e.hash||e.pathname!==`/`)throw Error(`请填写不带路径的夭夭服务地址`);if(e.protocol===`http:`&&![`localhost`,`127.0.0.1`,`[::1]`].includes(e.hostname)&&!L.value)throw Error(`远程电脑请使用 HTTPS,或勾选可信局域网 HTTP`);let t=await u(`/api/app/admin/desktop-hosts`,{method:`POST`,body:{name:F.value.trim()}});R.value={protocol:1,serverURL:e.origin,hostId:t.host.id,token:t.token,...L.value?{allowInsecureLan:!0}:{}},P.value=`电脑已注册,请下载配置并在那台电脑的夭夭 App 中导入。`,await z()})}function H(){if(!R.value)return;let e=URL.createObjectURL(new Blob([JSON.stringify(R.value,null,2)+`
|
|
2
|
+
`],{type:`application/json`})),t=document.createElement(`a`);t.href=e,t.download=`desktop-host.json`,t.click(),setTimeout(()=>URL.revokeObjectURL(e),1e3)}function U(e){B(async()=>{await u(`/api/app/admin/desktop-hosts/${e.id}`,{method:`DELETE`,body:{}}),R.value?.hostId===e.id&&(R.value=void 0),await z(),P.value=`已停用 ${e.name}`})}return l(()=>{B(z)}),(r,l)=>(e(),o(`section`,v,[l[12]||=i(`p`,null,`在其他电脑上安装夭夭 App 并导入电脑配置后,那台电脑会主动连接服务器,机器人即可操作它的真实桌面。每台电脑单独授权,配置凭据仅注册时下发一次。`,-1),i(`div`,y,[l[4]||=i(`strong`,null,`已注册电脑`,-1),i(`button`,{type:`button`,disabled:M.value,onClick:l[0]||=e=>B(z)},`刷新状态`,8,b)]),d.value.length?(e(),o(`ul`,x,[(e(!0),o(s,null,c(d.value,t=>(e(),o(`li`,{key:t.id},[i(`div`,null,[i(`strong`,null,a(t.name),1),i(`span`,null,a(t.enabled?t.online?`已连接 · ${t.hostName||t.platform||`电脑`}`:`待连接`:`已停用`),1)]),t.enabled?(e(),o(`button`,{key:0,type:`button`,disabled:M.value,"aria-label":`停用 ${t.name}`,onClick:e=>U(t)},`停用`,8,S)):f(``,!0)]))),128))])):(e(),o(`p`,C,`尚未注册电脑。`)),R.value?(e(),o(`div`,k,[i(`button`,{class:`solid-button`,type:`button`,onClick:H},`下载电脑配置`),l[10]||=i(`p`,null,`配置包含这台电脑的连接凭据,仅本次可下载。在那台电脑上打开夭夭 App,通过菜单「电脑 → 导入电脑配置…」选择下载的 desktop-host.json。`,-1),l[11]||=i(`small`,null,`配置丢失后可停用电脑并重新注册;停用立即断开那台电脑。`,-1)])):(e(),o(`form`,{key:2,onSubmit:_(V,[`prevent`])},[i(`label`,null,[l[5]||=n(`电脑名称`,-1),t(i(`input`,{"onUpdate:modelValue":l[1]||=e=>F.value=e,required:``,maxlength:`100`,autocomplete:`off`,placeholder:`书房 iMac`,disabled:M.value},null,8,w),[[h,F.value]])]),l[8]||=i(`small`,null,`用于在电脑面板中区分各台机器。`,-1),i(`label`,null,[l[6]||=n(`夭夭服务地址`,-1),t(i(`input`,{"onUpdate:modelValue":l[2]||=e=>I.value=e,type:`url`,required:``,disabled:M.value},null,8,T),[[h,I.value]])]),l[9]||=i(`small`,null,`必须能从那台电脑访问。`,-1),i(`label`,E,[t(i(`input`,{"onUpdate:modelValue":l[3]||=e=>L.value=e,type:`checkbox`,disabled:M.value},null,8,D),[[g,L.value]]),l[7]||=n(`使用可信局域网 HTTP`,-1)]),i(`button`,{class:`solid-button`,disabled:M.value||!F.value.trim()},`注册电脑`,8,O)],32)),N.value?(e(),o(`p`,A,a(N.value),1)):f(``,!0),P.value?(e(),o(`p`,j,a(P.value),1)):f(``,!0)]))}}),[[`__scopeId`,`data-v-65fb3929`]]);export{M as t};
|
|
3
|
+
//# sourceMappingURL=DesktopHostSettingsPanel-va4JiNPy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesktopHostSettingsPanel-va4JiNPy.js","names":[],"sources":["../../../src/client/components/app/DesktopHostSettingsPanel.vue","../../../src/client/components/app/DesktopHostSettingsPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { webOrigin } from '@/utils/webOrigin'\nimport { onMounted, ref } from 'vue'\nimport { apiRequest } from '@/api/client'\nimport type { DesktopHostConfiguration, DesktopHostSummary } from '@shared/desktopHost'\n\nconst hosts = ref<DesktopHostSummary[]>([])\nconst busy = ref(false), error = ref(''), notice = ref('')\nconst name = ref('')\nconst serverURL = ref(webOrigin())\nconst insecure = ref(false)\nconst configuration = ref<DesktopHostConfiguration>()\n\nasync function refresh() {\n const data = await apiRequest<{hosts:DesktopHostSummary[]}>('/api/app/admin/desktop-hosts')\n hosts.value = data.hosts\n}\nasync function action(work:()=>Promise<void>) {\n if(busy.value) return\n error.value = ''; notice.value = ''; busy.value = true\n try { await work() } catch(cause) { error.value = cause instanceof Error ? cause.message : '电脑操作失败' }\n finally { busy.value = false }\n}\nasync function register() {\n await action(async()=>{\n const web = new URL(serverURL.value)\n if(!['http:','https:'].includes(web.protocol)||web.username||web.password||web.search||web.hash||web.pathname!=='/')throw new Error('请填写不带路径的夭夭服务地址')\n if(web.protocol==='http:'&&!['localhost','127.0.0.1','[::1]'].includes(web.hostname)&&!insecure.value)throw new Error('远程电脑请使用 HTTPS,或勾选可信局域网 HTTP')\n const result = await apiRequest<{host:DesktopHostSummary;token:string}>('/api/app/admin/desktop-hosts', {method:'POST',body:{name:name.value.trim()}})\n configuration.value = {protocol:1,serverURL:web.origin,hostId:result.host.id,token:result.token,...(insecure.value?{allowInsecureLan:true}:{})}\n notice.value = '电脑已注册,请下载配置并在那台电脑的夭夭 App 中导入。'\n await refresh()\n })\n}\nfunction download() {\n if(!configuration.value) return\n const url = URL.createObjectURL(new Blob([JSON.stringify(configuration.value,null,2)+'\\n'],{type:'application/json'}))\n const anchor = document.createElement('a'); anchor.href = url; anchor.download = 'desktop-host.json'; anchor.click()\n setTimeout(()=>URL.revokeObjectURL(url),1000)\n}\nfunction disable(host:DesktopHostSummary) {\n void action(async()=>{\n await apiRequest(`/api/app/admin/desktop-hosts/${host.id}`,{method:'DELETE',body:{}})\n if(configuration.value?.hostId===host.id)configuration.value=undefined\n await refresh(); notice.value = `已停用 ${host.name}`\n })\n}\nonMounted(()=>{void action(refresh)})\n</script>\n\n<template>\n <section class=\"desktop-host-panel\" aria-label=\"电脑设置\">\n <p>在其他电脑上安装夭夭 App 并导入电脑配置后,那台电脑会主动连接服务器,机器人即可操作它的真实桌面。每台电脑单独授权,配置凭据仅注册时下发一次。</p>\n <div class=\"host-toolbar\"><strong>已注册电脑</strong><button type=\"button\" :disabled=\"busy\" @click=\"action(refresh)\">刷新状态</button></div>\n <ul v-if=\"hosts.length\" class=\"host-list\">\n <li v-for=\"host in hosts\" :key=\"host.id\">\n <div><strong>{{ host.name }}</strong><span>{{ !host.enabled ? '已停用' : host.online ? `已连接 · ${host.hostName || host.platform || '电脑'}` : '待连接' }}</span></div>\n <button v-if=\"host.enabled\" type=\"button\" :disabled=\"busy\" :aria-label=\"`停用 ${host.name}`\" @click=\"disable(host)\">停用</button>\n </li>\n </ul>\n <p v-else>尚未注册电脑。</p>\n <form v-if=\"!configuration\" @submit.prevent=\"register\">\n <label>电脑名称<input v-model=\"name\" required maxlength=\"100\" autocomplete=\"off\" placeholder=\"书房 iMac\" :disabled=\"busy\"></label>\n <small>用于在电脑面板中区分各台机器。</small>\n <label>夭夭服务地址<input v-model=\"serverURL\" type=\"url\" required :disabled=\"busy\"></label>\n <small>必须能从那台电脑访问。</small>\n <label class=\"host-check\"><input v-model=\"insecure\" type=\"checkbox\" :disabled=\"busy\">使用可信局域网 HTTP</label>\n <button class=\"solid-button\" :disabled=\"busy || !name.trim()\">注册电脑</button>\n </form>\n <div v-else class=\"host-setup\">\n <button class=\"solid-button\" type=\"button\" @click=\"download\">下载电脑配置</button>\n <p>配置包含这台电脑的连接凭据,仅本次可下载。在那台电脑上打开夭夭 App,通过菜单「电脑 → 导入电脑配置…」选择下载的 desktop-host.json。</p>\n <small>配置丢失后可停用电脑并重新注册;停用立即断开那台电脑。</small>\n </div>\n <p v-if=\"error\" class=\"host-error\" role=\"alert\">{{ error }}</p>\n <p v-if=\"notice\" class=\"host-notice\" role=\"status\">{{ notice }}</p>\n </section>\n</template>\n\n<style scoped>\n.desktop-host-panel { display: grid; gap: 14px; min-width: 0; font-size: 13px; }\n.desktop-host-panel p { margin: 0; line-height: 1.6; color: var(--text-secondary); }\n.host-toolbar,.host-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.desktop-host-panel button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text-primary); cursor: pointer; }\n.desktop-host-panel button:disabled { opacity: .5; cursor: default; }\n.host-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }\n.host-list li { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }\n.host-list li div { display: grid; gap: 5px; overflow-wrap: anywhere; }\n.host-list span,.desktop-host-panel small { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }\n.desktop-host-panel form,.desktop-host-panel label,.host-setup { display: grid; gap: 8px; min-width: 0; }\n.desktop-host-panel form { gap: 14px; }\n.desktop-host-panel input:not([type=checkbox]) { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text-primary); font: inherit; }\n.desktop-host-panel .host-check { display: flex; align-items: center; }\n.desktop-host-panel .host-error { color: var(--danger); }\n.desktop-host-panel :is(input,select,button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }\n</style>\n","<script setup lang=\"ts\">\nimport { webOrigin } from '@/utils/webOrigin'\nimport { onMounted, ref } from 'vue'\nimport { apiRequest } from '@/api/client'\nimport type { DesktopHostConfiguration, DesktopHostSummary } from '@shared/desktopHost'\n\nconst hosts = ref<DesktopHostSummary[]>([])\nconst busy = ref(false), error = ref(''), notice = ref('')\nconst name = ref('')\nconst serverURL = ref(webOrigin())\nconst insecure = ref(false)\nconst configuration = ref<DesktopHostConfiguration>()\n\nasync function refresh() {\n const data = await apiRequest<{hosts:DesktopHostSummary[]}>('/api/app/admin/desktop-hosts')\n hosts.value = data.hosts\n}\nasync function action(work:()=>Promise<void>) {\n if(busy.value) return\n error.value = ''; notice.value = ''; busy.value = true\n try { await work() } catch(cause) { error.value = cause instanceof Error ? cause.message : '电脑操作失败' }\n finally { busy.value = false }\n}\nasync function register() {\n await action(async()=>{\n const web = new URL(serverURL.value)\n if(!['http:','https:'].includes(web.protocol)||web.username||web.password||web.search||web.hash||web.pathname!=='/')throw new Error('请填写不带路径的夭夭服务地址')\n if(web.protocol==='http:'&&!['localhost','127.0.0.1','[::1]'].includes(web.hostname)&&!insecure.value)throw new Error('远程电脑请使用 HTTPS,或勾选可信局域网 HTTP')\n const result = await apiRequest<{host:DesktopHostSummary;token:string}>('/api/app/admin/desktop-hosts', {method:'POST',body:{name:name.value.trim()}})\n configuration.value = {protocol:1,serverURL:web.origin,hostId:result.host.id,token:result.token,...(insecure.value?{allowInsecureLan:true}:{})}\n notice.value = '电脑已注册,请下载配置并在那台电脑的夭夭 App 中导入。'\n await refresh()\n })\n}\nfunction download() {\n if(!configuration.value) return\n const url = URL.createObjectURL(new Blob([JSON.stringify(configuration.value,null,2)+'\\n'],{type:'application/json'}))\n const anchor = document.createElement('a'); anchor.href = url; anchor.download = 'desktop-host.json'; anchor.click()\n setTimeout(()=>URL.revokeObjectURL(url),1000)\n}\nfunction disable(host:DesktopHostSummary) {\n void action(async()=>{\n await apiRequest(`/api/app/admin/desktop-hosts/${host.id}`,{method:'DELETE',body:{}})\n if(configuration.value?.hostId===host.id)configuration.value=undefined\n await refresh(); notice.value = `已停用 ${host.name}`\n })\n}\nonMounted(()=>{void action(refresh)})\n</script>\n\n<template>\n <section class=\"desktop-host-panel\" aria-label=\"电脑设置\">\n <p>在其他电脑上安装夭夭 App 并导入电脑配置后,那台电脑会主动连接服务器,机器人即可操作它的真实桌面。每台电脑单独授权,配置凭据仅注册时下发一次。</p>\n <div class=\"host-toolbar\"><strong>已注册电脑</strong><button type=\"button\" :disabled=\"busy\" @click=\"action(refresh)\">刷新状态</button></div>\n <ul v-if=\"hosts.length\" class=\"host-list\">\n <li v-for=\"host in hosts\" :key=\"host.id\">\n <div><strong>{{ host.name }}</strong><span>{{ !host.enabled ? '已停用' : host.online ? `已连接 · ${host.hostName || host.platform || '电脑'}` : '待连接' }}</span></div>\n <button v-if=\"host.enabled\" type=\"button\" :disabled=\"busy\" :aria-label=\"`停用 ${host.name}`\" @click=\"disable(host)\">停用</button>\n </li>\n </ul>\n <p v-else>尚未注册电脑。</p>\n <form v-if=\"!configuration\" @submit.prevent=\"register\">\n <label>电脑名称<input v-model=\"name\" required maxlength=\"100\" autocomplete=\"off\" placeholder=\"书房 iMac\" :disabled=\"busy\"></label>\n <small>用于在电脑面板中区分各台机器。</small>\n <label>夭夭服务地址<input v-model=\"serverURL\" type=\"url\" required :disabled=\"busy\"></label>\n <small>必须能从那台电脑访问。</small>\n <label class=\"host-check\"><input v-model=\"insecure\" type=\"checkbox\" :disabled=\"busy\">使用可信局域网 HTTP</label>\n <button class=\"solid-button\" :disabled=\"busy || !name.trim()\">注册电脑</button>\n </form>\n <div v-else class=\"host-setup\">\n <button class=\"solid-button\" type=\"button\" @click=\"download\">下载电脑配置</button>\n <p>配置包含这台电脑的连接凭据,仅本次可下载。在那台电脑上打开夭夭 App,通过菜单「电脑 → 导入电脑配置…」选择下载的 desktop-host.json。</p>\n <small>配置丢失后可停用电脑并重新注册;停用立即断开那台电脑。</small>\n </div>\n <p v-if=\"error\" class=\"host-error\" role=\"alert\">{{ error }}</p>\n <p v-if=\"notice\" class=\"host-notice\" role=\"status\">{{ notice }}</p>\n </section>\n</template>\n\n<style scoped>\n.desktop-host-panel { display: grid; gap: 14px; min-width: 0; font-size: 13px; }\n.desktop-host-panel p { margin: 0; line-height: 1.6; color: var(--text-secondary); }\n.host-toolbar,.host-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.desktop-host-panel button { min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text-primary); cursor: pointer; }\n.desktop-host-panel button:disabled { opacity: .5; cursor: default; }\n.host-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }\n.host-list li { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }\n.host-list li div { display: grid; gap: 5px; overflow-wrap: anywhere; }\n.host-list span,.desktop-host-panel small { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }\n.desktop-host-panel form,.desktop-host-panel label,.host-setup { display: grid; gap: 8px; min-width: 0; }\n.desktop-host-panel form { gap: 14px; }\n.desktop-host-panel input:not([type=checkbox]) { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text-primary); font: inherit; }\n.desktop-host-panel .host-check { display: flex; align-items: center; }\n.desktop-host-panel .host-error { color: var(--danger); }\n.desktop-host-panel :is(input,select,button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }\n</style>\n"],"mappings":"6pBAMA,IAAM,EAAQ,EAA0B,CAAC,CAAC,EACpC,EAAO,EAAI,EAAK,EAAG,EAAQ,EAAI,EAAE,EAAG,EAAS,EAAI,EAAE,EACnD,EAAO,EAAI,EAAE,EACb,EAAY,EAAI,EAAU,CAAC,EAC3B,EAAW,EAAI,EAAK,EACpB,EAAgB,EAA8B,EAEpD,eAAe,GAAU,CACvB,IAAM,EAAO,MAAM,EAAyC,8BAA8B,EAC1F,EAAM,MAAQ,EAAK,KACrB,CACA,eAAe,EAAO,EAAwB,CACzC,MAAK,MAC6B,CAArC,EAAM,MAAQ,GAAI,EAAO,MAAQ,GAAI,EAAK,MAAQ,GAClD,GAAI,CAAE,MAAM,EAAK,CAAE,OAAQ,EAAO,C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