@dskripchenko/laravel-admin 1.34.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -5
- package/dist/.vite/manifest.json +2 -2
- package/dist/assets/app-Ce9-9CTP.js +29 -0
- package/dist/assets/{app-DvKbADye.css → app-w16kkVES.css} +1 -1
- package/dist/components/fields/ResourcePickerField.vue.d.ts +34 -0
- package/dist/components/fields/resourcePicker/PickerItemView.vue.d.ts +9 -0
- package/dist/components/fields/resourcePicker/ResourcePickerDialog.vue.d.ts +41 -0
- package/dist/components/fields/resourcePicker/pickerApi.d.ts +44 -0
- package/dist/components/fields/resourcePicker.test.d.ts +1 -0
- package/dist/components/infolist/ResourcePickerEntry.vue.d.ts +17 -0
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +15301 -14674
- package/dist/index.mjs.map +1 -1
- package/dist/source-hash.txt +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/assets/app-Bt8LixFu.js +0 -29
package/README.md
CHANGED
|
@@ -39,8 +39,10 @@ Admin::menu()->add(
|
|
|
39
39
|
- **Dashboard** — 8 widget types (Stats/Chart/RecentList/Markdown/
|
|
40
40
|
Iframe/Table/Heatmap/Gauge), per-user layout overrides, drag/resize,
|
|
41
41
|
polling.
|
|
42
|
-
- **Auth & RBAC** — multi-guard
|
|
43
|
-
|
|
42
|
+
- **Auth & RBAC** — multi-guard; a separate `admin_users` table or your
|
|
43
|
+
existing users ([shared strategy](docs/en/integration.md#2-who-signs-in-dedicated-or-shared)),
|
|
44
|
+
roles, 2FA TOTP, profile, impersonation, password reset, email
|
|
45
|
+
verification.
|
|
44
46
|
- **Audit** — append-only log of admin actions (`AuditLog` + `Loggable`
|
|
45
47
|
trait).
|
|
46
48
|
- **Settings** — singleton-style configuration screens.
|
|
@@ -48,12 +50,13 @@ Admin::menu()->add(
|
|
|
48
50
|
- **API tokens** — Sanctum integration in Profile (conditional).
|
|
49
51
|
- **Theming** — light/dark + per-user preference, `@dskripchenko/ui`
|
|
50
52
|
design tokens.
|
|
51
|
-
- **i18n** — locale resolver (
|
|
53
|
+
- **i18n** — locale resolver (6-step priority), `TranslatableField`
|
|
52
54
|
bridge for `dskripchenko/laravel-translatable`.
|
|
53
55
|
- **Tenancy** — `TenantResolver` / `TenantContext` / `TenantScoped`
|
|
54
56
|
trait. Strategy is host-side; we provide the contract.
|
|
55
57
|
- **Plugins** — `AdminPlugin` interface; sister-packs use the same hook.
|
|
56
|
-
- **Testing** — `
|
|
58
|
+
- **Testing** — `AdminTestCase`, `ActsAsAdmin` and
|
|
59
|
+
`InteractsWithAdminResources` traits.
|
|
57
60
|
- **OpenAPI 3.0** — generated from docblock `@input`/`@output` tags.
|
|
58
61
|
|
|
59
62
|
## Install
|
|
@@ -67,9 +70,14 @@ That's it — the admin SPA ships prebuilt, no Node needed. Visit
|
|
|
67
70
|
`/admin/login`. [Getting started](docs/en/getting-started.md) walks through
|
|
68
71
|
the first resource and the custom-build mode for your own Vue components.
|
|
69
72
|
|
|
73
|
+
Adding it to an application that already has users, its own API or a proxy?
|
|
74
|
+
Read [Adding the admin to an existing application](docs/en/integration.md) —
|
|
75
|
+
including `admin:install --shared`, which lets your existing users sign in.
|
|
76
|
+
|
|
70
77
|
## Documentation
|
|
71
78
|
|
|
72
79
|
- [Getting started](docs/en/getting-started.md)
|
|
80
|
+
- [Adding the admin to an existing application](docs/en/integration.md)
|
|
73
81
|
- [Architecture](docs/en/architecture.md)
|
|
74
82
|
- Concepts: [Resources](docs/en/concepts/resources.md) ·
|
|
75
83
|
[Screens](docs/en/concepts/screens.md) ·
|
|
@@ -92,7 +100,8 @@ the first resource and the custom-build mode for your own Vue components.
|
|
|
92
100
|
- **PHP** ^8.2
|
|
93
101
|
- **Laravel** 11 / 12 / 13
|
|
94
102
|
- **Vue** ^3.4 + TypeScript + Pinia + Vue Router
|
|
95
|
-
- **
|
|
103
|
+
- **Frontend** — prebuilt SPA ~350 KB gz JS + ~35 KB gz CSS; the npm
|
|
104
|
+
library entry for custom builds ~260 KB gz (Vue, Pinia and the UI kit external)
|
|
96
105
|
- **WYSIWYG** — `@dskripchenko/wysiwyg` by default; Quill and TinyMCE
|
|
97
106
|
adapters ship in the npm package (`/quill`, `/tinymce`)
|
|
98
107
|
|
package/dist/.vite/manifest.json
CHANGED