@@ -26,6 +26,7 @@ import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar";
2626import { CNodeLogo } from "./CNodeLogo" ;
2727import { CommandPalette } from "./CommandPalette" ;
2828import { PageContainer } from "./PageShell" ;
29+ import { ScrollTopButton } from "./ScrollTopButton" ;
2930import { cn } from "~/lib/utils" ;
3031import {
3132 DropdownMenu ,
@@ -47,6 +48,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
4748 < PageContainer className = "py-6" > { children } </ PageContainer >
4849 </ main >
4950 < Footer />
51+ < ScrollTopButton />
5052 </ div >
5153 ) ;
5254}
@@ -84,6 +86,10 @@ function Header() {
8486 { z . name }
8587 </ NavLink >
8688 ) ) }
89+ < NavLink to = "/api" >
90+ < Code className = "h-4 w-4" />
91+ API
92+ </ NavLink >
8793 < DropdownMenu >
8894 < DropdownMenuTrigger asChild >
8995 < button className = "inline-flex h-9 items-center gap-1 rounded-lg px-3 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground" >
@@ -93,21 +99,15 @@ function Header() {
9399 </ button >
94100 </ DropdownMenuTrigger >
95101 < DropdownMenuContent align = "end" className = "w-36" >
96- < DropdownMenuItem asChild >
97- < Link to = "/help" className = "w-full justify-start" > 指引总览</ Link >
98- </ DropdownMenuItem >
99102 < DropdownMenuItem asChild >
100103 < Link to = "/getstart" className = "w-full justify-start" > 新手指南</ Link >
101104 </ DropdownMenuItem >
102105 < DropdownMenuItem asChild >
103- < Link to = "/api " className = "w-full justify-start" > API 文档 </ Link >
106+ < Link to = "/faq " className = "w-full justify-start" > 常见问题 </ Link >
104107 </ DropdownMenuItem >
105108 < DropdownMenuItem asChild >
106109 < Link to = "/about" className = "w-full justify-start" > 关于我们</ Link >
107110 </ DropdownMenuItem >
108- < DropdownMenuItem asChild >
109- < Link to = "/faq" className = "w-full justify-start" > 常见问题</ Link >
110- </ DropdownMenuItem >
111111 </ DropdownMenuContent >
112112 </ DropdownMenu >
113113 </ nav >
@@ -237,7 +237,7 @@ export function HeaderUserArea() {
237237 < DropdownMenuItem asChild >
238238 < Link to = "/setting" >
239239 < Settings />
240- 设置
240+ 用户设置
241241 </ Link >
242242 </ DropdownMenuItem >
243243 </ DropdownMenuGroup >
@@ -315,12 +315,6 @@ function MobileNavTrigger({ visibleZones = [] }: { visibleZones?: any[] }) {
315315 >
316316 < Bell className = "h-5 w-5 text-primary" /> 消息
317317 </ Link >
318- < Link
319- to = "/help"
320- className = "flex min-h-12 items-center gap-3 rounded-xl border border-cnode-green/15 bg-card px-3 text-sm text-foreground shadow-sm hover:bg-cnode-soft hover:text-cnode-ink"
321- >
322- < HelpCircle className = "h-5 w-5 text-primary" /> 指引总览
323- </ Link >
324318 < Link
325319 to = "/getstart"
326320 className = "flex min-h-12 items-center gap-3 rounded-xl border border-cnode-green/15 bg-card px-3 text-sm text-foreground shadow-sm hover:bg-cnode-soft hover:text-cnode-ink"
@@ -331,19 +325,19 @@ function MobileNavTrigger({ visibleZones = [] }: { visibleZones?: any[] }) {
331325 to = "/api"
332326 className = "flex min-h-12 items-center gap-3 rounded-xl border border-cnode-green/15 bg-card px-3 text-sm text-foreground shadow-sm hover:bg-cnode-soft hover:text-cnode-ink"
333327 >
334- < Code className = "h-5 w-5 text-primary" /> API 文档
328+ < Code className = "h-5 w-5 text-primary" /> API
335329 </ Link >
336330 < Link
337- to = "/about "
331+ to = "/faq "
338332 className = "flex min-h-12 items-center gap-3 rounded-xl border border-cnode-green/15 bg-card px-3 text-sm text-foreground shadow-sm hover:bg-cnode-soft hover:text-cnode-ink"
339333 >
340- < Info className = "h-5 w-5 text-primary" /> 关于我们
334+ < HelpCircle className = "h-5 w-5 text-primary" /> 常见问题
341335 </ Link >
342336 < Link
343- to = "/faq "
337+ to = "/about "
344338 className = "flex min-h-12 items-center gap-3 rounded-xl border border-cnode-green/15 bg-card px-3 text-sm text-foreground shadow-sm hover:bg-cnode-soft hover:text-cnode-ink"
345339 >
346- < HelpCircle className = "h-5 w-5 text-primary" /> 常见问题
340+ < Info className = "h-5 w-5 text-primary" /> 关于我们
347341 </ Link >
348342 { user ? (
349343 < >
@@ -357,7 +351,7 @@ function MobileNavTrigger({ visibleZones = [] }: { visibleZones?: any[] }) {
357351 to = "/setting"
358352 className = "flex min-h-12 items-center gap-3 rounded-xl border border-cnode-green/15 bg-card px-3 text-sm text-foreground shadow-sm hover:bg-cnode-soft hover:text-cnode-ink"
359353 >
360- < Settings className = "h-5 w-5 text-primary" /> 设置
354+ < Settings className = "h-5 w-5 text-primary" /> 用户设置
361355 </ Link >
362356 { ( user . is_admin || user . is_mod ) && (
363357 < Link
0 commit comments