added a help system, replaced the words "tenant" and "Pwa" with better alternatives. corrected and implemented cron jobs. prepared going live on a coolify-powered system.
This commit is contained in:
@@ -27,6 +27,8 @@ const AchievementsPage = React.lazy(() => import('./pages/AchievementsPage'));
|
||||
const SlideshowPage = React.lazy(() => import('./pages/SlideshowPage'));
|
||||
const SettingsPage = React.lazy(() => import('./pages/SettingsPage'));
|
||||
const LegalPage = React.lazy(() => import('./pages/LegalPage'));
|
||||
const HelpCenterPage = React.lazy(() => import('./pages/HelpCenterPage'));
|
||||
const HelpArticlePage = React.lazy(() => import('./pages/HelpArticlePage'));
|
||||
const PublicGalleryPage = React.lazy(() => import('./pages/PublicGalleryPage'));
|
||||
const NotFoundPage = React.lazy(() => import('./pages/NotFoundPage'));
|
||||
|
||||
@@ -75,10 +77,14 @@ export const router = createBrowserRouter([
|
||||
{ path: 'photo/:photoId', element: <PhotoLightbox /> },
|
||||
{ path: 'achievements', element: <AchievementsPage /> },
|
||||
{ path: 'slideshow', element: <SlideshowPage /> },
|
||||
{ path: 'help', element: <HelpCenterPage /> },
|
||||
{ path: 'help/:slug', element: <HelpArticlePage /> },
|
||||
],
|
||||
},
|
||||
{ path: '/settings', element: <SimpleLayout title="Einstellungen"><SettingsPage /></SimpleLayout> },
|
||||
{ path: '/legal/:page', element: <SimpleLayout title="Rechtliches"><LegalPage /></SimpleLayout> },
|
||||
{ path: '/help', element: <HelpStandalone /> },
|
||||
{ path: '/help/:slug', element: <HelpArticleStandalone /> },
|
||||
{ path: '*', element: <NotFoundPage /> },
|
||||
]);
|
||||
|
||||
@@ -248,3 +254,21 @@ function SimpleLayout({ title, children }: { title: string; children: React.Reac
|
||||
</EventBrandingProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function HelpStandalone() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<SimpleLayout title={t('help.center.title')}>
|
||||
<HelpCenterPage />
|
||||
</SimpleLayout>
|
||||
);
|
||||
}
|
||||
|
||||
function HelpArticleStandalone() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<SimpleLayout title={t('help.center.title')}>
|
||||
<HelpArticlePage />
|
||||
</SimpleLayout>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user