Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
f0ece821
"frontend/src/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "ec87f39da513508694dcce2bba51df653b148c90"
Commit
f0ece821
authored
Jan 12, 2026
by
song
Browse files
feat: 在 dashboard 右上角添加文档链接
parent
11bfc807
Changes
3
Show whitespace changes
Inline
Side-by-side
frontend/src/components/layout/AppHeader.vue
View file @
f0ece821
...
@@ -21,8 +21,20 @@
...
@@ -21,8 +21,20 @@
</div>
</div>
</div>
</div>
<!-- Right: Language + Subscriptions + Balance + User Dropdown -->
<!-- Right:
Docs +
Language + Subscriptions + Balance + User Dropdown -->
<div
class=
"flex items-center gap-3"
>
<div
class=
"flex items-center gap-3"
>
<!-- Docs Link -->
<a
v-if=
"docUrl"
:href=
"docUrl"
target=
"_blank"
rel=
"noopener noreferrer"
class=
"flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-sm font-medium text-gray-600 transition-colors hover:bg-gray-100 hover:text-gray-900 dark:text-dark-400 dark:hover:bg-dark-800 dark:hover:text-white"
>
<Icon
name=
"book"
size=
"sm"
/>
<span
class=
"hidden sm:inline"
>
{{
t
(
'
nav.docs
'
)
}}
</span>
</a>
<!-- Language Switcher -->
<!-- Language Switcher -->
<LocaleSwitcher
/>
<LocaleSwitcher
/>
...
@@ -211,6 +223,7 @@ const user = computed(() => authStore.user)
...
@@ -211,6 +223,7 @@ const user = computed(() => authStore.user)
const
dropdownOpen
=
ref
(
false
)
const
dropdownOpen
=
ref
(
false
)
const
dropdownRef
=
ref
<
HTMLElement
|
null
>
(
null
)
const
dropdownRef
=
ref
<
HTMLElement
|
null
>
(
null
)
const
contactInfo
=
computed
(()
=>
appStore
.
contactInfo
)
const
contactInfo
=
computed
(()
=>
appStore
.
contactInfo
)
const
docUrl
=
computed
(()
=>
appStore
.
docUrl
)
// 只在标准模式的管理员下显示新手引导按钮
// 只在标准模式的管理员下显示新手引导按钮
const
showOnboardingButton
=
computed
(()
=>
{
const
showOnboardingButton
=
computed
(()
=>
{
...
...
frontend/src/i18n/locales/en.ts
View file @
f0ece821
...
@@ -185,7 +185,8 @@ export default {
...
@@ -185,7 +185,8 @@ export default {
expand
:
'
Expand
'
,
expand
:
'
Expand
'
,
logout
:
'
Logout
'
,
logout
:
'
Logout
'
,
github
:
'
GitHub
'
,
github
:
'
GitHub
'
,
mySubscriptions
:
'
My Subscriptions
'
mySubscriptions
:
'
My Subscriptions
'
,
docs
:
'
Docs
'
},
},
// Auth
// Auth
...
...
frontend/src/i18n/locales/zh.ts
View file @
f0ece821
...
@@ -183,7 +183,8 @@ export default {
...
@@ -183,7 +183,8 @@ export default {
expand
:
'
展开
'
,
expand
:
'
展开
'
,
logout
:
'
退出登录
'
,
logout
:
'
退出登录
'
,
github
:
'
GitHub
'
,
github
:
'
GitHub
'
,
mySubscriptions
:
'
我的订阅
'
mySubscriptions
:
'
我的订阅
'
,
docs
:
'
文档
'
},
},
// Auth
// Auth
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment