diff --git a/modules/Stylist/.patch-backups/index-20261020-100844.blade.php b/modules/Stylist/.patch-backups/index-20261020-100844.blade.php new file mode 100644 index 0000000..07e4039 --- /dev/null +++ b/modules/Stylist/.patch-backups/index-20261020-100844.blade.php @@ -0,0 +1,86 @@ +@extends('layouts.app', ['title' => 'Stylist — SonarDesk Administration']) + +@section('content') +
+

Administration

+

Stylist

+

+ Install, configure, validate and export self-contained themes. +

+
+ + @if (session('status')) +
{{ session('status') }}
+ @endif + @if ($errors->any()) +
{{ $errors->first() }}
+ @endif + +
+ @csrf + + +
+ +
+ @foreach ($themes as $item) + @php($saved = $settingsService->get($item)) + @php($variant = $settingsService->variant($item)) + @php($issues = $accessibility->validate($item)) + @php($appearance = $settingsService->appearance($item)) + @php($accent = $settingsService->accent($item)) +
+
+ @if ($item->preview() && $item->has($item->preview())) + {{ $item->name() }} theme preview + @else +
Add preview.webp to this theme
+ @endif +
+
+

{{ $item->name() }}

v{{ $item->version() }}@if($item->author()) · {{ $item->author() }}@endif

@if(($item->type() === 'frontend' && $item->key() === $activeFrontendTheme) || ($item->type() === 'backend' && $item->key() === $activeBackendTheme))Active {{ ucfirst($item->type()) }}@endif
+ @if($item->description())

{{ $item->description() }}

@endif + @if($item->parent())

Child of {{ $item->parent() }}

@endif +
+ @if(in_array($item->type(), ['frontend', 'backend'], true)) +
@csrf
+ Preview + @endif + Export ZIP +
@csrf
+ @if(str_starts_with(realpath($item->path()) ?: '', realpath(config('stylist.themes_path')) ?: '/__never__')) +
@csrf @method('DELETE')
+ @endif +
+
+ Theme settings +
@csrf @method('PUT') + @if($item->variants()) + + @endif + @if($item->supports('dark_mode') || $item->appearances()) + + @endif + @if($item->accents()) +
Accent colour
@foreach($item->accents() as $name => $definition)@endforeach
+ @endif + @foreach($item->settingsSchema() as $key => $definition) + @php($definition = is_array($definition) ? $definition : ['default' => $definition]) + + @endforeach + +
+
+
Accessibility: {{ count($issues) ? count($issues).' issue(s)' : 'passed static checks' }}
+
+
+ @endforeach +
+@endsection diff --git a/modules/Stylist/Resources/views/layouts/app.blade.php b/modules/Stylist/Resources/views/layouts/app.blade.php new file mode 100644 index 0000000..d9e0018 --- /dev/null +++ b/modules/Stylist/Resources/views/layouts/app.blade.php @@ -0,0 +1,93 @@ + + + + + + + + + @yield('title', 'Stylist — Theme Management') + + + + @stack('styles') + + +
+ @yield('content') +
+ + @stack('scripts') + +