feat: (web) add item route
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -45,4 +45,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
|||||||
|
|
||||||
src/db/data
|
src/db/data
|
||||||
src/db/log
|
src/db/log
|
||||||
scratchpad/
|
scratchpad/
|
||||||
|
tickets/
|
||||||
@@ -4,6 +4,7 @@ import "./index.css";
|
|||||||
import { DesignSystem } from "./pages/DesignSystem";
|
import { DesignSystem } from "./pages/DesignSystem";
|
||||||
import { AdminQuests } from "./pages/AdminQuests";
|
import { AdminQuests } from "./pages/AdminQuests";
|
||||||
import { AdminOverview } from "./pages/admin/Overview";
|
import { AdminOverview } from "./pages/admin/Overview";
|
||||||
|
import { AdminItems } from "./pages/admin/Items";
|
||||||
|
|
||||||
import { Home } from "./pages/Home";
|
import { Home } from "./pages/Home";
|
||||||
import { Toaster } from "sonner";
|
import { Toaster } from "sonner";
|
||||||
@@ -28,6 +29,7 @@ export function App() {
|
|||||||
<Route path="/admin" element={<Navigate to="/admin/overview" replace />} />
|
<Route path="/admin" element={<Navigate to="/admin/overview" replace />} />
|
||||||
<Route path="/admin/overview" element={<AdminOverview />} />
|
<Route path="/admin/overview" element={<AdminOverview />} />
|
||||||
<Route path="/admin/quests" element={<AdminQuests />} />
|
<Route path="/admin/quests" element={<AdminQuests />} />
|
||||||
|
<Route path="/admin/items" element={<AdminItems />} />
|
||||||
|
|
||||||
|
|
||||||
<Route path="/settings" element={<SettingsLayout />}>
|
<Route path="/settings" element={<SettingsLayout />}>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { useLocation, type Location } from "react-router-dom"
|
import { useLocation, type Location } from "react-router-dom"
|
||||||
import { Home, Palette, ShieldCheck, Settings, LayoutDashboard, Trophy, SlidersHorizontal, Coins, Cog, UserCog, type LucideIcon } from "lucide-react"
|
import { Home, Palette, ShieldCheck, Settings, LayoutDashboard, Trophy, SlidersHorizontal, Coins, Cog, UserCog, Package, type LucideIcon } from "lucide-react"
|
||||||
|
|
||||||
export interface NavSubItem {
|
export interface NavSubItem {
|
||||||
title: string
|
title: string
|
||||||
@@ -46,6 +46,7 @@ const NAV_CONFIG: NavConfigItem[] = [
|
|||||||
subItems: [
|
subItems: [
|
||||||
{ title: "Overview", url: "/admin/overview", icon: LayoutDashboard },
|
{ title: "Overview", url: "/admin/overview", icon: LayoutDashboard },
|
||||||
{ title: "Quests", url: "/admin/quests", icon: Trophy },
|
{ title: "Quests", url: "/admin/quests", icon: Trophy },
|
||||||
|
{ title: "Items", url: "/admin/items", icon: Package },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
20
web/src/pages/admin/Items.tsx
Normal file
20
web/src/pages/admin/Items.tsx
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import React from "react";
|
||||||
|
import { SectionHeader } from "../../components/section-header";
|
||||||
|
|
||||||
|
export function AdminItems() {
|
||||||
|
return (
|
||||||
|
<main className="pt-8 px-8 pb-12 max-w-7xl mx-auto space-y-12">
|
||||||
|
<SectionHeader
|
||||||
|
badge="Item Management"
|
||||||
|
title="Items"
|
||||||
|
description="Create and manage items for the Aurora RPG."
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div className="animate-in fade-in slide-up duration-700">
|
||||||
|
<p className="text-muted-foreground">Items management coming soon...</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default AdminItems;
|
||||||
Reference in New Issue
Block a user