Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion frontend/components/layout/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import * as React from "react"
import Link from "next/link"
import { usePathname, useRouter } from "next/navigation"
import packageJson from "../../package.json"
import { toast } from "sonner"
import { Button } from "@/components/ui/button"
import { Spinner } from "@/components/ui/spinner"
Expand All @@ -22,6 +23,7 @@ import { getCurrentTheme } from "@/components/layout/avater-style/registry"
import {
Sidebar,
SidebarContent,
SidebarFooter,
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
Expand Down Expand Up @@ -62,7 +64,6 @@ import {

import { useUser } from "@/contexts/user-context"


/* 导航数据 */
const data = {
navMain: [
Expand Down Expand Up @@ -361,6 +362,12 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
</SidebarGroupContent>
</SidebarGroup>
</SidebarContent>
<SidebarFooter className="mt-auto px-3 py-3 group-data-[collapsible=icon]:hidden">
<div className="border-t border-border/60 pt-3 text-[11px] leading-5 text-muted-foreground">
<div>Version {packageJson.version}</div>
<div>Build At {packageJson.buildDate}</div>
</div>
</SidebarFooter>
</Sidebar>

<AlertDialog open={showLogoutDialog} onOpenChange={(open) => !isLoggingOut && setShowLogoutDialog(open)}>
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "linux-do-credit",
"version": "1.0.0",
"buildDate": "2026-01-01T00:00:00Z",
"version": "1.3.9",
"buildDate": "2026-04-22 16:00:00",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
Expand Down
Loading