Add built-in screens (login, profile, menu, posts), per-user and site themes
This commit is contained in:
1 parent
4bf0a8bbb0
commit
351667abaf
46 files changed
+3720
-12
No files matched your search
@@ -21,6 +21,21 @@ php artisan manager:doctor --json # non-zero exit when something is wrong; eac
|
||||
`resources/ai/INTEGRATION.md` is a step-by-step guide for an agent; `resources/boost/guidelines/core.blade.php`
|
||||
is picked up by Laravel Boost.
|
||||
|
||||
## Screens and themes
|
||||
|
||||
The package brings its own screens (a small Vue app on the JSON routes, already built: your app needs no Node). They also
|
||||
give an app without a login a login and a profile. `MANAGER_UI=none` turns them off, for an app that builds its own screens
|
||||
on the JSON routes. A browser that opens a manager address gets the page; anything that asks for JSON gets the data.
|
||||
|
||||
- **Looks.** Built in are `dark` and `light`. `MANAGER_THEME` is what everyone sees until they choose; with
|
||||
`MANAGER_USER_THEMES=true` (default) each account picks its own in its profile.
|
||||
- **The house style of the site.** `php artisan manager:make-theme acme --brand=#e4002b --name="Acme" --logo=/img/logo.svg --font="Inter, sans-serif"`
|
||||
writes `resources/manager-themes/acme.json`; set `MANAGER_THEME=acme`. A theme is colours, a radius, fonts, a name and a logo, and every
|
||||
value is checked, so a theme file can never put CSS or markup in the page. Themes can also be listed in `manager.themes`.
|
||||
- **Not built yet:** screens for the other modules (they show a notice for now) and a theme editor in the manager.
|
||||
- **Working on the screens:** the sources are in `ui/`; `npm ci && npm run build` there writes `resources/dist`, which is committed
|
||||
(PR CI fails when it is out of date).
|
||||
|
||||
## Modules
|
||||
|
||||
| Key | What | Default |
|
||||
|
||||
Reference in new issue
Block a user