Neues Design: Tailwind + shadcn-vue statt Vuetify/Material 3
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 1m3s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 1m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 1m20s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m29s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m33s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 1m28s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m33s
CI / Build-Artefakte aktuell (pull_request) Failing after 52s
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 1m3s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 1m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 1m20s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m29s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m33s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 1m28s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m33s
CI / Build-Artefakte aktuell (pull_request) Failing after 52s
- Nüchterne, professionelle Optik: neutrale Flächen, Markenfarbe nur als Akzent, Inter-Schrift (lokal) - Zweizeiliger Header mit Suche, Hauptnavigation und Avatar-Menü - Startseite mit Begrüßungskarte, Schnellzugriffen und „Neu im Team“ - Personenverzeichnis mit Suche, Abteilungsfilter und Seitenaufteilung - Markenfarbe exakt übernommen, Abstufungen serverseitig in OKLCH (ColorPalette) – gemeinsam für Portal und Admin, keine Farbberechnung im Browser - Schnellzugriffe im Admin pflegbar - Filament-Avatare lokal statt über ui-avatars.com (DSGVO) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9c0f8de791
commit
5a3f1f34c7
141 changed files with 3873 additions and 974 deletions
|
|
@ -10,6 +10,8 @@ Der Self-Updater zeigt diese Abschnitte bei neuen Versionen an.
|
|||
- Anmeldung mit E-Mail und Passwort, „Passwort vergessen“ und Passwort ändern
|
||||
- Eigenes Profil mit Profilbild, Funktion, Abteilung, Standort und Kontaktdaten
|
||||
- Profilseiten von Kolleginnen und Kollegen
|
||||
- Profilbild und Menü im Kopfbereich, Darstellung hell, dunkel oder wie im System
|
||||
- Admin-Bereich mit Benutzerverwaltung
|
||||
- Erscheinungsbild: Name des Portals, Logo und Primärfarbe
|
||||
- Personenverzeichnis mit Suche und Filter nach Abteilung
|
||||
- Startseite mit Begrüßung, Schnellzugriffen und neuen Kolleginnen und Kollegen
|
||||
- Kopfbereich mit Suche, Hauptnavigation und Profilmenü; Darstellung hell, dunkel oder wie im System
|
||||
- Admin-Bereich mit Benutzerverwaltung und Schnellzugriffen
|
||||
- Erscheinungsbild: Name des Portals, Logo und Markenfarbe – wirkt im Portal und im Admin-Bereich
|
||||
|
|
|
|||
|
|
@ -7,3 +7,5 @@
|
|||
gegen MySQL/MariaDB-Datenbank `inhaus_test`. Formatierung: `vendor-dev/bin/pint`.
|
||||
- Jede Änderung: `CHANGELOG.md` + `App\Version::VERSION` anheben, `bin/build`, Artefakte mitcommitten.
|
||||
- UI-Texte Deutsch mit Umlauten, Schlüssel/Routen ASCII. Kein Node/Shell auf dem Kundenserver voraussetzen.
|
||||
- Design: Tailwind + shadcn-vue (`resources/js/components/ui`), Lucide-Icons, Inter. Farben nur über Tokens
|
||||
(`brand`, `brand-text`, `card`, `muted-foreground` …); Markenfarbe kommt serverseitig als CSS-Variable.
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Deshalb liegen im Repository auch alle Build-Artefakte:
|
|||
| Verzeichnis | Inhalt | erzeugt durch |
|
||||
|---|---|---|
|
||||
| `vendor/` | PHP-Pakete **ohne** Entwicklungsabhängigkeiten | `bin/build` |
|
||||
| `public/build/` | kompiliertes Portal-Frontend (Vue/Vuetify) | `bin/build` |
|
||||
| `public/build/` | kompiliertes Portal-Frontend (Vue, Tailwind, shadcn-vue) | `bin/build` |
|
||||
| `public/css/filament`, `public/js/filament`, `public/fonts/filament` | Filament-Assets | `php artisan filament:upgrade` (läuft bei `composer install`) |
|
||||
|
||||
Die CI prüft, dass diese Artefakte zum Quellcode passen.
|
||||
|
|
@ -59,6 +59,10 @@ und danach `bin/build` ausführen, damit `vendor/` nachzieht.
|
|||
Routennamen, Tabellen und Spalten in ASCII/Englisch
|
||||
- Nur Funktionen nutzen, die MySQL **und** MariaDB beherrschen
|
||||
- Kein Node, kein Shell-Aufruf und kein Dauerprozess auf dem Server voraussetzen
|
||||
- Keine externen Ressourcen (CDNs, Google Fonts) einbinden – DSGVO
|
||||
- Keine externen Ressourcen (CDNs, Google Fonts, Avatar-Dienste) einbinden – DSGVO
|
||||
- UI-Bausteine: shadcn-vue-Komponenten liegen als eigener Code unter
|
||||
`resources/js/components/ui` (neue mit `npx shadcn-vue@latest add …`).
|
||||
Farben nur über die Tokens (`bg-brand`, `text-brand-text`, `bg-card`,
|
||||
`text-muted-foreground` …), nie fest verdrahtet – sonst greift das Branding nicht
|
||||
- N+1-Abfragen vermeiden: `Model::preventLazyLoading()` ist außerhalb der
|
||||
Produktion aktiv
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# Inhaus
|
||||
|
||||
Modulares Mitarbeiterportal (Intranet/CMS) – selbst gehostet, auch auf Shared
|
||||
Webhosting. Laravel 13, Filament 5 (Admin), Inertia + Vue 3 + Vuetify 4
|
||||
(Material 3) im Portal, MySQL/MariaDB, Apache.
|
||||
Webhosting. Laravel 13, Filament 5 (Admin), Inertia + Vue 3 + Tailwind CSS +
|
||||
shadcn-vue im Portal, MySQL/MariaDB, Apache.
|
||||
|
||||
- Projektplan: [`docs/PLAN.md`](docs/PLAN.md)
|
||||
- Mitarbeit, Entwicklungsumgebung und Release-Ablauf: [`CONTRIBUTING.md`](CONTRIBUTING.md)
|
||||
|
|
|
|||
39
app/Filament/AvatarProviders/InitialsAvatarProvider.php
Normal file
39
app/Filament/AvatarProviders/InitialsAvatarProvider.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
namespace App\Filament\AvatarProviders;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Support\Branding;
|
||||
use Filament\AvatarProviders\Contracts\AvatarProvider;
|
||||
use Filament\Facades\Filament;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Initialen-Avatar als eingebettetes SVG. Ersetzt Filaments Standard, der die
|
||||
* Bilder von ui-avatars.com lädt – personenbezogene Daten gehen so nicht an Dritte.
|
||||
*/
|
||||
class InitialsAvatarProvider implements AvatarProvider
|
||||
{
|
||||
public function __construct(private readonly Branding $branding) {}
|
||||
|
||||
public function get(Model $record): string
|
||||
{
|
||||
$initials = $record instanceof User
|
||||
? $record->initials
|
||||
: mb_strtoupper(mb_substr(Filament::getNameForDefaultAvatar($record), 0, 1));
|
||||
|
||||
$palette = $this->branding->palette();
|
||||
$background = $palette[100];
|
||||
$foreground = $palette[800];
|
||||
|
||||
$svg = sprintf(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" fill="%s"/>'
|
||||
.'<text x="50%%" y="50%%" dy=".35em" text-anchor="middle" font-family="Inter, system-ui, sans-serif" font-size="26" font-weight="600" fill="%s">%s</text></svg>',
|
||||
$background,
|
||||
$foreground,
|
||||
htmlspecialchars($initials, ENT_XML1),
|
||||
);
|
||||
|
||||
return 'data:image/svg+xml;base64,'.base64_encode($svg);
|
||||
}
|
||||
}
|
||||
|
|
@ -22,11 +22,11 @@ use UnitEnum;
|
|||
*/
|
||||
class Appearance extends Page
|
||||
{
|
||||
protected string $view = 'filament.pages.appearance';
|
||||
protected string $view = 'filament.pages.settings-form';
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPaintBrush;
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'System';
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Portal';
|
||||
|
||||
protected static ?string $navigationLabel = 'Erscheinungsbild';
|
||||
|
||||
|
|
|
|||
94
app/Filament/Pages/QuickLinksSettings.php
Normal file
94
app/Filament/Pages/QuickLinksSettings.php
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
<?php
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Support\QuickLinks;
|
||||
use App\Support\Settings;
|
||||
use BackedEnum;
|
||||
use Filament\Forms\Components\Repeater;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Pages\Page;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use UnitEnum;
|
||||
|
||||
class QuickLinksSettings extends Page
|
||||
{
|
||||
protected string $view = 'filament.pages.settings-form';
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedSquares2x2;
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Portal';
|
||||
|
||||
protected static ?string $navigationLabel = 'Schnellzugriffe';
|
||||
|
||||
protected static ?string $title = 'Schnellzugriffe';
|
||||
|
||||
protected static ?string $slug = 'schnellzugriffe';
|
||||
|
||||
/** @var array<string, mixed>|null */
|
||||
public ?array $data = [];
|
||||
|
||||
public function mount(QuickLinks $quickLinks): void
|
||||
{
|
||||
$this->form->fill(['links' => $quickLinks->all()]);
|
||||
}
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Section::make('Schnellzugriffe auf der Startseite')
|
||||
->description('Häufig genutzte Anwendungen und Seiten – z. B. Zeiterfassung, Urlaubsantrag oder IT-Support. Die Reihenfolge lässt sich per Ziehen ändern.')
|
||||
->schema([
|
||||
Repeater::make('links')
|
||||
->hiddenLabel()
|
||||
->columns(4)
|
||||
->reorderable()
|
||||
->collapsible()
|
||||
->itemLabel(fn (array $state) => $state['label'] ?? null)
|
||||
->addActionLabel('Schnellzugriff hinzufügen')
|
||||
->maxItems(24)
|
||||
->schema([
|
||||
TextInput::make('label')
|
||||
->label('Bezeichnung')
|
||||
->required()
|
||||
->maxLength(40),
|
||||
TextInput::make('url')
|
||||
->label('Adresse')
|
||||
->placeholder('https://… oder /personen')
|
||||
->required()
|
||||
->maxLength(500)
|
||||
->regex('#^(https?://|/)#i')
|
||||
->validationMessages(['regex' => 'Bitte eine Adresse angeben, die mit https://, http:// oder / beginnt.'])
|
||||
->columnSpan(2),
|
||||
Select::make('icon')
|
||||
->label('Symbol')
|
||||
->options(QuickLinks::ICONS)
|
||||
->default('link')
|
||||
->required(),
|
||||
Toggle::make('new_tab')
|
||||
->label('In neuem Tab öffnen')
|
||||
->columnSpanFull(),
|
||||
]),
|
||||
]),
|
||||
])
|
||||
->statePath('data');
|
||||
}
|
||||
|
||||
public function save(Settings $settings): void
|
||||
{
|
||||
$links = array_values($this->form->getState()['links'] ?? []);
|
||||
|
||||
$settings->set('portal.quick_links', $links);
|
||||
|
||||
Notification::make()
|
||||
->success()
|
||||
->title('Schnellzugriffe gespeichert')
|
||||
->send();
|
||||
}
|
||||
}
|
||||
|
|
@ -2,14 +2,37 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Resources\PersonResource;
|
||||
use App\Models\User;
|
||||
use App\Support\QuickLinks;
|
||||
use Illuminate\Http\Request;
|
||||
use Inertia\Inertia;
|
||||
use Inertia\Response;
|
||||
|
||||
class DashboardController extends Controller
|
||||
{
|
||||
public function __invoke(Request $request): Response
|
||||
public function __invoke(Request $request, QuickLinks $quickLinks): Response
|
||||
{
|
||||
return Inertia::render('Dashboard');
|
||||
$user = $request->user();
|
||||
|
||||
return Inertia::render('Dashboard', [
|
||||
'profile' => [
|
||||
'job_title' => $user->job_title,
|
||||
'department' => $user->department,
|
||||
'location' => $user->location,
|
||||
'avatar_url' => $user->avatarUrl(256),
|
||||
],
|
||||
'quickLinks' => $quickLinks->all(),
|
||||
'newColleagues' => PersonResource::collection(
|
||||
User::query()
|
||||
->active()
|
||||
->whereKeyNot($user->getKey())
|
||||
->where('created_at', '>=', now()->subDays(90))
|
||||
->latest()
|
||||
->limit(6)
|
||||
->get()
|
||||
),
|
||||
'peopleCount' => User::query()->active()->count(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,58 @@
|
|||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Resources\PersonResource;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Inertia\Inertia;
|
||||
use Inertia\Response;
|
||||
|
||||
class PeopleController extends Controller
|
||||
{
|
||||
public function index(Request $request): Response
|
||||
{
|
||||
$filters = $request->validate([
|
||||
'q' => ['nullable', 'string', 'max:100'],
|
||||
'abteilung' => ['nullable', 'string', 'max:150'],
|
||||
]);
|
||||
|
||||
$search = trim($filters['q'] ?? '');
|
||||
$department = $filters['abteilung'] ?? null;
|
||||
|
||||
$people = User::query()
|
||||
->active()
|
||||
->when($search !== '', function (Builder $query) use ($search) {
|
||||
$like = '%'.str_replace(['\\', '%', '_'], ['\\\\', '\\%', '\\_'], $search).'%';
|
||||
|
||||
$query->where(fn (Builder $q) => $q
|
||||
->where('name', 'like', $like)
|
||||
->orWhere('email', 'like', $like)
|
||||
->orWhere('job_title', 'like', $like)
|
||||
->orWhere('department', 'like', $like)
|
||||
->orWhere('location', 'like', $like));
|
||||
})
|
||||
->when($department, fn (Builder $query) => $query->where('department', $department))
|
||||
->orderBy('last_name')
|
||||
->orderBy('first_name')
|
||||
->orderBy('name')
|
||||
->paginate(24)
|
||||
->withQueryString();
|
||||
|
||||
return Inertia::render('People/Index', [
|
||||
'people' => PersonResource::collection($people),
|
||||
'filters' => ['q' => $search, 'abteilung' => $department],
|
||||
'departments' => Cache::remember('people.departments', 300, fn () => User::query()
|
||||
->active()
|
||||
->whereNotNull('department')
|
||||
->distinct()
|
||||
->orderBy('department')
|
||||
->pluck('department')
|
||||
->all()),
|
||||
]);
|
||||
}
|
||||
|
||||
public function show(User $user): Response
|
||||
{
|
||||
abort_unless($user->is_active, 404);
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Support\Branding;
|
||||
use App\Support\Navigation;
|
||||
use Illuminate\Http\Request;
|
||||
use Inertia\Middleware;
|
||||
|
||||
|
|
@ -10,7 +11,10 @@ class HandleInertiaRequests extends Middleware
|
|||
{
|
||||
protected $rootView = 'app';
|
||||
|
||||
public function __construct(private readonly Branding $branding) {}
|
||||
public function __construct(
|
||||
private readonly Branding $branding,
|
||||
private readonly Navigation $navigation,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
|
|
@ -34,6 +38,7 @@ class HandleInertiaRequests extends Middleware
|
|||
'is_admin' => $user->is_admin,
|
||||
] : null,
|
||||
],
|
||||
'navigation' => fn () => $user ? $this->navigation->items($request) : [],
|
||||
'flash' => [
|
||||
'status' => fn () => $request->session()->get('status'),
|
||||
],
|
||||
|
|
|
|||
33
app/Http/Resources/PersonResource.php
Normal file
33
app/Http/Resources/PersonResource.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
/**
|
||||
* Kompakte Darstellung einer Person für Listen und Kacheln.
|
||||
*
|
||||
* @mixin User
|
||||
*/
|
||||
class PersonResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'initials' => $this->initials,
|
||||
'job_title' => $this->job_title,
|
||||
'department' => $this->department,
|
||||
'location' => $this->location,
|
||||
'email' => $this->email,
|
||||
'phone' => $this->phone,
|
||||
'avatar_url' => $this->avatarUrl(96),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -4,6 +4,8 @@ namespace App\Providers;
|
|||
|
||||
use App\Support\Avatars;
|
||||
use App\Support\Branding;
|
||||
use App\Support\Navigation;
|
||||
use App\Support\QuickLinks;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
|
@ -16,6 +18,8 @@ class AppServiceProvider extends ServiceProvider
|
|||
$this->app->singleton(Settings::class);
|
||||
$this->app->singleton(Branding::class);
|
||||
$this->app->singleton(Avatars::class);
|
||||
$this->app->singleton(Navigation::class);
|
||||
$this->app->singleton(QuickLinks::class);
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\Providers\Filament;
|
||||
|
||||
use App\Filament\AvatarProviders\InitialsAvatarProvider;
|
||||
use App\Support\Branding;
|
||||
use Filament\Http\Middleware\Authenticate;
|
||||
use Filament\Http\Middleware\AuthenticateSession;
|
||||
|
|
@ -11,7 +12,6 @@ use Filament\Navigation\NavigationItem;
|
|||
use Filament\Pages\Dashboard;
|
||||
use Filament\Panel;
|
||||
use Filament\PanelProvider;
|
||||
use Filament\Support\Colors\Color;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Widgets\AccountWidget;
|
||||
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
|
||||
|
|
@ -31,10 +31,11 @@ class AdminPanelProvider extends PanelProvider
|
|||
->default()
|
||||
->id('admin')
|
||||
->path('admin')
|
||||
->defaultAvatarProvider(InitialsAvatarProvider::class)
|
||||
->brandName(fn () => app(Branding::class)->portalName())
|
||||
->brandLogo(fn () => app(Branding::class)->logoUrl())
|
||||
->colors(fn () => [
|
||||
'primary' => Color::hex(app(Branding::class)->primaryColor()),
|
||||
'primary' => app(Branding::class)->palette(),
|
||||
])
|
||||
->navigationItems([
|
||||
NavigationItem::make('Zum Portal')
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class Branding
|
|||
{
|
||||
public const DEFAULT_NAME = 'Inhaus';
|
||||
|
||||
public const DEFAULT_PRIMARY_COLOR = '#2E6B5E';
|
||||
public const DEFAULT_PRIMARY_COLOR = '#0F4C5C';
|
||||
|
||||
public function __construct(private readonly Settings $settings) {}
|
||||
|
||||
|
|
@ -42,6 +42,33 @@ class Branding
|
|||
return $path ? Storage::disk('uploads')->url($path) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function palette(): array
|
||||
{
|
||||
return ColorPalette::fromHex($this->primaryColor());
|
||||
}
|
||||
|
||||
/**
|
||||
* CSS-Variablen für das Portal. Werden serverseitig in die Seite geschrieben –
|
||||
* ohne Build und ohne Farbberechnung im Browser.
|
||||
*/
|
||||
public function cssVariables(): string
|
||||
{
|
||||
$color = $this->primaryColor();
|
||||
$variables = [
|
||||
'--brand' => $color,
|
||||
'--brand-foreground' => ColorPalette::foregroundFor($color),
|
||||
];
|
||||
|
||||
foreach ($this->palette() as $shade => $hex) {
|
||||
$variables["--brand-{$shade}"] = $hex;
|
||||
}
|
||||
|
||||
return collect($variables)->map(fn (string $value, string $name) => "{$name}:{$value}")->implode(';');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{portal_name: string, primary_color: string, logo_url: string|null}
|
||||
*/
|
||||
|
|
|
|||
166
app/Support/ColorPalette.php
Normal file
166
app/Support/ColorPalette.php
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* Leitet aus einer Markenfarbe eine Farbskala 50–950 ab (im OKLCH-Farbraum,
|
||||
* damit die Abstufungen gleichmäßig wirken). Die Markenfarbe selbst bleibt
|
||||
* unverändert und liegt auf Stufe 600 – dort, wo Portal und Admin-Backend
|
||||
* ihre Primär-Buttons einfärben.
|
||||
*/
|
||||
final class ColorPalette
|
||||
{
|
||||
/** Ziel-Helligkeiten einer „normalen“ Skala; wird an die Markenfarbe angepasst. */
|
||||
private const LIGHTNESS = [
|
||||
50 => 0.975, 100 => 0.945, 200 => 0.89, 300 => 0.81, 400 => 0.71,
|
||||
500 => 0.62, 600 => 0.54, 700 => 0.47, 800 => 0.40, 900 => 0.34, 950 => 0.26,
|
||||
];
|
||||
|
||||
/** Anteil der Sättigung je Stufe – helle und sehr dunkle Töne werden ruhiger. */
|
||||
private const CHROMA = [
|
||||
50 => 0.12, 100 => 0.22, 200 => 0.42, 300 => 0.65, 400 => 0.88,
|
||||
500 => 1.0, 600 => 1.0, 700 => 0.92, 800 => 0.82, 900 => 0.72, 950 => 0.6,
|
||||
];
|
||||
|
||||
/**
|
||||
* @return array<int, string> Stufe => Hex-Farbe
|
||||
*/
|
||||
public static function fromHex(string $hex): array
|
||||
{
|
||||
[$l, $c, $h] = self::hexToOklch($hex);
|
||||
|
||||
// Helligkeiten so verschieben, dass Stufe 600 genau der Markenfarbe entspricht,
|
||||
// die Skala aber monoton bleibt.
|
||||
$anchor = self::LIGHTNESS[600];
|
||||
$palette = [];
|
||||
|
||||
foreach (self::LIGHTNESS as $shade => $target) {
|
||||
if ($shade === 600) {
|
||||
$palette[$shade] = strtoupper($hex);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
$lightness = $target > $anchor
|
||||
? $l + ($target - $anchor) / (1 - $anchor) * (0.985 - $l)
|
||||
: $l * ($target / $anchor);
|
||||
|
||||
$palette[$shade] = self::oklchToHex(
|
||||
max(0.12, min(0.985, $lightness)),
|
||||
$c * self::CHROMA[$shade],
|
||||
$h,
|
||||
);
|
||||
}
|
||||
|
||||
return $palette;
|
||||
}
|
||||
|
||||
/**
|
||||
* Schwarz oder Weiß – je nachdem, was auf der Farbe besser lesbar ist.
|
||||
*/
|
||||
public static function foregroundFor(string $hex): string
|
||||
{
|
||||
return self::contrast($hex, '#FFFFFF') >= self::contrast($hex, '#111111') ? '#FFFFFF' : '#111111';
|
||||
}
|
||||
|
||||
/**
|
||||
* Kontrastverhältnis nach WCAG 2.
|
||||
*/
|
||||
public static function contrast(string $a, string $b): float
|
||||
{
|
||||
$la = self::relativeLuminance($a);
|
||||
$lb = self::relativeLuminance($b);
|
||||
|
||||
return (max($la, $lb) + 0.05) / (min($la, $lb) + 0.05);
|
||||
}
|
||||
|
||||
private static function relativeLuminance(string $hex): float
|
||||
{
|
||||
[$r, $g, $b] = array_map(
|
||||
fn (float $v) => $v <= 0.04045 ? $v / 12.92 : (($v + 0.055) / 1.055) ** 2.4,
|
||||
self::hexToRgb($hex),
|
||||
);
|
||||
|
||||
return 0.2126 * $r + 0.7152 * $g + 0.0722 * $b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{float, float, float} sRGB 0..1
|
||||
*/
|
||||
private static function hexToRgb(string $hex): array
|
||||
{
|
||||
if (! preg_match('/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i', $hex, $m)) {
|
||||
throw new InvalidArgumentException("Ungültige Farbe: {$hex}");
|
||||
}
|
||||
|
||||
return [hexdec($m[1]) / 255, hexdec($m[2]) / 255, hexdec($m[3]) / 255];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{float, float, float} L, C, h
|
||||
*/
|
||||
private static function hexToOklch(string $hex): array
|
||||
{
|
||||
[$r, $g, $b] = array_map(
|
||||
fn (float $v) => $v <= 0.04045 ? $v / 12.92 : (($v + 0.055) / 1.055) ** 2.4,
|
||||
self::hexToRgb($hex),
|
||||
);
|
||||
|
||||
$l = 0.4122214708 * $r + 0.5363325363 * $g + 0.0514459929 * $b;
|
||||
$m = 0.2119034982 * $r + 0.6806995451 * $g + 0.1073969566 * $b;
|
||||
$s = 0.0883024619 * $r + 0.2817188376 * $g + 0.6299787005 * $b;
|
||||
|
||||
[$l, $m, $s] = [$l ** (1 / 3), $m ** (1 / 3), $s ** (1 / 3)];
|
||||
|
||||
$L = 0.2104542553 * $l + 0.7936177850 * $m - 0.0040720468 * $s;
|
||||
$A = 1.9779984951 * $l - 2.4285922050 * $m + 0.4505937099 * $s;
|
||||
$B = 0.0259040371 * $l + 0.7827717662 * $m - 0.8086757660 * $s;
|
||||
|
||||
return [$L, sqrt($A * $A + $B * $B), atan2($B, $A)];
|
||||
}
|
||||
|
||||
private static function oklchToHex(float $L, float $C, float $h): string
|
||||
{
|
||||
// Sättigung reduzieren, bis die Farbe im sRGB-Farbraum darstellbar ist.
|
||||
for ($i = 0; $i < 40; $i++) {
|
||||
$rgb = self::oklchToLinearRgb($L, $C, $h);
|
||||
|
||||
if (min($rgb) >= -0.0005 && max($rgb) <= 1.0005) {
|
||||
break;
|
||||
}
|
||||
|
||||
$C *= 0.92;
|
||||
}
|
||||
|
||||
$hex = '#';
|
||||
|
||||
foreach ($rgb as $v) {
|
||||
$v = max(0.0, min(1.0, $v));
|
||||
$v = $v <= 0.0031308 ? 12.92 * $v : 1.055 * $v ** (1 / 2.4) - 0.055;
|
||||
$hex .= str_pad(strtoupper(dechex((int) round($v * 255))), 2, '0', STR_PAD_LEFT);
|
||||
}
|
||||
|
||||
return $hex;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{float, float, float}
|
||||
*/
|
||||
private static function oklchToLinearRgb(float $L, float $C, float $h): array
|
||||
{
|
||||
$A = $C * cos($h);
|
||||
$B = $C * sin($h);
|
||||
|
||||
$l = ($L + 0.3963377774 * $A + 0.2158037573 * $B) ** 3;
|
||||
$m = ($L - 0.1055613458 * $A - 0.0638541728 * $B) ** 3;
|
||||
$s = ($L - 0.0894841694 * $A - 1.2914855480 * $B) ** 3;
|
||||
|
||||
return [
|
||||
4.0767416621 * $l - 3.3077115913 * $m + 0.2309699292 * $s,
|
||||
-1.2684380046 * $l + 2.6097574011 * $m - 0.3413193965 * $s,
|
||||
-0.0041960863 * $l - 0.7034186168 * $m + 1.7076147010 * $s,
|
||||
];
|
||||
}
|
||||
}
|
||||
23
app/Support/Navigation.php
Normal file
23
app/Support/Navigation.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/**
|
||||
* Hauptnavigation des Portals. Wird ab Phase 2 zu einer Registry, in die
|
||||
* Plugins eigene Einträge eintragen.
|
||||
*/
|
||||
class Navigation
|
||||
{
|
||||
/**
|
||||
* @return list<array{label: string, href: string, active: bool}>
|
||||
*/
|
||||
public function items(Request $request): array
|
||||
{
|
||||
return [
|
||||
['label' => 'Startseite', 'href' => '/', 'active' => $request->routeIs('dashboard')],
|
||||
['label' => 'Personen', 'href' => '/personen', 'active' => $request->routeIs('people.*')],
|
||||
];
|
||||
}
|
||||
}
|
||||
72
app/Support/QuickLinks.php
Normal file
72
app/Support/QuickLinks.php
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
/**
|
||||
* Schnellzugriffe auf der Startseite (App-Launcher), gepflegt im Admin-Bereich.
|
||||
*/
|
||||
class QuickLinks
|
||||
{
|
||||
/**
|
||||
* Auswahl an Symbolen (Lucide-Namen). Das Portal bündelt genau diese Symbole,
|
||||
* deshalb ist die Liste bewusst begrenzt.
|
||||
*/
|
||||
public const ICONS = [
|
||||
'link' => 'Link',
|
||||
'clock' => 'Uhr / Zeiterfassung',
|
||||
'calendar-days' => 'Kalender / Dienstplan',
|
||||
'plane' => 'Urlaub',
|
||||
'receipt' => 'Reisekosten / Belege',
|
||||
'graduation-cap' => 'Fortbildung',
|
||||
'headset' => 'IT-Support',
|
||||
'utensils' => 'Speiseplan',
|
||||
'car' => 'Fahrdienst',
|
||||
'file-text' => 'Formulare / Dokumente',
|
||||
'book-open' => 'Handbuch / Richtlinien',
|
||||
'users' => 'Personen / Teams',
|
||||
'mail' => 'E-Mail',
|
||||
'message-square' => 'Chat / Feedback',
|
||||
'lightbulb' => 'Ideen',
|
||||
'shield-check' => 'Datenschutz / Sicherheit',
|
||||
'heart-handshake' => 'Soziales / MAV',
|
||||
'building-2' => 'Standorte',
|
||||
'wrench' => 'Technik / Hausmeister',
|
||||
'monitor' => 'Anwendung',
|
||||
'folder' => 'Ablage',
|
||||
'phone' => 'Telefonbuch',
|
||||
'megaphone' => 'Ankündigungen',
|
||||
'briefcase' => 'Stellenangebote',
|
||||
];
|
||||
|
||||
public function __construct(private readonly Settings $settings) {}
|
||||
|
||||
/**
|
||||
* @return list<array{label: string, url: string, icon: string, new_tab: bool}>
|
||||
*/
|
||||
public function all(): array
|
||||
{
|
||||
$links = $this->settings->get('portal.quick_links');
|
||||
|
||||
if (! is_array($links)) {
|
||||
return $this->defaults();
|
||||
}
|
||||
|
||||
return array_values(array_map(fn (array $link) => [
|
||||
'label' => (string) ($link['label'] ?? ''),
|
||||
'url' => preg_match('#^(https?://|/)#i', (string) ($link['url'] ?? '')) ? (string) $link['url'] : '#',
|
||||
'icon' => array_key_exists($link['icon'] ?? '', self::ICONS) ? $link['icon'] : 'link',
|
||||
'new_tab' => (bool) ($link['new_tab'] ?? false),
|
||||
], $links));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<array{label: string, url: string, icon: string, new_tab: bool}>
|
||||
*/
|
||||
public function defaults(): array
|
||||
{
|
||||
return [
|
||||
['label' => 'Personen', 'url' => '/personen', 'icon' => 'users', 'new_tab' => false],
|
||||
['label' => 'Mein Profil', 'url' => '/profil/bearbeiten', 'icon' => 'file-text', 'new_tab' => false],
|
||||
];
|
||||
}
|
||||
}
|
||||
20
components.json
Normal file
20
components.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"$schema": "https://shadcn-vue.com/schema.json",
|
||||
"style": "new-york",
|
||||
"typescript": true,
|
||||
"tailwind": {
|
||||
"config": "",
|
||||
"css": "resources/css/app.css",
|
||||
"baseColor": "neutral",
|
||||
"cssVariables": true,
|
||||
"prefix": ""
|
||||
},
|
||||
"aliases": {
|
||||
"components": "@/components",
|
||||
"composables": "@/composables",
|
||||
"utils": "@/lib/utils",
|
||||
"ui": "@/components/ui",
|
||||
"lib": "@/lib"
|
||||
},
|
||||
"iconLibrary": "lucide"
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
/**
|
||||
|
|
@ -21,5 +22,20 @@ class DatabaseSeeder extends Seeder
|
|||
]);
|
||||
|
||||
User::factory(25)->create();
|
||||
|
||||
app(Settings::class)->set('portal.quick_links', [
|
||||
['label' => 'Zeiterfassung', 'url' => 'https://example.com/zeit', 'icon' => 'clock', 'new_tab' => true],
|
||||
['label' => 'Urlaubsantrag', 'url' => 'https://example.com/urlaub', 'icon' => 'plane', 'new_tab' => true],
|
||||
['label' => 'Dienstplan', 'url' => 'https://example.com/dienstplan', 'icon' => 'calendar-days', 'new_tab' => true],
|
||||
['label' => 'Fortbildungen', 'url' => 'https://example.com/fortbildung', 'icon' => 'graduation-cap', 'new_tab' => true],
|
||||
['label' => 'IT-Support', 'url' => 'https://example.com/support', 'icon' => 'headset', 'new_tab' => true],
|
||||
['label' => 'Speiseplan', 'url' => 'https://example.com/speiseplan', 'icon' => 'utensils', 'new_tab' => true],
|
||||
['label' => 'Formulare', 'url' => 'https://example.com/formulare', 'icon' => 'file-text', 'new_tab' => true],
|
||||
['label' => 'Reisekosten', 'url' => 'https://example.com/reisekosten', 'icon' => 'receipt', 'new_tab' => true],
|
||||
['label' => 'Fahrdienst', 'url' => 'https://example.com/fahrdienst', 'icon' => 'car', 'new_tab' => true],
|
||||
['label' => 'Richtlinien', 'url' => 'https://example.com/richtlinien', 'icon' => 'book-open', 'new_tab' => true],
|
||||
['label' => 'Ideenbox', 'url' => 'https://example.com/ideen', 'icon' => 'lightbulb', 'new_tab' => true],
|
||||
['label' => 'Personen', 'url' => '/personen', 'icon' => 'users', 'new_tab' => false],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
31
docs/PLAN.md
31
docs/PLAN.md
|
|
@ -31,7 +31,8 @@ Mitgeltende Spezifikationen (verbindlich, wörtlich umzusetzen):
|
|||
| Plugins | **WordPress-Prinzip**: ZIP hochladen, aktivieren, Hooks/Filter |
|
||||
| Wichtigster IdP | **Microsoft Entra ID** |
|
||||
| Admin-Backend | **Filament** – nur für Administratoren |
|
||||
| Portal-Frontend | **Inertia + Vue 3 + Vuetify (Material 3 Blueprint)**, vorkompiliert ausgeliefert |
|
||||
| Portal-Frontend | **Inertia + Vue 3 + Tailwind CSS + shadcn-vue (reka-ui) + Lucide-Icons**, vorkompiliert ausgeliefert |
|
||||
| Design | Nüchtern-professionell (Vorbild: moderne Intranets wie MeinMagenta/Viva Connections): neutrale Flächen, Markenfarbe nur als Akzent, Schrift Inter (lokal) – **kein Material 3** (entschieden 2026-09-25, wirkte verspielt) |
|
||||
| Redaktion | Direkt im Portal (Inline-Bearbeitung/Pagebuilder) |
|
||||
| Später | Push-Benachrichtigungen, native App (Architektur jetzt schon API-fähig halten) |
|
||||
|
||||
|
|
@ -82,7 +83,9 @@ plugins/<slug>/ Vom Kunden installierte Plugins – **geschützter Pfad**
|
|||
für REST-API und native App.
|
||||
|
||||
Oberflächen:
|
||||
- **Portal** (Vue/Vuetify, Material 3): Mitarbeitende und Redakteure.
|
||||
- **Portal** (Vue, Tailwind/shadcn-vue): Mitarbeitende und Redakteure.
|
||||
Zweizeiliger Header (Logo, Suche, Avatar-Menü; darunter Hauptnavigation),
|
||||
Startseite als Raster aus Kacheln (Schnellzugriffe, Begrüßung, News …).
|
||||
- **Admin** (Filament): Plugins, Rollen & Rechte, Identity Provider,
|
||||
Gruppen-Mapping, Theme, Benutzer, Audit-Log, **Aktualisierung & Lizenz**,
|
||||
**Rückmeldung geben**, Site Health.
|
||||
|
|
@ -131,7 +134,8 @@ plugins/mav-kalender/
|
|||
|
||||
### 4.4 Frontend von Plugins
|
||||
|
||||
- Portal stellt **Vue, Vuetify und ein Portal-UI-Kit per Import Map** bereit.
|
||||
- Portal stellt **Vue, reka-ui und das Portal-UI-Kit (shadcn-vue-Komponenten) per Import Map** bereit;
|
||||
Plugin-Styles nutzen die Design-Tokens (CSS-Variablen) des Portals.
|
||||
- Plugins werden beim Entwickler mit `@portal/plugin-sdk` (Vite-Preset) gebaut;
|
||||
Vue & Co. sind „external“.
|
||||
- Der Core lädt die ES-Module aktiver Plugins lazy zur Laufzeit.
|
||||
|
|
@ -392,12 +396,11 @@ Entwickler, ohne Build, direkt im Admin unter „Erscheinungsbild“.
|
|||
- Login-Seite: Hintergrundbild, Begrüßungstext, Logo-Position
|
||||
|
||||
**Farben**
|
||||
- **Primärfarbe** (Pflicht) → daraus erzeugt Material 3 automatisch die
|
||||
komplette Palette für hell und dunkel
|
||||
- optional Sekundär- und Tertiärfarbe überschreiben
|
||||
- **Farbtreue-Schalter:** M3 verschiebt die Seed-Farbe leicht. Für Kunden mit
|
||||
strengem Corporate Design wird die exakte Markenfarbe als Primärfarbe
|
||||
gesetzt, nur die Abstufungen werden berechnet
|
||||
- **Markenfarbe** (Pflicht) → wird **exakt** übernommen (Buttons, aktive
|
||||
Navigation, Links, Begrüßungskarte); daraus werden die Abstufungen 50–950
|
||||
im OKLCH-Farbraum berechnet (serverseitig, `App\Support\ColorPalette`)
|
||||
- Flächen bleiben neutral (weiß/grau) – die Markenfarbe ist Akzent, kein Anstrich
|
||||
- optional eine zweite Akzentfarbe
|
||||
- Header-Stil: farbig (Primärfarbe), hell oder dunkel
|
||||
- **Kontrastprüfung (WCAG AA):** Warnung, wenn Text auf Farben schlecht lesbar
|
||||
wird – blockiert nicht, schlägt aber eine Korrektur vor
|
||||
|
|
@ -435,10 +438,10 @@ Entwickler, ohne Build, direkt im Admin unter „Erscheinungsbild“.
|
|||
- Beim Veröffentlichen wird **eine statische CSS-Datei mit CSS-Variablen**
|
||||
erzeugt (Hash im Dateinamen, lange Cache-Header) – kein Build, keine
|
||||
Laufzeitkosten pro Request
|
||||
- Farbberechnung mit `material-color-utilities` im Browser (Vorschau) und
|
||||
identisch beim Speichern (Ergebnis wird mitgespeichert, damit Server und
|
||||
Client dieselben Werte nutzen)
|
||||
- Vuetify-Theme, Filament-Farben, E-Mail-Vorlagen und Pagebuilder-Boxen lesen
|
||||
- Farbberechnung in PHP (`App\Support\ColorPalette`); die Werte werden als
|
||||
CSS-Variablen (`--brand`, `--brand-50` … `--brand-950`) in die Seite geschrieben –
|
||||
keine Farbberechnung im Browser
|
||||
- Portal-Tokens (Tailwind), Filament-Farben, E-Mail-Vorlagen und Pagebuilder-Boxen lesen
|
||||
alle **dieselben Tokens** → ein Farbwechsel wirkt überall
|
||||
- Später: **Theme-Pakete** als Plugins (eigene Layouts, Header-Varianten)
|
||||
|
||||
|
|
@ -470,7 +473,7 @@ Kantinenplan, Ideenbox, Urlaubsanträge.
|
|||
|
||||
| Phase | Inhalt |
|
||||
|---|---|
|
||||
| **0 – Fundament** | Laravel-Skeleton, Docker-Dev, CI-Matrix, `VERSION` + `CHANGELOG.md` + Build-Workflow (Assets/`vendor` mitversioniert), lokaler Login, User & Profil, Header mit Avatar, MD3-Layout mit Design-Tokens, **Basis-Branding (Portalname, Logo, Primärfarbe)**, Filament-Grundgerüst |
|
||||
| **0 – Fundament** | Laravel-Skeleton, Docker-Dev, CI-Matrix, `VERSION` + `CHANGELOG.md` + Build-Workflow (Assets/`vendor` mitversioniert), lokaler Login, User & Profil, Header mit Avatar, Design-System (Tailwind/shadcn-vue) mit Design-Tokens, **Basis-Branding (Portalname, Logo, Markenfarbe)**, Personenverzeichnis, Schnellzugriffe, Filament-Grundgerüst |
|
||||
| **1 – Betrieb & Lizenz** | **Self-Updater** (inkl. Wartungsmodus, Auto-Migration, Kanäle), **Lizenz-Speicher & -Client** (rotierendes Token), Seite „Aktualisierung“, **Rückmeldungen**, Web-Installer, Site Health, Cron-Varianten |
|
||||
| **2 – Plugin-System & Rechte** | Plugin-Loader, Hooks/Filter, Registries, Recovery-Modus, Import-Map-Frontend; Rollen, Grants, Zielgruppen, Rechte-Cache, Rechte-Prüfer |
|
||||
| **3 – Entra ID** | OIDC-Login, JIT, Gruppen-/App-Rollen-Mapping (additiv), Graph-Profil- & Foto-Sync, Delta-Sync |
|
||||
|
|
|
|||
1136
package-lock.json
generated
1136
package-lock.json
generated
File diff suppressed because it is too large
Load diff
16
package.json
16
package.json
|
|
@ -7,14 +7,22 @@
|
|||
"dev": "vite"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@fontsource-variable/inter": "^5.3.0",
|
||||
"@inertiajs/vue3": "^3.7.1",
|
||||
"@material/material-color-utilities": "^0.4.0",
|
||||
"@mdi/js": "^7.4.47",
|
||||
"@lucide/vue": "^1.48.0",
|
||||
"@tailwindcss/vite": "^4.3.3",
|
||||
"@vitejs/plugin-vue": "^6.0.9",
|
||||
"@vueuse/core": "^15.0.0",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"laravel-vite-plugin": "^3.2",
|
||||
"reka-ui": "^2.10.5",
|
||||
"tailwind-merge": "^3.7.0",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"tw-animate-css": "^1.4.0",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^8.3.1",
|
||||
"vite-plugin-vuetify": "^2.1.3",
|
||||
"vue": "^3.5.43",
|
||||
"vuetify": "^4.2.2"
|
||||
"vue-sonner": "^2.0.9"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/build/assets/AppLayout-w1APcrJk.js
Normal file
1
public/build/assets/AppLayout-w1APcrJk.js
Normal file
File diff suppressed because one or more lines are too long
1
public/build/assets/BrandLogo-U6lK0jUc.js
Normal file
1
public/build/assets/BrandLogo-U6lK0jUc.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{Cn as e,Hn as t,It as n,Ln as r,Qt as i,Zt as a,mn as o,nn as s,qt as c,rn as l,tn as u,zt as d}from"./theme-D-tNmEQF.js";import{E as f,T as p,d as m}from"./transitions-Cew8HcaC.js";import{c as h,l as g,t as _}from"./AppLayout-CyW53UC0.js";import{g as v,n as y,v as b}from"./mdi-DiyhbERt.js";var x={class:`mb-8`},S={class:`text-headline-large`},C={class:`text-body-large text-medium-emphasis mt-1`},w={__name:`Dashboard`,setup(w){let T=d(),E=a(()=>T.props.auth.user),D=a(()=>E.value.name.split(` `)[0]),O=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Hallo`:`Guten Abend`});return(a,d)=>(o(),u(c,null,[l(r(n),{title:`Start`}),l(_,null,{default:e(()=>[i(`div`,x,[i(`h1`,S,t(O.value)+`, `+t(D.value)+`!`,1),i(`p`,C,`Willkommen in `+t(r(T).props.branding.portal_name)+`.`,1)]),l(h,null,{default:e(()=>[l(g,{cols:`12`,md:`4`},{default:e(()=>[l(m,{class:`h-100`,rounded:`xl`,href:`/profil/bearbeiten`},{default:e(()=>[l(f,{"prepend-icon":r(y),title:`Ihr Profil`},null,8,[`prepend-icon`]),l(p,null,{default:e(()=>[...d[0]||=[s(`Profilbild, Funktion und Kontaktdaten helfen Kolleginnen und Kollegen, Sie zu finden.`,-1)]]),_:1})]),_:1})]),_:1}),l(g,{cols:`12`,md:`4`},{default:e(()=>[l(m,{class:`h-100`,rounded:`xl`,color:`secondary-container`},{default:e(()=>[l(f,{"prepend-icon":r(v),title:`Neuigkeiten`},null,8,[`prepend-icon`]),l(p,null,{default:e(()=>[...d[1]||=[s(`Hier erscheinen bald Beiträge aus Ihren Kategorien.`,-1)]]),_:1})]),_:1})]),_:1}),l(g,{cols:`12`,md:`4`},{default:e(()=>[l(m,{class:`h-100`,rounded:`xl`,color:`tertiary-container`},{default:e(()=>[l(f,{"prepend-icon":r(b),title:`Module`},null,8,[`prepend-icon`]),l(p,null,{default:e(()=>[...d[2]||=[s(`Weitere Funktionen kommen als Plugins hinzu und lassen sich einzeln aktivieren.`,-1)]]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64))}};export{w as default};
|
||||
1
public/build/assets/Dashboard-BpL95wPx.js
Normal file
1
public/build/assets/Dashboard-BpL95wPx.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/build/assets/Edit-BIDoqpb1.js
Normal file
1
public/build/assets/Edit-BIDoqpb1.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{$t as e,Cn as t,Hn as n,It as r,Kt as i,Ln as a,Lt as o,Qt as s,Rt as c,en as l,mn as u,nn as d,qt as f,rn as p,tn as m}from"./theme-D-tNmEQF.js";import{a as h}from"./transitions-Cew8HcaC.js";import{f as g,t as _}from"./VTextField-CwpDIPQC.js";import{t as v}from"./GuestLayout-BzNvqx8m.js";import{t as y}from"./VAlert-Ujdiz_H0.js";var b={class:`text-center mt-6`},x={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(x){let S=c({email:``});return(c,C)=>(u(),m(f,null,[p(a(r),{title:`Passwort vergessen`}),p(v,{title:`Passwort vergessen`},{default:t(()=>[C[4]||=s(`p`,{class:`text-body-medium text-medium-emphasis mb-6`},` Geben Sie Ihre E-Mail-Adresse ein. Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können. `,-1),x.status?(u(),e(y,{key:0,type:`success`,variant:`tonal`,class:`mb-6`},{default:t(()=>[d(n(x.status),1)]),_:1})):l(``,!0),p(g,{onSubmit:C[1]||=i(e=>a(S).post(`/forgot-password`),[`prevent`])},{default:t(()=>[p(_,{modelValue:a(S).email,"onUpdate:modelValue":C[0]||=e=>a(S).email=e,label:`E-Mail-Adresse`,type:`email`,autocomplete:`username`,autofocus:``,"error-messages":a(S).errors.email,class:`mb-4`},null,8,[`modelValue`,`error-messages`]),p(h,{type:`submit`,size:`large`,block:``,loading:a(S).processing},{default:t(()=>[...C[2]||=[d(`Link senden`,-1)]]),_:1},8,[`loading`]),s(`div`,b,[p(a(o),{href:`/login`,class:`text-primary text-body-medium`},{default:t(()=>[...C[3]||=[d(`Zurück zur Anmeldung`,-1)]]),_:1})])]),_:1})]),_:1})],64))}};export{x as default};
|
||||
1
public/build/assets/ForgotPassword-DlEYQ9Vh.js
Normal file
1
public/build/assets/ForgotPassword-DlEYQ9Vh.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{J as e,K as t,Sn as n,Ut as r,Y as i,k as a,lr as o,n as s,nt as c,q as l,r as u,rr as d,tt as f}from"./app-B8oig5Tj.js";import{E as p,T as m}from"./BrandLogo-U6lK0jUc.js";import{t as h}from"./button-D9r8plCs.js";import{r as g,t as _}from"./FormField-CJ-9ofQz.js";import{t as v}from"./GuestLayout-DlwWe9r2.js";var y=p({name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]}),b={key:0,class:`mb-6 rounded-md border border-brand-200 bg-brand-soft px-4 py-3 text-sm text-brand-soft-foreground`},x={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(p){let x=u({email:``});return(u,S)=>(r(),l(v,{title:`Passwort vergessen`,description:`Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können.`},{default:n(()=>[p.status?(r(),i(`div`,b,o(p.status),1)):e(``,!0),t(`form`,{class:`grid gap-5`,onSubmit:S[1]||=a(e=>d(x).post(`/forgot-password`),[`prevent`])},[c(_,{id:`email`,label:`E-Mail-Adresse`,error:d(x).errors.email},{default:n(()=>[c(d(g),{id:`email`,modelValue:d(x).email,"onUpdate:modelValue":S[0]||=e=>d(x).email=e,type:`email`,autocomplete:`username`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),c(d(h),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:d(x).processing},{default:n(()=>[d(x).processing?(r(),l(d(m),{key:0,class:`animate-spin`})):e(``,!0),S[2]||=f(` Link senden `,-1)]),_:1},8,[`disabled`]),c(d(s),{href:`/login`,class:`inline-flex items-center justify-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:n(()=>[c(d(y),{class:`size-4`}),S[3]||=f(` Zurück zur Anmeldung `,-1)]),_:1})],32)]),_:1}))}};export{x as default};
|
||||
1
public/build/assets/FormField-CJ-9ofQz.js
Normal file
1
public/build/assets/FormField-CJ-9ofQz.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{At as e,E as t,G as n,J as r,Sn as i,Ut as a,Xt as o,Y as s,_n as c,ft as l,it as u,kt as d,lr as f,nt as p,or as m,q as h,qn as g,rr as _,tt as v,wn as y,zn as b}from"./app-B8oig5Tj.js";import{i as x,l as S,n as C,o as w,r as T,s as E}from"./BrandLogo-U6lK0jUc.js";var D=u({__name:`Label`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`label`}},setup(e){let t=e;return S(),(e,n)=>(a(),h(_(E),d(t,{onMousedown:n[0]||=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}),{default:i(()=>[o(e.$slots,`default`)]),_:3},16))}});C&&window.document,C&&window.navigator,C&&window.location;function O(e){return JSON.parse(JSON.stringify(e))}function k(t,r,i,a={}){var o,s;let{clone:u=!1,passive:d=!1,eventName:f,deep:p=!1,defaultValue:m,shouldEmit:h}=a,_=l(),v=i||_?.emit||(_==null||(o=_.$emit)==null?void 0:o.bind(_))||(_==null||(s=_.proxy)==null||(s=s.$emit)==null?void 0:s.bind(_?.proxy)),y=f;r||=`modelValue`,y||=`update:${r.toString()}`;let b=e=>u?typeof u==`function`?u(e):O(e):e,x=()=>T(t[r])?b(t[r]):m,S=e=>{h?h(e)&&v(y,e):v(y,e)};if(d){let n=x(),i=g(n),a=!1;return c(()=>t[r],t=>{a||(a=!0,i.value=b(t),e(()=>a=!1))}),c(i,e=>{!a&&(e!==t[r]||p)&&S(e)},{deep:p}),i}return n({get(){return x()},set(e){S(e)}})}var A=u({__name:`Input`,props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=k(r,`modelValue`,n,{passive:!0,defaultValue:r.defaultValue});return(e,n)=>y((a(),s(`input`,{"onUpdate:modelValue":n[0]||=e=>b(i)?i.value=e:null,"data-slot":`input`,class:m(_(w)(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,r.class))},null,2)),[[t,_(i)]])}}),j=u({__name:`Label`,props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=x(t,`class`);return(e,r)=>(a(),h(_(D),d({"data-slot":`label`},_(n),{class:_(w)(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,t.class)}),{default:i(()=>[o(e.$slots,`default`)]),_:3},16,[`class`]))}}),M={class:`grid content-start gap-1.5`},N={key:0,class:`text-[13px] text-destructive`},P={key:1,class:`text-[13px] text-muted-foreground`},F={__name:`FormField`,props:{id:{type:String,required:!0},label:{type:String,required:!0},error:{type:String,default:``},hint:{type:String,default:``}},setup(e){return(t,n)=>(a(),s(`div`,M,[p(_(j),{for:e.id,class:`text-[13px] font-medium`},{default:i(()=>[v(f(e.label),1)]),_:1},8,[`for`]),o(t.$slots,`default`),e.error?(a(),s(`p`,N,f(e.error),1)):e.hint?(a(),s(`p`,P,f(e.hint),1)):r(``,!0)]))}};export{k as i,j as n,A as r,F as t};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{$t as e,Bn as t,Cn as n,Hn as r,Qt as i,S as a,Vn as o,_n as s,en as c,k as l,l as u,mn as d,rn as f,tn as p}from"./theme-D-tNmEQF.js";import{G as m,W as h,X as g,Y as _,Z as v,d as y,l as b,ot as x,rt as S}from"./transitions-Cew8HcaC.js";var C=l({fluid:{type:Boolean,default:!1},...x(),...h(),..._()},`VContainer`),w=a()({name:`VContainer`,props:C(),setup(e,{slots:n}){let{rtlClasses:r}=u(),{dimensionStyles:i}=m(e);return S(()=>f(e.tag,{class:t([`v-container`,{"v-container--fluid":e.fluid},r.value,e.class]),style:o([i.value,e.style])},n)),{}}}),T={class:`w-100 mx-auto`,style:{"max-width":`440px`}},E={class:`d-flex justify-center mb-8`},D={key:0,class:`text-headline-small mb-6`},O={__name:`GuestLayout`,props:{title:{type:String,default:``}},setup(t){return(a,o)=>(d(),e(g,null,{default:n(()=>[f(b,{class:`bg-surface-container`},{default:n(()=>[f(w,{class:`fill-height d-flex align-center justify-center`},{default:n(()=>[i(`div`,T,[i(`div`,E,[f(v,{height:48})]),f(y,{rounded:`xl`,color:`surface`,class:`pa-4 pa-sm-8`},{default:n(()=>[t.title?(d(),p(`h1`,D,r(t.title),1)):c(``,!0),s(a.$slots,`default`)]),_:3})])]),_:3})]),_:3})]),_:3}))}};export{O as t};
|
||||
1
public/build/assets/GuestLayout-DlwWe9r2.js
Normal file
1
public/build/assets/GuestLayout-DlwWe9r2.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{F as e,G as t,J as n,K as r,Ut as i,Xt as a,Y as o,i as s,lr as c,nt as l,rr as u,t as d}from"./app-B8oig5Tj.js";import{t as f}from"./BrandLogo-U6lK0jUc.js";var p={class:`grid min-h-screen lg:grid-cols-[minmax(0,5fr)_minmax(0,6fr)]`},m={class:`relative hidden overflow-hidden bg-brand text-brand-foreground lg:flex lg:flex-col lg:justify-between lg:p-12`},h={class:`relative max-w-md`},g={class:`mt-4 text-[15px] opacity-80`},_={class:`relative text-xs opacity-60`},v={class:`flex items-center justify-center bg-background px-4 py-12 sm:px-8`},y={class:`w-full max-w-[400px]`},b={class:`mb-10 lg:hidden`},x={class:`text-2xl font-semibold tracking-tight`},S={key:0,class:`mt-2 text-sm text-muted-foreground`},C={class:`mt-8`},w={__name:`GuestLayout`,props:{title:{type:String,default:``},description:{type:String,default:``}},setup(w){let T=w,E=t(()=>s().props.branding);return(t,s)=>(i(),o(e,null,[l(u(d),{title:T.title},null,8,[`title`]),r(`div`,p,[r(`aside`,m,[s[1]||=r(`div`,{class:`pointer-events-none absolute inset-0 opacity-[0.12]`,style:{"background-image":`radial-gradient(circle at 20% 20%, white 0, transparent 45%), radial-gradient(circle at 90% 80%, white 0, transparent 40%)`}},null,-1),l(f,{inverted:``,class:`relative`}),r(`div`,h,[s[0]||=r(`p`,{class:`text-3xl leading-tight font-semibold tracking-tight`},`Alles Wichtige für Ihren Arbeitsalltag – an einem Ort.`,-1),r(`p`,g,`Neuigkeiten, Ansprechpartner und Anwendungen von `+c(E.value.portal_name)+`.`,1)]),r(`p`,_,`© `+c(new Date().getFullYear())+` `+c(E.value.portal_name),1)]),r(`main`,v,[r(`div`,y,[r(`div`,b,[l(f)]),r(`h1`,x,c(T.title),1),T.description?(i(),o(`p`,S,c(T.description),1)):n(``,!0),r(`div`,C,[a(t.$slots,`default`)])])])])],64))}};export{w as t};
|
||||
|
|
@ -1 +0,0 @@
|
|||
@layer vuetify-components{.v-container{width:100%;margin-left:auto;margin-right:auto;padding:16px}@media (width>=840px){.v-container{max-width:700px}}@media (width>=1145px){.v-container{max-width:1000px}}@media (width>=1545px){.v-container{max-width:1400px}}@media (width>=2138px){.v-container{max-width:2000px}}.v-container--fluid{max-width:100%}}
|
||||
1
public/build/assets/Index-DZSw61ts.js
Normal file
1
public/build/assets/Index-DZSw61ts.js
Normal file
File diff suppressed because one or more lines are too long
1
public/build/assets/Login-BVWp1nPa.js
Normal file
1
public/build/assets/Login-BVWp1nPa.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
@layer vuetify-components{.v-checkbox.v-input{flex:0 auto}.v-checkbox .v-selection-control{min-height:var(--v-input-control-height)}.v-selection-control{contain:layout;-webkit-user-select:none;user-select:none;flex:1 0;grid-area:control;align-items:center;display:flex;position:relative}.v-selection-control .v-label{white-space:normal;word-break:break-word;opacity:1;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{flex:none;min-width:0;max-width:100%;display:inline-flex}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size:40px}.v-selection-control--density-comfortable{--v-selection-control-size:36px}.v-selection-control--density-compact{--v-selection-control-size:28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);border-radius:50%;flex:none;justify-content:center;align-items:center;display:flex;position:relative}.v-selection-control__input input{cursor:pointer;opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.v-selection-control__input:before{opacity:0;pointer-events:none;content:"";background-color:currentColor;border-radius:100%;width:100%;height:100%;position:absolute;top:0;left:0}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--indeterminate .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control-group{flex-direction:column;grid-area:control;display:flex}.v-selection-control-group--inline{flex-flow:wrap}}
|
||||
File diff suppressed because one or more lines are too long
1
public/build/assets/Panel-C_rZ9c8S.js
Normal file
1
public/build/assets/Panel-C_rZ9c8S.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{J as e,K as t,Sn as n,Ut as r,Xt as i,Y as a,lr as o,n as s,nt as c,or as l,q as u,rr as d,tt as f}from"./app-B8oig5Tj.js";import{s as p}from"./AppLayout-w1APcrJk.js";var m={class:`rounded-lg border bg-card text-card-foreground`},h={key:0,class:`flex items-center justify-between gap-4 px-5 pt-4 pb-3`},g={class:`text-[15px] font-semibold`},_={__name:`Panel`,props:{title:{type:String,default:``},actionLabel:{type:String,default:``},actionHref:{type:String,default:``}},setup(_){return(v,y)=>(r(),a(`section`,m,[_.title||v.$slots.actions?(r(),a(`header`,h,[t(`h2`,g,o(_.title),1),i(v.$slots,`actions`,{},()=>[_.actionHref?(r(),u(d(s),{key:0,href:_.actionHref,class:`inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline`},{default:n(()=>[f(o(_.actionLabel)+` `,1),c(d(p),{class:`size-3.5`})]),_:1},8,[`href`])):e(``,!0)])])):e(``,!0),t(`div`,{class:l([`px-5 pb-5`,{"pt-5":!_.title&&!v.$slots.actions}])},[i(v.$slots,`default`)],2)]))}};export{_ as t};
|
||||
1
public/build/assets/ResetPassword-DP6iEeV1.js
Normal file
1
public/build/assets/ResetPassword-DP6iEeV1.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{J as e,K as t,Sn as n,Ut as r,k as i,nt as a,q as o,r as s,rr as c,tt as l}from"./app-B8oig5Tj.js";import{T as u}from"./BrandLogo-U6lK0jUc.js";import{t as d}from"./button-D9r8plCs.js";import{r as f,t as p}from"./FormField-CJ-9ofQz.js";import{t as m}from"./GuestLayout-DlwWe9r2.js";var h={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(h){let g=h,_=s({token:g.token,email:g.email,password:``,password_confirmation:``});function v(){_.post(`/reset-password`,{onFinish:()=>_.reset(`password`,`password_confirmation`)})}return(s,h)=>(r(),o(m,{title:`Neues Passwort festlegen`,description:`Mindestens 10 Zeichen, mit Buchstaben und Ziffern.`},{default:n(()=>[t(`form`,{class:`grid gap-5`,onSubmit:i(v,[`prevent`])},[a(p,{id:`email`,label:`E-Mail-Adresse`,error:c(_).errors.email},{default:n(()=>[a(c(f),{id:`email`,modelValue:c(_).email,"onUpdate:modelValue":h[0]||=e=>c(_).email=e,type:`email`,autocomplete:`username`,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(p,{id:`password`,label:`Neues Passwort`,error:c(_).errors.password},{default:n(()=>[a(c(f),{id:`password`,modelValue:c(_).password,"onUpdate:modelValue":h[1]||=e=>c(_).password=e,type:`password`,autocomplete:`new-password`,autofocus:``,class:`h-10`},null,8,[`modelValue`])]),_:1},8,[`error`]),a(p,{id:`password_confirmation`,label:`Passwort wiederholen`},{default:n(()=>[a(c(f),{id:`password_confirmation`,modelValue:c(_).password_confirmation,"onUpdate:modelValue":h[2]||=e=>c(_).password_confirmation=e,type:`password`,autocomplete:`new-password`,class:`h-10`},null,8,[`modelValue`])]),_:1}),a(c(d),{type:`submit`,size:`lg`,class:`h-10 w-full`,disabled:c(_).processing},{default:n(()=>[c(_).processing?(r(),o(c(u),{key:0,class:`animate-spin`})):e(``,!0),h[3]||=l(` Passwort speichern `,-1)]),_:1},8,[`disabled`])],32)]),_:1}))}};export{h as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{Cn as e,It as t,Kt as n,Ln as r,Rt as i,mn as a,nn as o,qt as s,rn as c,tn as l}from"./theme-D-tNmEQF.js";import{a as u}from"./transitions-Cew8HcaC.js";import{f as d,t as f}from"./VTextField-CwpDIPQC.js";import{t as p}from"./GuestLayout-BzNvqx8m.js";var m={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(m){let h=m,g=i({token:h.token,email:h.email,password:``,password_confirmation:``});function _(){g.post(`/reset-password`,{onFinish:()=>g.reset(`password`,`password_confirmation`)})}return(i,m)=>(a(),l(s,null,[c(r(t),{title:`Neues Passwort`}),c(p,{title:`Neues Passwort festlegen`},{default:e(()=>[c(d,{onSubmit:n(_,[`prevent`])},{default:e(()=>[c(f,{modelValue:r(g).email,"onUpdate:modelValue":m[0]||=e=>r(g).email=e,label:`E-Mail-Adresse`,type:`email`,autocomplete:`username`,"error-messages":r(g).errors.email,class:`mb-2`},null,8,[`modelValue`,`error-messages`]),c(f,{modelValue:r(g).password,"onUpdate:modelValue":m[1]||=e=>r(g).password=e,label:`Neues Passwort`,type:`password`,autocomplete:`new-password`,autofocus:``,"error-messages":r(g).errors.password,class:`mb-2`},null,8,[`modelValue`,`error-messages`]),c(f,{modelValue:r(g).password_confirmation,"onUpdate:modelValue":m[2]||=e=>r(g).password_confirmation=e,label:`Passwort wiederholen`,type:`password`,autocomplete:`new-password`,class:`mb-4`},null,8,[`modelValue`]),c(u,{type:`submit`,size:`large`,block:``,loading:r(g).processing},{default:e(()=>[...m[3]||=[o(`Passwort speichern`,-1)]]),_:1},8,[`loading`])]),_:1})]),_:1})],64))}};export{m as default};
|
||||
3
public/build/assets/RovingFocusGroup-BTQpJeq8.js
Normal file
3
public/build/assets/RovingFocusGroup-BTQpJeq8.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{$t as e,Cn as t,Hn as n,It as r,Ln as i,Lt as a,Qt as o,Zt as s,en as c,gn as l,mn as u,nn as d,qt as f,rn as p,tn as m}from"./theme-D-tNmEQF.js";import{T as h,a as g,d as _}from"./transitions-Cew8HcaC.js";import{a as v,c as y,l as b,o as x,s as S,t as C}from"./AppLayout-CyW53UC0.js";import{_ as w,c as T,i as E,n as D,p as O,s as k}from"./mdi-DiyhbERt.js";var A={class:`d-flex flex-column flex-sm-row align-center ga-6 pa-6 pa-md-8`},j={class:`flex-grow-1 text-center text-sm-start`},M={class:`text-headline-medium`},N={key:0,class:`text-title-medium text-medium-emphasis mt-1`},P={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1}},setup(P){let F=P,I=s(()=>[{icon:T,label:`E-Mail`,value:F.person.email,href:`mailto:${F.person.email}`},{icon:w,label:`Telefon`,value:F.person.phone,href:F.person.phone&&`tel:${F.person.phone}`},{icon:E,label:`Mobil`,value:F.person.mobile,href:F.person.mobile&&`tel:${F.person.mobile}`},{icon:k,label:`Abteilung`,value:F.person.department},{icon:O,label:`Standort`,value:F.person.location}].filter(e=>e.value));return(s,w)=>(u(),m(f,null,[p(i(r),{title:P.person.name},null,8,[`title`]),p(C,null,{default:t(()=>[p(_,{rounded:`xl`,class:`mb-6`},{default:t(()=>[o(`div`,A,[p(S,{user:P.person,size:128},null,8,[`user`]),o(`div`,j,[o(`h1`,M,n(P.person.name),1),P.person.job_title?(u(),m(`div`,N,n(P.person.job_title),1)):c(``,!0)]),P.isOwnProfile?(u(),e(i(a),{key:0,href:`/profil/bearbeiten`},{default:t(()=>[p(g,{variant:`tonal`,"prepend-icon":i(D)},{default:t(()=>[...w[0]||=[d(`Profil bearbeiten`,-1)]]),_:1},8,[`prepend-icon`])]),_:1})):c(``,!0)])]),_:1}),p(y,null,{default:t(()=>[p(b,{cols:`12`,md:`5`},{default:t(()=>[p(_,{rounded:`xl`,title:`Kontakt`,class:`h-100`},{default:t(()=>[p(v,{"bg-color":`transparent`},{default:t(()=>[(u(!0),m(f,null,l(I.value,t=>(u(),e(x,{key:t.label,"prepend-icon":t.icon,title:t.value,subtitle:t.label,href:t.href||void 0},null,8,[`prepend-icon`,`title`,`subtitle`,`href`]))),128))]),_:1})]),_:1})]),_:1}),p(b,{cols:`12`,md:`7`},{default:t(()=>[p(_,{rounded:`xl`,title:`Über mich`,class:`h-100`},{default:t(()=>[P.person.about?(u(),e(h,{key:0,class:`text-body-large`,style:{"white-space":`pre-line`}},{default:t(()=>[d(n(P.person.about),1)]),_:1})):(u(),e(h,{key:1,class:`text-medium-emphasis`},{default:t(()=>[...w[1]||=[d(`Noch keine Angaben.`,-1)]]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})],64))}};export{P as default};
|
||||
1
public/build/assets/Show-D1dapTEF.js
Normal file
1
public/build/assets/Show-D1dapTEF.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{$t as e,F as t,G as n,J as r,K as i,Sn as a,Ut as o,Y as s,Yt as c,lr as l,n as u,nt as d,q as f,rr as p,tt as m}from"./app-B8oig5Tj.js";import{E as h}from"./BrandLogo-U6lK0jUc.js";import{n as g,t as _}from"./map-pin-CvpNerqq.js";import{i as v,r as y,t as b}from"./AppLayout-w1APcrJk.js";import{n as x,t as S}from"./phone-CzGeM1mJ.js";import{t as C}from"./button-D9r8plCs.js";import{t as w}from"./Panel-C_rZ9c8S.js";var T=h({name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]}),E={class:`overflow-hidden rounded-lg border bg-card`},D={class:`flex flex-col gap-4 px-6 pb-6 sm:flex-row sm:items-end sm:justify-between`},O={class:`flex flex-col gap-4 sm:flex-row sm:items-end`},k={class:`sm:pb-1`},A={class:`text-2xl font-semibold tracking-tight`},j={key:0,class:`mt-0.5 text-[15px] text-muted-foreground`},M={class:`flex gap-2 sm:pb-1`},N=[`href`],P={class:`mt-6 grid gap-6 lg:grid-cols-12`},F={class:`grid gap-4`},I={class:`min-w-0`},L={class:`text-xs text-muted-foreground`},R={class:`truncate text-sm`},z=[`href`],B={key:0,class:`text-sm leading-relaxed whitespace-pre-line`},V={key:1,class:`text-sm text-muted-foreground`},H={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1}},setup(h){let H=h,U=n(()=>[{icon:x,label:`E-Mail`,value:H.person.email,href:`mailto:${H.person.email}`},{icon:S,label:`Telefon`,value:H.person.phone,href:H.person.phone&&`tel:${H.person.phone}`},{icon:T,label:`Mobil`,value:H.person.mobile,href:H.person.mobile&&`tel:${H.person.mobile}`},{icon:g,label:`Abteilung`,value:H.person.department},{icon:_,label:`Standort`,value:H.person.location}].filter(e=>e.value));return(n,g)=>(o(),f(b,{title:h.person.name},{default:a(()=>[i(`section`,E,[g[2]||=i(`div`,{class:`h-28 bg-brand sm:h-32`,style:{"background-image":`linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 0.08))`}},null,-1),i(`div`,D,[i(`div`,O,[d(y,{person:h.person,class:`-mt-14 size-28 text-2xl ring-4 ring-card`},null,8,[`person`]),i(`div`,k,[i(`h1`,A,l(h.person.name),1),h.person.job_title?(o(),s(`p`,j,l(h.person.job_title),1)):r(``,!0)])]),i(`div`,M,[h.isOwnProfile?(o(),f(p(C),{key:0,variant:`outline`,"as-child":``},{default:a(()=>[d(p(u),{href:`/profil/bearbeiten`},{default:a(()=>[d(p(v)),g[0]||=m(` Profil bearbeiten`,-1)]),_:1})]),_:1})):(o(),f(p(C),{key:1,"as-child":``},{default:a(()=>[i(`a`,{href:`mailto:${h.person.email}`},[d(p(x)),g[1]||=m(` E-Mail schreiben`,-1)],8,N)]),_:1}))])])]),i(`div`,P,[d(w,{title:`Kontakt`,class:`lg:col-span-5`},{default:a(()=>[i(`dl`,F,[(o(!0),s(t,null,c(U.value,n=>(o(),s(`div`,{key:n.label,class:`flex items-start gap-3`},[(o(),f(e(n.icon),{class:`mt-0.5 size-4 shrink-0 text-muted-foreground`})),i(`div`,I,[i(`dt`,L,l(n.label),1),i(`dd`,R,[n.href?(o(),s(`a`,{key:0,href:n.href,class:`text-brand-text hover:underline`},l(n.value),9,z)):(o(),s(t,{key:1},[m(l(n.value),1)],64))])])]))),128))])]),_:1}),d(w,{title:`Über mich`,class:`lg:col-span-7`},{default:a(()=>[h.person.about?(o(),s(`p`,B,l(h.person.about),1)):(o(),s(`p`,V,`Noch keine Angaben.`))]),_:1})])]),_:1},8,[`title`]))}};export{H as default};
|
||||
|
|
@ -1 +0,0 @@
|
|||
@layer vuetify-components{.v-alert{--v-border-color:currentColor;flex:1;grid-template-columns:max-content auto max-content max-content;grid-template-areas:"prepend content append close"".content. .";padding:16px;display:grid;position:relative;overflow:hidden}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{color:inherit;background:0 0}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:color-mix(in srgb, rgb(var(--v-theme-on-surface-light)) calc(var(--v-high-emphasis-opacity) * 100%), transparent)}.v-alert--variant-elevated{box-shadow:0px 1px 2px 0px rgba(var(--v-shadow-color), var(--v-shadow-key-opacity,.3)), 0px 1px 3px 1px rgba(var(--v-shadow-color), var(--v-shadow-ambient-opacity,.15));--v-elevation-overlay:color-mix(in srgb, var(--v-elevation-overlay-color) 2%, transparent)}.v-alert--variant-flat{box-shadow:0px 0px 0px 0px rgba(var(--v-shadow-color), var(--v-shadow-key-opacity,.3)), 0px 0px 0px 0px rgba(var(--v-shadow-color), var(--v-shadow-ambient-opacity,.15));--v-elevation-overlay:color-mix(in srgb, var(--v-elevation-overlay-color) 0%, transparent)}.v-alert--variant-outlined{border:thin solid}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{opacity:var(--v-activated-opacity);pointer-events:none;background:currentColor;inset:0}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close""prepend content. ."}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:opacity .2s cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-top:16px;padding-bottom:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-top:12px;padding-bottom:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-top:8px;padding-bottom:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert:not(:has(.v-alert-title)) .v-alert__content{padding-block:.125rem}.v-alert__border{border-radius:inherit;opacity:.38;pointer-events:none;border:0 solid;width:100%;position:absolute;inset:0}.v-alert__border--border{box-shadow:none;border-width:8px}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 auto;grid-area:close}.v-alert__close>.v-btn{margin-block:calc(-1 * (var(--v-btn-height) + 12px - 1.75rem) / 2)}.v-alert__content{grid-area:content;align-self:center;overflow:hidden}.v-alert__content>:first-child{margin-top:0}.v-alert__content>:last-child{margin-bottom:0}.v-alert__append,.v-alert__close{margin-inline-start:16px}.v-alert__append{grid-area:append;align-self:flex-start}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{grid-area:prepend;align-self:flex-start;align-items:center;min-height:1.75rem;margin-inline-end:16px;display:flex}.v-alert__prepend>.v-icon{width:1.75rem;height:1.75rem;font-size:1.75rem}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-right-radius:0;border-bottom-left-radius:0}.v-alert-title{-webkit-hyphens:auto;hyphens:auto;letter-spacing:normal;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word;align-self:center;align-items:center;font-size:1.5rem;font-weight:400;line-height:1.75rem;display:flex}@media (forced-colors:active){.v-alert:not(.v-alert--variant-text,.v-alert--variant-plain){border-style:solid}.v-alert--variant-outlined,.v-alert--variant-tonal{border-width:medium}.v-alert--variant-elevated,.v-alert--variant-flat{border-width:thick}}}
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{Bn as e,Pn as t,Qt as n,S as r,St as i,Vn as a,Zt as o,c as s,i as c,k as l,on as u,p as d,r as f,rn as p,u as m}from"./theme-D-tNmEQF.js";import{A as h,B as g,C as _,G as v,H as y,J as b,K as x,L as S,M as C,O as w,U as T,V as E,W as D,Y as O,_ as k,a as A,at as j,j as M,k as N,ot as P,v as F,w as I}from"./transitions-Cew8HcaC.js";var L=j(`v-alert-title`),R=l({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[[`x-small`,10],[`small`,16],[`default`,24],[`large`,28],[`x-large`,32]]}},`iconSize`);function z(e,t){return{iconSize:o(()=>{let n=new Map(e.iconSizes),r=e.iconSize??t()??`default`;return n.has(r)?n.get(r):r})}}var B=[`success`,`info`,`warning`,`error`],V=l({border:{type:[Boolean,String],validator:e=>i(e)||[`top`,`end`,`bottom`,`start`].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:d,default:`$close`},closeLabel:{type:String,default:`$vuetify.close`},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>B.includes(e)},...P(),...M(),...D(),..._(),...R(),...y(),...k(),...g(),...O(),...f(),...N({variant:`flat`})},`VAlert`),H=r()({name:`VAlert`,props:V(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(r,{emit:i,slots:o}){let l=m(r,`modelValue`),d=t(()=>{if(r.icon!==!1)return r.type?r.icon??`$${r.type}`:r.icon}),{iconSize:f}=z(r,()=>r.prominent?44:void 0),{themeClasses:g}=c(r),{colorClasses:_,colorStyles:y,variantClasses:D}=h(()=>({color:r.color??r.type,variant:r.variant})),{densityClasses:O}=C(r),{dimensionStyles:k}=v(r),{elevationClasses:j}=I(r),{locationStyles:M}=T(r),{positionClasses:N}=F(r),{roundedClasses:P,roundedStyles:R}=E(r),{textColorClasses:B,textColorStyles:V}=b(()=>r.borderColor),{t:H}=s(),U=t(()=>({"aria-label":H(r.closeLabel),onClick(e){l.value=!1,i(`click:close`,e)}}));return()=>{let t=!!(o.prepend||d.value),i=!!(o.title||r.title),s=!!(o.close||r.closable),c={density:r.density,icon:d.value,size:r.iconSize||r.prominent?f.value:void 0};return l.value&&p(r.tag,{class:e([`v-alert`,r.border&&{"v-alert--border":!!r.border,[`v-alert--border-${r.border===!0?`start`:r.border}`]:!0},{"v-alert--prominent":r.prominent},g.value,_.value,O.value,j.value,N.value,P.value,D.value,r.class]),style:a([y.value,k.value,M.value,R.value,r.style]),role:`alert`},{default:()=>[w(!1,`v-alert`),r.border&&n(`div`,{key:`border`,class:e([`v-alert__border`,B.value]),style:a(V.value)},null),t&&n(`div`,{key:`prepend`,class:`v-alert__prepend`},[o.prepend?p(S,{key:`prepend-defaults`,disabled:!d.value,defaults:{VIcon:{...c}}},o.prepend):p(x,u({key:`prepend-icon`},c),null)]),n(`div`,{class:`v-alert__content`},[i&&p(L,{key:`title`},{default:()=>[o.title?.()??r.title]}),o.text?.()??r.text,o.default?.()]),o.append&&n(`div`,{key:`append`,class:`v-alert__append`},[o.append()]),s&&n(`div`,{key:`close`,class:`v-alert__close`},[o.close?p(S,{key:`close-defaults`,defaults:{VBtn:{icon:r.closeIcon,size:`x-small`,variant:`text`}}},{default:()=>[o.close?.({props:U.value})]}):p(A,u({key:`close-btn`,icon:r.closeIcon,size:`x-small`,variant:`text`},U.value),null)])]})}}});export{H as t};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
93
public/build/assets/app-B8oig5Tj.js
Normal file
93
public/build/assets/app-B8oig5Tj.js
Normal file
File diff suppressed because one or more lines are too long
2
public/build/assets/app-D-mCGx-P.css
Normal file
2
public/build/assets/app-D-mCGx-P.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/build/assets/button-D9r8plCs.js
Normal file
1
public/build/assets/button-D9r8plCs.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{Sn as e,Ut as t,Xt as n,it as r,or as i,q as a,rr as o}from"./app-B8oig5Tj.js";import{o as s,s as c,w as l}from"./BrandLogo-U6lK0jUc.js";var u=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,d=l,f=(e,t)=>n=>{if(t?.variants==null)return d(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=u(t)||u(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return d(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},p=r({__name:`Button`,props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:`button`}},setup(r){let l=r;return(u,d)=>(t(),a(o(c),{"data-slot":`button`,"data-variant":r.variant,"data-size":r.size,as:r.as,"as-child":r.asChild,class:i(o(s)(o(m)({variant:r.variant,size:r.size}),l.class))},{default:e(()=>[n(u.$slots,`default`)]),_:3},8,[`data-variant`,`data-size`,`as`,`as-child`,`class`]))}}),m=f(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});export{p as t};
|
||||
Binary file not shown.
BIN
public/build/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2
Normal file
BIN
public/build/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2
Normal file
Binary file not shown.
BIN
public/build/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2
Normal file
BIN
public/build/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2
Normal file
Binary file not shown.
BIN
public/build/assets/inter-greek-wght-normal-CkhJZR-_.woff2
Normal file
BIN
public/build/assets/inter-greek-wght-normal-CkhJZR-_.woff2
Normal file
Binary file not shown.
BIN
public/build/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2
Normal file
BIN
public/build/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2
Normal file
Binary file not shown.
BIN
public/build/assets/inter-latin-wght-normal-Dx4kXJAl.woff2
Normal file
BIN
public/build/assets/inter-latin-wght-normal-Dx4kXJAl.woff2
Normal file
Binary file not shown.
BIN
public/build/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2
Normal file
BIN
public/build/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2
Normal file
Binary file not shown.
1
public/build/assets/map-pin-CvpNerqq.js
Normal file
1
public/build/assets/map-pin-CvpNerqq.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{E as e}from"./BrandLogo-U6lK0jUc.js";var t=e({name:`building-complex`,size:24,node:[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]],aliases:[`building-2`]}),n=e({name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]});export{t as n,n as t};
|
||||
File diff suppressed because one or more lines are too long
1
public/build/assets/phone-CzGeM1mJ.js
Normal file
1
public/build/assets/phone-CzGeM1mJ.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import{E as e}from"./BrandLogo-U6lK0jUc.js";var t=e({name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]}),n=e({name:`phone`,size:24,node:[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]});export{t as n,n as t};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,189 +1,223 @@
|
|||
{
|
||||
"_AppLayout-B-Ci_eMI.css": {
|
||||
"file": "assets/AppLayout-B-Ci_eMI.css",
|
||||
"src": "_AppLayout-B-Ci_eMI.css"
|
||||
},
|
||||
"_AppLayout-CyW53UC0.js": {
|
||||
"file": "assets/AppLayout-CyW53UC0.js",
|
||||
"_AppLayout-w1APcrJk.js": {
|
||||
"file": "assets/AppLayout-w1APcrJk.js",
|
||||
"name": "AppLayout",
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js",
|
||||
"_RovingFocusGroup-BTQpJeq8.js",
|
||||
"resources/js/app.js",
|
||||
"_mdi-DiyhbERt.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/AppLayout-B-Ci_eMI.css"
|
||||
"_BrandLogo-U6lK0jUc.js"
|
||||
]
|
||||
},
|
||||
"_GuestLayout-BzNvqx8m.js": {
|
||||
"file": "assets/GuestLayout-BzNvqx8m.js",
|
||||
"_BrandLogo-U6lK0jUc.js": {
|
||||
"file": "assets/BrandLogo-U6lK0jUc.js",
|
||||
"name": "BrandLogo",
|
||||
"imports": [
|
||||
"resources/js/app.js"
|
||||
]
|
||||
},
|
||||
"_FormField-CJ-9ofQz.js": {
|
||||
"file": "assets/FormField-CJ-9ofQz.js",
|
||||
"name": "FormField",
|
||||
"imports": [
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js"
|
||||
]
|
||||
},
|
||||
"_GuestLayout-DlwWe9r2.js": {
|
||||
"file": "assets/GuestLayout-DlwWe9r2.js",
|
||||
"name": "GuestLayout",
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/GuestLayout-ku9EbwM-.css"
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js"
|
||||
]
|
||||
},
|
||||
"_GuestLayout-ku9EbwM-.css": {
|
||||
"file": "assets/GuestLayout-ku9EbwM-.css",
|
||||
"src": "_GuestLayout-ku9EbwM-.css"
|
||||
},
|
||||
"_VAlert-DVXMoK42.css": {
|
||||
"file": "assets/VAlert-DVXMoK42.css",
|
||||
"src": "_VAlert-DVXMoK42.css"
|
||||
},
|
||||
"_VAlert-Ujdiz_H0.js": {
|
||||
"file": "assets/VAlert-Ujdiz_H0.js",
|
||||
"name": "VAlert",
|
||||
"_Panel-C_rZ9c8S.js": {
|
||||
"file": "assets/Panel-C_rZ9c8S.js",
|
||||
"name": "Panel",
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/VAlert-DVXMoK42.css"
|
||||
"resources/js/app.js",
|
||||
"_AppLayout-w1APcrJk.js"
|
||||
]
|
||||
},
|
||||
"_VTextField-CwpDIPQC.js": {
|
||||
"file": "assets/VTextField-CwpDIPQC.js",
|
||||
"name": "VTextField",
|
||||
"_RovingFocusGroup-BTQpJeq8.js": {
|
||||
"file": "assets/RovingFocusGroup-BTQpJeq8.js",
|
||||
"name": "RovingFocusGroup",
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/VTextField-DVt19ZIG.css"
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js"
|
||||
]
|
||||
},
|
||||
"_VTextField-DVt19ZIG.css": {
|
||||
"file": "assets/VTextField-DVt19ZIG.css",
|
||||
"src": "_VTextField-DVt19ZIG.css"
|
||||
},
|
||||
"_mdi-DiyhbERt.js": {
|
||||
"file": "assets/mdi-DiyhbERt.js",
|
||||
"name": "mdi"
|
||||
},
|
||||
"_theme-D-tNmEQF.js": {
|
||||
"file": "assets/theme-D-tNmEQF.js",
|
||||
"name": "theme"
|
||||
},
|
||||
"_transitions-B9S3qshp.css": {
|
||||
"file": "assets/transitions-B9S3qshp.css",
|
||||
"src": "_transitions-B9S3qshp.css"
|
||||
},
|
||||
"_transitions-Cew8HcaC.js": {
|
||||
"file": "assets/transitions-Cew8HcaC.js",
|
||||
"name": "transitions",
|
||||
"_button-D9r8plCs.js": {
|
||||
"file": "assets/button-D9r8plCs.js",
|
||||
"name": "button",
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/transitions-B9S3qshp.css"
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js"
|
||||
]
|
||||
},
|
||||
"_map-pin-CvpNerqq.js": {
|
||||
"file": "assets/map-pin-CvpNerqq.js",
|
||||
"name": "map-pin",
|
||||
"imports": [
|
||||
"_BrandLogo-U6lK0jUc.js"
|
||||
]
|
||||
},
|
||||
"_phone-CzGeM1mJ.js": {
|
||||
"file": "assets/phone-CzGeM1mJ.js",
|
||||
"name": "phone",
|
||||
"imports": [
|
||||
"_BrandLogo-U6lK0jUc.js"
|
||||
]
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter/files/inter-cyrillic-ext-wght-normal.woff2": {
|
||||
"file": "assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",
|
||||
"src": "node_modules/@fontsource-variable/inter/files/inter-cyrillic-ext-wght-normal.woff2"
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter/files/inter-cyrillic-wght-normal.woff2": {
|
||||
"file": "assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",
|
||||
"src": "node_modules/@fontsource-variable/inter/files/inter-cyrillic-wght-normal.woff2"
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter/files/inter-greek-ext-wght-normal.woff2": {
|
||||
"file": "assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",
|
||||
"src": "node_modules/@fontsource-variable/inter/files/inter-greek-ext-wght-normal.woff2"
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter/files/inter-greek-wght-normal.woff2": {
|
||||
"file": "assets/inter-greek-wght-normal-CkhJZR-_.woff2",
|
||||
"src": "node_modules/@fontsource-variable/inter/files/inter-greek-wght-normal.woff2"
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter/files/inter-latin-ext-wght-normal.woff2": {
|
||||
"file": "assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",
|
||||
"src": "node_modules/@fontsource-variable/inter/files/inter-latin-ext-wght-normal.woff2"
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2": {
|
||||
"file": "assets/inter-latin-wght-normal-Dx4kXJAl.woff2",
|
||||
"src": "node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2"
|
||||
},
|
||||
"node_modules/@fontsource-variable/inter/files/inter-vietnamese-wght-normal.woff2": {
|
||||
"file": "assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",
|
||||
"src": "node_modules/@fontsource-variable/inter/files/inter-vietnamese-wght-normal.woff2"
|
||||
},
|
||||
"resources/js/app.js": {
|
||||
"file": "assets/app-3XWRJL-R.js",
|
||||
"file": "assets/app-B8oig5Tj.js",
|
||||
"name": "app",
|
||||
"src": "resources/js/app.js",
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"resources/js/pages/Auth/ForgotPassword.vue",
|
||||
"resources/js/pages/Auth/Login.vue",
|
||||
"resources/js/pages/Auth/ResetPassword.vue",
|
||||
"resources/js/pages/Dashboard.vue",
|
||||
"resources/js/pages/People/Index.vue",
|
||||
"resources/js/pages/Profile/Edit.vue",
|
||||
"resources/js/pages/Profile/Show.vue"
|
||||
],
|
||||
"css": [
|
||||
"assets/app-QaRPCFuX.css"
|
||||
"assets/app-D-mCGx-P.css"
|
||||
],
|
||||
"assets": [
|
||||
"assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",
|
||||
"assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",
|
||||
"assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",
|
||||
"assets/inter-greek-wght-normal-CkhJZR-_.woff2",
|
||||
"assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",
|
||||
"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",
|
||||
"assets/inter-latin-wght-normal-Dx4kXJAl.woff2"
|
||||
]
|
||||
},
|
||||
"resources/js/pages/Auth/ForgotPassword.vue": {
|
||||
"file": "assets/ForgotPassword-BNaD65DN.js",
|
||||
"file": "assets/ForgotPassword-DlEYQ9Vh.js",
|
||||
"name": "ForgotPassword",
|
||||
"src": "resources/js/pages/Auth/ForgotPassword.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js",
|
||||
"_VTextField-CwpDIPQC.js",
|
||||
"_GuestLayout-BzNvqx8m.js",
|
||||
"_VAlert-Ujdiz_H0.js"
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js",
|
||||
"_button-D9r8plCs.js",
|
||||
"_FormField-CJ-9ofQz.js",
|
||||
"_GuestLayout-DlwWe9r2.js"
|
||||
]
|
||||
},
|
||||
"resources/js/pages/Auth/Login.vue": {
|
||||
"file": "assets/Login-Dp72_P-r.js",
|
||||
"file": "assets/Login-BVWp1nPa.js",
|
||||
"name": "Login",
|
||||
"src": "resources/js/pages/Auth/Login.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js",
|
||||
"_VTextField-CwpDIPQC.js",
|
||||
"_GuestLayout-BzNvqx8m.js",
|
||||
"_VAlert-Ujdiz_H0.js",
|
||||
"_mdi-DiyhbERt.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/Login-CbvHqsuP.css"
|
||||
"_RovingFocusGroup-BTQpJeq8.js",
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js",
|
||||
"_button-D9r8plCs.js",
|
||||
"_FormField-CJ-9ofQz.js",
|
||||
"_GuestLayout-DlwWe9r2.js"
|
||||
]
|
||||
},
|
||||
"resources/js/pages/Auth/ResetPassword.vue": {
|
||||
"file": "assets/ResetPassword-DynCq2zL.js",
|
||||
"file": "assets/ResetPassword-DP6iEeV1.js",
|
||||
"name": "ResetPassword",
|
||||
"src": "resources/js/pages/Auth/ResetPassword.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js",
|
||||
"_VTextField-CwpDIPQC.js",
|
||||
"_GuestLayout-BzNvqx8m.js"
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js",
|
||||
"_button-D9r8plCs.js",
|
||||
"_FormField-CJ-9ofQz.js",
|
||||
"_GuestLayout-DlwWe9r2.js"
|
||||
]
|
||||
},
|
||||
"resources/js/pages/Dashboard.vue": {
|
||||
"file": "assets/Dashboard-BHIpzvpu.js",
|
||||
"file": "assets/Dashboard-BpL95wPx.js",
|
||||
"name": "Dashboard",
|
||||
"src": "resources/js/pages/Dashboard.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js",
|
||||
"_AppLayout-CyW53UC0.js",
|
||||
"_mdi-DiyhbERt.js"
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js",
|
||||
"_map-pin-CvpNerqq.js",
|
||||
"_AppLayout-w1APcrJk.js",
|
||||
"_phone-CzGeM1mJ.js",
|
||||
"_Panel-C_rZ9c8S.js"
|
||||
]
|
||||
},
|
||||
"resources/js/pages/People/Index.vue": {
|
||||
"file": "assets/Index-DZSw61ts.js",
|
||||
"name": "Index",
|
||||
"src": "resources/js/pages/People/Index.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js",
|
||||
"_AppLayout-w1APcrJk.js",
|
||||
"_phone-CzGeM1mJ.js",
|
||||
"_button-D9r8plCs.js"
|
||||
]
|
||||
},
|
||||
"resources/js/pages/Profile/Edit.vue": {
|
||||
"file": "assets/Edit-CTqbbfHv.js",
|
||||
"file": "assets/Edit-BIDoqpb1.js",
|
||||
"name": "Edit",
|
||||
"src": "resources/js/pages/Profile/Edit.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js",
|
||||
"_AppLayout-CyW53UC0.js",
|
||||
"_VTextField-CwpDIPQC.js",
|
||||
"resources/js/app.js",
|
||||
"_mdi-DiyhbERt.js"
|
||||
],
|
||||
"css": [
|
||||
"assets/Edit-B1eYkbRl.css"
|
||||
"_BrandLogo-U6lK0jUc.js",
|
||||
"_AppLayout-w1APcrJk.js",
|
||||
"_button-D9r8plCs.js",
|
||||
"_FormField-CJ-9ofQz.js",
|
||||
"_Panel-C_rZ9c8S.js"
|
||||
]
|
||||
},
|
||||
"resources/js/pages/Profile/Show.vue": {
|
||||
"file": "assets/Show-CgP49K5f.js",
|
||||
"file": "assets/Show-D1dapTEF.js",
|
||||
"name": "Show",
|
||||
"src": "resources/js/pages/Profile/Show.vue",
|
||||
"isDynamicEntry": true,
|
||||
"imports": [
|
||||
"_theme-D-tNmEQF.js",
|
||||
"_transitions-Cew8HcaC.js",
|
||||
"_AppLayout-CyW53UC0.js",
|
||||
"_mdi-DiyhbERt.js"
|
||||
"resources/js/app.js",
|
||||
"_BrandLogo-U6lK0jUc.js",
|
||||
"_map-pin-CvpNerqq.js",
|
||||
"_AppLayout-w1APcrJk.js",
|
||||
"_phone-CzGeM1mJ.js",
|
||||
"_button-D9r8plCs.js",
|
||||
"_Panel-C_rZ9c8S.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +1,118 @@
|
|||
/* Ergänzungen zu Vuetify/Material 3. Farben kommen ausschließlich aus dem Theme. */
|
||||
@import "tailwindcss";
|
||||
@import "tw-animate-css";
|
||||
@import "@fontsource-variable/inter";
|
||||
|
||||
html {
|
||||
overflow-y: auto;
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
/*
|
||||
* Design-Tokens des Portals.
|
||||
* Neutrale Flächen, die Markenfarbe nur als Akzent. Die Markenfarbe und ihre
|
||||
* Abstufungen (--brand, --brand-50 … --brand-950) setzt der Server in
|
||||
* resources/views/app.blade.php – aus der Einstellung „Erscheinungsbild“.
|
||||
*/
|
||||
:root {
|
||||
--radius: 0.5rem;
|
||||
|
||||
--background: #f4f5f7;
|
||||
--foreground: #1a1d21;
|
||||
--card: #ffffff;
|
||||
--card-foreground: #1a1d21;
|
||||
--popover: #ffffff;
|
||||
--popover-foreground: #1a1d21;
|
||||
--muted: #f1f2f4;
|
||||
--muted-foreground: #5f6670;
|
||||
--accent: #f1f2f4;
|
||||
--accent-foreground: #1a1d21;
|
||||
--secondary: #eef0f2;
|
||||
--secondary-foreground: #1a1d21;
|
||||
--border: #e3e5e8;
|
||||
--input: #d5d8dd;
|
||||
--destructive: #c62828;
|
||||
|
||||
--primary: var(--brand);
|
||||
--primary-foreground: var(--brand-foreground);
|
||||
--ring: var(--brand-400);
|
||||
|
||||
/* Akzenttext (Links, Kategorien) – auf Weiß gut lesbar. */
|
||||
--brand-text: var(--brand-600);
|
||||
--brand-soft: var(--brand-50);
|
||||
--brand-soft-foreground: var(--brand-700);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Roboto, 'Segoe UI', system-ui, -apple-system, sans-serif;
|
||||
.dark {
|
||||
--background: #0f1114;
|
||||
--foreground: #e8eaed;
|
||||
--card: #171a1e;
|
||||
--card-foreground: #e8eaed;
|
||||
--popover: #1c1f24;
|
||||
--popover-foreground: #e8eaed;
|
||||
--muted: #22262b;
|
||||
--muted-foreground: #9aa1ab;
|
||||
--accent: #22262b;
|
||||
--accent-foreground: #e8eaed;
|
||||
--secondary: #22262b;
|
||||
--secondary-foreground: #e8eaed;
|
||||
--border: #2a2e34;
|
||||
--input: #353a41;
|
||||
--destructive: #ef5350;
|
||||
|
||||
--brand-text: var(--brand-300);
|
||||
--brand-soft: color-mix(in oklab, var(--brand) 22%, transparent);
|
||||
--brand-soft-foreground: var(--brand-200);
|
||||
}
|
||||
|
||||
.page-container {
|
||||
max-width: 1200px;
|
||||
margin-inline: auto;
|
||||
@theme inline {
|
||||
--font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
|
||||
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) + 4px);
|
||||
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--color-card: var(--card);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-border: var(--border);
|
||||
--color-input: var(--input);
|
||||
--color-ring: var(--ring);
|
||||
|
||||
--color-brand: var(--brand);
|
||||
--color-brand-foreground: var(--brand-foreground);
|
||||
--color-brand-text: var(--brand-text);
|
||||
--color-brand-soft: var(--brand-soft);
|
||||
--color-brand-soft-foreground: var(--brand-soft-foreground);
|
||||
--color-brand-50: var(--brand-50);
|
||||
--color-brand-100: var(--brand-100);
|
||||
--color-brand-200: var(--brand-200);
|
||||
--color-brand-300: var(--brand-300);
|
||||
--color-brand-400: var(--brand-400);
|
||||
--color-brand-500: var(--brand-500);
|
||||
--color-brand-600: var(--brand-600);
|
||||
--color-brand-700: var(--brand-700);
|
||||
--color-brand-800: var(--brand-800);
|
||||
--color-brand-900: var(--brand-900);
|
||||
--color-brand-950: var(--brand-950);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
|
||||
body {
|
||||
@apply bg-background text-foreground antialiased;
|
||||
font-feature-settings: "cv11", "ss01";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import '../css/app.css';
|
||||
import 'vue-sonner/style.css';
|
||||
|
||||
import { createApp, h } from 'vue';
|
||||
import { createInertiaApp } from '@inertiajs/vue3';
|
||||
import { createPortalVuetify } from './plugins/vuetify';
|
||||
|
||||
createInertiaApp({
|
||||
title: (title, page) => {
|
||||
|
|
@ -21,17 +21,11 @@ createInertiaApp({
|
|||
return page();
|
||||
},
|
||||
setup({ el, App, props, plugin }) {
|
||||
const shared = props.initialPage.props;
|
||||
|
||||
createApp({ render: () => h(App, props) })
|
||||
.use(plugin)
|
||||
.use(createPortalVuetify({
|
||||
primaryColor: shared.branding.primary_color,
|
||||
theme: shared.auth.user?.theme ?? 'system',
|
||||
}))
|
||||
.mount(el);
|
||||
},
|
||||
progress: {
|
||||
color: 'rgb(var(--v-theme-primary))',
|
||||
color: 'var(--brand)',
|
||||
},
|
||||
});
|
||||
|
|
|
|||
26
resources/js/components/BrandLogo.vue
Normal file
26
resources/js/components/BrandLogo.vue
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { usePage } from '@inertiajs/vue3';
|
||||
|
||||
defineProps({
|
||||
inverted: { type: Boolean, default: false },
|
||||
});
|
||||
|
||||
const branding = computed(() => usePage().props.branding);
|
||||
const monogram = computed(() => branding.value.portal_name.trim().charAt(0).toUpperCase());
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="flex items-center gap-3">
|
||||
<img v-if="branding.logo_url" :src="branding.logo_url" :alt="branding.portal_name" class="h-8 w-auto" />
|
||||
<template v-else>
|
||||
<span
|
||||
class="grid size-8 place-items-center rounded-md text-base font-bold"
|
||||
:class="inverted ? 'bg-white/15 text-white' : 'bg-brand text-brand-foreground'"
|
||||
>
|
||||
{{ monogram }}
|
||||
</span>
|
||||
<span class="text-[17px] font-semibold tracking-tight">{{ branding.portal_name }}</span>
|
||||
</template>
|
||||
</span>
|
||||
</template>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { usePage } from '@inertiajs/vue3';
|
||||
|
||||
defineProps({
|
||||
height: { type: Number, default: 32 },
|
||||
});
|
||||
|
||||
const branding = computed(() => usePage().props.branding);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="d-inline-flex align-center ga-3">
|
||||
<img
|
||||
v-if="branding.logo_url"
|
||||
:src="branding.logo_url"
|
||||
:alt="branding.portal_name"
|
||||
:style="{ height: `${height}px`, width: 'auto' }"
|
||||
/>
|
||||
<span class="text-title-large font-weight-medium">{{ branding.portal_name }}</span>
|
||||
</span>
|
||||
</template>
|
||||
19
resources/js/components/FormField.vue
Normal file
19
resources/js/components/FormField.vue
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<script setup>
|
||||
import { Label } from '@/components/ui/label';
|
||||
|
||||
defineProps({
|
||||
id: { type: String, required: true },
|
||||
label: { type: String, required: true },
|
||||
error: { type: String, default: '' },
|
||||
hint: { type: String, default: '' },
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="grid content-start gap-1.5">
|
||||
<Label :for="id" class="text-[13px] font-medium">{{ label }}</Label>
|
||||
<slot />
|
||||
<p v-if="error" class="text-[13px] text-destructive">{{ error }}</p>
|
||||
<p v-else-if="hint" class="text-[13px] text-muted-foreground">{{ hint }}</p>
|
||||
</div>
|
||||
</template>
|
||||
32
resources/js/components/GreetingCard.vue
Normal file
32
resources/js/components/GreetingCard.vue
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<script setup>
|
||||
import { Link } from '@inertiajs/vue3';
|
||||
import { Building2, MapPin } from '@lucide/vue';
|
||||
import PersonAvatar from '@/components/PersonAvatar.vue';
|
||||
|
||||
defineProps({
|
||||
user: { type: Object, required: true },
|
||||
profile: { type: Object, required: true },
|
||||
greeting: { type: String, required: true },
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="overflow-hidden rounded-lg bg-brand text-brand-foreground">
|
||||
<div class="flex items-center gap-4 p-5">
|
||||
<PersonAvatar :person="user" class="size-[72px] ring-2 ring-white/40" />
|
||||
<div class="min-w-0">
|
||||
<div class="text-[13px] opacity-80">{{ greeting }},</div>
|
||||
<div class="truncate text-lg font-semibold">{{ user.name }}</div>
|
||||
<div v-if="profile.job_title" class="truncate text-[13px] opacity-85">{{ profile.job_title }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-wrap gap-x-5 gap-y-1 px-5 pb-4 text-[13px] opacity-85">
|
||||
<span v-if="profile.department" class="inline-flex items-center gap-1.5"><Building2 class="size-3.5" />{{ profile.department }}</span>
|
||||
<span v-if="profile.location" class="inline-flex items-center gap-1.5"><MapPin class="size-3.5" />{{ profile.location }}</span>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 border-t border-white/15 text-[13px] font-medium">
|
||||
<Link :href="`/personen/${user.id}`" class="px-5 py-3 hover:bg-white/10">Mein Profil</Link>
|
||||
<Link href="/profil/bearbeiten" class="border-l border-white/15 px-5 py-3 hover:bg-white/10">Profil bearbeiten</Link>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
27
resources/js/components/Panel.vue
Normal file
27
resources/js/components/Panel.vue
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<script setup>
|
||||
import { Link } from '@inertiajs/vue3';
|
||||
import { ChevronRight } from '@lucide/vue';
|
||||
|
||||
defineProps({
|
||||
title: { type: String, default: '' },
|
||||
actionLabel: { type: String, default: '' },
|
||||
actionHref: { type: String, default: '' },
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="rounded-lg border bg-card text-card-foreground">
|
||||
<header v-if="title || $slots.actions" class="flex items-center justify-between gap-4 px-5 pt-4 pb-3">
|
||||
<h2 class="text-[15px] font-semibold">{{ title }}</h2>
|
||||
<slot name="actions">
|
||||
<Link v-if="actionHref" :href="actionHref" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-brand-text hover:underline">
|
||||
{{ actionLabel }}
|
||||
<ChevronRight class="size-3.5" />
|
||||
</Link>
|
||||
</slot>
|
||||
</header>
|
||||
<div class="px-5 pb-5" :class="{ 'pt-5': !title && !$slots.actions }">
|
||||
<slot />
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
18
resources/js/components/PersonAvatar.vue
Normal file
18
resources/js/components/PersonAvatar.vue
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<script setup>
|
||||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
defineProps({
|
||||
person: { type: Object, required: true },
|
||||
class: { type: [String, Array, Object], default: '' },
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Avatar :class="cn('size-10', $props.class)">
|
||||
<AvatarImage v-if="person.avatar_url" :src="person.avatar_url" :alt="person.name" />
|
||||
<AvatarFallback class="bg-brand-soft font-semibold text-brand-soft-foreground">
|
||||
{{ person.initials }}
|
||||
</AvatarFallback>
|
||||
</Avatar>
|
||||
</template>
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
<script setup>
|
||||
defineProps({
|
||||
user: { type: Object, required: true },
|
||||
size: { type: [Number, String], default: 40 },
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-avatar :size="size" color="primary-container">
|
||||
<v-img v-if="user.avatar_url" :src="user.avatar_url" :alt="user.name" cover />
|
||||
<span v-else class="text-on-primary-container font-weight-medium" :style="{ fontSize: `${Number(size) * 0.4}px` }">
|
||||
{{ user.initials }}
|
||||
</span>
|
||||
</v-avatar>
|
||||
</template>
|
||||
18
resources/js/components/ui/avatar/Avatar.vue
Normal file
18
resources/js/components/ui/avatar/Avatar.vue
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<script setup lang="ts">
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { AvatarRoot } from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = defineProps<{
|
||||
class?: HTMLAttributes["class"]
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AvatarRoot
|
||||
data-slot="avatar"
|
||||
:class="cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</AvatarRoot>
|
||||
</template>
|
||||
21
resources/js/components/ui/avatar/AvatarFallback.vue
Normal file
21
resources/js/components/ui/avatar/AvatarFallback.vue
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<script setup lang="ts">
|
||||
import type { AvatarFallbackProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import { AvatarFallback } from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = defineProps<AvatarFallbackProps & { class?: HTMLAttributes["class"] }>()
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "class")
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AvatarFallback
|
||||
data-slot="avatar-fallback"
|
||||
v-bind="delegatedProps"
|
||||
:class="cn('bg-muted flex size-full items-center justify-center rounded-full', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</AvatarFallback>
|
||||
</template>
|
||||
16
resources/js/components/ui/avatar/AvatarImage.vue
Normal file
16
resources/js/components/ui/avatar/AvatarImage.vue
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<script setup lang="ts">
|
||||
import type { AvatarImageProps } from "reka-ui"
|
||||
import { AvatarImage } from "reka-ui"
|
||||
|
||||
const props = defineProps<AvatarImageProps>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AvatarImage
|
||||
data-slot="avatar-image"
|
||||
v-bind="props"
|
||||
class="aspect-square size-full"
|
||||
>
|
||||
<slot />
|
||||
</AvatarImage>
|
||||
</template>
|
||||
3
resources/js/components/ui/avatar/index.ts
Normal file
3
resources/js/components/ui/avatar/index.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export { default as Avatar } from "./Avatar.vue"
|
||||
export { default as AvatarFallback } from "./AvatarFallback.vue"
|
||||
export { default as AvatarImage } from "./AvatarImage.vue"
|
||||
26
resources/js/components/ui/badge/Badge.vue
Normal file
26
resources/js/components/ui/badge/Badge.vue
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<script setup lang="ts">
|
||||
import type { PrimitiveProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import type { BadgeVariants } from "."
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import { Primitive } from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { badgeVariants } from "."
|
||||
|
||||
const props = defineProps<PrimitiveProps & {
|
||||
variant?: BadgeVariants["variant"]
|
||||
class?: HTMLAttributes["class"]
|
||||
}>()
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "class")
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Primitive
|
||||
data-slot="badge"
|
||||
:class="cn(badgeVariants({ variant }), props.class)"
|
||||
v-bind="delegatedProps"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
26
resources/js/components/ui/badge/index.ts
Normal file
26
resources/js/components/ui/badge/index.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import type { VariantProps } from "class-variance-authority"
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
export { default as Badge } from "./Badge.vue"
|
||||
|
||||
export const badgeVariants = cva(
|
||||
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default:
|
||||
"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
||||
secondary:
|
||||
"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
||||
destructive:
|
||||
"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
||||
outline:
|
||||
"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
variant: "default",
|
||||
},
|
||||
},
|
||||
)
|
||||
export type BadgeVariants = VariantProps<typeof badgeVariants>
|
||||
31
resources/js/components/ui/button/Button.vue
Normal file
31
resources/js/components/ui/button/Button.vue
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<script setup lang="ts">
|
||||
import type { PrimitiveProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import type { ButtonVariants } from "."
|
||||
import { Primitive } from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { buttonVariants } from "."
|
||||
|
||||
interface Props extends PrimitiveProps {
|
||||
variant?: ButtonVariants["variant"]
|
||||
size?: ButtonVariants["size"]
|
||||
class?: HTMLAttributes["class"]
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
as: "button",
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Primitive
|
||||
data-slot="button"
|
||||
:data-variant="variant"
|
||||
:data-size="size"
|
||||
:as="as"
|
||||
:as-child="asChild"
|
||||
:class="cn(buttonVariants({ variant, size }), props.class)"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
</template>
|
||||
40
resources/js/components/ui/button/index.ts
Normal file
40
resources/js/components/ui/button/index.ts
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import type { VariantProps } from "class-variance-authority"
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
export { default as Button } from "./Button.vue"
|
||||
|
||||
export const buttonVariants = cva(
|
||||
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default:
|
||||
"bg-primary text-primary-foreground hover:bg-primary/90",
|
||||
destructive:
|
||||
"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
||||
outline:
|
||||
"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
||||
secondary:
|
||||
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
||||
ghost:
|
||||
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
||||
link: "text-primary underline-offset-4 hover:underline",
|
||||
},
|
||||
size: {
|
||||
"default": "h-9 px-4 py-2 has-[>svg]:px-3",
|
||||
"xs": "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
||||
"sm": "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
||||
"lg": "h-10 rounded-md px-6 has-[>svg]:px-4",
|
||||
"icon": "size-9",
|
||||
"icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
|
||||
"icon-sm": "size-8",
|
||||
"icon-lg": "size-10",
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
variant: "default",
|
||||
size: "default",
|
||||
},
|
||||
},
|
||||
)
|
||||
export type ButtonVariants = VariantProps<typeof buttonVariants>
|
||||
35
resources/js/components/ui/checkbox/Checkbox.vue
Normal file
35
resources/js/components/ui/checkbox/Checkbox.vue
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<script setup lang="ts">
|
||||
import type { CheckboxRootEmits, CheckboxRootProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { Check } from "@lucide/vue"
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import { CheckboxIndicator, CheckboxRoot, useForwardPropsEmits } from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = defineProps<CheckboxRootProps & { class?: HTMLAttributes["class"] }>()
|
||||
const emits = defineEmits<CheckboxRootEmits>()
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "class")
|
||||
|
||||
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CheckboxRoot
|
||||
v-slot="slotProps"
|
||||
data-slot="checkbox"
|
||||
v-bind="forwarded"
|
||||
:class="
|
||||
cn('peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50',
|
||||
props.class)"
|
||||
>
|
||||
<CheckboxIndicator
|
||||
data-slot="checkbox-indicator"
|
||||
class="grid place-content-center text-current transition-none"
|
||||
>
|
||||
<slot v-bind="slotProps">
|
||||
<Check class="size-3.5" />
|
||||
</slot>
|
||||
</CheckboxIndicator>
|
||||
</CheckboxRoot>
|
||||
</template>
|
||||
1
resources/js/components/ui/checkbox/index.ts
Normal file
1
resources/js/components/ui/checkbox/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { default as Checkbox } from "./Checkbox.vue"
|
||||
19
resources/js/components/ui/dropdown-menu/DropdownMenu.vue
Normal file
19
resources/js/components/ui/dropdown-menu/DropdownMenu.vue
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuRootEmits, DropdownMenuRootProps } from "reka-ui"
|
||||
import { DropdownMenuRoot, useForwardPropsEmits } from "reka-ui"
|
||||
|
||||
const props = defineProps<DropdownMenuRootProps>()
|
||||
const emits = defineEmits<DropdownMenuRootEmits>()
|
||||
|
||||
const forwarded = useForwardPropsEmits(props, emits)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuRoot
|
||||
v-slot="slotProps"
|
||||
data-slot="dropdown-menu"
|
||||
v-bind="forwarded"
|
||||
>
|
||||
<slot v-bind="slotProps" />
|
||||
</DropdownMenuRoot>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuCheckboxItemEmits, DropdownMenuCheckboxItemProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { Check } from "@lucide/vue"
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import {
|
||||
DropdownMenuCheckboxItem,
|
||||
DropdownMenuItemIndicator,
|
||||
useForwardPropsEmits,
|
||||
} from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = defineProps<DropdownMenuCheckboxItemProps & { class?: HTMLAttributes["class"] }>()
|
||||
const emits = defineEmits<DropdownMenuCheckboxItemEmits>()
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "class")
|
||||
|
||||
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuCheckboxItem
|
||||
data-slot="dropdown-menu-checkbox-item"
|
||||
v-bind="forwarded"
|
||||
:class=" cn(
|
||||
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
<span class="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
||||
<DropdownMenuItemIndicator>
|
||||
<slot name="indicator-icon">
|
||||
<Check class="size-4" />
|
||||
</slot>
|
||||
</DropdownMenuItemIndicator>
|
||||
</span>
|
||||
<slot />
|
||||
</DropdownMenuCheckboxItem>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuContentEmits, DropdownMenuContentProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import {
|
||||
DropdownMenuContent,
|
||||
DropdownMenuPortal,
|
||||
useForwardPropsEmits,
|
||||
} from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
defineOptions({
|
||||
inheritAttrs: false,
|
||||
})
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<DropdownMenuContentProps & { class?: HTMLAttributes["class"] }>(),
|
||||
{
|
||||
sideOffset: 4,
|
||||
},
|
||||
)
|
||||
const emits = defineEmits<DropdownMenuContentEmits>()
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "class")
|
||||
|
||||
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuPortal>
|
||||
<DropdownMenuContent
|
||||
data-slot="dropdown-menu-content"
|
||||
v-bind="{ ...$attrs, ...forwarded }"
|
||||
:class="cn('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenuPortal>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuGroupProps } from "reka-ui"
|
||||
import { DropdownMenuGroup } from "reka-ui"
|
||||
|
||||
const props = defineProps<DropdownMenuGroupProps>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuGroup
|
||||
data-slot="dropdown-menu-group"
|
||||
v-bind="props"
|
||||
>
|
||||
<slot />
|
||||
</DropdownMenuGroup>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuItemProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import { DropdownMenuItem, useForwardProps } from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = withDefaults(defineProps<DropdownMenuItemProps & {
|
||||
class?: HTMLAttributes["class"]
|
||||
inset?: boolean
|
||||
variant?: "default" | "destructive"
|
||||
}>(), {
|
||||
variant: "default",
|
||||
})
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "inset", "variant", "class")
|
||||
|
||||
const forwardedProps = useForwardProps(delegatedProps)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuItem
|
||||
data-slot="dropdown-menu-item"
|
||||
:data-inset="inset ? '' : undefined"
|
||||
:data-variant="variant"
|
||||
v-bind="forwardedProps"
|
||||
:class="cn(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`, props.class)"
|
||||
>
|
||||
<slot />
|
||||
</DropdownMenuItem>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuLabelProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import { DropdownMenuLabel, useForwardProps } from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = defineProps<DropdownMenuLabelProps & { class?: HTMLAttributes["class"], inset?: boolean }>()
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "class", "inset")
|
||||
const forwardedProps = useForwardProps(delegatedProps)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuLabel
|
||||
data-slot="dropdown-menu-label"
|
||||
:data-inset="inset ? '' : undefined"
|
||||
v-bind="forwardedProps"
|
||||
:class="cn('px-2 py-1.5 text-sm font-medium data-[inset]:pl-8', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</DropdownMenuLabel>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuRadioGroupEmits, DropdownMenuRadioGroupProps } from "reka-ui"
|
||||
import {
|
||||
DropdownMenuRadioGroup,
|
||||
useForwardPropsEmits,
|
||||
} from "reka-ui"
|
||||
|
||||
const props = defineProps<DropdownMenuRadioGroupProps>()
|
||||
const emits = defineEmits<DropdownMenuRadioGroupEmits>()
|
||||
|
||||
const forwarded = useForwardPropsEmits(props, emits)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuRadioGroup
|
||||
data-slot="dropdown-menu-radio-group"
|
||||
v-bind="forwarded"
|
||||
>
|
||||
<slot />
|
||||
</DropdownMenuRadioGroup>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuRadioItemEmits, DropdownMenuRadioItemProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { Circle } from "@lucide/vue"
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import {
|
||||
DropdownMenuItemIndicator,
|
||||
DropdownMenuRadioItem,
|
||||
useForwardPropsEmits,
|
||||
} from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = defineProps<DropdownMenuRadioItemProps & { class?: HTMLAttributes["class"] }>()
|
||||
|
||||
const emits = defineEmits<DropdownMenuRadioItemEmits>()
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "class")
|
||||
|
||||
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuRadioItem
|
||||
data-slot="dropdown-menu-radio-item"
|
||||
v-bind="forwarded"
|
||||
:class="cn(
|
||||
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
<span class="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
||||
<DropdownMenuItemIndicator>
|
||||
<slot name="indicator-icon">
|
||||
<Circle class="size-2 fill-current" />
|
||||
</slot>
|
||||
</DropdownMenuItemIndicator>
|
||||
</span>
|
||||
<slot />
|
||||
</DropdownMenuRadioItem>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuSeparatorProps } from "reka-ui"
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { reactiveOmit } from "@vueuse/core"
|
||||
import {
|
||||
DropdownMenuSeparator,
|
||||
} from "reka-ui"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = defineProps<DropdownMenuSeparatorProps & {
|
||||
class?: HTMLAttributes["class"]
|
||||
}>()
|
||||
|
||||
const delegatedProps = reactiveOmit(props, "class")
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuSeparator
|
||||
data-slot="dropdown-menu-separator"
|
||||
v-bind="delegatedProps"
|
||||
:class="cn('bg-border -mx-1 my-1 h-px', props.class)"
|
||||
/>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
import type { HTMLAttributes } from "vue"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const props = defineProps<{
|
||||
class?: HTMLAttributes["class"]
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span
|
||||
data-slot="dropdown-menu-shortcut"
|
||||
:class="cn('text-muted-foreground ml-auto text-xs tracking-widest', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</span>
|
||||
</template>
|
||||
18
resources/js/components/ui/dropdown-menu/DropdownMenuSub.vue
Normal file
18
resources/js/components/ui/dropdown-menu/DropdownMenuSub.vue
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<script setup lang="ts">
|
||||
import type { DropdownMenuSubEmits, DropdownMenuSubProps } from "reka-ui"
|
||||
import {
|
||||
DropdownMenuSub,
|
||||
useForwardPropsEmits,
|
||||
} from "reka-ui"
|
||||
|
||||
const props = defineProps<DropdownMenuSubProps>()
|
||||
const emits = defineEmits<DropdownMenuSubEmits>()
|
||||
|
||||
const forwarded = useForwardPropsEmits(props, emits)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<DropdownMenuSub v-slot="slotProps" data-slot="dropdown-menu-sub" v-bind="forwarded">
|
||||
<slot v-bind="slotProps" />
|
||||
</DropdownMenuSub>
|
||||
</template>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue