feat: pre-existing local changes — fischerei, verband, modules, members, packages
Commits all remaining uncommitted local work: - apps/web: fischerei, verband, modules, members-cms, documents, newsletter, meetings, site-builder, courses, bookings, events, finance pages and components - apps/web: marketing page updates, layout, paths config, next.config.mjs, styles/makerkit.css - apps/web/i18n: documents, fischerei, marketing, verband (de+en) - packages/features: finance, fischerei, member-management, module-builder, newsletter, sitzungsprotokolle, verbandsverwaltung server APIs and components - packages/ui: button.tsx updates - pnpm-lock.yaml
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import Link from 'next/link';
|
||||
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
|
||||
import { createModuleBuilderApi } from '@kit/module-builder/api';
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
|
||||
import { AccountNotFound } from '~/components/account-not-found';
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
import { EmptyState } from '~/components/empty-state';
|
||||
|
||||
import { ModuleToggles } from './_components/module-toggles';
|
||||
|
||||
@@ -14,6 +17,7 @@ interface ModulesPageProps {
|
||||
|
||||
export default async function ModulesPage({ params }: ModulesPageProps) {
|
||||
const { account } = await params;
|
||||
const t = await getTranslations('cms.modules');
|
||||
const client = getSupabaseServerClient();
|
||||
const api = createModuleBuilderApi(client);
|
||||
|
||||
@@ -42,18 +46,17 @@ export default async function ModulesPage({ params }: ModulesPageProps) {
|
||||
return (
|
||||
<CmsPageShell
|
||||
account={account}
|
||||
title="Module"
|
||||
description="Verwalten Sie Ihre Datenmodule"
|
||||
title={t('title')}
|
||||
description={t('description')}
|
||||
>
|
||||
<div className="flex flex-col gap-8">
|
||||
<ModuleToggles accountId={accountData.id} features={features} />
|
||||
|
||||
{modules.length === 0 ? (
|
||||
<div className="flex flex-col items-center justify-center py-12 text-center">
|
||||
<p className="text-muted-foreground">
|
||||
Noch keine Module vorhanden. Erstellen Sie Ihr erstes Modul.
|
||||
</p>
|
||||
</div>
|
||||
<EmptyState
|
||||
title={t('noModules')}
|
||||
description={t('createFirstModule')}
|
||||
/>
|
||||
) : (
|
||||
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
|
||||
{modules.map((module: Record<string, unknown>) => (
|
||||
@@ -69,7 +72,7 @@ export default async function ModulesPage({ params }: ModulesPageProps) {
|
||||
</p>
|
||||
) : null}
|
||||
<div className="text-muted-foreground mt-2 text-xs">
|
||||
Status: {String(module.status)}
|
||||
{String(module.status)}
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user