diff --git a/components.d.ts b/components.d.ts
index 74d4cbd..0e5f950 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -234,6 +234,7 @@ declare module '@vue/runtime-core' {
UrlParser: typeof import('./src/tools/url-parser/url-parser.vue')['default']
UserAgentParser: typeof import('./src/tools/user-agent-parser/user-agent-parser.vue')['default']
UserAgentResultCards: typeof import('./src/tools/user-agent-parser/user-agent-result-cards.vue')['default']
+ 'UserCenter.page': typeof import('./src/pages/UserCenter.page.vue')['default']
UserMenu: typeof import('./src/components/UserMenu.vue')['default']
UuidGenerator: typeof import('./src/tools/uuid-generator/uuid-generator.vue')['default']
VideoTools: typeof import('./src/tools/video-tools/video-tools.vue')['default']
diff --git a/src/components/UserMenu.vue b/src/components/UserMenu.vue
index ad9a136..ae97b3b 100644
--- a/src/components/UserMenu.vue
+++ b/src/components/UserMenu.vue
@@ -158,7 +158,7 @@ function switchMode() {
-
{{ username }}
+
{{ username }}
@@ -241,6 +241,15 @@ function switchMode() {
white-space: nowrap;
}
+ .user-center-link {
+ color: inherit;
+ text-decoration: none;
+
+ &:hover {
+ color: #18a058;
+ }
+ }
+
.user-action {
display: inline-flex;
opacity: 0.6;
diff --git a/src/pages/UserCenter.page.vue b/src/pages/UserCenter.page.vue
new file mode 100644
index 0000000..6c160a8
--- /dev/null
+++ b/src/pages/UserCenter.page.vue
@@ -0,0 +1,491 @@
+
+
+
+
+
+
+
🔐
+
请先登录
+
登录后可查看你的云端收藏、最近使用记录和网站收藏
+
+ 返回首页登录
+
+
+
+
+
+
+
+
+
+
+
+ ⏳ 正在加载云端数据…
+
+
+
+
+
+
⭐ 我的收藏 点击工具卡片直接使用
+
+
+ {{ t.name }}
+ {{ String(t.description || '').slice(0, 40) }}
+
+
+
+ 还没有收藏工具——在工具卡片上点「加入收藏」即可
+
+
+
+
+
+
🕘 最近使用 按访问时间倒序,保留 30 条
+
+
+ {{ r.name }}
+ {{ r.path }}
+ {{ fmtTime(r.at) }}
+
+
+
+ 还没有使用记录——用过的工具会自动出现在这里
+
+
+
+
+
+
🗂️ 网站收藏 共 {{ bookmarks.length }} 个自定义站点
+
+
+
+ {{ cat }} ({{ list.length }})
+
+
+
+
+
+ 还没有网站收藏——在「IT网站收藏」工具里添加
+
+
+
+
+
+
+
+
+
diff --git a/src/router.ts b/src/router.ts
index 0dc6607..44f3fc9 100644
--- a/src/router.ts
+++ b/src/router.ts
@@ -31,6 +31,11 @@ const router = createRouter({
name: 'about',
component: () => import('./pages/About.vue'),
},
+ {
+ path: '/user-center',
+ name: 'user-center',
+ component: () => import('./pages/UserCenter.page.vue'),
+ },
{
path: '/pricing',
name: 'pricing',