sensorDigital, grafik Fest, drawPunkt eingefügt
This commit is contained in:
1 parent
0de185c014
commit
30ad6d0e47
106 files changed
+1371
-317
No files matched your search
@@ -1,12 +1,8 @@
|
||||
import Link from 'next/link';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export default function AltLayout({ children }: { children: ReactNode }) {
|
||||
return <div>
|
||||
<header className="flex flex-wrap items-center gap-4 border-b bg-gray-100 px-6 py-3 text-sm">
|
||||
<Link className="underline" href="/">RK App</Link>
|
||||
<Link className="font-semibold underline" href="/alt">Alt – bisherige Seiten</Link>
|
||||
</header>
|
||||
<header className="border-b bg-gray-100 px-6 py-3 text-sm font-semibold">Alt – bisherige Seiten</header>
|
||||
{children}
|
||||
</div>;
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_GroupAll } from "@/actions/rk/api-groups";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import GroupView from "@/components/rk/groups/groupView";
|
||||
|
||||
|
||||
import Link from "next/link";
|
||||
|
||||
export default async function PageGroups() {
|
||||
const anlage = await api_anlage_getSelected();
|
||||
const groups = await api_GroupAll();
|
||||
|
||||
return (
|
||||
@@ -19,7 +21,7 @@ export default async function PageGroups() {
|
||||
<Link href={Sites.groups.new.url}>{Sites.groups.new.name}</Link>
|
||||
</div>
|
||||
</div>
|
||||
<GroupView groups={groups}></GroupView>
|
||||
<GroupView anlage={anlage} groups={groups}></GroupView>
|
||||
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -11,6 +11,6 @@ export default async function PageAggregate() {
|
||||
} catch (error) {
|
||||
return <div><h2 className="mb-3 text-lg font-semibold">Aggregate</h2>
|
||||
<p role="alert" className="mb-3 text-red-600">{error instanceof Error ? error.message : 'Aggregate konnten nicht geladen werden.'}</p>
|
||||
<Link href="/rk2/verbindungen" className="underline">ProCon-Verbindung prüfen</Link></div>;
|
||||
<Link href="/verbindungen" className="underline">ProCon-Verbindung prüfen</Link></div>;
|
||||
}
|
||||
}
|
||||
@@ -1,29 +1,5 @@
|
||||
import { ReactNode } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { api_anlage_getSelected } from '@/actions/rk/api-anlage';
|
||||
import { api_connections } from '@/actions/rk/api-procon-verbindungen';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export default async function ProConLayout({ children }: { children: ReactNode }) {
|
||||
let source = 'Keine aktive Verbindung';
|
||||
let location = '';
|
||||
try {
|
||||
const anlage = await api_anlage_getSelected();
|
||||
const data = await api_connections(anlage.id);
|
||||
const active = data.verbindungen.find(item => item.id === data.aktiveVerbindungId);
|
||||
location = data.anlageNr + ' · ' + data.name;
|
||||
if (active) source = active.name + ' (' + active.umgebung + ') · ' + active.server + ' / ' + active.datenbank;
|
||||
} catch { source = 'Anlage oder Verbindung konnte nicht geladen werden'; }
|
||||
return <div className="flex min-h-screen flex-col">
|
||||
<header className="border-b bg-slate-800 px-5 py-3 text-white"><h1 className="text-xl font-semibold">ProCon</h1>
|
||||
<p className="text-sm">{location}</p><p className="text-xs text-slate-200">{source}</p></header>
|
||||
<div className="flex min-h-0 flex-1">
|
||||
<aside className="w-48 shrink-0 border-r bg-gray-50 p-4"><nav className="flex flex-col gap-3 text-sm">
|
||||
<Link href="/">Home</Link><Link href="/procon">ProCon-Start</Link>
|
||||
<Link href="/procon/aggregate">Aggregate</Link><Link href="/procon/zuordnung">Zuordnung</Link><Link href="/rk2/verbindungen">Verbindungen verwalten</Link>
|
||||
<Link href="/alt/rk/anlagen">Anlage auswählen</Link>
|
||||
<Link href="/visualisierung">Visualisierung</Link>
|
||||
</nav></aside>
|
||||
<main className="min-w-0 flex-1 p-4">{children}</main>
|
||||
</div>
|
||||
</div>;
|
||||
export default function Layout({ children }: { children: ReactNode }) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
@@ -1,7 +1,14 @@
|
||||
import Link from 'next/link';
|
||||
import { proconNavigation } from '@/_config/procon-navigation';
|
||||
|
||||
export default function ProConPage() {
|
||||
return <div><h2 className="mb-3 text-lg font-semibold">ProCon-Datenbank</h2>
|
||||
<p className="mb-4 text-sm text-gray-600">Daten aus der aktiven Verbindung der ausgewählten Anlage.</p>
|
||||
<Link className="inline-block rounded border bg-white p-4 underline" href="/procon/aggregate">Aggregate-Tabelle anzeigen</Link>
|
||||
<nav aria-label="ProCon-Unterseiten"><ul className="grid gap-3 sm:grid-cols-2 xl:grid-cols-3">
|
||||
{proconNavigation.map(item => <li key={item.label}>{item.href
|
||||
? <Link className="block rounded border bg-white p-4 font-medium text-blue-800 hover:border-blue-400 hover:bg-blue-50 focus-visible:outline-2 focus-visible:outline-blue-600" href={item.href}>{item.label}</Link>
|
||||
: <span aria-disabled="true" className="flex items-center justify-between gap-2 rounded border bg-gray-50 p-4 text-gray-400">{item.label}<span className="text-xs">Geplant</span></span>
|
||||
}</li>)}
|
||||
</ul></nav>
|
||||
</div>;
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
import Link from 'next/link';
|
||||
import { api_positionTable } from '@/actions/procon/api-position-table';
|
||||
import PositionTable from '@/components/procon/positionTable';
|
||||
import { api_positionOverview } from '@/actions/procon/api-position-table';
|
||||
import PositionOverview from '@/components/procon/positionOverview';
|
||||
|
||||
export default async function Page() {
|
||||
try { return <PositionTable initial={await api_positionTable()} />; }
|
||||
try { return <PositionOverview initial={await api_positionOverview()} />; }
|
||||
catch (error) {
|
||||
return <div><p role="alert">{error instanceof Error ? error.message : 'Positionen konnten nicht geladen werden.'}</p>
|
||||
<Link className="underline" href="/procon/zuordnung">Zuordnung prüfen</Link></div>;
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
export async function GET() {
|
||||
try {
|
||||
const response = await fetch('http://localhost:3000/rk2/anzeigewerte/export', { cache: 'no-store' });
|
||||
if (!response.ok) return new Response('Excel-Export fehlgeschlagen', { status: 502 });
|
||||
return new Response(response.body, { headers: { 'Content-Type': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
'Content-Disposition': 'attachment; filename="Anzeigewerte.xlsx"', 'Cache-Control': 'no-store' } });
|
||||
} catch { return new Response('Keine Verbindung zum Backend', { status: 502 }); }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
import { api_displays } from '@/actions/anzeigen/api-anzeigewerte';
|
||||
import DisplayTable from '@/components/anzeigen/displayTable';
|
||||
export default async function Page() {
|
||||
try { return <DisplayTable initial={await api_displays()} />; }
|
||||
catch (error) { return <p role="alert">{error instanceof Error ? error.message : 'Anzeigewerte konnten nicht geladen werden'}</p>; }
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_units_byId } from "@/actions/rk2/api-units";
|
||||
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { UnitCreateForm } from "@/components/rk2/units/unit_createForm";
|
||||
|
||||
import Link from "next/link";
|
||||
import { UnitEdit } from "@/components/rk2/units/unitEdit";
|
||||
import { api_groups, api_groups_byId } from "@/actions/rk2/api-groups";
|
||||
import { componentDefaults, componentTypeDefinitions } from "@/actions/rk2/api-compTypes";
|
||||
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
import { GroupForm } from "@/components/rk2/groups/groupForm";
|
||||
import { GroupEdit } from "@/components/rk2/groups/groupEdit";
|
||||
|
||||
type Props = {
|
||||
params: Promise<{
|
||||
id: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export default async function PageGroupEdit({ params }: Props) {
|
||||
|
||||
const { id } = await params;
|
||||
const resultFindGroupById = await api_groups_byId(id);
|
||||
const anlage = await api_anlage_getSelected();
|
||||
const group = resultFindGroupById.data;
|
||||
const groups = await api_groups();
|
||||
|
||||
const breadcrumb = [{ label: "RK", href: "/" },{ label: "Anlage", href: "/rk2" },{ label: "Groups", href: "/rk2/groups" }, { label: "Edit" }, { label: group.name }]
|
||||
|
||||
if (!resultFindGroupById.success) return <div>Grouppe nicht gefunden {resultFindGroupById.errors} {id}</div>
|
||||
|
||||
return (
|
||||
<div className="">
|
||||
<div>
|
||||
<Breadcrumbs items={breadcrumb}/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col m-4 w-300 ">
|
||||
|
||||
<GroupEdit anlage={anlage} selectedGroup={group} groups={groups} />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_groups } from "@/actions/rk2/api-groups";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { GroupEdit } from "@/components/rk2/groups/groupEdit";
|
||||
|
||||
|
||||
|
||||
|
||||
import Link from "next/link";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
|
||||
|
||||
export default async function PageGroups() {
|
||||
const currentAnlage= await api_anlage_getSelected();
|
||||
const groups = await api_groups();
|
||||
|
||||
const breadcrumb = [{ label: "RK", href: "/" },{ label: "Anlage", href: "/rk2" },{ label: "Groups", href: "/rk2/groups" }, { label: "New" }]
|
||||
|
||||
|
||||
return (
|
||||
<div className="">
|
||||
<div>
|
||||
<Breadcrumbs items={breadcrumb}/>
|
||||
</div>
|
||||
<div className="flex flex-col m-4 w-300 ">
|
||||
<GroupEdit anlage={currentAnlage} groups={groups} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_groups } from "@/actions/rk2/api-groups";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { GroupViewList } from "@/components/rk2/groups/groupViewList";
|
||||
|
||||
|
||||
|
||||
import Link from "next/link";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
|
||||
|
||||
export default async function PageGroups() {
|
||||
const currentAnlage= await api_anlage_getSelected();
|
||||
const groups = await api_groups();
|
||||
|
||||
const breadcrumb = [{ label: "RK", href: "/" },{ label: "Anlage", href: "/rk2" },{ label: "Groups" }]
|
||||
|
||||
|
||||
return (
|
||||
<div className="">
|
||||
<div>
|
||||
<Breadcrumbs items={breadcrumb}/>
|
||||
</div>
|
||||
<div className="flex flex-col m-4 w-300 ">
|
||||
<GroupViewList anlage={currentAnlage} groups={groups} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
import Link from "next/link";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { api_ios } from "@/actions/rk2/api-ios";
|
||||
import { api_signals } from "@/actions/rk2/api-signals";
|
||||
import { api_units } from "@/actions/rk2/api-units";
|
||||
import IoOverview from "@/components/rk2/ios/ioOverview";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
|
||||
export default async function IosPage() {
|
||||
const anlage = await api_anlage_getSelected();
|
||||
const [ios, signals, units] = await Promise.all([api_ios(), api_signals(), api_units()]);
|
||||
|
||||
return <div className="m-4">
|
||||
<Breadcrumbs items={[{ label: 'IOs' }, { label: `${anlage.anlageNr} ${anlage.name}` }]} />
|
||||
<h1 className="my-4 text-xl font-semibold">IO-Übersicht</h1>
|
||||
<Link className="mb-4 inline-block underline" href="/rk2/signals/assignment">IOs zu Signalen zuordnen</Link>
|
||||
<IoOverview ios={ios.filter((io) => io.anlageId === anlage.id)}
|
||||
signals={signals.filter((signal) => signal.anlageId === anlage.id)}
|
||||
units={units.filter((unit) => unit.anlageId === anlage.id)} />
|
||||
</div>;
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
"use client"
|
||||
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { Anlage } from "@/types/rk";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
interface Props {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
export default function AnlageLayout({ children }: Props) {
|
||||
const router = useRouter();
|
||||
const [anlage,setAnlage] = useState<Anlage>()
|
||||
|
||||
useEffect(()=>{
|
||||
const loadAnlage = async ()=>{
|
||||
const currentAnlage = await api_anlage_getSelected();
|
||||
setAnlage(()=>currentAnlage);
|
||||
}
|
||||
loadAnlage();
|
||||
},[])
|
||||
|
||||
return (
|
||||
<div className="flex h-screen flex-col overflow-hidden">
|
||||
|
||||
<header className="flex h-16 items-center border-b bg-blue-600 text-white px-6 ">
|
||||
<h1 className="text-xl font-semibold ">
|
||||
{`RK -${anlage?.anlageNr} ${anlage?.name}`}
|
||||
</h1>
|
||||
</header>
|
||||
<div className="flex min-h-0 flex-1">
|
||||
<aside className="w-64 border-r bg-gray-50 p-4">
|
||||
<nav className="flex flex-col gap-2">
|
||||
<h2 className="mb-4 font-semibold">Anlage</h2>
|
||||
|
||||
<ul className="space-y-2">
|
||||
<li><a href="/rk2/visu-aggregate">VisuAggregate</a></li>
|
||||
<li><a href="/rk2/verbindungen">ProCon-Verbindungen</a></li>
|
||||
<li><a href="/procon">ProCon</a></li>
|
||||
<li><a href="/rk2/visu-aggregate/grafiken">Grafikübersicht</a></li>
|
||||
<li>
|
||||
<a href="/rk2/groups">Groups</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/rk2/units">Units</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href={Sites.rk2.signals.url}>{Sites.rk2.signals.name}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href={Sites.rk2.ios.url}>IOs</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
{/* Content */}
|
||||
<main className="min-w-0 flex-1 overflow-y-auto p-6">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
import { formatComponentName } from "@/lib/componentName";
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_units } from "@/actions/rk2/api-units";
|
||||
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
|
||||
|
||||
import Link from "next/link";
|
||||
import { List, ListItem, ListItemAction } from "@/components/ui/list";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
|
||||
|
||||
|
||||
export default async function PageUnits() {
|
||||
|
||||
const currentAnlage = await api_anlage_getSelected();
|
||||
const units = await api_units();
|
||||
const breadcrumb = [{ label: "RK", href: "/" },{ label: "Anlage" }]
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* Main-Nav */}
|
||||
<Breadcrumbs items={breadcrumb}/>
|
||||
|
||||
<div className="flex flex-col m-4 w-170 ">
|
||||
|
||||
<List variant={"transparent"} >
|
||||
{units.map((unit) => (
|
||||
<ListItem hover={true} key={unit.id}>
|
||||
<div className="w-50">
|
||||
{unit.name}
|
||||
</div>
|
||||
<div className="w-20">
|
||||
{unit.type}
|
||||
</div>
|
||||
<div className="w-40">
|
||||
{unit.components?.map((comp) => <div key={comp.id}><div>{formatComponentName(comp)}</div></div>)}
|
||||
</div>
|
||||
<ListItemAction>
|
||||
<Button variant={"secondary"} size={"xs"} >
|
||||
<Link href={`/rk2/units/edit/${unit.id}`}>Auswahl</Link>
|
||||
</Button>
|
||||
</ListItemAction>
|
||||
</ListItem>
|
||||
|
||||
))}
|
||||
</List>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
export async function GET() {
|
||||
try {
|
||||
const response = await fetch('http://localhost:3000/rk2/sensoren-analog/export', { cache: 'no-store' });
|
||||
if (!response.ok) return new Response('Sensoren-Export fehlgeschlagen', { status: 502 });
|
||||
return new Response(response.body, { headers: { 'Content-Type': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
'Content-Disposition': 'attachment; filename="Sensoren_Analog.xlsx"', 'Cache-Control': 'no-store' } });
|
||||
} catch { return new Response('Keine Verbindung zum Backend', { status: 502 }); }
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { api_analog, api_analogSources } from '@/actions/sensoren/api-analog';
|
||||
import AnalogTable from '@/components/sensoren/analogTable';
|
||||
export default async function Page() {
|
||||
try {
|
||||
const [table, sources] = await Promise.all([api_analog(), api_analogSources()]);
|
||||
if (table.anlageId !== sources.anlageId) throw new Error('Anlage geändert. Neu laden.');
|
||||
return <AnalogTable initial={table} sources={sources.sources} />;
|
||||
} catch (error) { return <p role="alert">{error instanceof Error ? error.message : 'Sensoren konnten nicht geladen werden'}</p>; }
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
export async function GET() {
|
||||
try {
|
||||
const response = await fetch('http://localhost:3000/rk2/sensoren-analog/xaml-zip', { cache: 'no-store' });
|
||||
if (!response.ok) return new Response('XAML-Export fehlgeschlagen', { status: 502 });
|
||||
return new Response(response.body, { headers: { 'Content-Type': 'application/zip', 'Content-Disposition': 'attachment; filename="Sensoren_Analog-XAML.zip"', 'Cache-Control': 'no-store' } });
|
||||
} catch { return new Response('Keine Verbindung zum Backend', { status: 502 }); }
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
import { formatComponentName } from "@/lib/componentName";
|
||||
import Link from "next/link";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { api_component_byId } from "@/actions/rk2/api-component";
|
||||
import { api_units_byId } from "@/actions/rk2/api-units";
|
||||
import { api_groups } from "@/actions/rk2/api-groups";
|
||||
import { api_signalsByComp } from "@/actions/rk2/api-signals";
|
||||
import { api_ios } from "@/actions/rk2/api-ios";
|
||||
import ComponentSignals from "@/components/rk2/signals/componentSignals";
|
||||
import { SignalForm } from "@/components/rk2/signals/signalForm";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
|
||||
export default async function PageSignalsEdit({ params }: { params: Promise<{ componentId: string }> }) {
|
||||
const { componentId } = await params;
|
||||
const result = await api_component_byId(componentId);
|
||||
if (!result.success) return <div className="m-4"><p role="alert">Komponente konnte nicht geladen werden.</p><Link href="/rk2/signals">Zur Signalübersicht</Link></div>;
|
||||
const { component, unitId } = result.data;
|
||||
const [anlage, unitResult, groups, signals, ios] = await Promise.all([
|
||||
api_anlage_getSelected(), api_units_byId(unitId), api_groups(), api_signalsByComp(componentId), api_ios(),
|
||||
]);
|
||||
if (!unitResult.success) return <p className="m-4" role="alert">Unit konnte nicht geladen werden.</p>;
|
||||
const unit = unitResult.data;
|
||||
if (unit.anlageId !== anlage.id) return <p className="m-4" role="alert">Die Komponente gehört nicht zur ausgewählten Anlage.</p>;
|
||||
const groupNames: string[] = [];
|
||||
const seen = new Set<string>();
|
||||
let group = groups.find((item) => item.id === unit.groupId);
|
||||
while (group && !seen.has(group.id)) {
|
||||
seen.add(group.id);
|
||||
groupNames.unshift(`${group.nr} ${group.name}`.trim());
|
||||
group = groups.find((item) => item.id === group?.parentId);
|
||||
}
|
||||
return <div className="m-4">
|
||||
<Breadcrumbs items={[
|
||||
{ label: 'Signale', href: '/rk2/signals' },
|
||||
{ label: `${anlage.anlageNr} ${anlage.name}` },
|
||||
{ label: groupNames.join(' / ') || 'Ohne Gruppe' },
|
||||
{ label: unit.name, href: `/rk2/units/edit/${encodeURIComponent(unit.id)}` },
|
||||
{ label: formatComponentName(component) },
|
||||
]} />
|
||||
<h1 className="my-4 text-xl font-semibold">Signale: {unit.name} / {formatComponentName(component)}</h1>
|
||||
<Link className="mb-4 mr-4 inline-block underline" href={`/rk2/units/edit/${encodeURIComponent(unitId)}?componentId=${encodeURIComponent(componentId)}`}>Zurück zur Komponente {formatComponentName(component)}</Link>
|
||||
<Link className="mb-4 inline-block underline" href={`/rk2/signals/assignment?unitId=${encodeURIComponent(unitId)}`}>IOs zuordnen</Link>
|
||||
<ComponentSignals component={component} signals={signals} ios={ios} anlageId={anlage.id} />
|
||||
<h2 className="mb-2 font-semibold">Neues Signal</h2>
|
||||
<SignalForm componente={component} />
|
||||
</div>;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { api_groups } from "@/actions/rk2/api-groups";
|
||||
import { api_units } from "@/actions/rk2/api-units";
|
||||
import { api_signals } from "@/actions/rk2/api-signals";
|
||||
import { api_ios } from "@/actions/rk2/api-ios";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
import SignalIoAssignment from "@/components/rk2/signals/signalIoAssignment";
|
||||
|
||||
export default async function AssignmentPage({ searchParams }: { searchParams: Promise<{ unitId?: string }> }) {
|
||||
const { unitId } = await searchParams;
|
||||
const anlage = await api_anlage_getSelected();
|
||||
const [groups, units, signals, ios] = await Promise.all([api_groups(), api_units(), api_signals(), api_ios()]);
|
||||
return <div className="m-4">
|
||||
<Breadcrumbs items={[{ label: 'Signale', href: '/rk2/signals' }, { label: 'IO-Zuordnung' }, { label: `${anlage.anlageNr} ${anlage.name}` }]} />
|
||||
<SignalIoAssignment key={`${anlage.id}:${unitId ?? ''}`} groups={groups} units={units.filter((unit) => unit.anlageId === anlage.id)}
|
||||
signals={signals} ios={ios.filter((io) => io.anlageId === anlage.id)} anlageId={anlage.id} initialUnitId={unitId} />
|
||||
</div>;
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
import Link from "next/link";
|
||||
import AssignmentsTable, { type AssignmentRow } from "@/components/rk2/signals/assignmentsTable";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { api_groups } from "@/actions/rk2/api-groups";
|
||||
import { api_units } from "@/actions/rk2/api-units";
|
||||
import { api_signals } from "@/actions/rk2/api-signals";
|
||||
import { api_ios } from "@/actions/rk2/api-ios";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
import { formatComponentName } from "@/lib/componentName";
|
||||
import { eaName } from "@/lib/ioEaExport";
|
||||
|
||||
export default async function AssignmentsPage() {
|
||||
const anlage = await api_anlage_getSelected();
|
||||
const [groups, units, signals, ios] = await Promise.all([api_groups(), api_units(), api_signals(), api_ios()]);
|
||||
const groupMap = new Map(groups.map((group) => [group.id, group]));
|
||||
const ioMap = new Map(ios.filter((io) => io.anlageId === anlage.id).map((io) => [io.id, io]));
|
||||
const componentMap = new Map(units.filter((unit) => unit.anlageId === anlage.id).flatMap((unit) =>
|
||||
unit.components.map((component) => [component.id, { unit, component }] as const)));
|
||||
|
||||
const groupPath = (id?: string) => {
|
||||
const names: string[] = [];
|
||||
const seen = new Set<string>();
|
||||
let group = id ? groupMap.get(id) : undefined;
|
||||
while (group && !seen.has(group.id)) {
|
||||
seen.add(group.id);
|
||||
names.unshift(group.name);
|
||||
group = group.parentId ? groupMap.get(group.parentId) : undefined;
|
||||
}
|
||||
return names;
|
||||
};
|
||||
|
||||
const rows: AssignmentRow[] = signals.filter((signal) => signal.anlageId === anlage.id && signal.ioId).map((signal) => {
|
||||
const context = signal.componentId ? componentMap.get(signal.componentId) : undefined;
|
||||
const io = ioMap.get(signal.ioId!);
|
||||
return {
|
||||
id: signal.id,
|
||||
group: context ? groupPath(context.unit.groupId).join('.') || 'Ohne Gruppe' : 'Zuordnung zu Unit fehlt',
|
||||
exportName: context ? eaName(context.unit, context.component, signal.name) : '',
|
||||
variableTable: context ? groupPath(context.unit.groupId)[1] ?? '' : '',
|
||||
exportComment: [context?.unit.bmk, io?.seiteName, io?.functionText].filter(Boolean).join(' '),
|
||||
bmk: context?.unit.bmk ?? '',
|
||||
unit: context?.unit.name ?? 'Nicht verfügbar',
|
||||
unitId: context?.unit.id,
|
||||
component: context ? formatComponentName(context.component) : 'Nicht verfügbar',
|
||||
componentId: context?.component.id,
|
||||
signal: signal.name,
|
||||
type: io?.adrType ?? 'IO nicht verfügbar',
|
||||
byte: io?.adrByte,
|
||||
bit: io?.adrBit,
|
||||
functionText: io?.functionText ?? '',
|
||||
};
|
||||
});
|
||||
|
||||
return <div className="m-4">
|
||||
<Breadcrumbs items={[{ label: 'Signale', href: '/rk2/signals' }, { label: 'Alle Zuordnungen' }, { label: `${anlage.anlageNr} ${anlage.name}` }]} />
|
||||
<h1 className="my-4 text-xl font-semibold">IO-Zuordnungen ({rows.length})</h1>
|
||||
<Link className="mb-4 inline-block underline" href="/rk2/signals/assignment">Zuordnungen bearbeiten</Link>
|
||||
<AssignmentsTable rows={rows} />
|
||||
</div>;
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_units } from "@/actions/rk2/api-units";
|
||||
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
|
||||
|
||||
import Link from "next/link";
|
||||
import { List, ListItem, ListItemAction } from "@/components/ui/list";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
import IoExcelImport from "@/components/rk2/ios/ioExcelImport";
|
||||
|
||||
|
||||
|
||||
export default async function PageImport() {
|
||||
|
||||
const currentAnlage = await api_anlage_getSelected();
|
||||
const units = await api_units();
|
||||
const breadcrumb = [{ label: "RK", href: "/" },{ label: `${Sites.rk2.signals.name}`, href:`${Sites.rk2.signals.url}` },{ label: `${Sites.rk2.signals.import.name}` },{ label: `${currentAnlage.anlageNr+" "+currentAnlage.name}` }]
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* Main-Nav */}
|
||||
<Breadcrumbs items={breadcrumb}/>
|
||||
|
||||
<div className="flex flex-col m-4 ">
|
||||
<IoExcelImport anlageId={currentAnlage.id} />
|
||||
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_units } from "@/actions/rk2/api-units";
|
||||
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
|
||||
|
||||
import Link from "next/link";
|
||||
import { List, ListItem, ListItemAction } from "@/components/ui/list";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
|
||||
|
||||
|
||||
export default async function PageSignale() {
|
||||
|
||||
const currentAnlage = await api_anlage_getSelected();
|
||||
const units = await api_units();
|
||||
const breadcrumb = [{ label: "RK", href: "/" },{ label: "Signale" },{ label: `${currentAnlage.anlageNr+" "+currentAnlage.name}` }]
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* Main-Nav */}
|
||||
<Breadcrumbs items={breadcrumb}/>
|
||||
|
||||
<div className="flex flex-col m-4 w-170 ">
|
||||
<List variant={"default"} size={"lg"} >
|
||||
<ListItem hover={true}>
|
||||
<Link href="/rk2/signals/assignments">Alle IO-Zuordnungen</Link>
|
||||
</ListItem>
|
||||
<ListItem hover={true}>
|
||||
<Link href="/rk2/signals/assignment">IO-Zuordnung</Link>
|
||||
</ListItem>
|
||||
<ListItem hover={true} >
|
||||
<a href={Sites.rk2.signals.import.url}>{Sites.rk2.signals.import.name}</a>
|
||||
</ListItem>
|
||||
</List>
|
||||
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_units_byId } from "@/actions/rk2/api-units";
|
||||
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { UnitCreateForm } from "@/components/rk2/units/unit_createForm";
|
||||
|
||||
import Link from "next/link";
|
||||
import { UnitEdit } from "@/components/rk2/units/unitEdit";
|
||||
import { api_groups } from "@/actions/rk2/api-groups";
|
||||
import { componentDefaults, componentTypeDefinitions } from "@/actions/rk2/api-compTypes";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
|
||||
type Props = {
|
||||
searchParams: Promise<{ componentId?: string; from?: string }>;
|
||||
params: Promise<{
|
||||
id: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export default async function PageUnitsEdit({ params, searchParams }: Props) {
|
||||
const { componentId, from } = await searchParams;
|
||||
|
||||
const { id } = await params;
|
||||
const resultFindUnitById = await api_units_byId(id);
|
||||
const currentAnlage= await api_anlage_getSelected();
|
||||
const groups = await api_groups();
|
||||
const componentTypes = componentTypeDefinitions;
|
||||
const cd = componentDefaults;
|
||||
if(!resultFindUnitById.success) return <div>Unit nicht gefunden {resultFindUnitById.errors}</div>
|
||||
|
||||
const breadcrumb = [{ label: "RK", href: "/" },{ label: "Anlage", href: "/rk2" },{ label: "Units",href: "/rk2/units" },{ label: "Ändern" },{ label: resultFindUnitById.data.name }]
|
||||
|
||||
return (
|
||||
<div className="">
|
||||
{from === 'io-assignment' && <Link className="m-4 inline-block underline" href="/rk2/signals/assignment">Zurück zur IO-Zuordnung</Link>}
|
||||
<div>
|
||||
<Breadcrumbs items={breadcrumb}/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col m-4 w-300 ">
|
||||
|
||||
<UnitEdit anlage={currentAnlage} groups={groups} selectedUnit={resultFindUnitById.data} componentTypes={componentTypes} componentDefaults={cd} initialComponentId={componentId}></UnitEdit>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_groups } from "@/actions/rk2/api-groups";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import { UnitEdit } from "@/components/rk2/units/unitEdit";
|
||||
|
||||
import Link from "next/link";
|
||||
import { componentDefaults, componentTypeDefinitions } from "@/actions/rk2/api-compTypes";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
|
||||
|
||||
|
||||
export default async function PageUnitsEditNew() {
|
||||
const currentAnlage = await api_anlage_getSelected();
|
||||
const groups = await api_groups();
|
||||
const componentTypes = componentTypeDefinitions;
|
||||
const cd = componentDefaults;
|
||||
|
||||
const breadcrumb = [{ label: "RK", href: "/" },{ label: "Anlage", href: "/rk2" },{ label: "Units" },{ label: "Neu" }]
|
||||
|
||||
return (
|
||||
<div className="">
|
||||
<div>
|
||||
<Breadcrumbs items={breadcrumb}/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col m-4 w-300 ">
|
||||
<UnitEdit anlage={currentAnlage} groups={groups} componentTypes={componentTypes} componentDefaults={cd}></UnitEdit>
|
||||
{/*
|
||||
<UnitCreateForm anlage={currentAnlage}></UnitCreateForm>
|
||||
*/}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
import { formatComponentName } from "@/lib/componentName";
|
||||
import { Sites } from "@/_config/sites";
|
||||
import { api_units } from "@/actions/rk2/api-units";
|
||||
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
||||
import Link from "next/link";
|
||||
import { List, ListHeader, ListHeaderItem, ListItem, ListItemAction, ListItemContent, ListItemDescription, ListItemTitle } from "@/components/ui/list";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
||||
import { Card, CardContent, CardHeader } from "@/components/ui/card";
|
||||
import { GroupPath } from "@/components/rk2/groups/groupPath";
|
||||
import { api_groups } from "@/actions/rk2/api-groups";
|
||||
import { AusgabeUnitInfo } from "@/components/rk2/ausgabe/ausgabeUnitInfo";
|
||||
|
||||
|
||||
|
||||
export default async function PageUnits() {
|
||||
|
||||
const units = await api_units();
|
||||
const groups = await api_groups();
|
||||
const breadcrumb = [{ label: "RK", href: "/" }, { label: "Anlage", href: "/rk2" }, { label: "Units" }]
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* Main-Nav */}
|
||||
<div>
|
||||
<Breadcrumbs items={breadcrumb} />
|
||||
</div>
|
||||
|
||||
<Card className="flex flex-col m-4 w-170 ">
|
||||
<CardHeader>Units</CardHeader>
|
||||
<Link className="m-2 underline" href="/rk2/units/templates">Unit-Vorlagen / Aus Vorlage hinzufügen</Link>
|
||||
|
||||
<Button size={"xs"} className="w-30 mt-2 ms-2 mb-2">
|
||||
<Link href={Sites.rk2.units.new.url}>{Sites.rk2.units.new.name}</Link>
|
||||
</Button>
|
||||
|
||||
|
||||
<List variant={"transparent"} >
|
||||
<ListHeader>
|
||||
<ListHeaderItem className="w-50">Gruppe</ListHeaderItem>
|
||||
<ListHeaderItem className="w-50">Unit</ListHeaderItem>
|
||||
<ListHeaderItem>Typ</ListHeaderItem>
|
||||
</ListHeader>
|
||||
{units.map((unit) => (
|
||||
<ListItem hover={true} key={unit.id}>
|
||||
<ListItemContent >
|
||||
<ListItemTitle className="flex">
|
||||
<div className="w-50">
|
||||
<GroupPath groups={groups} groupId={unit.groupId} />
|
||||
</div>
|
||||
<div className="w-50">
|
||||
{unit.prefix}_{unit.bmk}_{unit.name}{unit.postfix ? "_"+unit.postfix:""}
|
||||
</div>
|
||||
<div className="w-20">
|
||||
{unit.type}
|
||||
</div>
|
||||
</ListItemTitle>
|
||||
<ListItemDescription className="ps-50 pt-1 flex gap-2">
|
||||
{unit.components?.map((comp) => <div key={comp.id}>
|
||||
{comp.prefix && comp.prefix}
|
||||
{formatComponentName(comp)}
|
||||
{comp.postfix && comp.postfix}
|
||||
{comp.index && comp.index>0 ? comp.index:""}
|
||||
</div>)}
|
||||
</ListItemDescription>
|
||||
</ListItemContent>
|
||||
<ListItemAction>
|
||||
<Button variant={"secondary"} size={"xs"} >
|
||||
<Link href={`/rk2/units/edit/${unit.id}`}>Auswahl</Link>
|
||||
</Button>
|
||||
</ListItemAction>
|
||||
</ListItem>
|
||||
|
||||
))}
|
||||
</List>
|
||||
</Card >
|
||||
<Card>
|
||||
<CardHeader>Ausgabe</CardHeader>
|
||||
<CardContent>
|
||||
<AusgabeUnitInfo units={units} groups={groups} />
|
||||
</CardContent>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
import Link from 'next/link';
|
||||
import { api_templates_list } from '@/actions/rk2/api-unit-templates';
|
||||
import { api_groups } from '@/actions/rk2/api-groups';
|
||||
import { api_anlage_getSelected } from '@/actions/rk/api-anlage';
|
||||
import { componentDefaults, componentTypeDefinitions } from '@/actions/rk2/api-compTypes';
|
||||
import { UnitTemplates } from '@/components/rk2/units/unitTemplates';
|
||||
|
||||
export default async function PageUnitTemplates() {
|
||||
const [result, groups, anlage] = await Promise.all([api_templates_list(), api_groups(), api_anlage_getSelected()]);
|
||||
return <div className="m-4">
|
||||
<Link href="/rk2/units" className="underline">Zurück zu Units</Link>
|
||||
<h1 className="my-4 text-xl font-semibold">Unit-Vorlagen</h1>
|
||||
<p className="mb-4">Vorlagen gelten für alle Anlagen. Eingefügt wird in: {anlage.name}</p>
|
||||
{result.success ? <UnitTemplates initial={result.data} groups={groups} componentTypes={componentTypeDefinitions} componentDefaults={componentDefaults} /> : <p role="alert">{result.errors.join(', ')}</p>}
|
||||
</div>;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
import { api_connections } from '@/actions/rk/api-procon-verbindungen';
|
||||
import { api_anlage_getSelected } from '@/actions/rk/api-anlage';
|
||||
import ProConConnectionsForm from '@/components/rk/anlage/proconConnections';
|
||||
export default async function Page() {
|
||||
try {
|
||||
const anlage = await api_anlage_getSelected();
|
||||
return <ProConConnectionsForm initial={await api_connections(anlage.id)} />;
|
||||
} catch { return <p role="alert">Verbindungen konnten nicht geladen werden. Bitte eine Anlage auswählen.</p>; }
|
||||
}
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
import Link from 'next/link';
|
||||
import { api_viewAggregate } from '@/actions/rk2/api-procon-view-aggregate';
|
||||
import ViewAggregateForm from '@/components/rk2/visu-aggregate/viewAggregateForm';
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ componentId: string }> }) {
|
||||
const { componentId } = await params;
|
||||
try {
|
||||
const data = await api_viewAggregate(componentId);
|
||||
return <div><Link href="/rk2/visu-aggregate" className="underline">Zurück zu VisuAggregate</Link>
|
||||
<h1 className="my-4 text-xl font-semibold">Grafiken – {data.name}</h1>
|
||||
<ViewAggregateForm componentId={componentId} initial={data} />
|
||||
</div>;
|
||||
} catch (error) {
|
||||
return <div><Link href="/rk2/visu-aggregate" className="underline">Zurück zur Tabelle</Link>
|
||||
<p role="alert" className="mt-4 text-red-600">{error instanceof Error ? error.message : 'Laden fehlgeschlagen'}</p></div>;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
export async function GET() {
|
||||
try {
|
||||
const response = await fetch('http://localhost:3000/rk2/visu-aggregate/export', { cache: 'no-store' });
|
||||
if (!response.ok) return new Response('Excel-Export fehlgeschlagen.', { status: 502 });
|
||||
return new Response(response.body, {
|
||||
headers: {
|
||||
'Content-Type': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
'Content-Disposition': 'attachment; filename="VisuAggregate.xlsx"',
|
||||
'Cache-Control': 'no-store',
|
||||
},
|
||||
});
|
||||
} catch {
|
||||
return new Response('Keine Verbindung zum Backend.', { status: 502 });
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
import { api_viewAggregate_overview } from '@/actions/rk2/api-procon-view-aggregate';
|
||||
import { api_anlage_getSelected } from '@/actions/rk/api-anlage';
|
||||
import GraphicsOverview from '@/components/rk2/visu-aggregate/graphicsOverview';
|
||||
|
||||
export default async function GraphicsOverviewPage() {
|
||||
try {
|
||||
const [aggregates, anlage] = await Promise.all([api_viewAggregate_overview(), api_anlage_getSelected()]);
|
||||
return <GraphicsOverview aggregates={aggregates} anlageId={anlage.id} />;
|
||||
} catch {
|
||||
return <p role="alert">Die Grafikübersicht konnte nicht geladen werden. Bitte Backend-Verbindung und ausgewählte Anlage prüfen.</p>;
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
import { api_visuAggregate } from '@/actions/rk2/api-visu-aggregate';
|
||||
import VisuAggregateTable from '@/components/rk2/visu-aggregate/visuAggregateTable';
|
||||
import Breadcrumbs from '@/components/ui/navigation/breadcrumbs';
|
||||
import { api_viewAggregate_overview } from '@/actions/rk2/api-procon-view-aggregate';
|
||||
|
||||
export default async function VisuAggregatePage() {
|
||||
let rows;
|
||||
try {
|
||||
const [aggregates, graphics] = await Promise.all([api_visuAggregate(), api_viewAggregate_overview()]);
|
||||
const withGraphic = new Set(graphics.filter(aggregate => aggregate.elemente.some(element =>
|
||||
element.darstellung === 'xaml' && element.varianten.some(variant =>
|
||||
!!(variant.svg?.trim() || variant.xaml?.trim() || variant.xamlBase64?.trim())))).map(aggregate => aggregate.componentId));
|
||||
rows = aggregates.map(row => ({ ...row, hasGraphic: withGraphic.has(row.componentId) }));
|
||||
}
|
||||
catch {
|
||||
return <div><h1 className="mb-4 text-xl font-semibold">VisuAggregate</h1>
|
||||
<p role="alert">Die Tabelle konnte nicht geladen werden. Bitte die Backend-Verbindung und die ausgewählte Anlage prüfen und die Seite neu laden.</p></div>;
|
||||
}
|
||||
return <div>
|
||||
<Breadcrumbs items={[{ label: 'Anlage', href: '/rk2' }, { label: 'VisuAggregate' }]} />
|
||||
<h1 className="my-4 text-xl font-semibold">VisuAggregate</h1>
|
||||
<p className="mb-4">Aggregat in der Übersicht auswählen und die Werte im Detailbereich bearbeiten.</p>
|
||||
<VisuAggregateTable rows={rows} />
|
||||
</div>;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import { api_graphicLibrary } from '@/actions/visualisierung/api-library';
|
||||
import GraphicLibrary from '@/components/visualisierung/graphicLibrary';
|
||||
export default async function Page() {
|
||||
try { return <GraphicLibrary initial={await api_graphicLibrary()} />; }
|
||||
catch (error) { return <p role="alert">{error instanceof Error ? error.message : 'Grafikbibliothek konnte nicht geladen werden'}</p>; }
|
||||
}
|
||||
@@ -1,16 +1,5 @@
|
||||
import Link from 'next/link';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export default function Layout({ children }: { children: ReactNode }) {
|
||||
return <div className="min-h-screen bg-slate-50">
|
||||
<header className="border-b bg-slate-800 px-5 py-3 text-white">
|
||||
<h1 className="text-xl font-semibold">Visualisierung</h1>
|
||||
<nav className="mt-2 flex flex-wrap gap-4 text-sm">
|
||||
<Link href="/">Home</Link><Link href="/visualisierung">Anlagenübersicht</Link>
|
||||
<Link href="/procon/positionen">Positionstabelle</Link><Link href="/procon/zuordnung">Zuordnung</Link>
|
||||
<Link href="/alt/rk/anlagen">Anlage auswählen</Link>
|
||||
</nav>
|
||||
</header>
|
||||
<main className="p-4">{children}</main>
|
||||
</div>;
|
||||
return <>{children}</>;
|
||||
}
|
||||
Reference in new issue
Block a user