Skip to content

Commit

Permalink
Upgrade js libs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 6, 2024
1 parent 2a72fa7 commit 5886e1a
Show file tree
Hide file tree
Showing 7 changed files with 2,990 additions and 1,801 deletions.
2 changes: 1 addition & 1 deletion MyApp/wwwroot/lib/mjs/servicestack-client.min.mjs

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions MyApp/wwwroot/lib/mjs/servicestack-client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -745,15 +745,14 @@ export class JsonServiceClient {
static toBase64;
constructor(baseUrl = "/") {
this.baseUrl = baseUrl;
this.replyBaseUrl = combinePaths(baseUrl, "json", "reply") + "/";
this.oneWayBaseUrl = combinePaths(baseUrl, "json", "oneway") + "/";
this.mode = "cors";
this.credentials = "include";
this.headers = new Headers();
this.headers.set("Content-Type", "application/json");
this.manageCookies = typeof document == "undefined"; //because node-fetch doesn't
this.cookies = {};
this.enableAutoRefreshToken = true;
this.basePath = 'api';
}
setCredentials(userName, password) {
this.userName = userName;
Expand All @@ -769,9 +768,6 @@ export class JsonServiceClient {
this.oneWayBaseUrl = combinePaths(this.baseUrl, "json", "oneway") + "/";
}
else {
if (path[0] != '/') {
path = '/' + path;
}
this.replyBaseUrl = combinePaths(this.baseUrl, path) + "/";
this.oneWayBaseUrl = combinePaths(this.baseUrl, path) + "/";
}
Expand Down Expand Up @@ -1767,7 +1763,7 @@ export function $1(sel, el) {
}
export function $$(sel, el) {
if (typeof sel === "string")
return Array.from((el || document).querySelectorAll(sel));
return Array.from((el || typeof document != "undefined" ? document : null)?.querySelectorAll(sel) ?? []);
if (Array.isArray(sel))
return sel.flatMap(x => $$(x, el));
return [sel];
Expand Down
2 changes: 1 addition & 1 deletion MyApp/wwwroot/lib/mjs/servicestack-vue.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion MyApp/wwwroot/lib/mjs/servicestack-vue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ function Oi(e) {
function Pi() {
ne.user.value = null, ne.events.publish("signOut", null);
}
const $n = (e) => e.roles || [], Cn = (e) => e.permissions || [];
const $n = (e) => (e == null ? void 0 : e.roles) || [], Cn = (e) => (e == null ? void 0 : e.permissions) || [];
function Us(e) {
return $n(ne.user.value).indexOf(e) >= 0;
}
Expand Down
15 changes: 10 additions & 5 deletions MyApp/wwwroot/lib/mjs/vue.min.mjs

Large diffs are not rendered by default.

Loading

0 comments on commit 5886e1a

Please sign in to comment.