feat: Add edit
pages with cache
This commit is contained in:
@ -3,7 +3,6 @@ import {
|
||||
Power,
|
||||
LucideIcon,
|
||||
Building2,
|
||||
MonitorSmartphone,
|
||||
Map,
|
||||
Users,
|
||||
Earth,
|
||||
@ -11,6 +10,14 @@ import {
|
||||
BusFront,
|
||||
Bus,
|
||||
GitBranch,
|
||||
Car,
|
||||
Train,
|
||||
Ship,
|
||||
Table,
|
||||
Split,
|
||||
Newspaper,
|
||||
PersonStanding,
|
||||
Cpu,
|
||||
} from "lucide-react";
|
||||
export const DRAWER_WIDTH = 300;
|
||||
|
||||
@ -20,6 +27,7 @@ interface NavigationItem {
|
||||
icon: LucideIcon;
|
||||
path?: string;
|
||||
onClick?: () => void;
|
||||
nestedItems?: NavigationItem[];
|
||||
}
|
||||
|
||||
export const NAVIGATION_ITEMS: {
|
||||
@ -45,30 +53,7 @@ export const NAVIGATION_ITEMS: {
|
||||
icon: BusFront,
|
||||
path: "/carrier",
|
||||
},
|
||||
// {
|
||||
// id: "media",
|
||||
// label: "Медиа",
|
||||
// icon: BookImage,
|
||||
// path: "/media",
|
||||
// },
|
||||
// {
|
||||
// id: "articles",
|
||||
// label: "Статьи",
|
||||
// icon: Newspaper,
|
||||
// path: "/article",
|
||||
// },
|
||||
{
|
||||
id: "attractions",
|
||||
label: "Достопримечательности",
|
||||
icon: Landmark,
|
||||
path: "/sight",
|
||||
},
|
||||
// {
|
||||
// id: "stations",
|
||||
// label: "Остановки",
|
||||
// icon: PersonStanding,
|
||||
// path: "/station",
|
||||
// },
|
||||
|
||||
{
|
||||
id: "snapshots",
|
||||
label: "Снапшоты",
|
||||
@ -84,33 +69,59 @@ export const NAVIGATION_ITEMS: {
|
||||
{
|
||||
id: "devices",
|
||||
label: "Устройства",
|
||||
icon: MonitorSmartphone,
|
||||
icon: Cpu,
|
||||
path: "/devices",
|
||||
},
|
||||
{
|
||||
id: "all",
|
||||
label: "Все сущности",
|
||||
icon: Table,
|
||||
nestedItems: [
|
||||
// {
|
||||
// id: "media",
|
||||
// label: "Медиа",
|
||||
// icon: BookImage,
|
||||
// path: "/media",
|
||||
// },
|
||||
// {
|
||||
// id: "articles",
|
||||
// label: "Статьи",
|
||||
// icon: Newspaper,
|
||||
// path: "/article",
|
||||
// },
|
||||
{
|
||||
id: "attractions",
|
||||
label: "Достопримечательности",
|
||||
icon: Landmark,
|
||||
path: "/sight",
|
||||
},
|
||||
{
|
||||
id: "stations",
|
||||
label: "Остановки",
|
||||
icon: PersonStanding,
|
||||
path: "/station",
|
||||
},
|
||||
{
|
||||
id: "routes",
|
||||
label: "Маршруты",
|
||||
icon: Split,
|
||||
path: "/route",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
id: "vehicles",
|
||||
label: "Транспорт",
|
||||
icon: Bus,
|
||||
icon: Car,
|
||||
path: "/vehicle",
|
||||
},
|
||||
// {
|
||||
// id: "routes",
|
||||
// label: "Маршруты",
|
||||
// icon: Split,
|
||||
// path: "/route",
|
||||
// },
|
||||
{
|
||||
id: "users",
|
||||
label: "Пользователи",
|
||||
icon: Users,
|
||||
path: "/user",
|
||||
},
|
||||
// {
|
||||
// id: "articles",
|
||||
// label: "Статьи",
|
||||
// icon: Newspaper,
|
||||
// path: "/articles",
|
||||
// },
|
||||
],
|
||||
secondary: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user