Skip to content

Commit

Permalink
Merge pull request #133 from NazarUsov/remote-node-with-last-update
Browse files Browse the repository at this point in the history
Remote node with latest updates
  • Loading branch information
sowle authored Dec 3, 2024
2 parents 7cd0e5e + 9a5d672 commit e8779eb
Show file tree
Hide file tree
Showing 15 changed files with 1,157 additions and 1,268 deletions.
974 changes: 447 additions & 527 deletions html/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion html/main.js.map

Large diffs are not rendered by default.

373 changes: 175 additions & 198 deletions html/polyfills.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion html/polyfills.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions html/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion html/styles.css.map

Large diffs are not rendered by default.

137 changes: 86 additions & 51 deletions html/vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4195,6 +4195,71 @@ if (true) {

/***/ }),

/***/ 76236:
/*!*******************************************!*\
!*** ./node_modules/encode-utf8/index.js ***!
\*******************************************/
/***/ ((module) => {

"use strict";


module.exports = function encodeUtf8(input) {
var result = [];
var size = input.length;

for (var index = 0; index < size; index++) {
var point = input.charCodeAt(index);

if (point >= 0xD800 && point <= 0xDBFF && size > index + 1) {
var second = input.charCodeAt(index + 1);

if (second >= 0xDC00 && second <= 0xDFFF) {
// https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
point = (point - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
index += 1;
}
} // US-ASCII


if (point < 0x80) {
result.push(point);
continue;
} // 2-byte UTF-8


if (point < 0x800) {
result.push(point >> 6 | 192);
result.push(point & 63 | 128);
continue;
} // 3-byte UTF-8


if (point < 0xD800 || point >= 0xE000 && point < 0x10000) {
result.push(point >> 12 | 224);
result.push(point >> 6 & 63 | 128);
result.push(point & 63 | 128);
continue;
} // 4-byte UTF-8


if (point >= 0x10000 && point <= 0x10FFFF) {
result.push(point >> 18 | 240);
result.push(point >> 12 & 63 | 128);
result.push(point >> 6 & 63 | 128);
result.push(point & 63 | 128);
continue;
} // Invalid character


result.push(0xEF, 0xBF, 0xBD);
}

return new Uint8Array(result).buffer;
};

/***/ }),

/***/ 80988:
/*!*****************************************************!*\
!*** ./node_modules/highcharts/highcharts-gantt.js ***!
Expand Down Expand Up @@ -96179,16 +96244,18 @@ module.exports = BitMatrix;
\***************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

const encodeUtf8 = __webpack_require__(/*! encode-utf8 */ 76236);

const Mode = __webpack_require__(/*! ./mode */ 84059);

function ByteData(data) {
this.mode = Mode.BYTE;

if (typeof data === 'string') {
this.data = new TextEncoder().encode(data);
} else {
this.data = new Uint8Array(data);
data = encodeUtf8(data);
}

this.data = new Uint8Array(data);
}

ByteData.getBitsLength = function getBitsLength(length) {
Expand Down Expand Up @@ -229432,7 +229499,6 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ "__propKey": () => (/* binding */ __propKey),
/* harmony export */ "__read": () => (/* binding */ __read),
/* harmony export */ "__rest": () => (/* binding */ __rest),
/* harmony export */ "__rewriteRelativeImportExtension": () => (/* binding */ __rewriteRelativeImportExtension),
/* harmony export */ "__runInitializers": () => (/* binding */ __runInitializers),
/* harmony export */ "__setFunctionName": () => (/* binding */ __setFunctionName),
/* harmony export */ "__spread": () => (/* binding */ __spread),
Expand All @@ -229455,7 +229521,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
/* global Reflect, Promise, SuppressedError, Symbol */

var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
Expand Down Expand Up @@ -229566,8 +229632,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
}

