openc3-tool-base 5.16.2 → 5.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/base/js/auth.js +1 -1
- data/tools/base/openc3-tool-base.js +1 -1
- data/tools/base/openc3-tool-base.js.map +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b8c828112d5ff8024e8ec6677a9e9676138c231ac78dd6b2d3a05118e4216c
|
4
|
+
data.tar.gz: dcbdea578c6b3db333aada5a3c413677de3b44036a78ca04b22d232170c8fdcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54cdea957c6759b22ffbc1a45d220aaa233bf84cfc08d57858bed021ce522803c9c26c6c9fd84cabeff9972996133fb448b8aaeb6a5d876ce923ed5ac3752c34
|
7
|
+
data.tar.gz: 1abca59cf38098c947dc2f94aed37b0f18bc80f5023deac6e38c754ab051ff17c57016fcfb440018d9211901e0377e6fb475c356e2c8a866a34d38e9f1a67345
|
data/tools/base/js/auth.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const emptyPromise=function(e=null){return new Promise((n=>{n(e)}))};class Auth{updateToken(e,n=!1){return localStorage.openc3Token&&!n||(this.clearTokens(),this.login(location.href)),emptyPromise()}setTokens(){}clearTokens(){delete localStorage.openc3Token}login(e){/^\/login/.test(location.pathname)||(location=`/login?redirect=${encodeURI(e)}`)}logout(){this.clearTokens(),location.reload()}user(){return{name:"Anonymous"}}getInitOptions(){}init(){return emptyPromise(!0)}}var OpenC3Auth=new Auth;Object.defineProperty(OpenC3Auth,"defaultMinValidity",{value:30,writable:!1,enumerable:!0,configurable:!1});
|
1
|
+
const emptyPromise=function(e=null){return new Promise((n=>{n(e)}))};class Auth{updateToken(e,n=!1){return localStorage.openc3Token&&!n||(this.clearTokens(),this.login(location.href)),emptyPromise()}setTokens(){}clearTokens(){delete localStorage.openc3Token}login(e){/^\/login/.test(location.pathname)||(location=`/login?redirect=${encodeURI(e)}`)}logout(){this.clearTokens(),location.reload()}user(){return{name:"Anonymous"}}userroles(){return["ALLSCOPES__admin"]}getInitOptions(){}init(){return emptyPromise(!0)}}var OpenC3Auth=new Auth;Object.defineProperty(OpenC3Auth,"defaultMinValidity",{value:30,writable:!1,enumerable:!0,configurable:!1});
|