Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc2b175556 | ||
|
|
5416b37dfc | ||
|
|
30e9aa7b26 |
No files matched your search
@@ -50,6 +50,20 @@ ## 4. Konflikte vermeiden
|
||||
| `public/build` | Wird nicht committet (Build-Ergebnis); nie von Hand ändern |
|
||||
| Datenbank-Migrationen | Nur Session A |
|
||||
|
||||
## 4a. Automatische Synchronisation (optional, je Rechner)
|
||||
|
||||
`scripts/git-autosync.ps1` zieht alle 5 Minuten neue Commits von Gitea – nur per Vorspulen (`--ff-only`), nie bei lokalen, nicht committeten Änderungen an versionierten Dateien und nie, wenn beide Seiten neue Commits haben (dann Hinweis im Protokoll, bitte von Hand `git pull`). Protokoll: `storage/logs/git-autosync.log`, inklusive Hinweis, wenn danach `npm ci && npm run build`, `composer install` oder `php artisan migrate` nötig ist.
|
||||
|
||||
```powershell
|
||||
scripts\git-autosync.ps1 -Register # einrichten (Windows-Aufgabenplanung, aktueller Benutzer)
|
||||
scripts\git-autosync.ps1 -Unregister # entfernen
|
||||
scripts\git-autosync.ps1 # einmal von Hand
|
||||
```
|
||||
|
||||
Eingerichtet auf: Firmen-Laptop (23.10.2026).
|
||||
|
||||
**Lock-Datei:** Nach jeder Paketänderung `npm install` ausführen und `package-lock.json` mit committen; vor dem Push prüfen, dass `npm ci` fehlerfrei durchläuft – das Deploy-Skript und die CI bauen mit `npm ci` und brechen sonst ab (am 23.10. passiert: Lock-Datei passte nicht zu package.json).
|
||||
|
||||
## 5. Wünsche der Design-Session an die Anwendung
|
||||
|
||||
*(Session B trägt hier ein, was sie braucht; Session A erledigt es und vermerkt „erledigt in <commit>“.)*
|
||||
|
||||
Generated
+77
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "fewo-stommer.de",
|
||||
"name": "fewo-stommer",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
@@ -656,6 +656,72 @@
|
||||
"node": ">=14.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": {
|
||||
"version": "1.11.1",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@emnapi/wasi-threads": "1.2.2",
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": {
|
||||
"version": "1.11.1",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": {
|
||||
"version": "1.2.2",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": {
|
||||
"version": "1.1.4",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@tybys/wasm-util": "^0.10.1"
|
||||
},
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/Brooooooklyn"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@emnapi/core": "^1.7.1",
|
||||
"@emnapi/runtime": "^1.7.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": {
|
||||
"version": "0.10.2",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": {
|
||||
"version": "2.8.1",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "0BSD",
|
||||
"optional": true
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
|
||||
"version": "4.3.3",
|
||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",
|
||||
@@ -1565,7 +1631,6 @@
|
||||
"integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
@@ -1602,6 +1667,16 @@
|
||||
"node": "^10 || ^12 || >=14"
|
||||
}
|
||||
},
|
||||
"node_modules/react": {
|
||||
"version": "19.3.1",
|
||||
"resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
|
||||
"integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-reconciler": {
|
||||
"version": "0.33.0",
|
||||
"resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.33.0.tgz",
|
||||
@@ -1908,7 +1983,6 @@
|
||||
"integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"lightningcss": "^1.33.0",
|
||||
"picomatch": "^4.0.7",
|
||||
|
||||
@@ -39,5 +39,9 @@ ## Eigene Vorlagen
|
||||
| `sections/location` | Lage auf weißer Fläche, Fotos mit Bildunterschrift in Serifenschrift |
|
||||
| `sections/host` | Zitat der Gastgeberin auf dunklem Band, gleitende Möwen; Porträt optional |
|
||||
| `sections/cta` | Abschluss in der Kartusche mit Muschel, Foto optional daneben |
|
||||
| `sections/amenities` | Ausstattung mit Bereichs-Überschriften in Serifenschrift und Häkchen |
|
||||
| `sections/prices` | Nebenkosten als Liste, Saisontabelle mit großer Schrift; auf dem Handy Zeitraum unter der Saison |
|
||||
|
||||
Übrige Bausteine (Galerie, Ausstattung, Preise, Angebote, Buchung, Bewertungen, FAQ, Kontakt, Fließtext) kommen noch vom Eltern-Theme und übernehmen Schriften, Farben und Basis-Klassen.
|
||||
Menü: ausgeschrieben ab 1280 px, darunter Menü-Taste (sonst überdeckt der Name das Menü).
|
||||
|
||||
Übrige Bausteine (Galerie, Angebote, Buchung, Bewertungen, FAQ, Kontakt, Fließtext) kommen noch vom Eltern-Theme und übernehmen Schriften, Farben und Basis-Klassen.
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"key": "seebad",
|
||||
"name": "Seebad",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"parent": "ostsee-licht",
|
||||
"description": "Ruhiges Magazin für Paare: große, gut lesbare Schrift, Titelbild mit Bogen, Bildwelt Ostsee (Villa, Seebrücke, Molli)",
|
||||
"assets": {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
@php($phone = (string) config('fewo.owner.phone'))
|
||||
<header class="relative z-20">
|
||||
<div class="mx-auto flex max-w-7xl items-center justify-between gap-6 px-4 py-4 sm:px-8 lg:py-5">
|
||||
<a href="{{ route('home') }}" class="flex min-w-0 items-center gap-3" aria-label="{{ $theme->site->name }} – Startseite">
|
||||
<a href="{{ route('home') }}" class="flex min-w-0 items-center gap-3 sm:shrink-0" aria-label="{{ $theme->site->name }} – Startseite">
|
||||
@include('theme::partials.motif', ['slot' => 'mark', 'class' => 'h-11 w-auto shrink-0 lg:h-14'])
|
||||
<span class="font-display text-[1.375rem] leading-tight font-medium sm:text-[1.75rem] xl:whitespace-nowrap">{{ $theme->site->name }}</span>
|
||||
<span class="font-display text-[1.375rem] leading-tight font-medium sm:text-[1.75rem] sm:whitespace-nowrap">{{ $theme->site->name }}</span>
|
||||
</a>
|
||||
|
||||
<nav aria-label="Hauptnavigation" class="hidden lg:block">
|
||||
<nav aria-label="Hauptnavigation" class="hidden xl:block">
|
||||
<ul class="flex gap-6 text-lg whitespace-nowrap xl:gap-7">
|
||||
@foreach ($theme->menu('main') as $item)
|
||||
<li><a href="{{ $item->url() }}" @class(['underline-offset-8 hover:underline', 'underline decoration-accent decoration-2' => url()->current() === $item->url()]) @if (url()->current() === $item->url()) aria-current="page" @endif>{{ $item->label() }}</a></li>
|
||||
@@ -22,7 +22,7 @@
|
||||
@endif
|
||||
<a href="{{ route('booking.create') }}" class="btn-accent hidden whitespace-nowrap sm:inline-flex">Verfügbarkeit prüfen</a>
|
||||
|
||||
<details class="group lg:hidden">
|
||||
<details class="group xl:hidden">
|
||||
<summary class="flex size-12 cursor-pointer list-none items-center justify-center rounded-md border border-line bg-surface [&::-webkit-details-marker]:hidden" aria-label="Menü">
|
||||
<x-heroicon-o-bars-3 class="size-6 group-open:hidden" aria-hidden="true" />
|
||||
<x-heroicon-o-x-mark class="hidden size-6 group-open:block" aria-hidden="true" />
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
@if ($groups->isNotEmpty())
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display mb-10">{{ $heading }}</h2>
|
||||
<div class="grid gap-x-12 gap-y-10 sm:grid-cols-2 lg:grid-cols-3">
|
||||
@foreach ($groups as $area => $amenities)
|
||||
<div class="reveal">
|
||||
<h3 class="mb-3 border-b border-line pb-2 font-display text-[1.625rem]">{{ $area }}</h3>
|
||||
<ul class="space-y-2">
|
||||
@foreach ($amenities as $amenity)
|
||||
<li class="flex gap-3"><x-heroicon-o-check class="mt-1 size-5 shrink-0 text-accent" aria-hidden="true" />{{ $amenity->name }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@@ -1,5 +1,5 @@
|
||||
<section class="mx-auto flex max-w-7xl flex-wrap items-stretch gap-x-12 gap-y-7 px-4 pt-2 pb-6 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="min-w-0 flex-[999_1_34rem]">
|
||||
<div class="min-w-0 flex-[999_1_28rem]">
|
||||
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 60vw, 100vw', 'class' => 'arch h-[21rem] w-full object-cover sm:h-[30rem] lg:h-[38rem]', 'eager' => true])
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
<section class="mx-auto flex max-w-7xl flex-wrap items-start gap-x-16 gap-y-10 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="min-w-0 flex-[1_1_22rem]">
|
||||
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
@if ($text)<p class="mt-6 text-muted">{{ $text }}</p>@endif
|
||||
@if ($property)
|
||||
<dl class="mt-6 space-y-2">
|
||||
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>Endreinigung und Service</dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($property->cleaning_fee) }} einmalig</dd></div>
|
||||
@if ($property->extra_guest_fee_per_night)
|
||||
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>ab der {{ $property->included_guests + 1 }}. Person</dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($property->extra_guest_fee_per_night) }} pro Nacht</dd></div>
|
||||
@endif
|
||||
@foreach ($extras as $extra)
|
||||
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>{{ $extra->name }} <span class="text-muted">(auf Wunsch)</span></dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($extra->price) }}</dd></div>
|
||||
@endforeach
|
||||
<div class="flex justify-between gap-4 pb-2"><dt>Kurtaxe</dt><dd class="text-muted">vor Ort</dd></div>
|
||||
</dl>
|
||||
@endif
|
||||
<a href="{{ route('booking.create') }}" class="btn-accent mt-8">Freie Termine und Gesamtpreis</a>
|
||||
</div>
|
||||
<div class="min-w-0 flex-[1_1_32rem]">
|
||||
<table class="w-full text-left">
|
||||
<caption class="sr-only">Preise pro Nacht nach Saison</caption>
|
||||
<thead class="text-base text-muted">
|
||||
<tr><th scope="col" class="pb-3 font-semibold">Saison</th><th scope="col" class="hidden pb-3 font-semibold sm:table-cell">Zeitraum</th><th scope="col" class="pb-3 text-right font-semibold">pro Nacht</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($seasons as $season)
|
||||
<tr @class(['border-t border-line', 'bg-accent/10' => $featuredSeason && str_contains(mb_strtolower($featuredSeason), mb_strtolower($season->name))])>
|
||||
<th scope="row" class="py-4 pr-4 align-top font-semibold">
|
||||
{{ $season->name }}
|
||||
<span class="block font-normal text-muted sm:hidden">{{ $season->starts_on->format('d.m.') }} bis {{ $season->ends_on->format('d.m.Y') }}</span>
|
||||
<span class="block font-normal text-muted">ab {{ $season->min_nights }} Nächten</span>
|
||||
</th>
|
||||
<td class="hidden py-4 pr-4 align-top text-muted sm:table-cell">{{ $season->starts_on->format('d.m.') }} bis {{ $season->ends_on->format('d.m.Y') }}</td>
|
||||
<td class="py-4 text-right align-top font-display text-[1.75rem] leading-none whitespace-nowrap">{{ \App\Support\Money::format($season->nightly_rate) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,78 @@
|
||||
<#
|
||||
Keeps a local clone in sync with Gitea (e.g. every 5 minutes via Windows Task Scheduler).
|
||||
Safe by design: it only fast-forwards. Nothing happens if there are local uncommitted changes, if the
|
||||
branch has no upstream, or if local and remote both have new commits (that needs a human).
|
||||
Log: storage/logs/git-autosync.log (not committed).
|
||||
|
||||
Register (once per machine, PowerShell):
|
||||
scripts\git-autosync.ps1 -Register # every 5 minutes, as the current user
|
||||
scripts\git-autosync.ps1 -Unregister
|
||||
Run once by hand:
|
||||
scripts\git-autosync.ps1
|
||||
#>
|
||||
param(
|
||||
[switch] $Register,
|
||||
[switch] $Unregister,
|
||||
[int] $Minutes = 5
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$repo = Split-Path -Parent $PSScriptRoot
|
||||
$taskName = 'FeWo Stommer Git-Sync'
|
||||
$log = Join-Path $repo 'storage\logs\git-autosync.log'
|
||||
|
||||
if ($Register) {
|
||||
$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument "-NoProfile -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$PSCommandPath`""
|
||||
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(1) -RepetitionInterval (New-TimeSpan -Minutes $Minutes)
|
||||
$settings = New-ScheduledTaskSettingsSet -StartWhenAvailable -DontStopIfGoingOnBatteries -AllowStartIfOnBatteries -ExecutionTimeLimit (New-TimeSpan -Minutes 5) -MultipleInstances IgnoreNew
|
||||
Register-ScheduledTask -TaskName $taskName -Action $action -Trigger $trigger -Settings $settings -Description "git pull --ff-only für $repo (scripts/git-autosync.ps1)" -Force | Out-Null
|
||||
Write-Output "Aufgabe '$taskName' eingerichtet: alle $Minutes Minuten. Protokoll: $log"
|
||||
exit 0
|
||||
}
|
||||
|
||||
if ($Unregister) {
|
||||
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false
|
||||
Write-Output "Aufgabe '$taskName' entfernt."
|
||||
exit 0
|
||||
}
|
||||
|
||||
function Write-Log([string] $message) {
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path $log) | Out-Null
|
||||
Add-Content -Path $log -Value ("{0:yyyy-MM-dd HH:mm:ss} {1}" -f (Get-Date), $message) -Encoding utf8
|
||||
}
|
||||
|
||||
function Invoke-Git([string[]] $arguments) {
|
||||
$output = & git.exe -C $repo @arguments 2>&1
|
||||
if ($LASTEXITCODE -ne 0) { throw "git $($arguments -join ' '): $output" }
|
||||
return $output
|
||||
}
|
||||
|
||||
try {
|
||||
Invoke-Git @('fetch', '--quiet', '--prune') | Out-Null
|
||||
|
||||
$branch = (Invoke-Git @('rev-parse', '--abbrev-ref', 'HEAD')).Trim()
|
||||
$upstream = & git.exe -C $repo rev-parse --abbrev-ref --symbolic-full-name '@{u}' 2>$null
|
||||
if ($LASTEXITCODE -ne 0 -or -not $upstream) { Write-Log "übersprungen: Branch $branch hat keinen Upstream"; exit 0 }
|
||||
|
||||
$counts = (Invoke-Git @('rev-list', '--left-right', '--count', "HEAD...$upstream")).Trim() -split '\s+'
|
||||
$ahead = [int] $counts[0]; $behind = [int] $counts[1]
|
||||
if ($behind -eq 0) { exit 0 } # nothing new – no log entry
|
||||
|
||||
if ((Invoke-Git @('status', '--porcelain', '--untracked-files=no')) ) { Write-Log "übersprungen: lokale Änderungen in $branch ($behind neue Commits auf $upstream warten)"; exit 0 }
|
||||
if ($ahead -gt 0) { Write-Log "nicht synchronisiert: $branch hat $ahead eigene und $behind neue Commits – bitte von Hand zusammenführen (git pull)"; exit 0 }
|
||||
|
||||
$before = (Invoke-Git @('rev-parse', 'HEAD')).Trim()
|
||||
Invoke-Git @('merge', '--ff-only', '--quiet', $upstream) | Out-Null
|
||||
$changed = Invoke-Git @('diff', '--name-only', $before, 'HEAD')
|
||||
$hints = @()
|
||||
if ($changed -match '^(package\.json|package-lock\.json)$') { $hints += 'npm ci && npm run build' }
|
||||
if ($changed -match '^composer\.(json|lock)$') { $hints += 'composer install' }
|
||||
if ($changed -match '^database/migrations/') { $hints += 'php artisan migrate' }
|
||||
if ($changed -match '^resources/(themes|css|js)/') { $hints += 'npm run build (Theme/Assets geändert)' }
|
||||
$summary = (Invoke-Git @('log', '--oneline', "$before..HEAD")) -join ' | '
|
||||
Write-Log ("aktualisiert $branch um $behind Commit(s): $summary" + ($(if ($hints) { " → bitte ausführen: " + (($hints | Select-Object -Unique) -join '; ') } else { '' })))
|
||||
}
|
||||
catch {
|
||||
Write-Log "Fehler: $($_.Exception.Message)"
|
||||
exit 1
|
||||
}
|
||||
Reference in new issue
Block a user