@fonderie/vue-admin-screens 1.6.1 → 1.7.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 +25 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -834,7 +834,7 @@ var AttentionScreen = (0, import_vue4.defineComponent)({
|
|
|
834
834
|
(0, import_vue4.h)("span", { style: styles.mono }, item.source)
|
|
835
835
|
]
|
|
836
836
|
),
|
|
837
|
-
(0, import_vue4.h)("div", { style: { lineHeight: 1.55 } }, item.
|
|
837
|
+
(0, import_vue4.h)("div", { style: { lineHeight: 1.55 } }, (0, import_client2.localizeReason)(item, props.locale))
|
|
838
838
|
])
|
|
839
839
|
]
|
|
840
840
|
)
|
|
@@ -951,7 +951,7 @@ var EnvironmentScreen = (0, import_vue5.defineComponent)({
|
|
|
951
951
|
color: p.severity === "error" ? "var(--fonderie-danger,#e00)" : "var(--fonderie-text-muted,#5c5c5c)"
|
|
952
952
|
}
|
|
953
953
|
},
|
|
954
|
-
p.
|
|
954
|
+
(0, import_client3.localizeReason)(p, props.locale)
|
|
955
955
|
)
|
|
956
956
|
)
|
|
957
957
|
])
|
|
@@ -1014,9 +1014,15 @@ var DoctorScreen = (0, import_vue6.defineComponent)({
|
|
|
1014
1014
|
" ",
|
|
1015
1015
|
(0, import_vue6.h)("span", { style: styles.muted }, c.module)
|
|
1016
1016
|
]),
|
|
1017
|
-
c.skipped ? (0, import_vue6.h)(
|
|
1018
|
-
|
|
1019
|
-
|
|
1017
|
+
c.skipped ? (0, import_vue6.h)(
|
|
1018
|
+
"div",
|
|
1019
|
+
{ style: { ...styles.muted, marginTop: "4px" } },
|
|
1020
|
+
(0, import_client4.localizeReason)(c.skippedDetail ?? { message: c.skipped }, props.locale)
|
|
1021
|
+
) : null,
|
|
1022
|
+
...c.findings.map((f, i) => {
|
|
1023
|
+
const detail = c.details?.[i];
|
|
1024
|
+
const error2 = detail ? detail.severity === "error" : !c.ok;
|
|
1025
|
+
return (0, import_vue6.h)(
|
|
1020
1026
|
"div",
|
|
1021
1027
|
{
|
|
1022
1028
|
key: f,
|
|
@@ -1024,12 +1030,12 @@ var DoctorScreen = (0, import_vue6.defineComponent)({
|
|
|
1024
1030
|
marginTop: "4px",
|
|
1025
1031
|
fontSize: "13px",
|
|
1026
1032
|
lineHeight: 1.55,
|
|
1027
|
-
color:
|
|
1033
|
+
color: error2 ? "var(--fonderie-danger,#e00)" : "var(--fonderie-text,#171717)"
|
|
1028
1034
|
}
|
|
1029
1035
|
},
|
|
1030
|
-
f
|
|
1031
|
-
)
|
|
1032
|
-
)
|
|
1036
|
+
(0, import_client4.localizeReason)(detail ?? { message: f }, props.locale)
|
|
1037
|
+
);
|
|
1038
|
+
})
|
|
1033
1039
|
]),
|
|
1034
1040
|
td(`${c.durationMs} ms`, {
|
|
1035
1041
|
...styles.muted,
|
|
@@ -1111,7 +1117,7 @@ var ModulesScreen = (0, import_vue7.defineComponent)({
|
|
|
1111
1117
|
color: p.severity === "error" ? "var(--fonderie-danger,#e00)" : "var(--fonderie-text-muted,#5c5c5c)"
|
|
1112
1118
|
}
|
|
1113
1119
|
},
|
|
1114
|
-
p.
|
|
1120
|
+
(0, import_client5.localizeReason)(p, props.locale)
|
|
1115
1121
|
)
|
|
1116
1122
|
)
|
|
1117
1123
|
]),
|
|
@@ -3026,6 +3032,7 @@ var AdminShell = (0, import_vue18.defineComponent)({
|
|
|
3026
3032
|
...loc,
|
|
3027
3033
|
...e.type ? { type: e.type } : {},
|
|
3028
3034
|
...e.locales ? { locales: e.locales } : {},
|
|
3035
|
+
...e.defaultLocale ? { defaultLocale: e.defaultLocale } : {},
|
|
3029
3036
|
onCreated: (c2) => editing.value = {
|
|
3030
3037
|
kind: "template",
|
|
3031
3038
|
type: c2.type,
|
|
@@ -3048,7 +3055,12 @@ var AdminShell = (0, import_vue18.defineComponent)({
|
|
|
3048
3055
|
localeTabs: true,
|
|
3049
3056
|
onSaved: () => editing.value = null,
|
|
3050
3057
|
onDeleted: () => editing.value = null,
|
|
3051
|
-
"onAdd-locale": (type, c2) => editing.value = {
|
|
3058
|
+
"onAdd-locale": (type, c2) => editing.value = {
|
|
3059
|
+
kind: "template-new",
|
|
3060
|
+
type,
|
|
3061
|
+
locales: c2.locales,
|
|
3062
|
+
...c2.defaultLocale ? { defaultLocale: c2.defaultLocale } : {}
|
|
3063
|
+
},
|
|
3052
3064
|
"onSelect-locale": (tpl) => editing.value = {
|
|
3053
3065
|
kind: "template",
|
|
3054
3066
|
type: tpl.type,
|
|
@@ -3064,8 +3076,8 @@ var AdminShell = (0, import_vue18.defineComponent)({
|
|
|
3064
3076
|
"onSelect-template": (t3) => editing.value = {
|
|
3065
3077
|
kind: "template",
|
|
3066
3078
|
type: t3.type,
|
|
3067
|
-
locale: t3.locale
|
|
3068
|
-
system: t3.system
|
|
3079
|
+
locale: t3.locale,
|
|
3080
|
+
system: t3.system
|
|
3069
3081
|
},
|
|
3070
3082
|
"onCreate-template": (c2) => editing.value = { kind: "template-new", locales: c2.locales }
|
|
3071
3083
|
});
|