From 04e3dbf5c8ac1c36766b4666bd175c5d02ce862c Mon Sep 17 00:00:00 2001 From: MemRelay Date: Sun, 27 Sep 2026 00:38:16 +0800 Subject: [PATCH] =?UTF-8?q?create:=20=E6=A1=8C=E9=9D=A2=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20Naive=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:rapt-decision-naive-ui-20260927 MemRelay-Resource: 78b5bdbf-b410-41ec-87ac-5ec555440648 --- .../桌面界面使用 Naive UI.md | 20 +++++++++++++++++++ .../桌面登录后显示个人信息.md | 10 +++++----- 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面界面使用 Naive UI.md diff --git a/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面界面使用 Naive UI.md b/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面界面使用 Naive UI.md new file mode 100644 index 0000000..e615a96 --- /dev/null +++ b/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面界面使用 Naive UI.md @@ -0,0 +1,20 @@ +--- +title: 桌面界面使用 Naive UI +type: decision +permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面界面使用-naive-ui +stable_id: 78b5bdbf-b410-41ec-87ac-5ec555440648 +scope: project +memory_type: decision +project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: rapt-decision-naive-ui-20260927 +created_at: '2026-09-26T16:38:13.156330+00:00' +updated_at: '2026-09-26T16:38:13.156330+00:00' +tags: +- desktop +- ui +--- + +桌面 Vue 3 界面使用 naive-ui 2,深色主题和中文语言包。组件与 Vue API 通过 unplugin-vue-components、unplugin-auto-import 自动导入,类型声明在 ui/src/components.d.ts 和 ui/src/auto-imports.d.ts。后续页面继续用 Naive UI,不再另写一套基础控件。 \ No newline at end of file diff --git a/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面登录后显示个人信息.md b/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面登录后显示个人信息.md index 061a452..d776763 100644 --- a/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面登录后显示个人信息.md +++ b/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/桌面登录后显示个人信息.md @@ -8,14 +8,14 @@ memory_type: fact project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 status: active -revision: 4 -request_id: rapt-adb-device-list-merge-20260927 +revision: 5 +request_id: rapt-fact-naive-ui-20260927 created_at: '2026-09-26T16:22:05.815772+00:00' -updated_at: '2026-09-26T16:28:48.749762+00:00' +updated_at: '2026-09-26T16:38:14.856712+00:00' tags: - desktop - login -- adb +- ui --- -桌面登录接口在 server/main.py,默认端口 8798(DEFAULT_PORT)。Swagger 仍在 8787。端口如何选择尚未定,先固定 8798。接口:POST /api/login/guest、/api/login/password、/api/login/token、/api/login/adb,POST /api/me 重读资料,GET /api/adb/devices 列设备。登录后先拿 token,再调 getUserInfo,返回 {token, profile},profile 不含 token。Vite 把 /api 代理到 8798。页面 ui/src/App.vue:四种登录;成功后显示昵称、邮箱、用户 ID、徽章、VIP 天数、积分、观看、奖励、登录天数和绑定状态。token 只进 sessionStorage。ADB 打开时自动列出已连接设备,选项为「型号 · 设备 ID · 已 root/未 root」,未授权和离线不能选,只有一台就绪设备时自动选中,并有刷新按钮。提示:从已 root 的设备读取当前登录账号。未 root 的设备无法获取登录信息。列表用 adb devices -l 读型号,用 id / su 判断 root,列表时不执行 adb root。Tauri 尚未自动拉起 Python。 \ No newline at end of file +桌面登录接口在 server/main.py,默认端口 8798(DEFAULT_PORT)。Swagger 仍在 8787。端口如何选择尚未定,先固定 8798。接口:POST /api/login/guest、/api/login/password、/api/login/token、/api/login/adb,POST /api/me 重读资料,GET /api/adb/devices 列设备。登录后先拿 token,再调 getUserInfo,返回 {token, profile},profile 不含 token。Vite 把 /api 代理到 8798。页面 ui/src/App.vue 使用 Naive UI 深色主题:四种登录;成功后显示昵称、邮箱、用户 ID、徽章、VIP 天数、积分、观看、奖励、登录天数和绑定状态。token 只进 sessionStorage。ADB 打开时自动列出已连接设备,选项为「型号 · 设备 ID · 已 root/未 root」,未授权和离线不能选,只有一台就绪设备时自动选中,并有刷新按钮。提示:从已 root 的设备读取当前登录账号。未 root 的设备无法获取登录信息。列表用 adb devices -l 读型号,用 id / su 判断 root,列表时不执行 adb root。Tauri 尚未自动拉起 Python。 \ No newline at end of file