@zeedhi/teknisa-cli 1.41.0 → 1.45.0
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 +2 -2
- package/src/util/project/module/src/App.vue +3 -3
- package/src/util/project/product/.eslintrc.js +10 -10
- package/src/util/project/product/src/App.vue +6 -3
- package/src/util/project/product/src/components/img-link/ImgLink.vue +1 -1
- package/src/util/project/product/src/controllers/AppController.ts +16 -1
- package/src/util/project/product/src/plugins/zeedhi.ts +14 -1
- package/src/util/project/product/tsconfig.json +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/teknisa-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.0",
|
|
4
4
|
"description": "Teknisa CLI",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"/src",
|
|
35
35
|
"/bin"
|
|
36
36
|
],
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "5cb77925445487ae4412a779f01ee7be41b59817"
|
|
38
38
|
}
|
|
@@ -49,14 +49,14 @@ export default class App extends Vue {
|
|
|
49
49
|
this.mainPage.path = `pages/${page}`;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|
|
53
53
|
|
|
54
54
|
public created() {
|
|
55
55
|
window.addEventListener('message', this.handleMessageEvent);
|
|
56
56
|
if (process.env.NODE_ENV === 'production') {
|
|
57
57
|
this.onRouteChange(localStorage.getItem('routeParams'));
|
|
58
58
|
} else {
|
|
59
|
-
const searchParams = new URL(window.location.href)
|
|
59
|
+
const { searchParams } = new URL(window.location.href);
|
|
60
60
|
|
|
61
61
|
let userAuth: any = searchParams.get('user_auth');
|
|
62
62
|
let productInfo: any = searchParams.get('product_info');
|
|
@@ -68,7 +68,7 @@ export default class App extends Vue {
|
|
|
68
68
|
this.validationAndSetLocalStorage('LOGIN_USER_NAME', userAuth.LOGIN_USER_NAME);
|
|
69
69
|
this.validationAndSetLocalStorage('LOGIN_LANGUAGE', userAuth.LOGIN_LANGUAGE);
|
|
70
70
|
this.validationAndSetLocalStorage('LOGIN_HASH', userAuth.LOGIN_HASH);
|
|
71
|
-
this.validationAndSetLocalStorage('LOGIN_KEEP_CONNECTED', userAuth.LOGIN_KEEP_CONNECTED
|
|
71
|
+
this.validationAndSetLocalStorage('LOGIN_KEEP_CONNECTED', userAuth.LOGIN_KEEP_CONNECTED);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
if (productInfo) {
|
|
@@ -3,20 +3,20 @@ module.exports = {
|
|
|
3
3
|
env: {
|
|
4
4
|
browser: true,
|
|
5
5
|
es6: true,
|
|
6
|
-
node: true
|
|
6
|
+
node: true,
|
|
7
7
|
},
|
|
8
|
-
ignorePatterns: [
|
|
9
|
-
parser:
|
|
8
|
+
ignorePatterns: ['node_modules/', '**/coverage/*', '**/dist/*', '**/types/*', '**/__mocks__/*', '**/*.d.ts', '**/*.js'],
|
|
9
|
+
parser: 'vue-eslint-parser',
|
|
10
10
|
parserOptions: {
|
|
11
|
-
parser:
|
|
12
|
-
extraFileExtensions: [
|
|
13
|
-
project:
|
|
11
|
+
parser: '@typescript-eslint/parser',
|
|
12
|
+
extraFileExtensions: ['.vue'],
|
|
13
|
+
project: './tsconfig.json',
|
|
14
14
|
},
|
|
15
15
|
plugins: [
|
|
16
|
-
|
|
16
|
+
'@typescript-eslint',
|
|
17
17
|
],
|
|
18
18
|
extends: [
|
|
19
|
-
|
|
19
|
+
'airbnb-typescript/base',
|
|
20
20
|
],
|
|
21
21
|
rules: {
|
|
22
22
|
// maximum line length
|
|
@@ -37,5 +37,5 @@ module.exports = {
|
|
|
37
37
|
'import/no-unresolved': 'off',
|
|
38
38
|
// ignore enforcement of consistent linebreak style
|
|
39
39
|
'linebreak-style': 0,
|
|
40
|
-
}
|
|
41
|
-
}
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<zd-dialog v-bind="{ name: 'appDialog ' }" />
|
|
28
28
|
|
|
29
29
|
<!-- Loading -->
|
|
30
|
-
<
|
|
30
|
+
<tek-loading v-bind="{ name: 'appLoading' }" />
|
|
31
31
|
</v-app>
|
|
32
32
|
</template>
|
|
33
33
|
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
import Vue from 'vue';
|
|
36
36
|
import Component from 'vue-class-component';
|
|
37
37
|
import { IMenu, IHeader, Menu } from '@zeedhi/common';
|
|
38
|
-
import { Metadata } from '@zeedhi/core';
|
|
39
|
-
import { Config } from '@zeedhi/core';
|
|
38
|
+
import { Config, Metadata } from '@zeedhi/core';
|
|
40
39
|
import { TekLibAuth, TekLibLocalStorage } from '@zeedhi/tek-lib';
|
|
41
40
|
|
|
42
41
|
@Component
|
|
@@ -83,6 +82,10 @@ export default class App extends Vue {
|
|
|
83
82
|
'ctrl+m': {
|
|
84
83
|
event: '{{AppController.toggleMenu}}',
|
|
85
84
|
},
|
|
85
|
+
esc: {
|
|
86
|
+
event: '{{AppController.closeMenu}}',
|
|
87
|
+
stop: true,
|
|
88
|
+
},
|
|
86
89
|
},
|
|
87
90
|
},
|
|
88
91
|
{
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { IEventParam, Metadata, Singleton } from '@zeedhi/core';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Menu,
|
|
4
|
+
MenuButton,
|
|
5
|
+
AlertService,
|
|
6
|
+
} from '@zeedhi/common';
|
|
3
7
|
import { TekLibAuth } from '@zeedhi/tek-lib';
|
|
4
8
|
|
|
5
9
|
@Singleton
|
|
@@ -29,4 +33,15 @@ export class AppController {
|
|
|
29
33
|
public showMessageExpiredMenu() {
|
|
30
34
|
TekLibAuth.showMessageExpiredMenu();
|
|
31
35
|
}
|
|
36
|
+
|
|
37
|
+
public closeMenu({ component }: IEventParam<MenuButton>) {
|
|
38
|
+
const menu = Metadata.getInstance<Menu>(component.menuName);
|
|
39
|
+
if (menu.opened && !menu.miniState) {
|
|
40
|
+
menu.toggleMenu();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public escAction() {
|
|
45
|
+
AlertService.hide();
|
|
46
|
+
}
|
|
32
47
|
}
|
|
@@ -4,7 +4,11 @@ import ZeedhiComponents from '@zeedhi/vuetify';
|
|
|
4
4
|
import TeknisaComponents from '@zeedhi/teknisa-components-vuetify';
|
|
5
5
|
import TekLibComponents from '@zeedhi/tek-lib';
|
|
6
6
|
import { Icons } from '@zeedhi/common';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Messages,
|
|
9
|
+
KeyMap,
|
|
10
|
+
Loader,
|
|
11
|
+
} from '@zeedhi/core';
|
|
8
12
|
import router from '../router';
|
|
9
13
|
import controllers from '../controllers';
|
|
10
14
|
import config from '../config/config';
|
|
@@ -54,3 +58,12 @@ Messages.add({
|
|
|
54
58
|
},
|
|
55
59
|
},
|
|
56
60
|
});
|
|
61
|
+
|
|
62
|
+
const appController = Loader.getInstance('AppController');
|
|
63
|
+
|
|
64
|
+
KeyMap.bind({
|
|
65
|
+
esc: {
|
|
66
|
+
event: () => { appController.escAction(); },
|
|
67
|
+
stop: true,
|
|
68
|
+
},
|
|
69
|
+
});
|