New alert service
This commit is contained in:
@@ -15,12 +15,14 @@ const TermsOfServicePage = React.lazy(() => import('../pages/public/TermsOfServi
|
||||
const CookiePolicyPage = React.lazy(() => import('../pages/public/CookiePolicyPage'));
|
||||
const CookiePreferencesPage = React.lazy(() => import('../pages/public/CookiePreferencesPage'));
|
||||
const BlogPage = React.lazy(() => import('../pages/public/BlogPage'));
|
||||
const BlogPostPage = React.lazy(() => import('../pages/public/BlogPostPage'));
|
||||
const AboutPage = React.lazy(() => import('../pages/public/AboutPage'));
|
||||
const CareersPage = React.lazy(() => import('../pages/public/CareersPage'));
|
||||
const HelpCenterPage = React.lazy(() => import('../pages/public/HelpCenterPage'));
|
||||
const DocumentationPage = React.lazy(() => import('../pages/public/DocumentationPage'));
|
||||
const ContactPage = React.lazy(() => import('../pages/public/ContactPage'));
|
||||
const FeedbackPage = React.lazy(() => import('../pages/public/FeedbackPage'));
|
||||
const UnauthorizedPage = React.lazy(() => import('../pages/public/UnauthorizedPage'));
|
||||
const DashboardPage = React.lazy(() => import('../pages/app/DashboardPage'));
|
||||
|
||||
// Operations pages
|
||||
@@ -32,6 +34,7 @@ const SuppliersPage = React.lazy(() => import('../pages/app/operations/suppliers
|
||||
const OrdersPage = React.lazy(() => import('../pages/app/operations/orders/OrdersPage'));
|
||||
const POSPage = React.lazy(() => import('../pages/app/operations/pos/POSPage'));
|
||||
const MaquinariaPage = React.lazy(() => import('../pages/app/operations/maquinaria/MaquinariaPage'));
|
||||
const DistributionPage = React.lazy(() => import('../pages/app/operations/distribution/DistributionPage'));
|
||||
|
||||
// Analytics pages
|
||||
const ProductionAnalyticsPage = React.lazy(() => import('../pages/app/analytics/ProductionAnalyticsPage'));
|
||||
@@ -75,6 +78,7 @@ export const AppRouter: React.FC = () => {
|
||||
|
||||
{/* Company Routes - Public */}
|
||||
<Route path="/blog" element={<BlogPage />} />
|
||||
<Route path="/blog/:slug" element={<BlogPostPage />} />
|
||||
<Route path="/about" element={<AboutPage />} />
|
||||
<Route path="/careers" element={<CareersPage />} />
|
||||
|
||||
@@ -89,19 +93,21 @@ export const AppRouter: React.FC = () => {
|
||||
<Route path="/terms" element={<TermsOfServicePage />} />
|
||||
<Route path="/cookies" element={<CookiePolicyPage />} />
|
||||
<Route path="/cookie-preferences" element={<CookiePreferencesPage />} />
|
||||
|
||||
<Route path="/unauthorized" element={<UnauthorizedPage />} />
|
||||
<Route path="/401" element={<UnauthorizedPage />} />
|
||||
|
||||
{/* Protected Routes with AppShell Layout */}
|
||||
<Route
|
||||
path="/app"
|
||||
<Route
|
||||
path="/app"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<AppShell>
|
||||
<DashboardPage />
|
||||
</AppShell>
|
||||
</ProtectedRoute>
|
||||
}
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
<Route
|
||||
path="/app/dashboard"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
@@ -143,6 +149,16 @@ export const AppRouter: React.FC = () => {
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/app/operations/distribution"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<AppShell>
|
||||
<DistributionPage />
|
||||
</AppShell>
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
|
||||
{/* Database Routes - Current Bakery Status */}
|
||||
<Route
|
||||
@@ -291,15 +307,15 @@ export const AppRouter: React.FC = () => {
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/app/analytics/sales"
|
||||
<Route
|
||||
path="/app/analytics/sales"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<AppShell>
|
||||
<SalesAnalyticsPage />
|
||||
</AppShell>
|
||||
</ProtectedRoute>
|
||||
}
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/app/analytics/scenario-simulation"
|
||||
|
||||
Reference in New Issue
Block a user