create: 桌面界面使用 Naive UI
MemRelay-Operation: memory-save:rapt-decision-naive-ui-20260927 MemRelay-Resource: 78b5bdbf-b410-41ec-87ac-5ec555440648
This commit is contained in:
@@ -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,不再另写一套基础控件。
|
||||||
@@ -8,14 +8,14 @@ memory_type: fact
|
|||||||
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
|
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
|
||||||
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
status: active
|
status: active
|
||||||
revision: 4
|
revision: 5
|
||||||
request_id: rapt-adb-device-list-merge-20260927
|
request_id: rapt-fact-naive-ui-20260927
|
||||||
created_at: '2026-09-26T16:22:05.815772+00:00'
|
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:
|
tags:
|
||||||
- desktop
|
- desktop
|
||||||
- login
|
- 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。
|
桌面登录接口在 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。
|
||||||
Reference in New Issue
Block a user