Add resources defined in config and a bundle of the site's own screens
This commit is contained in:
1 parent
37a29d9195
commit
3345797141
35 files changed
+905
-19
No files matched your search
@@ -52,6 +52,7 @@ return [
|
||||
Modules\Reviews\ReviewsModule::class,
|
||||
Modules\Audit\AuditModule::class,
|
||||
Modules\Statistics\StatisticsModule::class,
|
||||
Modules\Resources\ResourcesModule::class,
|
||||
],
|
||||
|
||||
/*
|
||||
@@ -67,6 +68,7 @@ return [
|
||||
'reviews' => env('MANAGER_REVIEWS', false),
|
||||
'audit' => env('MANAGER_AUDIT', false),
|
||||
'statistics' => env('MANAGER_STATISTICS', false),
|
||||
'resources' => true,
|
||||
],
|
||||
|
||||
/*
|
||||
@@ -157,6 +159,22 @@ return [
|
||||
*/
|
||||
'pages' => ['definitions' => []],
|
||||
|
||||
/*
|
||||
| Lists the site manages without code of its own: a form, a list, permissions (`<key>.view`, `<key>.manage`)
|
||||
| and a menu item for each. `model` keeps the records in a model of the site (the field keys are its
|
||||
| attributes); without it they go into the package's own table. Fields: see `pages`.
|
||||
| 'services' => ['label' => 'Services', 'singular' => 'Service', 'model' => App\Models\Service::class,
|
||||
| 'columns' => ['name', 'price'], 'order' => ['position', 'asc'], 'fields' => ['name' => ['type' => 'text', 'required' => true], ...]]
|
||||
*/
|
||||
'resources' => [],
|
||||
|
||||
/*
|
||||
| A bundle of the site's own screens: JavaScript modules (a path of the site, or https) the manager loads next to its own,
|
||||
| after it has started. They add screens with `IriksManager.register('^/leads$', Component, { data: true })`, and may
|
||||
| `import { ref } from 'vue'` when the build leaves `vue` external. See README, "Your own screens".
|
||||
*/
|
||||
'extensions' => [],
|
||||
|
||||
/*
|
||||
| The menu. `items` changes what a module gives, by the route name without the prefix:
|
||||
| 'posts.index' => ['order' => 10, 'section' => 'Content', 'icon' => 'file', 'simple' => true, 'hidden' => false].
|
||||
|
||||
Reference in new issue
Block a user