@dile/lib 0.1.1 → 0.1.3
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.3",
|
|
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": "9bd8b04ed58389c3bc18c2ff88c872cf51f24e7b"
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, html, css } from 'lit';
|
|
2
2
|
import { DileState } from '../lib/DileState.js';
|
|
3
|
-
import '@dile/ui/components/toast/toast';
|
|
3
|
+
import '@dile/ui/components/toast/toast.js';
|
|
4
4
|
|
|
5
5
|
export const DileAppFeedback = (store) => class extends DileState(store)(LitElement) {
|
|
6
6
|
static styles = [
|
|
@@ -36,7 +36,6 @@ export const DileAppFeedback = (store) => class extends DileState(store)(LitElem
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
stateChanged(state) {
|
|
39
|
-
console.log('state', state)
|
|
40
39
|
this.incomingMsg = state.feedback.message;
|
|
41
40
|
}
|
|
42
41
|
|
|
@@ -24,10 +24,6 @@ export const DileAuthGuard = (store) => class extends DileAppNavigate(DileState(
|
|
|
24
24
|
this.pageTitle = '';
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
createRenderRoot() {
|
|
28
|
-
return this;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
27
|
render() {
|
|
32
28
|
return html`
|
|
33
29
|
${this.loaded
|
|
@@ -46,7 +42,7 @@ export const DileAuthGuard = (store) => class extends DileAppNavigate(DileState(
|
|
|
46
42
|
stateChanged(state) {
|
|
47
43
|
if(!state) return;
|
|
48
44
|
if (state.user.isInitialized) {
|
|
49
|
-
if(state.user.isLoggedIn && state
|
|
45
|
+
if(state.user.isLoggedIn && this.validateAdditionalRules(state)) {
|
|
50
46
|
this.loaded = true;
|
|
51
47
|
} else {
|
|
52
48
|
this.goToUrl('/', this.pageTitle);
|
|
@@ -59,4 +55,8 @@ export const DileAuthGuard = (store) => class extends DileAppNavigate(DileState(
|
|
|
59
55
|
<dile-spinner-block></dile-spinner-block>
|
|
60
56
|
`;
|
|
61
57
|
}
|
|
58
|
+
|
|
59
|
+
validateAdditionalRules() {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
62
|
}
|