Skip to content

Commit 8743214

Browse files
committed
theme maker
1 parent dba6f4f commit 8743214

68 files changed

Lines changed: 823 additions & 356 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/Http/Controllers/Tools/ThemeController.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ public function index(): Response
2525

2626
public function create(): Response
2727
{
28-
return Inertia::render('tools/theme/create');
28+
$fonts = \App\Models\Registry::fonts()->get(['name', 'title', 'description']);
29+
30+
return Inertia::render('tools/theme/create', [
31+
'fonts' => $fonts,
32+
]);
2933
}
3034

3135
public function store(ThemeStoreRequest $request): RedirectResponse
@@ -65,6 +69,8 @@ public function show(Theme $theme): Response
6569

6670
public function edit(Theme $theme): Response
6771
{
72+
$fonts = \App\Models\Registry::fonts()->get(['name', 'title', 'description']);
73+
6874
return Inertia::render('tools/theme/edit', [
6975
'theme' => [
7076
'id' => $theme->id,
@@ -76,6 +82,7 @@ public function edit(Theme $theme): Response
7682
'css' => $theme->css,
7783
'meta' => $theme->meta,
7884
],
85+
'fonts' => $fonts,
7986
]);
8087
}
8188

public/build/assets/ThemeController-BSYf02dG.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/assets/ThemeController-CHwvIyKH.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)