Skip to content

Commit

Permalink
Upgrade js
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 6, 2024
1 parent cff8da8 commit 7b8053b
Show file tree
Hide file tree
Showing 5 changed files with 3,003 additions and 1,813 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
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 7b8053b

Please sign in to comment.