function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
Expand Down Expand Up @@ -229671,9 +229737,8 @@ function __await(v) {
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
Expand Down Expand Up @@ -229706,19 +229771,10 @@ var __setModuleDefault = Object.create ? (function(o, v) {
o["default"] = v;
};

var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};

function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
}
Expand Down Expand Up @@ -229748,18 +229804,16 @@ function __classPrivateFieldIn(state, receiver) {
function __addDisposableResource(env, value, async) {
if (value !== null && value !== void 0) {
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
var dispose, inner;
var dispose;
if (async) {
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
dispose = value[Symbol.asyncDispose];
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
dispose = value[Symbol.asyncDispose];
}
if (dispose === void 0) {
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
dispose = value[Symbol.dispose];
if (async) inner = dispose;
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
dispose = value[Symbol.dispose];
}
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
env.stack.push({ value: value, dispose: dispose, async: async });
}
else if (async) {
Expand All @@ -229778,46 +229832,28 @@ function __disposeResources(env) {
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
env.hasError = true;
}
var r, s = 0;
function next() {
while (r = env.stack.pop()) {
while (env.stack.length) {
var rec = env.stack.pop();
try {
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
if (r.dispose) {
var result = r.dispose.call(r.value);
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
}
else s |= 1;
var result = rec.dispose && rec.dispose.call(rec.value);
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
}
catch (e) {
fail(e);
fail(e);
}
}
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
if (env.hasError) throw env.error;
}
return next();
}

function __rewriteRelativeImportExtension(path, preserveJsx) {
if (typeof path === "string" && /^\.\.?\//.test(path)) {
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
});
}
return path;
}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
__extends,
__assign,
__rest,
__decorate,
__param,
__esDecorate,
__runInitializers,
__propKey,
__setFunctionName,
__metadata,
__awaiter,
__generator,
Expand All @@ -229840,7 +229876,6 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
__classPrivateFieldIn,
__addDisposableResource,
__disposeResources,
__rewriteRelativeImportExtension,
});


Expand Down
2 changes: 1 addition & 1 deletion html/vendor.js.map

Large diffs are not rendered by default.

74 changes: 34 additions & 40 deletions html_source/src/app/pages/auth/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,55 +110,49 @@ export class LoginComponent implements OnInit, OnDestroy {
dropSecureAppData(): void {
this.resetLoading$.next(true);

// This delay is necessary for the loader to display, as the application freezes for a few seconds
setTimeout(() => {
this.resetJwtWalletRpc();
this.closeAllWallets();
this.backend.dropSecureAppData(() => {
this.ngZone.run(() => {
this.resetLoading$.next(false);
this.onSkipCreatePass();
});

this.resetJwtWalletRpc();
this.closeAllWallets();
this.backend.dropSecureAppData(() => {
this.ngZone.run(() => {
this.resetLoading$.next(false);
this.onSkipCreatePass();
});
this.variablesService.contacts = [];
}, 500);

});
this.variablesService.contacts = [];
}

onSubmitAuthPass(): void {
this.submitLoading$.next(true);

// This delay is necessary for the loader to display, as the application freezes for a few seconds
setTimeout(() => {
if (this.authForm.valid) {
this.variablesService.appPass = this.authForm.get('password').value;
if (this.variablesService.dataIsLoaded) {
this.backend.checkMasterPassword({ pass: this.variablesService.appPass }, status => {
if (status) {
this.variablesService.appLogin = true;
if (this.variablesService.settings.appLockTime) {
this.variablesService.startCountdown();
}
this.ngZone.run(() => {
this.submitLoading$.next(false);
this.router.navigate(['/'], {
queryParams: { prevUrl: 'login' },
});
});
} else {
this.ngZone.run(() => {
this.submitLoading$.next(false);
this.setAuthPassError({ wrong_password: true });
});
if (this.authForm.valid) {
this.variablesService.appPass = this.authForm.get('password').value;
if (this.variablesService.dataIsLoaded) {
this.backend.checkMasterPassword({ pass: this.variablesService.appPass }, status => {
if (status) {
this.variablesService.appLogin = true;
if (this.variablesService.settings.appLockTime) {
this.variablesService.startCountdown();
}
});
} else {
this.getData(this.variablesService.appPass);
}
this.ngZone.run(() => {
this.submitLoading$.next(false);
this.router.navigate(['/'], {
queryParams: { prevUrl: 'login' },
});
});
} else {
this.ngZone.run(() => {
this.submitLoading$.next(false);
this.setAuthPassError({ wrong_password: true });
});
}
});
} else {
this.submitLoading$.next(false);
this.getData(this.variablesService.appPass);
}
}, 500);
} else {
this.submitLoading$.next(false);
}
}

getData(appPass): void {
Expand Down
Loading

0 comments on commit e8779eb

Please sign in to comment.