openc3-tool-base 5.16.2 → 5.17.1
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: 4f07688cd77168470851401e6452271e44aad6820c7422bcb440c5f36d38db1a
|
4
|
+
data.tar.gz: c0b716b5b08376fb97dd0d4364d6ffc01b928c670be2b3ed0616c229d91acd96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d9f0b2b3412fbd6922be950324e37620303554769a52554f66294b4282f95ad4b9e92a1e6e550ec4ab18ac65b1f2f79cc2ac3c1b7520545c4e1eb6afc7ebf74
|
7
|
+
data.tar.gz: e703b5821a491204309d9c2b29f040448f342d110f02a1dd0fa32830211f0c5070385957141798184df8be438bb8d1acb063bb13067106f91adf84acb095c1a9
|
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});
|