first runnable version

This commit is contained in:
yoyuzh
2026-03-14 12:28:46 +08:00
parent 8db2fa2aab
commit 6cff15f8dc
35 changed files with 2118 additions and 256 deletions

View File

@@ -1,8 +1,10 @@
import React from 'react';
import { NavLink, Outlet, useNavigate } from 'react-router-dom';
import { cn } from '@/src/lib/utils';
import { LayoutDashboard, FolderOpen, GraduationCap, Gamepad2, LogOut } from 'lucide-react';
import { clearStoredSession } from '@/src/lib/session';
import { cn } from '@/src/lib/utils';
const NAV_ITEMS = [
{ name: '总览', path: '/overview', icon: LayoutDashboard },
{ name: '网盘', path: '/files', icon: FolderOpen },
@@ -14,6 +16,7 @@ export function Layout() {
const navigate = useNavigate();
const handleLogout = () => {
clearStoredSession();
navigate('/login');
};
@@ -88,4 +91,3 @@ export function Layout() {
</div>
);
}