chore(prettier): full repo linting and code reformatting once and for all (#3627)
This commit is contained in:
1 parent
01500a2d4c
commit
9045ddaedc
656 files changed
+21737
-20628
No files matched your search
@@ -6,4 +6,4 @@
|
||||
"color": "#fff",
|
||||
"show_title": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,8 +16,7 @@ window.config = {
|
||||
// ~ REQUIRED
|
||||
// Authorization Server URL
|
||||
authority: 'https://accounts.google.com',
|
||||
client_id:
|
||||
'723928408739-k9k9r3i44j32rhu69vlnibipmmk9i57p.apps.googleusercontent.com',
|
||||
client_id: '723928408739-k9k9r3i44j32rhu69vlnibipmmk9i57p.apps.googleusercontent.com',
|
||||
redirect_uri: '/callback',
|
||||
response_type: 'id_token token',
|
||||
scope:
|
||||
|
||||
@@ -16,8 +16,7 @@ window.config = {
|
||||
// ~ REQUIRED
|
||||
// Authorization Server URL
|
||||
authority: 'https://accounts.google.com',
|
||||
client_id:
|
||||
'723928408739-k9k9r3i44j32rhu69vlnibipmmk9i57p.apps.googleusercontent.com',
|
||||
client_id: '723928408739-k9k9r3i44j32rhu69vlnibipmmk9i57p.apps.googleusercontent.com',
|
||||
redirect_uri: '/callback', // `OHIFStandaloneViewer.js`
|
||||
response_type: 'id_token token',
|
||||
scope:
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
window.config = {
|
||||
routerBasename: '/',
|
||||
customizationService: [
|
||||
'@ohif/extension-default.customizationModule.helloPage',
|
||||
],
|
||||
customizationService: ['@ohif/extension-default.customizationModule.helloPage'],
|
||||
extensions: [],
|
||||
modes: [],
|
||||
showStudyList: true,
|
||||
|
||||
Vendored
+3569
-2
File diff suppressed because it is too large.
Load diff
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
@@ -6,16 +6,34 @@
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
||||
/>
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="application-name" content="OHIF Viewer" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta
|
||||
name="theme-color"
|
||||
content="#000000"
|
||||
/>
|
||||
<meta
|
||||
name="mobile-web-app-capable"
|
||||
content="yes"
|
||||
/>
|
||||
<meta
|
||||
name="application-name"
|
||||
content="OHIF Viewer"
|
||||
/>
|
||||
<meta
|
||||
name="apple-mobile-web-app-capable"
|
||||
content="yes"
|
||||
/>
|
||||
<meta
|
||||
name="apple-mobile-web-app-status-bar-style"
|
||||
content="black-translucent"
|
||||
/>
|
||||
<meta name="apple-mobile-web-app-title" content="@ohif/app" />
|
||||
<meta name="msapplication-TileColor" content="#fff" />
|
||||
<meta
|
||||
name="apple-mobile-web-app-title"
|
||||
content="@ohif/app"
|
||||
/>
|
||||
<meta
|
||||
name="msapplication-TileColor"
|
||||
content="#fff"
|
||||
/>
|
||||
<meta
|
||||
name="msapplication-TileImage"
|
||||
content="<%= PUBLIC_URL %>assets/mstile-144x144.png"
|
||||
@@ -24,9 +42,15 @@
|
||||
name="msapplication-config"
|
||||
content="<%= PUBLIC_URL %>assets/browserconfig.xml"
|
||||
/>
|
||||
<link rel="manifest" href="<%= PUBLIC_URL %>manifest.json" />
|
||||
<link
|
||||
rel="manifest"
|
||||
href="<%= PUBLIC_URL %>manifest.json"
|
||||
/>
|
||||
|
||||
<link rel="shortcut icon" href="<%= PUBLIC_URL %>assets/favicon.ico" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="<%= PUBLIC_URL %>assets/favicon.ico"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
@@ -178,7 +202,11 @@
|
||||
<title>OHIF Viewer</title>
|
||||
|
||||
<!-- WEB FONTS -->
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
rel="preconnect"
|
||||
href="https://fonts.gstatic.com"
|
||||
crossorigin
|
||||
/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Inter:100,300,400,500,700&display=swap"
|
||||
rel="stylesheet"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@@ -6,16 +6,34 @@
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
||||
/>
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="application-name" content="OHIF Viewer" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta
|
||||
name="theme-color"
|
||||
content="#000000"
|
||||
/>
|
||||
<meta
|
||||
name="mobile-web-app-capable"
|
||||
content="yes"
|
||||
/>
|
||||
<meta
|
||||
name="application-name"
|
||||
content="OHIF Viewer"
|
||||
/>
|
||||
<meta
|
||||
name="apple-mobile-web-app-capable"
|
||||
content="yes"
|
||||
/>
|
||||
<meta
|
||||
name="apple-mobile-web-app-status-bar-style"
|
||||
content="black-translucent"
|
||||
/>
|
||||
<meta name="apple-mobile-web-app-title" content="@ohif/app" />
|
||||
<meta name="msapplication-TileColor" content="#fff" />
|
||||
<meta
|
||||
name="apple-mobile-web-app-title"
|
||||
content="@ohif/app"
|
||||
/>
|
||||
<meta
|
||||
name="msapplication-TileColor"
|
||||
content="#fff"
|
||||
/>
|
||||
<meta
|
||||
name="msapplication-TileImage"
|
||||
content="<%= PUBLIC_URL %>assets/mstile-144x144.png"
|
||||
@@ -24,9 +42,15 @@
|
||||
name="msapplication-config"
|
||||
content="<%= PUBLIC_URL %>assets/browserconfig.xml"
|
||||
/>
|
||||
<link rel="manifest" href="<%= PUBLIC_URL %>manifest.json" />
|
||||
<link
|
||||
rel="manifest"
|
||||
href="<%= PUBLIC_URL %>manifest.json"
|
||||
/>
|
||||
|
||||
<link rel="shortcut icon" href="<%= PUBLIC_URL %>assets/favicon.ico" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="<%= PUBLIC_URL %>assets/favicon.ico"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
@@ -211,7 +235,7 @@
|
||||
},
|
||||
};
|
||||
// Rollbar Snippet
|
||||
!(function(r) {
|
||||
!(function (r) {
|
||||
var e = {};
|
||||
function o(n) {
|
||||
if (e[n]) return e[n].exports;
|
||||
@@ -220,17 +244,16 @@
|
||||
}
|
||||
(o.m = r),
|
||||
(o.c = e),
|
||||
(o.d = function(r, e, n) {
|
||||
o.o(r, e) ||
|
||||
Object.defineProperty(r, e, { enumerable: !0, get: n });
|
||||
(o.d = function (r, e, n) {
|
||||
o.o(r, e) || Object.defineProperty(r, e, { enumerable: !0, get: n });
|
||||
}),
|
||||
(o.r = function(r) {
|
||||
(o.r = function (r) {
|
||||
'undefined' != typeof Symbol &&
|
||||
Symbol.toStringTag &&
|
||||
Object.defineProperty(r, Symbol.toStringTag, { value: 'Module' }),
|
||||
Object.defineProperty(r, '__esModule', { value: !0 });
|
||||
}),
|
||||
(o.t = function(r, e) {
|
||||
(o.t = function (r, e) {
|
||||
if ((1 & e && (r = o(r)), 8 & e)) return r;
|
||||
if (4 & e && 'object' == typeof r && r && r.__esModule) return r;
|
||||
var n = Object.create(null);
|
||||
@@ -243,53 +266,46 @@
|
||||
o.d(
|
||||
n,
|
||||
t,
|
||||
function(e) {
|
||||
function (e) {
|
||||
return r[e];
|
||||
}.bind(null, t)
|
||||
);
|
||||
return n;
|
||||
}),
|
||||
(o.n = function(r) {
|
||||
(o.n = function (r) {
|
||||
var e =
|
||||
r && r.__esModule
|
||||
? function() {
|
||||
? function () {
|
||||
return r.default;
|
||||
}
|
||||
: function() {
|
||||
: function () {
|
||||
return r;
|
||||
};
|
||||
return o.d(e, 'a', e), e;
|
||||
}),
|
||||
(o.o = function(r, e) {
|
||||
(o.o = function (r, e) {
|
||||
return Object.prototype.hasOwnProperty.call(r, e);
|
||||
}),
|
||||
(o.p = ''),
|
||||
o((o.s = 0));
|
||||
})([
|
||||
function(r, e, o) {
|
||||
function (r, e, o) {
|
||||
var n = o(1),
|
||||
t = o(4);
|
||||
(_rollbarConfig = _rollbarConfig || {}),
|
||||
(_rollbarConfig.rollbarJsUrl =
|
||||
_rollbarConfig.rollbarJsUrl ||
|
||||
'https://cdnjs.cloudflare.com/ajax/libs/rollbar.js/2.7.1/rollbar.min.js'),
|
||||
(_rollbarConfig.async =
|
||||
void 0 === _rollbarConfig.async || _rollbarConfig.async);
|
||||
(_rollbarConfig.async = void 0 === _rollbarConfig.async || _rollbarConfig.async);
|
||||
var a = n.setupShim(window, _rollbarConfig),
|
||||
l = t(_rollbarConfig);
|
||||
(window.rollbar = n.Rollbar),
|
||||
a.loadFull(
|
||||
window,
|
||||
document,
|
||||
!_rollbarConfig.async,
|
||||
_rollbarConfig,
|
||||
l
|
||||
);
|
||||
a.loadFull(window, document, !_rollbarConfig.async, _rollbarConfig, l);
|
||||
},
|
||||
function(r, e, o) {
|
||||
function (r, e, o) {
|
||||
var n = o(2);
|
||||
function t(r) {
|
||||
return function() {
|
||||
return function () {
|
||||
try {
|
||||
return r.apply(this, arguments);
|
||||
} catch (r) {
|
||||
@@ -303,7 +319,7 @@
|
||||
function l(r, e) {
|
||||
(this.options = r), (this._rollbarOldOnError = null);
|
||||
var o = a++;
|
||||
(this.shimId = function() {
|
||||
(this.shimId = function () {
|
||||
return o;
|
||||
}),
|
||||
'undefined' != typeof window &&
|
||||
@@ -311,20 +327,20 @@
|
||||
(window._rollbarShims[o] = { handler: e, messages: [] });
|
||||
}
|
||||
var i = o(3),
|
||||
d = function(r, e) {
|
||||
d = function (r, e) {
|
||||
return new l(r, e);
|
||||
},
|
||||
c = function(r) {
|
||||
c = function (r) {
|
||||
return new i(d, r);
|
||||
};
|
||||
function s(r) {
|
||||
return t(function() {
|
||||
return t(function () {
|
||||
var e = Array.prototype.slice.call(arguments, 0),
|
||||
o = { shim: this, method: r, args: e, ts: new Date() };
|
||||
window._rollbarShims[this.shimId()].messages.push(o);
|
||||
});
|
||||
}
|
||||
(l.prototype.loadFull = function(r, e, o, n, a) {
|
||||
(l.prototype.loadFull = function (r, e, o, n, a) {
|
||||
var l = !1,
|
||||
i = e.createElement('script'),
|
||||
d = e.getElementsByTagName('script')[0],
|
||||
@@ -332,50 +348,47 @@
|
||||
(i.crossOrigin = ''),
|
||||
(i.src = n.rollbarJsUrl),
|
||||
o || (i.async = !0),
|
||||
(i.onload = i.onreadystatechange = t(function() {
|
||||
if (
|
||||
!(
|
||||
l ||
|
||||
(this.readyState &&
|
||||
'loaded' !== this.readyState &&
|
||||
'complete' !== this.readyState)
|
||||
)
|
||||
) {
|
||||
i.onload = i.onreadystatechange = null;
|
||||
try {
|
||||
c.removeChild(i);
|
||||
} catch (r) {}
|
||||
(l = !0),
|
||||
(function() {
|
||||
var e;
|
||||
if (void 0 === r._rollbarDidLoad) {
|
||||
e = new Error('rollbar.js did not load');
|
||||
for (
|
||||
var o, n, t, l, i = 0;
|
||||
(o = r._rollbarShims[i++]);
|
||||
|
||||
)
|
||||
for (o = o.messages || []; (n = o.shift()); )
|
||||
for (t = n.args || [], i = 0; i < t.length; ++i)
|
||||
if ('function' == typeof (l = t[i])) {
|
||||
l(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
'function' == typeof a && a(e);
|
||||
})();
|
||||
}
|
||||
})),
|
||||
(i.onload = i.onreadystatechange =
|
||||
t(function () {
|
||||
if (
|
||||
!(
|
||||
l ||
|
||||
(this.readyState &&
|
||||
'loaded' !== this.readyState &&
|
||||
'complete' !== this.readyState)
|
||||
)
|
||||
) {
|
||||
i.onload = i.onreadystatechange = null;
|
||||
try {
|
||||
c.removeChild(i);
|
||||
} catch (r) {}
|
||||
(l = !0),
|
||||
(function () {
|
||||
var e;
|
||||
if (void 0 === r._rollbarDidLoad) {
|
||||
e = new Error('rollbar.js did not load');
|
||||
for (var o, n, t, l, i = 0; (o = r._rollbarShims[i++]); )
|
||||
for (o = o.messages || []; (n = o.shift()); )
|
||||
for (t = n.args || [], i = 0; i < t.length; ++i)
|
||||
if ('function' == typeof (l = t[i])) {
|
||||
l(e);
|
||||
break;
|
||||
}
|
||||
}
|
||||
'function' == typeof a && a(e);
|
||||
})();
|
||||
}
|
||||
})),
|
||||
c.insertBefore(i, d);
|
||||
}),
|
||||
(l.prototype.wrap = function(r, e, o) {
|
||||
(l.prototype.wrap = function (r, e, o) {
|
||||
try {
|
||||
var n;
|
||||
if (
|
||||
((n =
|
||||
'function' == typeof e
|
||||
? e
|
||||
: function() {
|
||||
: function () {
|
||||
return e || {};
|
||||
}),
|
||||
'function' != typeof r)
|
||||
@@ -384,65 +397,61 @@
|
||||
if (r._isWrap) return r;
|
||||
if (
|
||||
!r._rollbar_wrapped &&
|
||||
((r._rollbar_wrapped = function() {
|
||||
((r._rollbar_wrapped = function () {
|
||||
o && 'function' == typeof o && o.apply(this, arguments);
|
||||
try {
|
||||
return r.apply(this, arguments);
|
||||
} catch (o) {
|
||||
var e = o;
|
||||
throw (e &&
|
||||
('string' == typeof e && (e = new String(e)),
|
||||
(e._rollbarContext = n() || {}),
|
||||
(e._rollbarContext._wrappedSource = r.toString()),
|
||||
(window._rollbarWrappedError = e)),
|
||||
e);
|
||||
throw (
|
||||
(e &&
|
||||
('string' == typeof e && (e = new String(e)),
|
||||
(e._rollbarContext = n() || {}),
|
||||
(e._rollbarContext._wrappedSource = r.toString()),
|
||||
(window._rollbarWrappedError = e)),
|
||||
e)
|
||||
);
|
||||
}
|
||||
}),
|
||||
(r._rollbar_wrapped._isWrap = !0),
|
||||
r.hasOwnProperty)
|
||||
)
|
||||
for (var t in r)
|
||||
r.hasOwnProperty(t) && (r._rollbar_wrapped[t] = r[t]);
|
||||
for (var t in r) r.hasOwnProperty(t) && (r._rollbar_wrapped[t] = r[t]);
|
||||
return r._rollbar_wrapped;
|
||||
} catch (e) {
|
||||
return r;
|
||||
}
|
||||
});
|
||||
for (
|
||||
var p = 'log,debug,info,warn,warning,error,critical,global,configure,handleUncaughtException,handleUnhandledRejection,captureEvent,captureDomContentLoaded,captureLoad'.split(
|
||||
','
|
||||
),
|
||||
var p =
|
||||
'log,debug,info,warn,warning,error,critical,global,configure,handleUncaughtException,handleUnhandledRejection,captureEvent,captureDomContentLoaded,captureLoad'.split(
|
||||
','
|
||||
),
|
||||
u = 0;
|
||||
u < p.length;
|
||||
++u
|
||||
)
|
||||
l.prototype[p[u]] = s(p[u]);
|
||||
r.exports = {
|
||||
setupShim: function(r, e) {
|
||||
setupShim: function (r, e) {
|
||||
if (r) {
|
||||
var o = e.globalAlias || 'Rollbar';
|
||||
if ('object' == typeof r[o]) return r[o];
|
||||
(r._rollbarShims = {}), (r._rollbarWrappedError = null);
|
||||
var a = new c(e);
|
||||
return t(function() {
|
||||
return t(function () {
|
||||
e.captureUncaught &&
|
||||
((a._rollbarOldOnError = r.onerror),
|
||||
n.captureUncaughtExceptions(r, a, !0),
|
||||
n.wrapGlobals(r, a, !0)),
|
||||
e.captureUnhandledRejections &&
|
||||
n.captureUnhandledRejections(r, a, !0);
|
||||
e.captureUnhandledRejections && n.captureUnhandledRejections(r, a, !0);
|
||||
var t = e.autoInstrument;
|
||||
return (
|
||||
!1 !== e.enabled &&
|
||||
(void 0 === t ||
|
||||
!0 === t ||
|
||||
('object' == typeof t && t.network)) &&
|
||||
(void 0 === t || !0 === t || ('object' == typeof t && t.network)) &&
|
||||
r.addEventListener &&
|
||||
(r.addEventListener('load', a.captureLoad.bind(a)),
|
||||
r.addEventListener(
|
||||
'DOMContentLoaded',
|
||||
a.captureDomContentLoaded.bind(a)
|
||||
)),
|
||||
r.addEventListener('DOMContentLoaded', a.captureDomContentLoaded.bind(a))),
|
||||
(r[o] = a),
|
||||
a
|
||||
);
|
||||
@@ -452,49 +461,35 @@
|
||||
Rollbar: c,
|
||||
};
|
||||
},
|
||||
function(r, e) {
|
||||
function (r, e) {
|
||||
function o(r, e, o) {
|
||||
if (e.hasOwnProperty && e.hasOwnProperty('addEventListener')) {
|
||||
for (
|
||||
var n = e.addEventListener;
|
||||
n._rollbarOldAdd && n.belongsToShim;
|
||||
|
||||
)
|
||||
for (var n = e.addEventListener; n._rollbarOldAdd && n.belongsToShim; )
|
||||
n = n._rollbarOldAdd;
|
||||
var t = function(e, o, t) {
|
||||
var t = function (e, o, t) {
|
||||
n.call(this, e, r.wrap(o), t);
|
||||
};
|
||||
(t._rollbarOldAdd = n),
|
||||
(t.belongsToShim = o),
|
||||
(e.addEventListener = t);
|
||||
for (
|
||||
var a = e.removeEventListener;
|
||||
a._rollbarOldRemove && a.belongsToShim;
|
||||
|
||||
)
|
||||
(t._rollbarOldAdd = n), (t.belongsToShim = o), (e.addEventListener = t);
|
||||
for (var a = e.removeEventListener; a._rollbarOldRemove && a.belongsToShim; )
|
||||
a = a._rollbarOldRemove;
|
||||
var l = function(r, e, o) {
|
||||
var l = function (r, e, o) {
|
||||
a.call(this, r, (e && e._rollbar_wrapped) || e, o);
|
||||
};
|
||||
(l._rollbarOldRemove = a),
|
||||
(l.belongsToShim = o),
|
||||
(e.removeEventListener = l);
|
||||
(l._rollbarOldRemove = a), (l.belongsToShim = o), (e.removeEventListener = l);
|
||||
}
|
||||
}
|
||||
r.exports = {
|
||||
captureUncaughtExceptions: function(r, e, o) {
|
||||
captureUncaughtExceptions: function (r, e, o) {
|
||||
if (r) {
|
||||
var n;
|
||||
if ('function' == typeof e._rollbarOldOnError)
|
||||
n = e._rollbarOldOnError;
|
||||
if ('function' == typeof e._rollbarOldOnError) n = e._rollbarOldOnError;
|
||||
else if (r.onerror) {
|
||||
for (n = r.onerror; n._rollbarOldOnError; )
|
||||
n = n._rollbarOldOnError;
|
||||
for (n = r.onerror; n._rollbarOldOnError; ) n = n._rollbarOldOnError;
|
||||
e._rollbarOldOnError = n;
|
||||
}
|
||||
var t = function() {
|
||||
var t = function () {
|
||||
var o = Array.prototype.slice.call(arguments, 0);
|
||||
!(function(r, e, o, n) {
|
||||
!(function (r, e, o, n) {
|
||||
r._rollbarWrappedError &&
|
||||
(n[4] || (n[4] = r._rollbarWrappedError),
|
||||
n[5] || (n[5] = r._rollbarWrappedError._rollbarContext),
|
||||
@@ -506,12 +501,12 @@
|
||||
o && (t._rollbarOldOnError = n), (r.onerror = t);
|
||||
}
|
||||
},
|
||||
captureUnhandledRejections: function(r, e, o) {
|
||||
captureUnhandledRejections: function (r, e, o) {
|
||||
if (r) {
|
||||
'function' == typeof r._rollbarURH &&
|
||||
r._rollbarURH.belongsToShim &&
|
||||
r.removeEventListener('unhandledrejection', r._rollbarURH);
|
||||
var n = function(r) {
|
||||
var n = function (r) {
|
||||
var o, n, t;
|
||||
try {
|
||||
o = r.reason;
|
||||
@@ -521,54 +516,49 @@
|
||||
try {
|
||||
n = r.promise;
|
||||
} catch (r) {
|
||||
n =
|
||||
'[unhandledrejection] error getting `promise` from event';
|
||||
n = '[unhandledrejection] error getting `promise` from event';
|
||||
}
|
||||
try {
|
||||
(t = r.detail),
|
||||
!o && t && ((o = t.reason), (n = t.promise));
|
||||
(t = r.detail), !o && t && ((o = t.reason), (n = t.promise));
|
||||
} catch (r) {}
|
||||
o ||
|
||||
(o =
|
||||
'[unhandledrejection] error getting `reason` from event'),
|
||||
e &&
|
||||
e.handleUnhandledRejection &&
|
||||
e.handleUnhandledRejection(o, n);
|
||||
o || (o = '[unhandledrejection] error getting `reason` from event'),
|
||||
e && e.handleUnhandledRejection && e.handleUnhandledRejection(o, n);
|
||||
};
|
||||
(n.belongsToShim = o),
|
||||
(r._rollbarURH = n),
|
||||
r.addEventListener('unhandledrejection', n);
|
||||
}
|
||||
},
|
||||
wrapGlobals: function(r, e, n) {
|
||||
wrapGlobals: function (r, e, n) {
|
||||
if (r) {
|
||||
var t,
|
||||
a,
|
||||
l = 'EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload'.split(
|
||||
','
|
||||
);
|
||||
l =
|
||||
'EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload'.split(
|
||||
','
|
||||
);
|
||||
for (t = 0; t < l.length; ++t)
|
||||
r[(a = l[t])] && r[a].prototype && o(e, r[a].prototype, n);
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
function(r, e) {
|
||||
function (r, e) {
|
||||
function o(r, e) {
|
||||
(this.impl = r(e, this)),
|
||||
(this.options = e),
|
||||
(function(r) {
|
||||
(function (r) {
|
||||
for (
|
||||
var e = function(r) {
|
||||
return function() {
|
||||
var e = function (r) {
|
||||
return function () {
|
||||
var e = Array.prototype.slice.call(arguments, 0);
|
||||
if (this.impl[r])
|
||||
return this.impl[r].apply(this.impl, e);
|
||||
if (this.impl[r]) return this.impl[r].apply(this.impl, e);
|
||||
};
|
||||
},
|
||||
o = 'log,debug,info,warn,warning,error,critical,global,configure,handleUncaughtException,handleUnhandledRejection,_createItem,wrap,loadFull,shimId,captureEvent,captureDomContentLoaded,captureLoad'.split(
|
||||
','
|
||||
),
|
||||
o =
|
||||
'log,debug,info,warn,warning,error,critical,global,configure,handleUncaughtException,handleUnhandledRejection,_createItem,wrap,loadFull,shimId,captureEvent,captureDomContentLoaded,captureLoad'.split(
|
||||
','
|
||||
),
|
||||
n = 0;
|
||||
n < o.length;
|
||||
n++
|
||||
@@ -576,7 +566,7 @@
|
||||
r[o[n]] = e(o[n]);
|
||||
})(o.prototype);
|
||||
}
|
||||
(o.prototype._swapAndProcessMessages = function(r, e) {
|
||||
(o.prototype._swapAndProcessMessages = function (r, e) {
|
||||
var o, n, t;
|
||||
for (this.impl = r(this.options); (o = e.shift()); )
|
||||
(n = o.method),
|
||||
@@ -590,24 +580,23 @@
|
||||
}),
|
||||
(r.exports = o);
|
||||
},
|
||||
function(r, e) {
|
||||
r.exports = function(r) {
|
||||
return function(e) {
|
||||
function (r, e) {
|
||||
r.exports = function (r) {
|
||||
return function (e) {
|
||||
if (!e && !window._rollbarInitialized) {
|
||||
for (
|
||||
var o,
|
||||
n,
|
||||
t = (r = r || {}).globalAlias || 'Rollbar',
|
||||
a = window.rollbar,
|
||||
l = function(r) {
|
||||
l = function (r) {
|
||||
return new a(r);
|
||||
},
|
||||
i = 0;
|
||||
(o = window._rollbarShims[i++]);
|
||||
|
||||
)
|
||||
n || (n = o.handler),
|
||||
o.handler._swapAndProcessMessages(l, o.messages);
|
||||
n || (n = o.handler), o.handler._swapAndProcessMessages(l, o.messages);
|
||||
(window[t] = n), (window._rollbarInitialized = !0);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
navigator.serviceWorker.getRegistrations().then(function(registrations) {
|
||||
navigator.serviceWorker.getRegistrations().then(function (registrations) {
|
||||
for (let registration of registrations) {
|
||||
registration.unregister();
|
||||
}
|
||||
@@ -17,8 +17,7 @@ if ('function' === typeof importScripts) {
|
||||
);
|
||||
|
||||
var supportsServiceWorker = 'serviceWorker' in navigator;
|
||||
var isNotLocalDevelopment =
|
||||
['localhost', '127'].indexOf(location.hostname) === -1;
|
||||
var isNotLocalDevelopment = ['localhost', '127'].indexOf(location.hostname) === -1;
|
||||
|
||||
if (supportsServiceWorker && isNotLocalDevelopment) {
|
||||
const swFileLocation = (window.PUBLIC_URL || '/') + 'sw.js';
|
||||
@@ -28,8 +27,7 @@ if ('function' === typeof importScripts) {
|
||||
// service worker has installed but is waiting to activate.
|
||||
wb.addEventListener('waiting', event => {
|
||||
// customize the UI prompt accordingly.
|
||||
const isFirstTimeUpdatedServiceWorkerIsWaiting =
|
||||
event.wasWaitingBeforeRegister === false;
|
||||
const isFirstTimeUpdatedServiceWorkerIsWaiting = event.wasWaitingBeforeRegister === false;
|
||||
console.log(
|
||||
'isFirstTimeUpdatedServiceWorkerIsWaiting',
|
||||
isFirstTimeUpdatedServiceWorkerIsWaiting
|
||||
|
||||
+10857
-39
File diff suppressed because it is too large.
Load diff
Vendored
+184
-1
@@ -1 +1,184 @@
|
||||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n()}(0,function(){"use strict";function e(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})}function n(){}function t(e){if(!(this instanceof t))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],u(e,this)}function o(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,t._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var o;try{o=t(e._value)}catch(f){return void i(n.promise,f)}r(n.promise,o)}else(1===e._state?r:i)(n.promise,e._value)})):e._deferreds.push(n)}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if(n instanceof t)return e._state=3,e._value=n,void f(e);if("function"==typeof o)return void u(function(e,n){return function(){e.apply(n,arguments)}}(o,n),e)}e._state=1,e._value=n,f(e)}catch(r){i(e,r)}}function i(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&t._immediateFn(function(){e._handled||t._unhandledRejectionFn(e._value)});for(var n=0,r=e._deferreds.length;r>n;n++)o(e,e._deferreds[n]);e._deferreds=null}function u(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,i(n,e))})}catch(o){if(t)return;t=!0,i(n,o)}}var c=setTimeout;t.prototype["catch"]=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var r=new this.constructor(n);return o(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,t,r)),r},t.prototype["finally"]=e,t.all=function(e){return new t(function(n,t){function o(e,f){try{if(f&&("object"==typeof f||"function"==typeof f)){var u=f.then;if("function"==typeof u)return void u.call(f,function(n){o(e,n)},t)}r[e]=f,0==--i&&n(r)}catch(c){t(c)}}if(!e||"undefined"==typeof e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);for(var i=r.length,f=0;r.length>f;f++)o(f,r[f])})},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t(function(n){n(e)})},t.reject=function(e){return new t(function(n,t){t(e)})},t.race=function(e){return new t(function(n,t){for(var o=0,r=e.length;r>o;o++)e[o].then(n,t)})},t._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){c(e,0)},t._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype["finally"]||(l.Promise.prototype["finally"]=e):l.Promise=t});
|
||||
!(function (e, n) {
|
||||
'object' == typeof exports && 'undefined' != typeof module
|
||||
? n()
|
||||
: 'function' == typeof define && define.amd
|
||||
? define(n)
|
||||
: n();
|
||||
})(0, function () {
|
||||
'use strict';
|
||||
function e(e) {
|
||||
var n = this.constructor;
|
||||
return this.then(
|
||||
function (t) {
|
||||
return n.resolve(e()).then(function () {
|
||||
return t;
|
||||
});
|
||||
},
|
||||
function (t) {
|
||||
return n.resolve(e()).then(function () {
|
||||
return n.reject(t);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
function n() {}
|
||||
function t(e) {
|
||||
if (!(this instanceof t)) throw new TypeError('Promises must be constructed via new');
|
||||
if ('function' != typeof e) throw new TypeError('not a function');
|
||||
(this._state = 0),
|
||||
(this._handled = !1),
|
||||
(this._value = undefined),
|
||||
(this._deferreds = []),
|
||||
u(e, this);
|
||||
}
|
||||
function o(e, n) {
|
||||
for (; 3 === e._state; ) e = e._value;
|
||||
0 !== e._state
|
||||
? ((e._handled = !0),
|
||||
t._immediateFn(function () {
|
||||
var t = 1 === e._state ? n.onFulfilled : n.onRejected;
|
||||
if (null !== t) {
|
||||
var o;
|
||||
try {
|
||||
o = t(e._value);
|
||||
} catch (f) {
|
||||
return void i(n.promise, f);
|
||||
}
|
||||
r(n.promise, o);
|
||||
} else (1 === e._state ? r : i)(n.promise, e._value);
|
||||
}))
|
||||
: e._deferreds.push(n);
|
||||
}
|
||||
function r(e, n) {
|
||||
try {
|
||||
if (n === e) throw new TypeError('A promise cannot be resolved with itself.');
|
||||
if (n && ('object' == typeof n || 'function' == typeof n)) {
|
||||
var o = n.then;
|
||||
if (n instanceof t) return (e._state = 3), (e._value = n), void f(e);
|
||||
if ('function' == typeof o)
|
||||
return void u(
|
||||
(function (e, n) {
|
||||
return function () {
|
||||
e.apply(n, arguments);
|
||||
};
|
||||
})(o, n),
|
||||
e
|
||||
);
|
||||
}
|
||||
(e._state = 1), (e._value = n), f(e);
|
||||
} catch (r) {
|
||||
i(e, r);
|
||||
}
|
||||
}
|
||||
function i(e, n) {
|
||||
(e._state = 2), (e._value = n), f(e);
|
||||
}
|
||||
function f(e) {
|
||||
2 === e._state &&
|
||||
0 === e._deferreds.length &&
|
||||
t._immediateFn(function () {
|
||||
e._handled || t._unhandledRejectionFn(e._value);
|
||||
});
|
||||
for (var n = 0, r = e._deferreds.length; r > n; n++) o(e, e._deferreds[n]);
|
||||
e._deferreds = null;
|
||||
}
|
||||
function u(e, n) {
|
||||
var t = !1;
|
||||
try {
|
||||
e(
|
||||
function (e) {
|
||||
t || ((t = !0), r(n, e));
|
||||
},
|
||||
function (e) {
|
||||
t || ((t = !0), i(n, e));
|
||||
}
|
||||
);
|
||||
} catch (o) {
|
||||
if (t) return;
|
||||
(t = !0), i(n, o);
|
||||
}
|
||||
}
|
||||
var c = setTimeout;
|
||||
(t.prototype['catch'] = function (e) {
|
||||
return this.then(null, e);
|
||||
}),
|
||||
(t.prototype.then = function (e, t) {
|
||||
var r = new this.constructor(n);
|
||||
return (
|
||||
o(
|
||||
this,
|
||||
new (function (e, n, t) {
|
||||
(this.onFulfilled = 'function' == typeof e ? e : null),
|
||||
(this.onRejected = 'function' == typeof n ? n : null),
|
||||
(this.promise = t);
|
||||
})(e, t, r)
|
||||
),
|
||||
r
|
||||
);
|
||||
}),
|
||||
(t.prototype['finally'] = e),
|
||||
(t.all = function (e) {
|
||||
return new t(function (n, t) {
|
||||
function o(e, f) {
|
||||
try {
|
||||
if (f && ('object' == typeof f || 'function' == typeof f)) {
|
||||
var u = f.then;
|
||||
if ('function' == typeof u)
|
||||
return void u.call(
|
||||
f,
|
||||
function (n) {
|
||||
o(e, n);
|
||||
},
|
||||
t
|
||||
);
|
||||
}
|
||||
(r[e] = f), 0 == --i && n(r);
|
||||
} catch (c) {
|
||||
t(c);
|
||||
}
|
||||
}
|
||||
if (!e || 'undefined' == typeof e.length)
|
||||
throw new TypeError('Promise.all accepts an array');
|
||||
var r = Array.prototype.slice.call(e);
|
||||
if (0 === r.length) return n([]);
|
||||
for (var i = r.length, f = 0; r.length > f; f++) o(f, r[f]);
|
||||
});
|
||||
}),
|
||||
(t.resolve = function (e) {
|
||||
return e && 'object' == typeof e && e.constructor === t
|
||||
? e
|
||||
: new t(function (n) {
|
||||
n(e);
|
||||
});
|
||||
}),
|
||||
(t.reject = function (e) {
|
||||
return new t(function (n, t) {
|
||||
t(e);
|
||||
});
|
||||
}),
|
||||
(t.race = function (e) {
|
||||
return new t(function (n, t) {
|
||||
for (var o = 0, r = e.length; r > o; o++) e[o].then(n, t);
|
||||
});
|
||||
}),
|
||||
(t._immediateFn =
|
||||
('function' == typeof setImmediate &&
|
||||
function (e) {
|
||||
setImmediate(e);
|
||||
}) ||
|
||||
function (e) {
|
||||
c(e, 0);
|
||||
}),
|
||||
(t._unhandledRejectionFn = function (e) {
|
||||
void 0 !== console && console && console.warn('Possible Unhandled Promise Rejection:', e);
|
||||
});
|
||||
var l = (function () {
|
||||
if ('undefined' != typeof self) return self;
|
||||
if ('undefined' != typeof window) return window;
|
||||
if ('undefined' != typeof global) return global;
|
||||
throw Error('unable to locate global object');
|
||||
})();
|
||||
'Promise' in l
|
||||
? l.Promise.prototype['finally'] || (l.Promise.prototype['finally'] = e)
|
||||
: (l.Promise = t);
|
||||
});
|
||||
@@ -1,16 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Silent OpenID Connect Token Refresh Page</title>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-shim.min.js"></script>
|
||||
<script type="text/javascript" src='es6-shim.min.js'></script>
|
||||
<script type="text/javascript" src="oidc-client.min.js"></script>
|
||||
<script type="text/javascript" src='polyfill.min.js'></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="es6-shim.min.js"
|
||||
></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="oidc-client.min.js"
|
||||
></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="polyfill.min.js"
|
||||
></script>
|
||||
<script type="text/javascript">
|
||||
new UserManager().signinSilentCallback().catch(console.error);
|
||||
</script>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user