mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 15:24:34 -04:00
Admin Portal - Hosted
This commit is contained in:
parent
ccdddc76c9
commit
3bed0b0c3d
39
public/flutter.js
vendored
39
public/flutter.js
vendored
@ -16,14 +16,23 @@ _flutter.loader = null;
|
|||||||
(function() {
|
(function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
class FlutterLoader {
|
class FlutterLoader {
|
||||||
// TODO: Move the below methods to "#private" once supported by all the browsers
|
/**
|
||||||
// we support. In the meantime, we use the "revealing module" pattern.
|
* Creates a FlutterLoader, and initializes its instance methods.
|
||||||
|
*/
|
||||||
|
constructor() {
|
||||||
|
// TODO: Move the below methods to "#private" once supported by all the browsers
|
||||||
|
// we support. In the meantime, we use the "revealing module" pattern.
|
||||||
|
|
||||||
// Watchdog to prevent injecting the main entrypoint multiple times.
|
// Watchdog to prevent injecting the main entrypoint multiple times.
|
||||||
_scriptLoaded = null;
|
this._scriptLoaded = null;
|
||||||
|
|
||||||
// Resolver for the pending promise returned by loadEntrypoint.
|
// Resolver for the pending promise returned by loadEntrypoint.
|
||||||
_didCreateEngineInitializerResolve = null;
|
this._didCreateEngineInitializerResolve = null;
|
||||||
|
|
||||||
|
// Called by Flutter web.
|
||||||
|
// Bound to `this` now, so "this" is preserved across JS <-> Flutter jumps.
|
||||||
|
this.didCreateEngineInitializer = this._didCreateEngineInitializer.bind(this);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes the main.dart.js with/without serviceWorker.
|
* Initializes the main.dart.js with/without serviceWorker.
|
||||||
@ -40,19 +49,19 @@ _flutter.loader = null;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolves the promise created by loadEntrypoint. Called by Flutter.
|
* Resolves the promise created by loadEntrypoint.
|
||||||
* Needs to be weirdly bound like it is, so "this" is preserved across
|
* Called by Flutter through the public `didCreateEngineInitializer` method,
|
||||||
* the JS <-> Flutter jumps.
|
* which is bound to the correct instance of the FlutterLoader on the page.
|
||||||
* @param {*} engineInitializer
|
* @param {*} engineInitializer
|
||||||
*/
|
*/
|
||||||
didCreateEngineInitializer = (function(engineInitializer) {
|
_didCreateEngineInitializer(engineInitializer) {
|
||||||
if (typeof this._didCreateEngineInitializerResolve != "function") {
|
if (typeof this._didCreateEngineInitializerResolve != "function") {
|
||||||
console.warn("Do not call didCreateEngineInitializer by hand. Start with loadEntrypoint instead.");
|
console.warn("Do not call didCreateEngineInitializer by hand. Start with loadEntrypoint instead.");
|
||||||
}
|
}
|
||||||
this._didCreateEngineInitializerResolve(engineInitializer);
|
this._didCreateEngineInitializerResolve(engineInitializer);
|
||||||
// Remove this method after it's done, so Flutter Web can hot restart.
|
// Remove the public method after it's done, so Flutter Web can hot restart.
|
||||||
delete this.didCreateEngineInitializer;
|
delete this.didCreateEngineInitializer;
|
||||||
}).bind(this);
|
}
|
||||||
|
|
||||||
_loadEntrypoint(entrypointUrl) {
|
_loadEntrypoint(entrypointUrl) {
|
||||||
if (!this._scriptLoaded) {
|
if (!this._scriptLoaded) {
|
||||||
@ -60,7 +69,11 @@ _flutter.loader = null;
|
|||||||
let scriptTag = document.createElement("script");
|
let scriptTag = document.createElement("script");
|
||||||
scriptTag.src = entrypointUrl;
|
scriptTag.src = entrypointUrl;
|
||||||
scriptTag.type = "application/javascript";
|
scriptTag.type = "application/javascript";
|
||||||
this._didCreateEngineInitializerResolve = resolve; // Cache the resolve, so it can be called from Flutter.
|
// Cache the resolve, so it can be called from Flutter.
|
||||||
|
// Note: Flutter hot restart doesn't re-create this promise, so this
|
||||||
|
// can only be called once. Instead, we need to model this as a stream
|
||||||
|
// of `engineCreated` events coming from Flutter that are handled by JS.
|
||||||
|
this._didCreateEngineInitializerResolve = resolve;
|
||||||
scriptTag.addEventListener("error", reject);
|
scriptTag.addEventListener("error", reject);
|
||||||
document.body.append(scriptTag);
|
document.body.append(scriptTag);
|
||||||
});
|
});
|
||||||
|
8
public/flutter_service_worker.js
vendored
8
public/flutter_service_worker.js
vendored
@ -8,12 +8,12 @@ const RESOURCES = {
|
|||||||
"canvaskit/profiling/canvaskit.js": "ae2949af4efc61d28a4a80fffa1db900",
|
"canvaskit/profiling/canvaskit.js": "ae2949af4efc61d28a4a80fffa1db900",
|
||||||
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
|
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
|
||||||
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
|
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
|
||||||
"/": "69905e6a3d544c719b18623661078154",
|
"/": "68a9b6940977e6c7fd1d9f31f1d93ecc",
|
||||||
"flutter.js": "0816e65a103ba8ba51b174eeeeb2cb67",
|
"flutter.js": "eb2682e33f25cd8f1fc59011497c35f8",
|
||||||
"icons/Icon-512.png": "0f9aff01367f0a0c69773d25ca16ef35",
|
"icons/Icon-512.png": "0f9aff01367f0a0c69773d25ca16ef35",
|
||||||
"icons/Icon-192.png": "bb1cf5f6982006952211c7c8404ffbed",
|
"icons/Icon-192.png": "bb1cf5f6982006952211c7c8404ffbed",
|
||||||
"manifest.json": "ef43d90e57aa7682d7e2cfba2f484a40",
|
"manifest.json": "ef43d90e57aa7682d7e2cfba2f484a40",
|
||||||
"version.json": "8c5f080db352df2d10c481aab911e2fb",
|
"version.json": "69380d22a7eec2ffb5bf7efff4808f6d",
|
||||||
"favicon.ico": "51636d3a390451561744c42188ccd628",
|
"favicon.ico": "51636d3a390451561744c42188ccd628",
|
||||||
"assets/FontManifest.json": "cf3c681641169319e61b61bd0277378f",
|
"assets/FontManifest.json": "cf3c681641169319e61b61bd0277378f",
|
||||||
"assets/fonts/MaterialIcons-Regular.otf": "95db9098c58fd6db106f1116bae85a0b",
|
"assets/fonts/MaterialIcons-Regular.otf": "95db9098c58fd6db106f1116bae85a0b",
|
||||||
@ -39,7 +39,7 @@ const RESOURCES = {
|
|||||||
"assets/assets/images/payment_types/other.png": "d936e11fa3884b8c9f1bd5c914be8629",
|
"assets/assets/images/payment_types/other.png": "d936e11fa3884b8c9f1bd5c914be8629",
|
||||||
"assets/packages/material_design_icons_flutter/lib/fonts/materialdesignicons-webfont.ttf": "b62641afc9ab487008e996a5c5865e56",
|
"assets/packages/material_design_icons_flutter/lib/fonts/materialdesignicons-webfont.ttf": "b62641afc9ab487008e996a5c5865e56",
|
||||||
"assets/NOTICES": "f02d972147eb81eae2a8202a2914cb88",
|
"assets/NOTICES": "f02d972147eb81eae2a8202a2914cb88",
|
||||||
"main.dart.js": "e99e39dff8062c71e7642397479e70cd"
|
"main.dart.js": "bfc10266a1a96825ac58e02b9b498c62"
|
||||||
};
|
};
|
||||||
|
|
||||||
// The application shell files that are downloaded before a service worker can
|
// The application shell files that are downloaded before a service worker can
|
||||||
|
126186
public/main.dart.js
vendored
126186
public/main.dart.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
{"app_name":"invoiceninja_flutter","version":"5.0.86","build_number":"86","package_name":"invoiceninja_flutter"}
|
{"app_name":"invoiceninja_flutter","version":"5.0.87","build_number":"87","package_name":"invoiceninja_flutter"}
|
Loading…
x
Reference in New Issue
Block a user