1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Admin Portal - Profile

This commit is contained in:
hillelcoren 2023-07-09 07:01:11 +00:00
parent be6a3fcf5b
commit 1dc5a46f4a

View File

@ -66070,7 +66070,7 @@
if (B.JSString_methods.startsWith$1(url, "https://invoicing.co"))
secret = "";
t1 = type$.legacy_String;
headers = A.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT", A.getPlatformName(), "X-CLIENT-VERSION", "5.0.122", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1);
headers = A.LinkedHashMap_LinkedHashMap$_literal(["X-CLIENT-PLATFORM", A.getPlatformName(), "X-CLIENT-VERSION", "5.0.123", "X-API-SECRET", secret, "X-Requested-With", "XMLHttpRequest", "Content-Type", "application/json; charset=utf-8"], t1, t1);
if (token.length !== 0)
headers.$indexSet(0, "X-API-Token", token);
if ((idToken == null ? "" : idToken).length !== 0)
@ -66094,9 +66094,9 @@
t2 = response.get$body(response).length > 200 ? B.JSString_methods.substring$2(response.get$body(response), 0, 200) : response.get$body(response);
throw A.wrapException("Error: please check that Invoice Ninja v5 is installed on the server\n\nURL: " + url + "\n\nResponse: " + t2 + "\n\nHeaders: " + t1.toString$0(0) + "}");
} else {
t1 = A.Version__compare(A.Version_parse("5.0.122"), A.Version_parse(minClientVersion));
t1 = A.Version__compare(A.Version_parse("5.0.123"), A.Version_parse(minClientVersion));
if (t1 < 0)
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.122 < Minimum v" + A.S(minClientVersion) + "]");
throw A.wrapException("Error: client not supported, please update to the latest version [Current v5.0.123 < Minimum v" + A.S(minClientVersion) + "]");
else {
t1 = A.Version__compare(A.Version_parse(serverVersion), A.Version_parse("5.0.4"));
if (t1 < 0)
@ -392504,7 +392504,7 @@
version = "v" + (t1 == null ? "" : t1);
if (version.length !== 0)
version += "-";
return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.122".split(".")));
return B.JSString_methods.$add(version + A.getPlatformLetter(), B.JSArray_methods.get$last("5.0.123".split(".")));
},
get$historyList() {
var _this = this,
@ -455903,10 +455903,10 @@
};
A.DocumentTile_build_closure.prototype = {
call$1(context) {
var t3, _null = null,
var t2, t3, _null = null,
t1 = A._setArrayType([], type$.JSArray_legacy_PopupMenuEntry_legacy_String),
t2 = this.$this.document.name;
if (B.JSString_methods.endsWith$1(t2, ".png") || B.JSString_methods.endsWith$1(t2, ".jpg") || B.JSString_methods.endsWith$1(t2, ".jpeg")) {
fileName = this.$this.document.name.toLowerCase();
if (B.JSString_methods.endsWith$1(fileName, ".png") || B.JSString_methods.endsWith$1(fileName, ".jpg") || B.JSString_methods.endsWith$1(fileName, ".jpeg") || B.JSString_methods.endsWith$1(fileName, ".bmp") || B.JSString_methods.endsWith$1(fileName, ".webp")) {
t2 = this.localization;
t1.push(A.PopupMenuItem$(new A.IconText(t2.get$view(t2), B.IconData_58458_MaterialIcons_null_false, _null, _null, false, _null), t2.get$view(t2), type$.legacy_String));
}