types.ts
Golden-Hour-backend-layer-2/types.ts
export enum ModuleType {
DASHBOARD = 'DASHBOARD',
CONTENT = 'CONTENT',
ORDERS = 'ORDERS',
CUSTOMERS = 'CUSTOMERS',
SERVICE = 'SERVICE',
PAYMENTS = 'PAYMENTS',
INVOICES = 'INVOICES',
STAFF = 'STAFF',
PERMISSIONS = 'PERMISSIONS'
}
/* Added path property to subItems to support navigation within the sidebar */
export interface NavItem {
id: string;
label: string;
icon: string;
module: ModuleType;
subItems?: { id: string; label: string; path?: string }[];
}
export interface UserProfile {
name: string;
role: string;
location: string;
weather: string;
}
export interface ContentItem {
id: string;
title: string;
category: 'Maisons' | 'Experiences' | 'Services' | 'Products' | 'Blog' | 'Downloads';
status: 'Draft' | 'Published' | 'Archived';
lastModified: string;
}
Articles liés
App.tsx
App.tsx — typescript source code from the Golden-Hour-backend-layer-2 learning materials (Golden-Hour-backend-layer-2/App.tsx).
Lire l'article →Header.tsx
Header.tsx — typescript source code from the Golden-Hour-backend-layer-2 learning materials (Golden-Hour-backend-layer-2/components/Header.tsx).
Lire l'article →Sidebar.tsx
Sidebar.tsx — typescript source code from the Golden-Hour-backend-layer-2 learning materials (Golden-Hour-backend-layer-2/components/Sidebar.tsx).
Lire l'article →index.tsx
index.tsx — typescript source code from the Golden-Hour-backend-layer-2 learning materials (Golden-Hour-backend-layer-2/index.tsx).
Lire l'article →ContentManagement.tsx
ContentManagement.tsx — typescript source code from the Golden-Hour-backend-layer-2 learning materials (Golden-Hour-backend-layer-2/pages/ContentManagement.tsx).
Lire l'article →CustomerManagement.tsx
CustomerManagement.tsx — typescript source code from the Golden-Hour-backend-layer-2 learning materials (Golden-Hour-backend-layer-2/pages/CustomerManagement.tsx).
Lire l'article →