@dskripchenko/laravel-admin 1.1.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/LICENSE +21 -0
- package/README.md +226 -0
- package/dist/.gitkeep +0 -0
- package/dist/api/bootstrap.d.ts +38 -0
- package/dist/api/bootstrap.test.d.ts +1 -0
- package/dist/api/client.d.ts +30 -0
- package/dist/api/client.test.d.ts +1 -0
- package/dist/api/envelope.d.ts +24 -0
- package/dist/api/envelope.test.d.ts +1 -0
- package/dist/api/errors.d.ts +40 -0
- package/dist/api/errors.test.d.ts +1 -0
- package/dist/components/AdminApp.vue.d.ts +2 -0
- package/dist/components/ForbiddenPage.vue.d.ts +2 -0
- package/dist/components/HomePage.vue.d.ts +2 -0
- package/dist/components/NotFoundPage.vue.d.ts +2 -0
- package/dist/components/SettingsPage.vue.d.ts +2 -0
- package/dist/components/UnknownScreenPage.vue.d.ts +2 -0
- package/dist/components/auth/LoginForm.test.d.ts +1 -0
- package/dist/components/auth/LoginForm.vue.d.ts +17 -0
- package/dist/components/auth/LoginPage.test.d.ts +1 -0
- package/dist/components/auth/LoginPage.vue.d.ts +26 -0
- package/dist/components/auth/TwoFactorForm.test.d.ts +1 -0
- package/dist/components/auth/TwoFactorForm.vue.d.ts +8 -0
- package/dist/components/auth/index.d.ts +6 -0
- package/dist/components/createComponentRegistry.d.ts +22 -0
- package/dist/components/dashboard/BarChartWidget.vue.d.ts +18 -0
- package/dist/components/dashboard/DashboardPage.test.d.ts +1 -0
- package/dist/components/dashboard/DashboardPage.vue.d.ts +28 -0
- package/dist/components/dashboard/DonutChartWidget.vue.d.ts +13 -0
- package/dist/components/dashboard/GaugeWidget.vue.d.ts +29 -0
- package/dist/components/dashboard/HeatmapWidget.vue.d.ts +18 -0
- package/dist/components/dashboard/MarkdownWidget.vue.d.ts +8 -0
- package/dist/components/dashboard/RecentTableWidget.vue.d.ts +12 -0
- package/dist/components/dashboard/StatWidget.vue.d.ts +22 -0
- package/dist/components/dashboard/UnknownWidget.vue.d.ts +5 -0
- package/dist/components/dashboard/WidgetRenderer.vue.d.ts +10 -0
- package/dist/components/dashboard/builtin.d.ts +4 -0
- package/dist/components/dashboard/index.d.ts +16 -0
- package/dist/components/dashboard/registry.d.ts +25 -0
- package/dist/components/dashboard/registry.test.d.ts +1 -0
- package/dist/components/fields/CheckboxField.vue.d.ts +16 -0
- package/dist/components/fields/DateField.vue.d.ts +25 -0
- package/dist/components/fields/NumberField.vue.d.ts +24 -0
- package/dist/components/fields/SelectField.vue.d.ts +28 -0
- package/dist/components/fields/TextAreaField.vue.d.ts +20 -0
- package/dist/components/fields/TextField.vue.d.ts +22 -0
- package/dist/components/fields/UnknownField.vue.d.ts +6 -0
- package/dist/components/fields/fields.test.d.ts +1 -0
- package/dist/components/fields/wysiwyg/quill/QuillField.vue.d.ts +26 -0
- package/dist/components/fields/wysiwyg/quill/index.d.ts +12 -0
- package/dist/components/fields/wysiwyg/tinymce/TinymceField.vue.d.ts +31 -0
- package/dist/components/fields/wysiwyg/tinymce/index.d.ts +12 -0
- package/dist/components/gallery/FieldGalleryPage.test.d.ts +1 -0
- package/dist/components/gallery/FieldGalleryPage.vue.d.ts +2 -0
- package/dist/components/gallery/index.d.ts +1 -0
- package/dist/components/import/ImportWizardPage.test.d.ts +1 -0
- package/dist/components/import/ImportWizardPage.vue.d.ts +59 -0
- package/dist/components/import/index.d.ts +1 -0
- package/dist/components/infolist/BadgeEntry.vue.d.ts +18 -0
- package/dist/components/infolist/IconEntry.vue.d.ts +22 -0
- package/dist/components/infolist/InfolistRenderer.test.d.ts +1 -0
- package/dist/components/infolist/InfolistRenderer.vue.d.ts +11 -0
- package/dist/components/infolist/KeyValueEntry.vue.d.ts +11 -0
- package/dist/components/infolist/TextEntry.vue.d.ts +17 -0
- package/dist/components/infolist/UnknownEntry.vue.d.ts +6 -0
- package/dist/components/infolist/builtin.d.ts +4 -0
- package/dist/components/infolist/index.d.ts +13 -0
- package/dist/components/infolist/recordContext.d.ts +9 -0
- package/dist/components/infolist/registry.d.ts +19 -0
- package/dist/components/infolist/registry.test.d.ts +1 -0
- package/dist/components/layouts/ColumnsLayout.vue.d.ts +13 -0
- package/dist/components/layouts/RowsLayout.vue.d.ts +10 -0
- package/dist/components/layouts/SectionLayout.vue.d.ts +11 -0
- package/dist/components/layouts/TabsLayout.vue.d.ts +22 -0
- package/dist/components/notifications/NotificationsDrawer.test.d.ts +1 -0
- package/dist/components/notifications/NotificationsDrawer.vue.d.ts +13 -0
- package/dist/components/notifications/index.d.ts +1 -0
- package/dist/components/profile/ProfilePage.test.d.ts +1 -0
- package/dist/components/profile/ProfilePage.vue.d.ts +50 -0
- package/dist/components/profile/index.d.ts +1 -0
- package/dist/components/render/FieldRenderer.test.d.ts +1 -0
- package/dist/components/render/FieldRenderer.vue.d.ts +9 -0
- package/dist/components/render/LayoutRenderer.test.d.ts +1 -0
- package/dist/components/render/LayoutRenderer.vue.d.ts +10 -0
- package/dist/components/render/builtin.d.ts +9 -0
- package/dist/components/render/formState.d.ts +36 -0
- package/dist/components/render/formState.test.d.ts +1 -0
- package/dist/components/render/index.d.ts +23 -0
- package/dist/components/render/registry.d.ts +35 -0
- package/dist/components/render/registry.test.d.ts +1 -0
- package/dist/components/resource/ResourceFormPage.test.d.ts +1 -0
- package/dist/components/resource/ResourceFormPage.vue.d.ts +13 -0
- package/dist/components/resource/ResourceIndexPage.test.d.ts +1 -0
- package/dist/components/resource/ResourceIndexPage.vue.d.ts +44 -0
- package/dist/components/resource/ResourceViewPage.test.d.ts +1 -0
- package/dist/components/resource/ResourceViewPage.vue.d.ts +13 -0
- package/dist/components/resource/index.d.ts +6 -0
- package/dist/components/shell/AdminShell.vue.d.ts +35 -0
- package/dist/components/shell/AdminSidebar.test.d.ts +1 -0
- package/dist/components/shell/AdminSidebar.vue.d.ts +27 -0
- package/dist/components/shell/AdminTopBar.test.d.ts +1 -0
- package/dist/components/shell/AdminTopBar.vue.d.ts +33 -0
- package/dist/components/shell/index.d.ts +18 -0
- package/dist/components/shell/widgets/LocaleSwitcher.test.d.ts +1 -0
- package/dist/components/shell/widgets/LocaleSwitcher.vue.d.ts +2 -0
- package/dist/components/shell/widgets/NotificationBell.vue.d.ts +2 -0
- package/dist/components/shell/widgets/ThemeToggle.test.d.ts +1 -0
- package/dist/components/shell/widgets/ThemeToggle.vue.d.ts +2 -0
- package/dist/components/shell/widgets/UserMenu.test.d.ts +1 -0
- package/dist/components/shell/widgets/UserMenu.vue.d.ts +2 -0
- package/dist/createAdminApp.d.ts +85 -0
- package/dist/createAdminApp.test.d.ts +1 -0
- package/dist/formState-DGNcH1XQ.js +40 -0
- package/dist/formState-DGNcH1XQ.js.map +1 -0
- package/dist/formState-GlJBphEn.cjs +2 -0
- package/dist/formState-GlJBphEn.cjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.mjs +4345 -0
- package/dist/index.mjs.map +1 -0
- package/dist/quill.cjs +2 -0
- package/dist/quill.cjs.map +1 -0
- package/dist/quill.mjs +71 -0
- package/dist/quill.mjs.map +1 -0
- package/dist/router/builder.d.ts +52 -0
- package/dist/router/builder.test.d.ts +1 -0
- package/dist/router/guards.d.ts +56 -0
- package/dist/router/guards.test.d.ts +1 -0
- package/dist/router/index.d.ts +63 -0
- package/dist/router/index.test.d.ts +1 -0
- package/dist/stores/auth.d.ts +142 -0
- package/dist/stores/auth.test.d.ts +1 -0
- package/dist/stores/index.d.ts +21 -0
- package/dist/stores/locale.d.ts +29 -0
- package/dist/stores/locale.test.d.ts +1 -0
- package/dist/stores/manifest.d.ts +515 -0
- package/dist/stores/manifest.test.d.ts +1 -0
- package/dist/stores/menu.d.ts +215 -0
- package/dist/stores/menu.test.d.ts +1 -0
- package/dist/stores/notifications.d.ts +137 -0
- package/dist/stores/notifications.test.d.ts +1 -0
- package/dist/stores/registry.d.ts +16 -0
- package/dist/stores/registry.test.d.ts +1 -0
- package/dist/stores/resourceForm.d.ts +91 -0
- package/dist/stores/resourceForm.test.d.ts +1 -0
- package/dist/stores/resourceIndex.d.ts +149 -0
- package/dist/stores/resourceIndex.test.d.ts +1 -0
- package/dist/stores/theme.d.ts +29 -0
- package/dist/stores/theme.test.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/tinymce.cjs +2 -0
- package/dist/tinymce.cjs.map +1 -0
- package/dist/tinymce.mjs +80 -0
- package/dist/tinymce.mjs.map +1 -0
- package/dist/types/bootstrap.d.ts +50 -0
- package/package.json +162 -0
- package/resources/fonts/InterDisplay-Bold.woff2 +0 -0
- package/resources/fonts/InterDisplay-ExtraBold.woff2 +0 -0
- package/resources/fonts/InterDisplay-SemiBold.woff2 +0 -0
- package/resources/fonts/InterVariable-Italic.woff2 +0 -0
- package/resources/fonts/InterVariable.woff2 +0 -0
- package/resources/fonts/fonts.css +69 -0
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manifest store: lazy-load JSON-манифеста админки + кеширование по version.
|
|
3
|
+
*
|
|
4
|
+
* Manifest содержит описание всех Resource'ов, Screen'ов, Settings'ов,
|
|
5
|
+
* Plugin'ов. SPA загружает один раз на старте и переиспользует.
|
|
6
|
+
*
|
|
7
|
+
* ETag-based 304 Not Modified backend-side — фронт ничего особенного не
|
|
8
|
+
* делает (axios + browser handle If-None-Match). Свежий version записывается
|
|
9
|
+
* в lastVersion для cheap-сравнения.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Узел manifest'а с обязательным `type`. Совместим с LayoutNode/FieldNode/
|
|
13
|
+
* InfolistNode — позволяет передавать массив прямо в renderer без cast'а.
|
|
14
|
+
*/
|
|
15
|
+
export interface ManifestNode extends Record<string, unknown> {
|
|
16
|
+
type: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ManifestResourceMeta {
|
|
19
|
+
slug: string;
|
|
20
|
+
label: string;
|
|
21
|
+
icon?: string;
|
|
22
|
+
group?: string | null;
|
|
23
|
+
permissions: Record<string, string>;
|
|
24
|
+
fields: ManifestNode[];
|
|
25
|
+
columns: ManifestNode[];
|
|
26
|
+
filters: ManifestNode[];
|
|
27
|
+
actions: ManifestNode[];
|
|
28
|
+
searchable: string[];
|
|
29
|
+
with: string[];
|
|
30
|
+
features: Record<string, unknown>;
|
|
31
|
+
screens?: Record<string, unknown>;
|
|
32
|
+
}
|
|
33
|
+
export interface ManifestScreenMeta {
|
|
34
|
+
slug: string;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string | null;
|
|
37
|
+
permission: string[] | string | null;
|
|
38
|
+
}
|
|
39
|
+
export interface ManifestSettingsMeta {
|
|
40
|
+
kind: 'settings';
|
|
41
|
+
slug: string;
|
|
42
|
+
label: string;
|
|
43
|
+
permissions: Record<string, string>;
|
|
44
|
+
fields: ManifestNode[];
|
|
45
|
+
}
|
|
46
|
+
export interface AdminManifest {
|
|
47
|
+
version: string;
|
|
48
|
+
locale: string;
|
|
49
|
+
resources: ManifestResourceMeta[];
|
|
50
|
+
screens: ManifestScreenMeta[];
|
|
51
|
+
settings: ManifestSettingsMeta[];
|
|
52
|
+
dashboards: unknown[];
|
|
53
|
+
plugins: string[];
|
|
54
|
+
permissions: unknown[];
|
|
55
|
+
}
|
|
56
|
+
export declare const useManifestStore: import("pinia").StoreDefinition<"admin-manifest", Pick<{
|
|
57
|
+
manifest: import("vue").Ref<{
|
|
58
|
+
version: string;
|
|
59
|
+
locale: string;
|
|
60
|
+
resources: {
|
|
61
|
+
slug: string;
|
|
62
|
+
label: string;
|
|
63
|
+
icon?: string | undefined;
|
|
64
|
+
group?: string | null | undefined;
|
|
65
|
+
permissions: Record<string, string>;
|
|
66
|
+
fields: {
|
|
67
|
+
[x: string]: unknown;
|
|
68
|
+
type: string;
|
|
69
|
+
}[];
|
|
70
|
+
columns: {
|
|
71
|
+
[x: string]: unknown;
|
|
72
|
+
type: string;
|
|
73
|
+
}[];
|
|
74
|
+
filters: {
|
|
75
|
+
[x: string]: unknown;
|
|
76
|
+
type: string;
|
|
77
|
+
}[];
|
|
78
|
+
actions: {
|
|
79
|
+
[x: string]: unknown;
|
|
80
|
+
type: string;
|
|
81
|
+
}[];
|
|
82
|
+
searchable: string[];
|
|
83
|
+
with: string[];
|
|
84
|
+
features: Record<string, unknown>;
|
|
85
|
+
screens?: Record<string, unknown> | undefined;
|
|
86
|
+
}[];
|
|
87
|
+
screens: {
|
|
88
|
+
slug: string;
|
|
89
|
+
name: string;
|
|
90
|
+
description: string | null;
|
|
91
|
+
permission: string[] | string | null;
|
|
92
|
+
}[];
|
|
93
|
+
settings: {
|
|
94
|
+
kind: "settings";
|
|
95
|
+
slug: string;
|
|
96
|
+
label: string;
|
|
97
|
+
permissions: Record<string, string>;
|
|
98
|
+
fields: {
|
|
99
|
+
[x: string]: unknown;
|
|
100
|
+
type: string;
|
|
101
|
+
}[];
|
|
102
|
+
}[];
|
|
103
|
+
dashboards: unknown[];
|
|
104
|
+
plugins: string[];
|
|
105
|
+
permissions: unknown[];
|
|
106
|
+
} | null, AdminManifest | {
|
|
107
|
+
version: string;
|
|
108
|
+
locale: string;
|
|
109
|
+
resources: {
|
|
110
|
+
slug: string;
|
|
111
|
+
label: string;
|
|
112
|
+
icon?: string | undefined;
|
|
113
|
+
group?: string | null | undefined;
|
|
114
|
+
permissions: Record<string, string>;
|
|
115
|
+
fields: {
|
|
116
|
+
[x: string]: unknown;
|
|
117
|
+
type: string;
|
|
118
|
+
}[];
|
|
119
|
+
columns: {
|
|
120
|
+
[x: string]: unknown;
|
|
121
|
+
type: string;
|
|
122
|
+
}[];
|
|
123
|
+
filters: {
|
|
124
|
+
[x: string]: unknown;
|
|
125
|
+
type: string;
|
|
126
|
+
}[];
|
|
127
|
+
actions: {
|
|
128
|
+
[x: string]: unknown;
|
|
129
|
+
type: string;
|
|
130
|
+
}[];
|
|
131
|
+
searchable: string[];
|
|
132
|
+
with: string[];
|
|
133
|
+
features: Record<string, unknown>;
|
|
134
|
+
screens?: Record<string, unknown> | undefined;
|
|
135
|
+
}[];
|
|
136
|
+
screens: {
|
|
137
|
+
slug: string;
|
|
138
|
+
name: string;
|
|
139
|
+
description: string | null;
|
|
140
|
+
permission: string[] | string | null;
|
|
141
|
+
}[];
|
|
142
|
+
settings: {
|
|
143
|
+
kind: "settings";
|
|
144
|
+
slug: string;
|
|
145
|
+
label: string;
|
|
146
|
+
permissions: Record<string, string>;
|
|
147
|
+
fields: {
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
type: string;
|
|
150
|
+
}[];
|
|
151
|
+
}[];
|
|
152
|
+
dashboards: unknown[];
|
|
153
|
+
plugins: string[];
|
|
154
|
+
permissions: unknown[];
|
|
155
|
+
} | null>;
|
|
156
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
157
|
+
error: import("vue").Ref<Error | null, Error | null>;
|
|
158
|
+
isLoaded: import("vue").ComputedRef<boolean>;
|
|
159
|
+
version: import("vue").ComputedRef<string | null>;
|
|
160
|
+
resources: import("vue").ComputedRef<{
|
|
161
|
+
slug: string;
|
|
162
|
+
label: string;
|
|
163
|
+
icon?: string | undefined;
|
|
164
|
+
group?: string | null | undefined;
|
|
165
|
+
permissions: Record<string, string>;
|
|
166
|
+
fields: {
|
|
167
|
+
[x: string]: unknown;
|
|
168
|
+
type: string;
|
|
169
|
+
}[];
|
|
170
|
+
columns: {
|
|
171
|
+
[x: string]: unknown;
|
|
172
|
+
type: string;
|
|
173
|
+
}[];
|
|
174
|
+
filters: {
|
|
175
|
+
[x: string]: unknown;
|
|
176
|
+
type: string;
|
|
177
|
+
}[];
|
|
178
|
+
actions: {
|
|
179
|
+
[x: string]: unknown;
|
|
180
|
+
type: string;
|
|
181
|
+
}[];
|
|
182
|
+
searchable: string[];
|
|
183
|
+
with: string[];
|
|
184
|
+
features: Record<string, unknown>;
|
|
185
|
+
screens?: Record<string, unknown> | undefined;
|
|
186
|
+
}[]>;
|
|
187
|
+
screens: import("vue").ComputedRef<{
|
|
188
|
+
slug: string;
|
|
189
|
+
name: string;
|
|
190
|
+
description: string | null;
|
|
191
|
+
permission: string[] | string | null;
|
|
192
|
+
}[]>;
|
|
193
|
+
settings: import("vue").ComputedRef<{
|
|
194
|
+
kind: "settings";
|
|
195
|
+
slug: string;
|
|
196
|
+
label: string;
|
|
197
|
+
permissions: Record<string, string>;
|
|
198
|
+
fields: {
|
|
199
|
+
[x: string]: unknown;
|
|
200
|
+
type: string;
|
|
201
|
+
}[];
|
|
202
|
+
}[]>;
|
|
203
|
+
plugins: import("vue").ComputedRef<string[]>;
|
|
204
|
+
getResource: (slug: string) => ManifestResourceMeta | null;
|
|
205
|
+
getScreen: (slug: string) => ManifestScreenMeta | null;
|
|
206
|
+
getSettings: (slug: string) => ManifestSettingsMeta | null;
|
|
207
|
+
load: (force?: boolean) => Promise<AdminManifest>;
|
|
208
|
+
reset: () => void;
|
|
209
|
+
}, "loading" | "error" | "manifest">, Pick<{
|
|
210
|
+
manifest: import("vue").Ref<{
|
|
211
|
+
version: string;
|
|
212
|
+
locale: string;
|
|
213
|
+
resources: {
|
|
214
|
+
slug: string;
|
|
215
|
+
label: string;
|
|
216
|
+
icon?: string | undefined;
|
|
217
|
+
group?: string | null | undefined;
|
|
218
|
+
permissions: Record<string, string>;
|
|
219
|
+
fields: {
|
|
220
|
+
[x: string]: unknown;
|
|
221
|
+
type: string;
|
|
222
|
+
}[];
|
|
223
|
+
columns: {
|
|
224
|
+
[x: string]: unknown;
|
|
225
|
+
type: string;
|
|
226
|
+
}[];
|
|
227
|
+
filters: {
|
|
228
|
+
[x: string]: unknown;
|
|
229
|
+
type: string;
|
|
230
|
+
}[];
|
|
231
|
+
actions: {
|
|
232
|
+
[x: string]: unknown;
|
|
233
|
+
type: string;
|
|
234
|
+
}[];
|
|
235
|
+
searchable: string[];
|
|
236
|
+
with: string[];
|
|
237
|
+
features: Record<string, unknown>;
|
|
238
|
+
screens?: Record<string, unknown> | undefined;
|
|
239
|
+
}[];
|
|
240
|
+
screens: {
|
|
241
|
+
slug: string;
|
|
242
|
+
name: string;
|
|
243
|
+
description: string | null;
|
|
244
|
+
permission: string[] | string | null;
|
|
245
|
+
}[];
|
|
246
|
+
settings: {
|
|
247
|
+
kind: "settings";
|
|
248
|
+
slug: string;
|
|
249
|
+
label: string;
|
|
250
|
+
permissions: Record<string, string>;
|
|
251
|
+
fields: {
|
|
252
|
+
[x: string]: unknown;
|
|
253
|
+
type: string;
|
|
254
|
+
}[];
|
|
255
|
+
}[];
|
|
256
|
+
dashboards: unknown[];
|
|
257
|
+
plugins: string[];
|
|
258
|
+
permissions: unknown[];
|
|
259
|
+
} | null, AdminManifest | {
|
|
260
|
+
version: string;
|
|
261
|
+
locale: string;
|
|
262
|
+
resources: {
|
|
263
|
+
slug: string;
|
|
264
|
+
label: string;
|
|
265
|
+
icon?: string | undefined;
|
|
266
|
+
group?: string | null | undefined;
|
|
267
|
+
permissions: Record<string, string>;
|
|
268
|
+
fields: {
|
|
269
|
+
[x: string]: unknown;
|
|
270
|
+
type: string;
|
|
271
|
+
}[];
|
|
272
|
+
columns: {
|
|
273
|
+
[x: string]: unknown;
|
|
274
|
+
type: string;
|
|
275
|
+
}[];
|
|
276
|
+
filters: {
|
|
277
|
+
[x: string]: unknown;
|
|
278
|
+
type: string;
|
|
279
|
+
}[];
|
|
280
|
+
actions: {
|
|
281
|
+
[x: string]: unknown;
|
|
282
|
+
type: string;
|
|
283
|
+
}[];
|
|
284
|
+
searchable: string[];
|
|
285
|
+
with: string[];
|
|
286
|
+
features: Record<string, unknown>;
|
|
287
|
+
screens?: Record<string, unknown> | undefined;
|
|
288
|
+
}[];
|
|
289
|
+
screens: {
|
|
290
|
+
slug: string;
|
|
291
|
+
name: string;
|
|
292
|
+
description: string | null;
|
|
293
|
+
permission: string[] | string | null;
|
|
294
|
+
}[];
|
|
295
|
+
settings: {
|
|
296
|
+
kind: "settings";
|
|
297
|
+
slug: string;
|
|
298
|
+
label: string;
|
|
299
|
+
permissions: Record<string, string>;
|
|
300
|
+
fields: {
|
|
301
|
+
[x: string]: unknown;
|
|
302
|
+
type: string;
|
|
303
|
+
}[];
|
|
304
|
+
}[];
|
|
305
|
+
dashboards: unknown[];
|
|
306
|
+
plugins: string[];
|
|
307
|
+
permissions: unknown[];
|
|
308
|
+
} | null>;
|
|
309
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
310
|
+
error: import("vue").Ref<Error | null, Error | null>;
|
|
311
|
+
isLoaded: import("vue").ComputedRef<boolean>;
|
|
312
|
+
version: import("vue").ComputedRef<string | null>;
|
|
313
|
+
resources: import("vue").ComputedRef<{
|
|
314
|
+
slug: string;
|
|
315
|
+
label: string;
|
|
316
|
+
icon?: string | undefined;
|
|
317
|
+
group?: string | null | undefined;
|
|
318
|
+
permissions: Record<string, string>;
|
|
319
|
+
fields: {
|
|
320
|
+
[x: string]: unknown;
|
|
321
|
+
type: string;
|
|
322
|
+
}[];
|
|
323
|
+
columns: {
|
|
324
|
+
[x: string]: unknown;
|
|
325
|
+
type: string;
|
|
326
|
+
}[];
|
|
327
|
+
filters: {
|
|
328
|
+
[x: string]: unknown;
|
|
329
|
+
type: string;
|
|
330
|
+
}[];
|
|
331
|
+
actions: {
|
|
332
|
+
[x: string]: unknown;
|
|
333
|
+
type: string;
|
|
334
|
+
}[];
|
|
335
|
+
searchable: string[];
|
|
336
|
+
with: string[];
|
|
337
|
+
features: Record<string, unknown>;
|
|
338
|
+
screens?: Record<string, unknown> | undefined;
|
|
339
|
+
}[]>;
|
|
340
|
+
screens: import("vue").ComputedRef<{
|
|
341
|
+
slug: string;
|
|
342
|
+
name: string;
|
|
343
|
+
description: string | null;
|
|
344
|
+
permission: string[] | string | null;
|
|
345
|
+
}[]>;
|
|
346
|
+
settings: import("vue").ComputedRef<{
|
|
347
|
+
kind: "settings";
|
|
348
|
+
slug: string;
|
|
349
|
+
label: string;
|
|
350
|
+
permissions: Record<string, string>;
|
|
351
|
+
fields: {
|
|
352
|
+
[x: string]: unknown;
|
|
353
|
+
type: string;
|
|
354
|
+
}[];
|
|
355
|
+
}[]>;
|
|
356
|
+
plugins: import("vue").ComputedRef<string[]>;
|
|
357
|
+
getResource: (slug: string) => ManifestResourceMeta | null;
|
|
358
|
+
getScreen: (slug: string) => ManifestScreenMeta | null;
|
|
359
|
+
getSettings: (slug: string) => ManifestSettingsMeta | null;
|
|
360
|
+
load: (force?: boolean) => Promise<AdminManifest>;
|
|
361
|
+
reset: () => void;
|
|
362
|
+
}, "isLoaded" | "version" | "settings" | "resources" | "screens" | "plugins">, Pick<{
|
|
363
|
+
manifest: import("vue").Ref<{
|
|
364
|
+
version: string;
|
|
365
|
+
locale: string;
|
|
366
|
+
resources: {
|
|
367
|
+
slug: string;
|
|
368
|
+
label: string;
|
|
369
|
+
icon?: string | undefined;
|
|
370
|
+
group?: string | null | undefined;
|
|
371
|
+
permissions: Record<string, string>;
|
|
372
|
+
fields: {
|
|
373
|
+
[x: string]: unknown;
|
|
374
|
+
type: string;
|
|
375
|
+
}[];
|
|
376
|
+
columns: {
|
|
377
|
+
[x: string]: unknown;
|
|
378
|
+
type: string;
|
|
379
|
+
}[];
|
|
380
|
+
filters: {
|
|
381
|
+
[x: string]: unknown;
|
|
382
|
+
type: string;
|
|
383
|
+
}[];
|
|
384
|
+
actions: {
|
|
385
|
+
[x: string]: unknown;
|
|
386
|
+
type: string;
|
|
387
|
+
}[];
|
|
388
|
+
searchable: string[];
|
|
389
|
+
with: string[];
|
|
390
|
+
features: Record<string, unknown>;
|
|
391
|
+
screens?: Record<string, unknown> | undefined;
|
|
392
|
+
}[];
|
|
393
|
+
screens: {
|
|
394
|
+
slug: string;
|
|
395
|
+
name: string;
|
|
396
|
+
description: string | null;
|
|
397
|
+
permission: string[] | string | null;
|
|
398
|
+
}[];
|
|
399
|
+
settings: {
|
|
400
|
+
kind: "settings";
|
|
401
|
+
slug: string;
|
|
402
|
+
label: string;
|
|
403
|
+
permissions: Record<string, string>;
|
|
404
|
+
fields: {
|
|
405
|
+
[x: string]: unknown;
|
|
406
|
+
type: string;
|
|
407
|
+
}[];
|
|
408
|
+
}[];
|
|
409
|
+
dashboards: unknown[];
|
|
410
|
+
plugins: string[];
|
|
411
|
+
permissions: unknown[];
|
|
412
|
+
} | null, AdminManifest | {
|
|
413
|
+
version: string;
|
|
414
|
+
locale: string;
|
|
415
|
+
resources: {
|
|
416
|
+
slug: string;
|
|
417
|
+
label: string;
|
|
418
|
+
icon?: string | undefined;
|
|
419
|
+
group?: string | null | undefined;
|
|
420
|
+
permissions: Record<string, string>;
|
|
421
|
+
fields: {
|
|
422
|
+
[x: string]: unknown;
|
|
423
|
+
type: string;
|
|
424
|
+
}[];
|
|
425
|
+
columns: {
|
|
426
|
+
[x: string]: unknown;
|
|
427
|
+
type: string;
|
|
428
|
+
}[];
|
|
429
|
+
filters: {
|
|
430
|
+
[x: string]: unknown;
|
|
431
|
+
type: string;
|
|
432
|
+
}[];
|
|
433
|
+
actions: {
|
|
434
|
+
[x: string]: unknown;
|
|
435
|
+
type: string;
|
|
436
|
+
}[];
|
|
437
|
+
searchable: string[];
|
|
438
|
+
with: string[];
|
|
439
|
+
features: Record<string, unknown>;
|
|
440
|
+
screens?: Record<string, unknown> | undefined;
|
|
441
|
+
}[];
|
|
442
|
+
screens: {
|
|
443
|
+
slug: string;
|
|
444
|
+
name: string;
|
|
445
|
+
description: string | null;
|
|
446
|
+
permission: string[] | string | null;
|
|
447
|
+
}[];
|
|
448
|
+
settings: {
|
|
449
|
+
kind: "settings";
|
|
450
|
+
slug: string;
|
|
451
|
+
label: string;
|
|
452
|
+
permissions: Record<string, string>;
|
|
453
|
+
fields: {
|
|
454
|
+
[x: string]: unknown;
|
|
455
|
+
type: string;
|
|
456
|
+
}[];
|
|
457
|
+
}[];
|
|
458
|
+
dashboards: unknown[];
|
|
459
|
+
plugins: string[];
|
|
460
|
+
permissions: unknown[];
|
|
461
|
+
} | null>;
|
|
462
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
463
|
+
error: import("vue").Ref<Error | null, Error | null>;
|
|
464
|
+
isLoaded: import("vue").ComputedRef<boolean>;
|
|
465
|
+
version: import("vue").ComputedRef<string | null>;
|
|
466
|
+
resources: import("vue").ComputedRef<{
|
|
467
|
+
slug: string;
|
|
468
|
+
label: string;
|
|
469
|
+
icon?: string | undefined;
|
|
470
|
+
group?: string | null | undefined;
|
|
471
|
+
permissions: Record<string, string>;
|
|
472
|
+
fields: {
|
|
473
|
+
[x: string]: unknown;
|
|
474
|
+
type: string;
|
|
475
|
+
}[];
|
|
476
|
+
columns: {
|
|
477
|
+
[x: string]: unknown;
|
|
478
|
+
type: string;
|
|
479
|
+
}[];
|
|
480
|
+
filters: {
|
|
481
|
+
[x: string]: unknown;
|
|
482
|
+
type: string;
|
|
483
|
+
}[];
|
|
484
|
+
actions: {
|
|
485
|
+
[x: string]: unknown;
|
|
486
|
+
type: string;
|
|
487
|
+
}[];
|
|
488
|
+
searchable: string[];
|
|
489
|
+
with: string[];
|
|
490
|
+
features: Record<string, unknown>;
|
|
491
|
+
screens?: Record<string, unknown> | undefined;
|
|
492
|
+
}[]>;
|
|
493
|
+
screens: import("vue").ComputedRef<{
|
|
494
|
+
slug: string;
|
|
495
|
+
name: string;
|
|
496
|
+
description: string | null;
|
|
497
|
+
permission: string[] | string | null;
|
|
498
|
+
}[]>;
|
|
499
|
+
settings: import("vue").ComputedRef<{
|
|
500
|
+
kind: "settings";
|
|
501
|
+
slug: string;
|
|
502
|
+
label: string;
|
|
503
|
+
permissions: Record<string, string>;
|
|
504
|
+
fields: {
|
|
505
|
+
[x: string]: unknown;
|
|
506
|
+
type: string;
|
|
507
|
+
}[];
|
|
508
|
+
}[]>;
|
|
509
|
+
plugins: import("vue").ComputedRef<string[]>;
|
|
510
|
+
getResource: (slug: string) => ManifestResourceMeta | null;
|
|
511
|
+
getScreen: (slug: string) => ManifestScreenMeta | null;
|
|
512
|
+
getSettings: (slug: string) => ManifestSettingsMeta | null;
|
|
513
|
+
load: (force?: boolean) => Promise<AdminManifest>;
|
|
514
|
+
reset: () => void;
|
|
515
|
+
}, "reset" | "load" | "getResource" | "getScreen" | "getSettings">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|