@dile/lib 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Common App libraries, mixins and helpers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@reduxjs/toolkit": "^2.5.1",
|
|
28
28
|
"lit": "^2.7.0 || ^3.0.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "b3123238c9a8bbed945657c8ecf57d7d900610f9"
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ export const DileAuthGuard = (store) => class extends DileAppNavigate(DileState(
|
|
|
42
42
|
stateChanged(state) {
|
|
43
43
|
if(!state) return;
|
|
44
44
|
if (state.user.isInitialized) {
|
|
45
|
-
if(state.user.isLoggedIn && state
|
|
45
|
+
if(state.user.isLoggedIn && this.validateAdditionalRules(state)) {
|
|
46
46
|
this.loaded = true;
|
|
47
47
|
} else {
|
|
48
48
|
this.goToUrl('/', this.pageTitle);
|
|
@@ -55,4 +55,8 @@ export const DileAuthGuard = (store) => class extends DileAppNavigate(DileState(
|
|
|
55
55
|
<dile-spinner-block></dile-spinner-block>
|
|
56
56
|
`;
|
|
57
57
|
}
|
|
58
|
+
|
|
59
|
+
validateAdditionalRules() {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
58
62
|
}
|
package/src/lib/DileAppRouter.js
CHANGED
|
@@ -5,6 +5,7 @@ export const DileAppRouter = (superclass) => class extends superclass {
|
|
|
5
5
|
static get properties() {
|
|
6
6
|
return {
|
|
7
7
|
_routes: { type: Object },
|
|
8
|
+
_router: { type: Object },
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -32,8 +33,8 @@ export const DileAppRouter = (superclass) => class extends superclass {
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
createRoutes(routes) {
|
|
35
|
-
new Router(this,
|
|
36
|
+
this._router = new Router(this, routes);
|
|
36
37
|
|
|
37
|
-
this._routes = new Routes(this, routes);
|
|
38
|
+
//this._routes = new Routes(this, routes);
|
|
38
39
|
}
|
|
39
40
|
}
|