Skip to content

Commit 658034c

Browse files
committed
update js libs
1 parent 87a5f20 commit 658034c

File tree

4 files changed

+38
-13
lines changed

4 files changed

+38
-13
lines changed

MyApp/wwwroot/lib/mjs/servicestack-client.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

MyApp/wwwroot/lib/mjs/servicestack-client.mjs

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,9 +1219,34 @@ export function createError(errorCode, message, fieldName) {
12191219
})
12201220
});
12211221
}
1222-
export function toCamelCase(s) { return !s ? s : s.charAt(0).toLowerCase() + s.substring(1); }
1223-
export function toPascalCase(s) { return !s ? s : s.charAt(0).toUpperCase() + s.substring(1); }
1224-
export function toKebabCase(s) { return (s || '').replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); }
1222+
export function toPascalCase(s) {
1223+
if (!s)
1224+
return '';
1225+
const isAllCaps = s.match(/^[A-Z0-9_]+$/);
1226+
if (isAllCaps) {
1227+
const words = s.split('_');
1228+
return words.map(x => x[0].toUpperCase() + x.substring(1).toLowerCase()).join('');
1229+
}
1230+
if (s.includes('_')) {
1231+
return s.split('_').filter(x => x[0]).map(x => x[0].toUpperCase() + x.substring(1)).join('');
1232+
}
1233+
return s.charAt(0).toUpperCase() + s.substring(1);
1234+
}
1235+
export function toCamelCase(s) {
1236+
s = toPascalCase(s);
1237+
if (!s)
1238+
return '';
1239+
return s.charAt(0).toLowerCase() + s.substring(1);
1240+
}
1241+
export function toKebabCase(s) {
1242+
if (!s || s.length <= 1)
1243+
return s.toLowerCase();
1244+
return s
1245+
.replace(/([A-Z0-9])/g, '-$1')
1246+
.toLowerCase()
1247+
.replace(/^-/, '')
1248+
.replace(/-+/g, '-');
1249+
}
12251250
export function map(o, f) { return o == null ? null : f(o); }
12261251
export function camelCaseAny(o) {
12271252
if (!o || !(o instanceof Object) || Array.isArray(o))

MyApp/wwwroot/lib/mjs/servicestack-vue.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

MyApp/wwwroot/lib/mjs/servicestack-vue.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7360,15 +7360,15 @@ const R0 = { key: 0 }, E0 = { class: "text-red-700" }, z0 = /* @__PURE__ */ l("b
73607360
}), Hm = { key: 0 }, Rm = {
73617361
key: 1,
73627362
class: "min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8"
7363-
}, Em = { class: "sm:mx-auto sm:w-full sm:max-w-md" }, zm = { class: "mt-6 text-center text-3xl font-extrabold text-gray-900" }, Nm = {
7363+
}, Em = { class: "sm:mx-auto sm:w-full sm:max-w-md" }, zm = { class: "mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-gray-50" }, Nm = {
73647364
key: 0,
7365-
class: "mt-4 text-center text-sm text-gray-600"
7366-
}, Um = { class: "relative z-0 inline-flex shadow-sm rounded-md" }, qm = ["onClick"], Qm = { class: "mt-8 sm:mx-auto sm:w-full sm:max-w-md" }, Km = { class: "bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10" }, Zm = { class: "mt-8" }, Wm = {
7365+
class: "mt-4 text-center text-sm text-gray-600 dark:text-gray-300"
7366+
}, Um = { class: "relative z-0 inline-flex shadow-sm rounded-md" }, qm = ["onClick"], Qm = { class: "mt-8 sm:mx-auto sm:w-full sm:max-w-md" }, Km = { class: "bg-white dark:bg-black py-8 px-4 shadow sm:rounded-lg sm:px-10" }, Zm = { class: "mt-8" }, Wm = {
73677367
key: 1,
73687368
class: "mt-6"
7369-
}, Gm = /* @__PURE__ */ Is('<div class="relative"><div class="absolute inset-0 flex items-center"><div class="w-full border-t border-gray-300"></div></div><div class="relative flex justify-center text-sm"><span class="px-2 bg-white text-gray-500"> Or continue with </span></div></div>', 1), Jm = { class: "mt-6 grid grid-cols-3 gap-3" }, Xm = ["href", "title"], Ym = {
7369+
}, Gm = /* @__PURE__ */ Is('<div class="relative"><div class="absolute inset-0 flex items-center"><div class="w-full border-t border-gray-300 dark:border-gray-600"></div></div><div class="relative flex justify-center text-sm"><span class="px-2 bg-white text-gray-500 dark:text-gray-400"> Or continue with </span></div></div>', 1), Jm = { class: "mt-6 grid grid-cols-3 gap-3" }, Xm = ["href", "title"], Ym = {
73707370
key: 1,
7371-
class: "h-5 w-5 text-gray-700",
7371+
class: "h-5 w-5 text-gray-700 dark:text-gray-200",
73727372
xmlns: "http://www.w3.org/2000/svg",
73737373
viewBox: "0 0 32 32"
73747374
}, e1 = /* @__PURE__ */ l("path", {
@@ -7442,7 +7442,7 @@ const R0 = { key: 0 }, E0 = { class: "text-red-700" }, z0 = /* @__PURE__ */ l("b
74427442
class: g([
74437443
N === "" || N === E.value.name ? "rounded-l-md" : N === re.value.name ? "rounded-r-md -ml-px" : "-ml-px",
74447444
k.value === N ? "z-10 outline-none ring-1 ring-indigo-500 border-indigo-500" : "",
7445-
"cursor-pointer relative inline-flex items-center px-4 py-1 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50"
7445+
"cursor-pointer relative inline-flex items-center px-4 py-1 border border-gray-300 dark:border-gray-600 bg-white dark:bg-black text-sm font-medium text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900"
74467446
])
74477447
}, [
74487448
ke(j(R), 1)
@@ -7487,12 +7487,12 @@ const R0 = { key: 0 }, E0 = { class: "text-red-700" }, z0 = /* @__PURE__ */ l("b
74877487
l("a", {
74887488
href: J(w) + N.navItem.href + "?continue=" + J(_),
74897489
title: F(N),
7490-
class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
7490+
class: "w-full inline-flex justify-center py-2 px-4 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm bg-white dark:bg-black text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-900"
74917491
}, [
74927492
N.icon ? (o(), le(te, {
74937493
key: 0,
74947494
image: N.icon,
7495-
class: "h-5 w-5 text-gray-700"
7495+
class: "h-5 w-5 text-gray-700 dark:text-gray-200"
74967496
}, null, 8, ["image"])) : (o(), r("svg", Ym, s1))
74977497
], 8, Xm)
74987498
]))), 256))

0 commit comments

Comments
 (0)