@fonderie/vue-admin-screens 0.8.0 → 1.0.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/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { PropType, VNode } from 'vue';
|
|
3
3
|
import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient } from '@fonderie/client';
|
|
4
4
|
|
|
5
|
-
type AdminPage = 'attention' | 'modules' | 'doctor' | '
|
|
5
|
+
type AdminPage = 'attention' | 'modules' | 'doctor' | 'environment' | 'routes' | 'migrations' | 'tokens' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
|
|
6
6
|
declare const AdminShell: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
7
7
|
client: {
|
|
8
8
|
type: PropType<AdminClient>;
|
|
@@ -77,12 +77,12 @@ declare const AdminShell: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
77
77
|
onNavigate?: (_page: AdminPage) => any;
|
|
78
78
|
}>, {
|
|
79
79
|
page: AdminPage;
|
|
80
|
+
environment: string;
|
|
80
81
|
configClient: ConfigAdminClient;
|
|
81
82
|
courierClient: CourierAdminClient;
|
|
82
83
|
authClient: AuthAdminClient;
|
|
83
84
|
billingClient: BillingAdminClient;
|
|
84
85
|
auditClient: AuditAdminClient;
|
|
85
|
-
environment: string;
|
|
86
86
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
87
87
|
|
|
88
88
|
declare const AttentionScreen: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
@@ -127,7 +127,7 @@ declare const DoctorScreen: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
127
127
|
};
|
|
128
128
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
129
129
|
|
|
130
|
-
declare const
|
|
130
|
+
declare const EnvironmentScreen: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
131
131
|
client: {
|
|
132
132
|
type: PropType<AdminClient>;
|
|
133
133
|
required: true;
|
|
@@ -293,4 +293,4 @@ declare const AuditScreen: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
293
293
|
pageSize: number;
|
|
294
294
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
295
295
|
|
|
296
|
-
export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen,
|
|
296
|
+
export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen, DoctorScreen, EnvironmentScreen, MigrationsScreen, ModulesScreen, RoutesScreen, SubscriberScreen, TokensScreen, UsersScreen };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { PropType, VNode } from 'vue';
|
|
3
3
|
import { AdminClient, ConfigAdminClient, CourierAdminClient, AuthAdminClient, BillingAdminClient, AuditAdminClient } from '@fonderie/client';
|
|
4
4
|
|
|
5
|
-
type AdminPage = 'attention' | 'modules' | 'doctor' | '
|
|
5
|
+
type AdminPage = 'attention' | 'modules' | 'doctor' | 'environment' | 'routes' | 'migrations' | 'tokens' | 'log' | 'settings' | 'templates' | 'users' | 'catalog' | 'subscriber' | 'audit';
|
|
6
6
|
declare const AdminShell: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
7
7
|
client: {
|
|
8
8
|
type: PropType<AdminClient>;
|
|
@@ -77,12 +77,12 @@ declare const AdminShell: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
77
77
|
onNavigate?: (_page: AdminPage) => any;
|
|
78
78
|
}>, {
|
|
79
79
|
page: AdminPage;
|
|
80
|
+
environment: string;
|
|
80
81
|
configClient: ConfigAdminClient;
|
|
81
82
|
courierClient: CourierAdminClient;
|
|
82
83
|
authClient: AuthAdminClient;
|
|
83
84
|
billingClient: BillingAdminClient;
|
|
84
85
|
auditClient: AuditAdminClient;
|
|
85
|
-
environment: string;
|
|
86
86
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
87
87
|
|
|
88
88
|
declare const AttentionScreen: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
@@ -127,7 +127,7 @@ declare const DoctorScreen: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
127
127
|
};
|
|
128
128
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
129
129
|
|
|
130
|
-
declare const
|
|
130
|
+
declare const EnvironmentScreen: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
131
131
|
client: {
|
|
132
132
|
type: PropType<AdminClient>;
|
|
133
133
|
required: true;
|
|
@@ -293,4 +293,4 @@ declare const AuditScreen: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
293
293
|
pageSize: number;
|
|
294
294
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
295
295
|
|
|
296
|
-
export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen,
|
|
296
|
+
export { AdminLogScreen, type AdminPage, AdminShell, AttentionScreen, AuditScreen, CatalogScreen, DoctorScreen, EnvironmentScreen, MigrationsScreen, ModulesScreen, RoutesScreen, SubscriberScreen, TokensScreen, UsersScreen };
|
package/dist/index.js
CHANGED
|
@@ -262,14 +262,14 @@ var AttentionScreen = defineComponent2({
|
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
264
|
|
|
265
|
-
// src/screens/
|
|
266
|
-
import {
|
|
265
|
+
// src/screens/EnvironmentScreen.ts
|
|
266
|
+
import { useAdminEnvironment } from "@fonderie/vue-admin";
|
|
267
267
|
import { defineComponent as defineComponent3, h as h4 } from "vue";
|
|
268
|
-
var
|
|
269
|
-
name: "
|
|
268
|
+
var EnvironmentScreen = defineComponent3({
|
|
269
|
+
name: "FonderieEnvironmentScreen",
|
|
270
270
|
props: { client: { type: Object, required: true } },
|
|
271
271
|
setup(props) {
|
|
272
|
-
const { report, isLoading, error } =
|
|
272
|
+
const { report, isLoading, error } = useAdminEnvironment(props.client);
|
|
273
273
|
return () => page("Configuration", { isLoading, error }, () => {
|
|
274
274
|
const r = report.value;
|
|
275
275
|
if (!r) return null;
|
|
@@ -1257,7 +1257,7 @@ var NAV = [
|
|
|
1257
1257
|
group: "System",
|
|
1258
1258
|
items: [
|
|
1259
1259
|
{ page: "modules", label: "Modules" },
|
|
1260
|
-
{ page: "
|
|
1260
|
+
{ page: "environment", label: "Environment" },
|
|
1261
1261
|
{ page: "doctor", label: "Doctor" },
|
|
1262
1262
|
{ page: "routes", label: "Routes" }
|
|
1263
1263
|
]
|
|
@@ -1325,8 +1325,8 @@ var AdminShell = defineComponent13({
|
|
|
1325
1325
|
return h14(ModulesScreen, { client: c });
|
|
1326
1326
|
case "doctor":
|
|
1327
1327
|
return h14(DoctorScreen, { client: c });
|
|
1328
|
-
case "
|
|
1329
|
-
return h14(
|
|
1328
|
+
case "environment":
|
|
1329
|
+
return h14(EnvironmentScreen, { client: c });
|
|
1330
1330
|
case "routes":
|
|
1331
1331
|
return h14(RoutesScreen, { client: c });
|
|
1332
1332
|
case "tokens":
|
|
@@ -1447,8 +1447,8 @@ export {
|
|
|
1447
1447
|
AttentionScreen,
|
|
1448
1448
|
AuditScreen,
|
|
1449
1449
|
CatalogScreen,
|
|
1450
|
-
ConfigScreen,
|
|
1451
1450
|
DoctorScreen,
|
|
1451
|
+
EnvironmentScreen,
|
|
1452
1452
|
MigrationsScreen,
|
|
1453
1453
|
ModulesScreen,
|
|
1454
1454
|
RoutesScreen,
|