Template
Compare commits
31
Commits
fa181e26d5
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e730a57465 | ||
|
|
2d1f490a5c | ||
|
|
2828a9a91f | ||
|
|
4162df75e6 | ||
|
|
e4666859c5 | ||
|
|
ba6b0b08fe | ||
|
|
3fa0e2f046 | ||
|
|
91a60b3251 | ||
|
|
1c1c4033b7 | ||
|
|
ed2d369da6 | ||
|
|
44b96f5969 | ||
|
|
cec573f682 | ||
|
|
46efd2d9d0 | ||
|
|
2dfa403641 | ||
|
|
629186b6fb | ||
|
|
4bfd761de1 | ||
|
|
61eda97bc4 | ||
|
|
377289ecb1 | ||
|
|
abe9c72005 | ||
|
|
324107b2e1 | ||
|
|
73fa1c49b3 | ||
|
|
58c967f43d | ||
|
|
04c1506cc7 | ||
|
|
0ee4965c80 | ||
|
|
d4b9bf7e79 | ||
|
|
8f5bb334e4 | ||
|
|
8107731aa2 | ||
|
|
9ff51ecf71 | ||
|
|
2f0aefda8e | ||
|
|
872bce2cfe | ||
|
|
6cf7985a44 |
No files matched your search
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"extraKnownMarketplaces": {
|
||||||
|
"ep-plugins": {
|
||||||
|
"source": { "source": "git", "url": "ssh://[email protected]:2222/EP-Intern/Projekt-Referenz.git" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"enabledPlugins": { "prodi@ep-plugins": true },
|
||||||
|
"permissions": {
|
||||||
|
"defaultMode": "plan",
|
||||||
|
"allow": [
|
||||||
|
"Bash(git status:*)", "Bash(git diff:*)", "Bash(git log:*)", "Bash(git fetch:*)",
|
||||||
|
"Bash(git pull:*)", "Bash(git switch main:*)",
|
||||||
|
"Bash(git switch -c feat/:*)", "Bash(git switch -c fix/:*)", "Bash(git switch -c chore/:*)",
|
||||||
|
"Bash(git add:*)"
|
||||||
|
],
|
||||||
|
"ask": ["Bash(git commit:*)", "Bash(git push:*)"],
|
||||||
|
"deny": [
|
||||||
|
"Bash(git push origin main:*)", "Bash(git push origin HEAD:main:*)",
|
||||||
|
"Bash(git push --force:*)", "Bash(git push -f:*)", "Bash(git push --force-with-lease:*)",
|
||||||
|
"Bash(git merge:*)", "Bash(git rebase:*)", "Bash(git reset:*)",
|
||||||
|
"Bash(git branch -D:*)", "Bash(git branch -d:*)",
|
||||||
|
"Read(./.env*)", "Read(**/.env*)", "Read(~/.claude/projects/**)"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,17 +1,41 @@
|
|||||||
{
|
{
|
||||||
"name": "webapp",
|
"name": "webapp",
|
||||||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
|
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
|
||||||
"features": {
|
"runArgs": ["--env-file", "${localEnv:HOME}/.config/ep-dev/devcontainer.env"],
|
||||||
"ghcr.io/anthropics/devcontainer-features/claude-code:1": {}
|
|
||||||
},
|
|
||||||
"mounts": [
|
"mounts": [
|
||||||
"source=claude-config-${devcontainerId},target=/home/node/.claude,type=volume"
|
"source=claude-config-${devcontainerId},target=/home/node/.claude,type=volume",
|
||||||
|
"source=${localEnv:HOME}/.ssh/config,target=/home/node/.ssh/config,type=bind,readonly",
|
||||||
|
"source=${localEnv:HOME}/.ssh/known_hosts,target=/home/node/.ssh/known_hosts,type=bind,readonly",
|
||||||
|
"source=npm-cache,target=/home/node/.npm,type=volume"
|
||||||
],
|
],
|
||||||
"forwardPorts": [3000],
|
"forwardPorts": [3000],
|
||||||
|
"containerEnv": {
|
||||||
|
"NEXT_TELEMETRY_DISABLED": "1",
|
||||||
|
"NPM_CONFIG_UPDATE_NOTIFIER": "false",
|
||||||
|
"DISABLE_AUTOUPDATER": "1",
|
||||||
|
"ENABLE_CLAUDEAI_MCP_SERVERS": "false"
|
||||||
|
},
|
||||||
|
"portsAttributes": {
|
||||||
|
"3000": { "label": "App", "onAutoForward": "openBrowser" }
|
||||||
|
},
|
||||||
|
"postCreateCommand": "sudo chown -R node:node /home/node/.claude /home/node/.npm && npm install -g @anthropic-ai/[email protected] && cd frontend-starter && npm install",
|
||||||
|
"postStartCommand": "cd frontend-starter && npm install --no-audit --no-fund",
|
||||||
|
"postAttachCommand": "cd frontend-starter && npx -y kill-port 3000 && npm run dev",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
|
"settings": {
|
||||||
|
"extensions.autoUpdate": false,
|
||||||
|
"extensions.autoCheckUpdates": false,
|
||||||
|
"git.branchProtection": ["main"],
|
||||||
|
"git.branchProtectionPrompt": "alwaysCommitToNewBranch",
|
||||||
|
"git.branchPrefix": "feat/",
|
||||||
|
"git.branchRandomName.enable": true,
|
||||||
|
"git.postCommitCommand": "push",
|
||||||
|
"git.autofetch": true,
|
||||||
|
"json.schemaDownload.trustedDomains": { "https://ui.shadcn.com": true },
|
||||||
|
},
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"anthropic.claude-code",
|
"anthropic.claude-code@2.1.314",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"bradlc.vscode-tailwindcss"
|
"bradlc.vscode-tailwindcss"
|
||||||
|
|||||||
+5
-1
@@ -1,3 +1,7 @@
|
|||||||
|
**/node_modules
|
||||||
|
**/.next
|
||||||
.git
|
.git
|
||||||
.gitea
|
.gitea
|
||||||
README.md
|
.devcontainer
|
||||||
|
.claude
|
||||||
|
**/.env*
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
* text=auto eol=lf
|
||||||
|
*.woff2 binary
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
*.html
|
*.html
|
||||||
*.md
|
*.md
|
||||||
|
docs/*.md
|
||||||
+7
-1
@@ -1,4 +1,10 @@
|
|||||||
|
node_modules/
|
||||||
|
.next/
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
node_modules/
|
!.env.local.example
|
||||||
data/
|
data/
|
||||||
|
.claude/settings.local.json
|
||||||
|
next-env.d.ts
|
||||||
|
frontend-starter/public/ep-logo.svg
|
||||||
|
frontend-starter/public/favicon.svg
|
||||||
@@ -1,17 +1,10 @@
|
|||||||
# Arbeitsweise
|
# $REPO_NAME
|
||||||
|
|
||||||
Du arbeitest immer in drei Phasen und überspringst keine:
|
- Owner: <name>
|
||||||
|
- n8n-Ordner (Staging und Live): <Bereich> → $REPO_NAME
|
||||||
|
- Datenbank: SQLite in der App
|
||||||
|
- Webseite: Next.js im Ordner `frontend-starter`; npm-Befehle dort ausführen
|
||||||
|
- Port: immer 3000. Dockerfile, Port und `output: "standalone"` nicht ändern.
|
||||||
|
|
||||||
1. Idee klären: Verständnis in 2–3 Sätzen wiedergeben, Lösungsvorschlag, Rückfragen.
|
Arbeitsweise, Git-Ablauf, n8n-Regeln und UI-Richtlinien kommen aus dem Plugin `prodi`.
|
||||||
Keine Dateien ändern.
|
Der Steckbrief liegt in `docs/steckbrief.md`.
|
||||||
2. Vorgehensweisen: 2–3 Wege mit Vor- und Nachteilen vorstellen.
|
|
||||||
Keine Dateien ändern.
|
|
||||||
3. Umsetzung erst nach ausdrücklicher Freigabe:
|
|
||||||
- git switch main && git pull
|
|
||||||
- neuen Branch anlegen: feat/<kurzname> oder fix/<kurzname>
|
|
||||||
- umsetzen, kleine Commits mit verständlicher Nachricht
|
|
||||||
- git push -u origin <branch>
|
|
||||||
- dem Nutzer sagen, dass er in Gitea einen Pull Request öffnen kann
|
|
||||||
|
|
||||||
Niemals auf main committen oder pushen. Erkläre Entscheidungen so,
|
|
||||||
dass Einsteiger sie verstehen. Antworte auf Deutsch.
|
|
||||||
+22
-2
@@ -1,2 +1,22 @@
|
|||||||
FROM nginx:alpine
|
FROM node:22-bookworm-slim AS deps
|
||||||
COPY index.html /usr/share/nginx/html/index.html
|
WORKDIR /app
|
||||||
|
ARG GITEA_NPM_TOKEN
|
||||||
|
COPY frontend-starter/package.json frontend-starter/package-lock.json frontend-starter/.npmrc ./
|
||||||
|
RUN GITEA_NPM_TOKEN=$GITEA_NPM_TOKEN npm ci
|
||||||
|
|
||||||
|
FROM node:22-bookworm-slim AS build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
|
COPY frontend-starter/ ./
|
||||||
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM node:22-bookworm-slim AS run
|
||||||
|
WORKDIR /app
|
||||||
|
ENV NODE_ENV=production NEXT_TELEMETRY_DISABLED=1 PORT=3000 HOSTNAME=0.0.0.0
|
||||||
|
COPY --from=build /app/.next/standalone ./
|
||||||
|
COPY --from=build /app/.next/static ./.next/static
|
||||||
|
COPY --from=build /app/public ./public
|
||||||
|
USER node
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["node", "server.js"]
|
||||||
@@ -4,5 +4,5 @@ Erreichbar unter: https://$REPO_NAME.ep-reisen.app
|
|||||||
|
|
||||||
## Arbeitsweise
|
## Arbeitsweise
|
||||||
- Niemand committet direkt auf `main`.
|
- Niemand committet direkt auf `main`.
|
||||||
- Jede Änderung: Branch anlegen, Pull Request öffnen, Owner gibt frei.
|
- Jede Änderung über Claude in VS-Code: Branch anlegen, Pull Request öffnen, Owner gibt frei.
|
||||||
- Jeder Merge auf `main` wird automatisch deployt.
|
- Jeder Merge auf `main` wird automatisch über Coolify deployt.
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# Steckbrief: $REPO_NAME
|
||||||
|
|
||||||
|
- **Owner:**
|
||||||
|
- **Team:**
|
||||||
|
- **Zweck:**
|
||||||
|
- **n8n-Ordner:**
|
||||||
|
- **Datenbank:**
|
||||||
|
- **Webseite:** ja / nein
|
||||||
|
|
||||||
|
## Idee
|
||||||
|
|
||||||
|
## Ablauf
|
||||||
|
|
||||||
|
## Zugänge
|
||||||
|
|
||||||
|
## Offene Punkte
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
@ep:registry=http://192.168.20.70:3002/api/packages/EP-Intern/npm/
|
||||||
|
//192.168.20.70:3002/api/packages/EP-Intern/npm/:_authToken=${GITEA_NPM_TOKEN}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# App
|
||||||
|
|
||||||
|
Dies ist die Next.js-App des Projekts.
|
||||||
|
|
||||||
|
- Starten: `npm run dev` in diesem Ordner, läuft immer auf Port 3000.
|
||||||
|
- Änderungen nur auf einem eigenen Branch, nie auf `main`.
|
||||||
|
- Committen und pushen nur nach ausdrücklicher Zustimmung des Nutzers.
|
||||||
|
- Deployt wird automatisch, wenn der Owner einen Pull Request nach `main` mergt.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
@import "tailwindcss";
|
||||||
|
@import "tw-animate-css";
|
||||||
|
@import "shadcn/tailwind.css";
|
||||||
|
@import "@ep/ui/theme.css";
|
||||||
|
@source "../node_modules/@ep/ui/dist";
|
||||||
|
|
||||||
|
/* E&P-Farben, Schriften und Bausteine (ep-karte, ep-knopf, …) kommen aus @ep/ui/theme.css.
|
||||||
|
* Hier nur app-eigene Regeln ergänzen. */
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import type { Metadata, Viewport } from "next";
|
||||||
|
import { EpFuss, EpKopf } from "@ep/ui";
|
||||||
|
import "./globals.css";
|
||||||
|
import { APP_BESCHREIBUNG, APP_TITEL } from "@/lib/app";
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: `${APP_TITEL} · E&P Reisen`,
|
||||||
|
description: APP_BESCHREIBUNG,
|
||||||
|
robots: { index: false, follow: false },
|
||||||
|
icons: { icon: "/favicon.svg" },
|
||||||
|
};
|
||||||
|
|
||||||
|
export const viewport: Viewport = {
|
||||||
|
themeColor: "#ffffff",
|
||||||
|
colorScheme: "light",
|
||||||
|
};
|
||||||
|
|
||||||
|
// E&P-Layout für jede Seite: Kopf mit Logo, Inhalt, Fuß. Seiten liefern nur ihren Inhalt, kein eigenes <main>.
|
||||||
|
// Kopf, Fuß und die Hausschrift Lato kommen aus @ep/ui.
|
||||||
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||||
|
return (
|
||||||
|
<html lang="de" className="font-sans">
|
||||||
|
<body className="flex min-h-screen flex-col bg-ground text-ink">
|
||||||
|
<a href="#inhalt" className="skip-link">
|
||||||
|
Zum Inhalt springen
|
||||||
|
</a>
|
||||||
|
<EpKopf titel={APP_TITEL} />
|
||||||
|
<main id="inhalt" className="mx-auto w-full max-w-3xl flex-1 px-4 py-8 sm:px-6 sm:py-12">
|
||||||
|
{children}
|
||||||
|
</main>
|
||||||
|
<EpFuss />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { Card, CardContent, CardHeader } from "@/components/ui/card";
|
||||||
|
import { APP_BESCHREIBUNG, APP_TITEL } from "@/lib/app";
|
||||||
|
|
||||||
|
// Startseite im E&P-Layout. Kopf und Fuß kommen aus app/layout.tsx,
|
||||||
|
// Farben und Bausteine (ep-karte, ep-ueberschrift, …) aus @ep/ui/theme.css.
|
||||||
|
export default function Home() {
|
||||||
|
return (
|
||||||
|
<Card className="ep-karte rounded-none shadow-none ring-0">
|
||||||
|
<CardHeader className="px-0">
|
||||||
|
<h1 className="ep-ueberschrift text-3xl">{APP_TITEL}</h1>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent className="px-0">
|
||||||
|
<p className="text-ink-muted">{APP_BESCHREIBUNG}</p>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://ui.shadcn.com/schema.json",
|
||||||
|
"style": "base-luma",
|
||||||
|
"rsc": true,
|
||||||
|
"tsx": true,
|
||||||
|
"tailwind": {
|
||||||
|
"config": "",
|
||||||
|
"css": "app/globals.css",
|
||||||
|
"baseColor": "neutral",
|
||||||
|
"cssVariables": true,
|
||||||
|
"prefix": ""
|
||||||
|
},
|
||||||
|
"iconLibrary": "lucide",
|
||||||
|
"rtl": false,
|
||||||
|
"aliases": {
|
||||||
|
"components": "@/components",
|
||||||
|
"utils": "@/lib/utils",
|
||||||
|
"ui": "@/components/ui",
|
||||||
|
"lib": "@/lib",
|
||||||
|
"hooks": "@/hooks"
|
||||||
|
},
|
||||||
|
"menuColor": "default",
|
||||||
|
"menuAccent": "subtle",
|
||||||
|
"registries": {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
import { Button as ButtonPrimitive } from "@base-ui/react/button"
|
||||||
|
import { cva, type VariantProps } from "class-variance-authority"
|
||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
const buttonVariants = cva(
|
||||||
|
"group/button inline-flex shrink-0 items-center justify-center rounded-4xl border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
||||||
|
{
|
||||||
|
variants: {
|
||||||
|
variant: {
|
||||||
|
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
||||||
|
outline:
|
||||||
|
"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-transparent dark:hover:bg-input/30",
|
||||||
|
secondary:
|
||||||
|
"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
||||||
|
ghost:
|
||||||
|
"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
||||||
|
destructive:
|
||||||
|
"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
||||||
|
link: "text-primary underline-offset-4 hover:underline",
|
||||||
|
},
|
||||||
|
size: {
|
||||||
|
default:
|
||||||
|
"h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
|
||||||
|
xs: "h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",
|
||||||
|
sm: "h-8 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
||||||
|
lg: "h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
|
||||||
|
icon: "size-9",
|
||||||
|
"icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
|
||||||
|
"icon-sm": "size-8",
|
||||||
|
"icon-lg": "size-10",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
defaultVariants: {
|
||||||
|
variant: "default",
|
||||||
|
size: "default",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
function Button({
|
||||||
|
className,
|
||||||
|
variant = "default",
|
||||||
|
size = "default",
|
||||||
|
...props
|
||||||
|
}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {
|
||||||
|
return (
|
||||||
|
<ButtonPrimitive
|
||||||
|
data-slot="button"
|
||||||
|
className={cn(buttonVariants({ variant, size, className }))}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export { Button, buttonVariants }
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
import * as React from "react"
|
||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
function Card({
|
||||||
|
className,
|
||||||
|
size = "default",
|
||||||
|
...props
|
||||||
|
}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
data-slot="card"
|
||||||
|
data-size={size}
|
||||||
|
className={cn(
|
||||||
|
"group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-4xl bg-card py-(--card-spacing) text-sm text-card-foreground shadow-md ring-1 ring-foreground/5 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] dark:ring-foreground/10 *:[img:first-child]:rounded-t-4xl *:[img:last-child]:rounded-b-4xl",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
data-slot="card-header"
|
||||||
|
className={cn(
|
||||||
|
"group/card-header @container/card-header grid auto-rows-min items-start gap-1.5 rounded-t-4xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
data-slot="card-title"
|
||||||
|
className={cn("font-heading text-base font-medium", className)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
data-slot="card-description"
|
||||||
|
className={cn("text-sm text-muted-foreground", className)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function CardAction({ className, ...props }: React.ComponentProps<"div">) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
data-slot="card-action"
|
||||||
|
className={cn(
|
||||||
|
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
data-slot="card-content"
|
||||||
|
className={cn("px-(--card-spacing)", className)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
data-slot="card-footer"
|
||||||
|
className={cn(
|
||||||
|
"flex items-center rounded-b-4xl px-(--card-spacing) [.border-t]:pt-(--card-spacing)",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
Card,
|
||||||
|
CardHeader,
|
||||||
|
CardFooter,
|
||||||
|
CardTitle,
|
||||||
|
CardAction,
|
||||||
|
CardDescription,
|
||||||
|
CardContent,
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* Name und Kurzbeschreibung der Oberfläche. Der Name steht im Kopf neben dem E&P-Logo
|
||||||
|
* und im Browser-Tab. Für jede neue Oberfläche passend setzen, zum Beispiel "Hotel-Steckbriefe".
|
||||||
|
*/
|
||||||
|
export const APP_TITEL = "Neue App";
|
||||||
|
export const APP_BESCHREIBUNG = "Interne Web-App von E&P";
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import { clsx, type ClassValue } from "clsx"
|
||||||
|
import { twMerge } from "tailwind-merge"
|
||||||
|
|
||||||
|
export function cn(...inputs: ClassValue[]) {
|
||||||
|
return twMerge(clsx(inputs))
|
||||||
|
}
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
/// <reference types="next" />
|
||||||
|
/// <reference types="next/image-types/global" />
|
||||||
|
import "./.next/dev/types/routes.d.ts";
|
||||||
|
import "./.next/dev/types/root-params.d.ts";
|
||||||
|
|
||||||
|
// NOTE: This file should not be edited
|
||||||
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/** @type {import('next').NextConfig} */
|
||||||
|
const nextConfig = {
|
||||||
|
output: "standalone",
|
||||||
|
};
|
||||||
|
|
||||||
|
export default nextConfig;
|
||||||
Generated
+4396
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"name": "frontend-starter",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"assets": "mkdir -p public && cp node_modules/@ep/ui/assets/*.svg public/",
|
||||||
|
"dev": "npm run assets && next dev -p 3000",
|
||||||
|
"build": "npm run assets && next build",
|
||||||
|
"start": "next start -p 3000"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@base-ui/react": "^1.9.0",
|
||||||
|
"@ep/ui": "^1.0.0",
|
||||||
|
"class-variance-authority": "^0.7.1",
|
||||||
|
"clsx": "^2.1.1",
|
||||||
|
"lucide-react": "^1.63.0",
|
||||||
|
"next": "^16.4.5",
|
||||||
|
"react": "^19.2.0",
|
||||||
|
"react-dom": "^19.2.0",
|
||||||
|
"shadcn": "^4.23.0",
|
||||||
|
"tailwind-merge": "^3.7.0",
|
||||||
|
"tw-animate-css": "^1.4.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@tailwindcss/postcss": "^4.3.0",
|
||||||
|
"@types/node": "^22.0.0",
|
||||||
|
"@types/react": "^19.2.0",
|
||||||
|
"@types/react-dom": "^19.2.0",
|
||||||
|
"tailwindcss": "^4.3.0",
|
||||||
|
"typescript": "^5.9.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export default {
|
||||||
|
plugins: {
|
||||||
|
"@tailwindcss/postcss": {},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 500 153" xmlns="http://www.w3.org/2000/svg"><g fill="#0084d4"><path d="m332.922 85.597c4.527 0 7.819 3.292 7.819 7.819 0 4.115-2.675 6.79-5.762 7.613l6.791 11.934h-3.704l-6.379-11.523h-7.613v11.523h-3.292v-27.366zm-8.642 12.963h8.642c2.469 0 4.527-2.058 4.527-5.144 0-3.293-2.264-5.144-5.35-5.144h-7.819z" fill-rule="nonzero"/><path d="m374.28 85.597v2.88h-15.432v9.877h13.374v2.881h-13.374v9.053h15.843v2.675h-19.135v-27.366z" fill-rule="nonzero"/><path d="m389.095 85.597h3.292v27.366h-3.292z"/><path d="m406.79 111.317.823-2.675c1.029.411 4.733 1.852 8.436 1.852 4.527 0 6.791-1.852 6.791-4.527 0-3.498-3.498-4.321-6.996-5.35-4.321-1.234-8.848-2.675-8.848-8.024 0-4.939 3.704-7.408 9.259-7.408 3.292 0 6.79 1.029 8.642 1.852l-.823 2.675s-4.115-1.646-7.613-1.646c-3.704 0-6.173 1.852-6.173 4.527 0 3.292 3.704 4.321 6.996 5.349 4.321 1.235 8.848 2.675 8.848 8.025 0 5.144-4.116 7.407-9.671 7.407-4.321 0-8.025-1.234-9.671-2.057z" fill-rule="nonzero"/><path d="m458.848 85.597v2.88h-15.432v9.877h13.374v2.881h-13.374v9.053h15.843v2.675h-19.136v-27.366z" fill-rule="nonzero"/><path d="m476.955 85.597 8.642 12.963 5.967 9.259-.206-9.259v-12.963h3.292v27.366h-3.498l-8.642-13.375-5.761-9.053.206 9.259v13.169h-3.292v-27.366z" fill-rule="nonzero"/><path d="m339.712 123.663v2.88h-15.432v9.877h13.374v2.88h-13.374v9.054h15.843v2.881h-19.135v-27.572z" fill-rule="nonzero"/><path d="m352.263 123.663 8.231 23.251 8.23-23.251h3.498l-9.876 27.366h-3.704l-9.877-27.366z" fill-rule="nonzero"/><path d="m401.44 123.663v2.88h-15.432v9.877h13.375v2.88h-13.375v9.054h15.844v2.881h-19.136v-27.572z" fill-rule="nonzero"/><path d="m416.872 123.663 8.642 12.963 5.967 9.259-.205-9.259v-12.963h3.292v27.366h-3.498l-8.642-13.375-5.761-9.053.205 9.259v13.169h-3.292v-27.366z" fill-rule="nonzero"/><path d="m466.872 123.457v3.086h-9.259v24.486h-3.292v-24.692h-9.259v-2.88z" fill-rule="nonzero"/><path d="m475.309 149.177.823-2.675c1.028.412 4.732 1.852 8.436 1.852 4.527 0 6.79-1.852 6.79-4.527 0-3.498-3.498-4.321-6.996-5.35-4.321-1.234-8.848-2.675-8.848-8.024 0-4.939 3.704-7.408 9.26-7.408 3.292 0 6.79 1.029 8.642 1.852l-.823 2.675s-4.116-1.646-7.614-1.646c-3.703 0-6.172 1.852-6.172 4.527 0 3.292 3.703 4.321 6.995 5.349 4.321 1.235 8.848 2.675 8.848 8.025 0 5.144-4.115 7.408-9.671 7.408-4.115 0-8.024-1.235-9.67-2.058z" fill-rule="nonzero"/><path d="m367.695 1.852v10.905h-33.333v17.078h28.395v11.112h-28.395v15.637h33.951v10.906h-47.12v-65.638z" fill-rule="nonzero"/><path d="m418.93 16.255c0 5.556-3.292 11.729-10.7 16.255l11.317 13.169s2.264-4.115 2.264-9.465h9.876c-.206 10.082-4.938 17.901-4.938 17.901l12.14 13.992h-14.609l-4.938-5.761c-4.527 3.909-10.494 6.173-17.284 6.173-12.346 0-23.457-7.202-23.457-20.782 0-8.848 5.761-14.404 11.728-18.519-3.292-4.321-5.761-7.202-5.761-12.963 0-11.317 9.465-15.638 16.872-15.638 7.408 0 17.49 4.321 17.49 15.638zm-28.189 31.276c0 6.173 4.526 10.082 11.728 10.082 3.704 0 6.996-1.029 9.671-3.292l-14.403-16.667c-4.116 2.264-6.996 5.35-6.996 9.877zm5.967-30.659c0 3.293 2.057 5.144 4.321 7.614 3.704-1.646 6.378-4.527 6.378-7.819 0-3.91-2.674-5.35-5.349-5.35-3.498 0-5.35 2.263-5.35 5.555z" fill-rule="nonzero"/><path d="m479.424 1.852c11.111 0 20.164 9.259 20.164 20.988 0 12.551-9.053 21.399-19.958 21.399h-15.844v23.456h-13.169v-65.843zm-15.638 31.276h13.169c6.173 0 9.671-4.527 9.671-10.288 0-7.202-5.556-9.877-10.7-9.877h-12.14z" fill-rule="nonzero"/><path d="m220.165.617c-74.898 11.317-167.902 39.301-167.902 78.601 0 36.42 86.009 27.161 86.009 27.161s-137.86 45.884-137.86-14.404c0-68.312 173.868-91.358 219.753-91.358z" fill-rule="nonzero"/></g><path d="m34.979 151.235c74.898-11.112 167.902-39.301 167.902-78.601 0-36.42-86.009-27.161-86.009-27.161s137.861-45.885 137.861 14.404c0 68.518-173.869 91.358-219.754 91.358z" fill="#f8c62f" fill-rule="nonzero"/><path d="m124.897 70.576-26.337 8.231 25.103 1.646-.823-4.939z" fill="#0084d4" fill-rule="nonzero"/><path d="m156.173 72.428-18.93 5.967-7.202 19.959-3.498-23.251 8.231-22.017 3.498 16.256z" fill="#f8c62f" fill-rule="nonzero"/></svg>
|
||||||
|
After Width: | Height: | Size: 4.0 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" fill="#18527b"/></svg>
|
||||||
|
After Width: | Height: | Size: 112 B |
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
"incremental": true,
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "next"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": {
|
||||||
|
"@/*": [
|
||||||
|
"./*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"target": "ES2017"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"next-env.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx",
|
||||||
|
".next/types/**/*.ts",
|
||||||
|
".next/dev/types/**/*.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# Zugänge, die die Workflows dieses Projekts brauchen (ohne Geheimnisse).
|
||||||
|
# - name: "Raumplanung SharePoint"
|
||||||
|
# typ: microsoftSharePointOAuth2Api
|
||||||
|
# zweck: Raumbelegung lesen
|
||||||
|
# klasse: gruen
|
||||||
Whitespace-only changes.
@@ -1,8 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="de">
|
|
||||||
<head><meta charset="utf-8"><title>$REPO_NAME</title></head>
|
|
||||||
<body>
|
|
||||||
<h1>$REPO_NAME</h1>
|
|
||||||
<p>Erzeugt aus der Vorlage $TEMPLATE_NAME.</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in new issue
Block a user