@fonderie/vue-admin-screens 0.8.0 → 1.0.1
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 +17 -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 +17 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -25,8 +25,8 @@ __export(index_exports, {
|
|
|
25
25
|
AttentionScreen: () => AttentionScreen,
|
|
26
26
|
AuditScreen: () => AuditScreen,
|
|
27
27
|
CatalogScreen: () => CatalogScreen,
|
|
28
|
-
ConfigScreen: () => ConfigScreen,
|
|
29
28
|
DoctorScreen: () => DoctorScreen,
|
|
29
|
+
EnvironmentScreen: () => EnvironmentScreen,
|
|
30
30
|
MigrationsScreen: () => MigrationsScreen,
|
|
31
31
|
ModulesScreen: () => ModulesScreen,
|
|
32
32
|
RoutesScreen: () => RoutesScreen,
|
|
@@ -300,14 +300,14 @@ var AttentionScreen = (0, import_vue3.defineComponent)({
|
|
|
300
300
|
}
|
|
301
301
|
});
|
|
302
302
|
|
|
303
|
-
// src/screens/
|
|
303
|
+
// src/screens/EnvironmentScreen.ts
|
|
304
304
|
var import_vue_admin3 = require("@fonderie/vue-admin");
|
|
305
305
|
var import_vue4 = require("vue");
|
|
306
|
-
var
|
|
307
|
-
name: "
|
|
306
|
+
var EnvironmentScreen = (0, import_vue4.defineComponent)({
|
|
307
|
+
name: "FonderieEnvironmentScreen",
|
|
308
308
|
props: { client: { type: Object, required: true } },
|
|
309
309
|
setup(props) {
|
|
310
|
-
const { report, isLoading, error } = (0, import_vue_admin3.
|
|
310
|
+
const { report, isLoading, error } = (0, import_vue_admin3.useAdminEnvironment)(props.client);
|
|
311
311
|
return () => page("Configuration", { isLoading, error }, () => {
|
|
312
312
|
const r = report.value;
|
|
313
313
|
if (!r) return null;
|
|
@@ -723,6 +723,7 @@ var TokensScreen = (0, import_vue9.defineComponent)({
|
|
|
723
723
|
});
|
|
724
724
|
|
|
725
725
|
// src/screens/UsersScreen.ts
|
|
726
|
+
var import_client = require("@fonderie/client");
|
|
726
727
|
var import_vue_admin9 = require("@fonderie/vue-admin");
|
|
727
728
|
var import_vue10 = require("vue");
|
|
728
729
|
var UsersScreen = (0, import_vue10.defineComponent)({
|
|
@@ -864,6 +865,8 @@ var UsersScreen = (0, import_vue10.defineComponent)({
|
|
|
864
865
|
(s) => (0, import_vue10.h)("li", { key: s.id, style: styles.row }, [
|
|
865
866
|
(0, import_vue10.h)("span", { style: styles.mono }, s.ipAddress ?? "\u2014"),
|
|
866
867
|
" ",
|
|
868
|
+
(0, import_vue10.h)("span", { style: styles.muted }, (0, import_client.describeLocation)(s.location) ?? ""),
|
|
869
|
+
" ",
|
|
867
870
|
(0, import_vue10.h)("span", { style: styles.muted }, s.userAgent ?? ""),
|
|
868
871
|
" ",
|
|
869
872
|
(0, import_vue10.h)(
|
|
@@ -888,6 +891,11 @@ var UsersScreen = (0, import_vue10.defineComponent)({
|
|
|
888
891
|
" ",
|
|
889
892
|
(0, import_vue10.h)("span", { style: styles.muted }, e.method),
|
|
890
893
|
" ",
|
|
894
|
+
(0, import_vue10.h)("span", { style: styles.mono }, e.ipAddress ?? "\u2014"),
|
|
895
|
+
" ",
|
|
896
|
+
(0, import_vue10.h)("span", { style: styles.muted }, (0, import_client.describeLocation)(e.location) ?? ""),
|
|
897
|
+
e.location?.proxy || e.location?.hosting ? (0, import_vue10.h)("span", { style: styles.bad }, e.location.proxy ? " proxy/VPN" : " hosting") : "",
|
|
898
|
+
" ",
|
|
891
899
|
(0, import_vue10.h)("span", { style: styles.muted }, new Date(e.createdAt).toLocaleString())
|
|
892
900
|
])
|
|
893
901
|
)
|
|
@@ -1290,7 +1298,7 @@ var NAV = [
|
|
|
1290
1298
|
group: "System",
|
|
1291
1299
|
items: [
|
|
1292
1300
|
{ page: "modules", label: "Modules" },
|
|
1293
|
-
{ page: "
|
|
1301
|
+
{ page: "environment", label: "Environment" },
|
|
1294
1302
|
{ page: "doctor", label: "Doctor" },
|
|
1295
1303
|
{ page: "routes", label: "Routes" }
|
|
1296
1304
|
]
|
|
@@ -1358,8 +1366,8 @@ var AdminShell = (0, import_vue14.defineComponent)({
|
|
|
1358
1366
|
return (0, import_vue14.h)(ModulesScreen, { client: c });
|
|
1359
1367
|
case "doctor":
|
|
1360
1368
|
return (0, import_vue14.h)(DoctorScreen, { client: c });
|
|
1361
|
-
case "
|
|
1362
|
-
return (0, import_vue14.h)(
|
|
1369
|
+
case "environment":
|
|
1370
|
+
return (0, import_vue14.h)(EnvironmentScreen, { client: c });
|
|
1363
1371
|
case "routes":
|
|
1364
1372
|
return (0, import_vue14.h)(RoutesScreen, { client: c });
|
|
1365
1373
|
case "tokens":
|
|
@@ -1481,8 +1489,8 @@ var AdminShell = (0, import_vue14.defineComponent)({
|
|
|
1481
1489
|
AttentionScreen,
|
|
1482
1490
|
AuditScreen,
|
|
1483
1491
|
CatalogScreen,
|
|
1484
|
-
ConfigScreen,
|
|
1485
1492
|
DoctorScreen,
|
|
1493
|
+
EnvironmentScreen,
|
|
1486
1494
|
MigrationsScreen,
|
|
1487
1495
|
ModulesScreen,
|
|
1488
1496
|
RoutesScreen,
|