@fmdevui/fm-dev 1.0.21 → 1.0.22

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.
Files changed (103) hide show
  1. package/es/core/index.d.ts +1 -0
  2. package/es/core/layout/index.d.ts +1 -2
  3. package/es/core/types/emitt/index.d.ts +6 -0
  4. package/es/index.d.ts +1 -0
  5. package/es/index.mjs +2 -0
  6. package/es/packages/core/index.mjs +1 -0
  7. package/es/packages/core/layout/index.mjs +3 -6
  8. package/es/packages/core/layout/navBars/topBar/onlineuser.vue.mjs +1 -1
  9. package/es/packages/core/layout/navBars/topBar/onlineuser.vue2.mjs +6 -12
  10. package/es/packages/core/layout/navBars/topBar/sendMessage.vue2.mjs +5 -10
  11. package/es/packages/core/layout/navBars/topBar/user.vue2.mjs +1 -2
  12. package/es/packages/core/utils/comm/sysInfo.mjs +2 -2
  13. package/{lib/sysInfo.css → es/version.css} +4 -3
  14. package/index.css +22 -0
  15. package/index.js +6800 -71
  16. package/index.min.css +3 -0
  17. package/index.min.js +31 -26
  18. package/index.min.mjs +31 -26
  19. package/index.mjs +6795 -71
  20. package/lib/core/index.d.ts +1 -0
  21. package/lib/core/layout/index.d.ts +1 -2
  22. package/lib/core/types/emitt/index.d.ts +6 -0
  23. package/{es/make-installer.css → lib/defaults.css} +3 -3
  24. package/lib/index.d.ts +1 -0
  25. package/lib/index.js +7 -0
  26. package/lib/packages/core/index.js +4 -0
  27. package/lib/packages/core/layout/index.js +0 -4
  28. package/lib/packages/core/layout/navBars/topBar/onlineuser.vue.js +1 -1
  29. package/lib/packages/core/layout/navBars/topBar/onlineuser.vue2.js +8 -14
  30. package/lib/packages/core/layout/navBars/topBar/sendMessage.vue2.js +4 -9
  31. package/lib/packages/core/layout/navBars/topBar/user.vue2.js +1 -2
  32. package/lib/packages/core/utils/comm/sysInfo.js +2 -2
  33. package/package.json +1 -1
  34. package/es/core/layout/component/aside.vue.d.ts +0 -5
  35. package/es/core/layout/component/columnsAside.vue.d.ts +0 -5
  36. package/es/core/layout/component/header.vue.d.ts +0 -3
  37. package/es/core/layout/component/main.vue.d.ts +0 -7
  38. package/es/core/layout/footer/index.vue.d.ts +0 -3
  39. package/es/core/layout/layout.vue.d.ts +0 -3
  40. package/es/core/layout/logo/index.vue.d.ts +0 -3
  41. package/es/core/layout/main/classic.vue.d.ts +0 -18
  42. package/es/core/layout/main/columns.vue.d.ts +0 -19
  43. package/es/core/layout/main/defaults.vue.d.ts +0 -19
  44. package/es/core/layout/main/transverse.vue.d.ts +0 -18
  45. package/es/core/layout/navBars/index.vue.d.ts +0 -3
  46. package/es/core/layout/navBars/tagsView/contextmenu.vue.d.ts +0 -28
  47. package/es/core/layout/navBars/tagsView/tagsView.vue.d.ts +0 -45
  48. package/es/core/layout/navBars/topBar/breadcrumb.vue.d.ts +0 -3
  49. package/es/core/layout/navBars/topBar/changePassword.vue.d.ts +0 -7
  50. package/es/core/layout/navBars/topBar/index.vue.d.ts +0 -3
  51. package/es/core/layout/navBars/topBar/onlineuser.vue.d.ts +0 -30
  52. package/es/core/layout/navBars/topBar/search.vue.d.ts +0 -7
  53. package/es/core/layout/navBars/topBar/sendMessage.vue.d.ts +0 -11
  54. package/es/core/layout/navBars/topBar/upgradeInfo.vue.d.ts +0 -5
  55. package/es/core/layout/navBars/topBar/user.vue.d.ts +0 -81
  56. package/es/core/layout/navBars/topBar/userNews.vue.d.ts +0 -9
  57. package/es/core/layout/navMenu/horizontal.vue.d.ts +0 -42
  58. package/es/core/layout/navMenu/subItem.vue.d.ts +0 -42
  59. package/es/core/layout/navMenu/vertical.vue.d.ts +0 -42
  60. package/es/core/layout/routerView/iframes.vue.d.ts +0 -35
  61. package/es/core/layout/routerView/parent.vue.d.ts +0 -3
  62. package/es/core/ui/components/editor/index.vue.d.ts +0 -52
  63. package/es/core/utils/comm/idleTimeout.d.ts +0 -45
  64. package/es/core/utils/comm/signalR.d.ts +0 -3
  65. package/es/packages/core/utils/comm/idleTimeout.mjs +0 -124
  66. package/es/packages/core/utils/comm/signalR.mjs +0 -45
  67. package/es/sysInfo.d.ts +0 -2
  68. package/es/sysInfo.mjs +0 -53
  69. package/lib/core/layout/component/aside.vue.d.ts +0 -5
  70. package/lib/core/layout/component/columnsAside.vue.d.ts +0 -5
  71. package/lib/core/layout/component/header.vue.d.ts +0 -3
  72. package/lib/core/layout/component/main.vue.d.ts +0 -7
  73. package/lib/core/layout/footer/index.vue.d.ts +0 -3
  74. package/lib/core/layout/layout.vue.d.ts +0 -3
  75. package/lib/core/layout/logo/index.vue.d.ts +0 -3
  76. package/lib/core/layout/main/classic.vue.d.ts +0 -18
  77. package/lib/core/layout/main/columns.vue.d.ts +0 -19
  78. package/lib/core/layout/main/defaults.vue.d.ts +0 -19
  79. package/lib/core/layout/main/transverse.vue.d.ts +0 -18
  80. package/lib/core/layout/navBars/index.vue.d.ts +0 -3
  81. package/lib/core/layout/navBars/tagsView/contextmenu.vue.d.ts +0 -28
  82. package/lib/core/layout/navBars/tagsView/tagsView.vue.d.ts +0 -45
  83. package/lib/core/layout/navBars/topBar/breadcrumb.vue.d.ts +0 -3
  84. package/lib/core/layout/navBars/topBar/changePassword.vue.d.ts +0 -7
  85. package/lib/core/layout/navBars/topBar/index.vue.d.ts +0 -3
  86. package/lib/core/layout/navBars/topBar/onlineuser.vue.d.ts +0 -30
  87. package/lib/core/layout/navBars/topBar/search.vue.d.ts +0 -7
  88. package/lib/core/layout/navBars/topBar/sendMessage.vue.d.ts +0 -11
  89. package/lib/core/layout/navBars/topBar/upgradeInfo.vue.d.ts +0 -5
  90. package/lib/core/layout/navBars/topBar/user.vue.d.ts +0 -81
  91. package/lib/core/layout/navBars/topBar/userNews.vue.d.ts +0 -9
  92. package/lib/core/layout/navMenu/horizontal.vue.d.ts +0 -42
  93. package/lib/core/layout/navMenu/subItem.vue.d.ts +0 -42
  94. package/lib/core/layout/navMenu/vertical.vue.d.ts +0 -42
  95. package/lib/core/layout/routerView/iframes.vue.d.ts +0 -35
  96. package/lib/core/layout/routerView/parent.vue.d.ts +0 -3
  97. package/lib/core/ui/components/editor/index.vue.d.ts +0 -52
  98. package/lib/core/utils/comm/idleTimeout.d.ts +0 -45
  99. package/lib/core/utils/comm/signalR.d.ts +0 -3
  100. package/lib/packages/core/utils/comm/idleTimeout.js +0 -128
  101. package/lib/packages/core/utils/comm/signalR.js +0 -66
  102. package/lib/sysInfo.d.ts +0 -2
  103. package/lib/sysInfo.js +0 -56
@@ -1,81 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ExtractPropTypes } from 'vue';
2
- import { VxeGridMethods, VxeGridProps, VxeGridEventProps, VxeGridSlots } from 'vxe-table';
3
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
4
- searchRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
5
- openSearch: () => void;
6
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
7
- layoutMenuAutocompleteRef: unknown;
8
- }, HTMLDivElement, ComponentProvideOptions, {
9
- P: {};
10
- B: {};
11
- D: {};
12
- C: {};
13
- M: {};
14
- Defaults: {};
15
- }, Readonly<{}> & Readonly<{}>, {
16
- openSearch: () => void;
17
- }, {}, {}, {}, {}> | null;
18
- onlineUserRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
19
- openDrawer: () => Promise<void>;
20
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
21
- queryForm: unknown;
22
- xGrid: ( VxeGridMethods<any> & {
23
- $props: VxeGridProps<any> & VxeGridEventProps<any>;
24
- $slots: VxeGridSlots<any>;
25
- }) | null;
26
- sendMessageRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
27
- title: StringConstructor;
28
- }>> & Readonly<{}>, {
29
- openDialog: (row: any) => void;
30
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
31
- ruleFormRef: unknown;
32
- }, HTMLDivElement, ComponentProvideOptions, {
33
- P: {};
34
- B: {};
35
- D: {};
36
- C: {};
37
- M: {};
38
- Defaults: {};
39
- }, Readonly< ExtractPropTypes<{
40
- title: StringConstructor;
41
- }>> & Readonly<{}>, {
42
- openDialog: (row: any) => void;
43
- }, {}, {}, {}, {}> | null;
44
- }, HTMLDivElement, ComponentProvideOptions, {
45
- P: {};
46
- B: {};
47
- D: {};
48
- C: {};
49
- M: {};
50
- Defaults: {};
51
- }, Readonly<{}> & Readonly<{}>, {
52
- openDrawer: () => Promise<void>;
53
- }, {}, {}, {}, {}> | null;
54
- changePasswordRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
55
- openDialog: () => void;
56
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
57
- ruleFormRef: unknown;
58
- }, HTMLDivElement, ComponentProvideOptions, {
59
- P: {};
60
- B: {};
61
- D: {};
62
- C: {};
63
- M: {};
64
- Defaults: {};
65
- }, Readonly<{}> & Readonly<{}>, {
66
- openDialog: () => void;
67
- }, {}, {}, {}, {}> | null;
68
- upgradeInfoRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
69
- openDialog: (row: any) => void;
70
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
71
- P: {};
72
- B: {};
73
- D: {};
74
- C: {};
75
- M: {};
76
- Defaults: {};
77
- }, Readonly<{}> & Readonly<{}>, {
78
- openDialog: (row: any) => void;
79
- }, {}, {}, {}, {}> | null;
80
- }, HTMLDivElement>;
81
- export default _default;
@@ -1,9 +0,0 @@
1
- import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<ExtractPropTypes<{
3
- noticeList: any;
4
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
5
- noticeList: any;
6
- }>> & Readonly<{}>, {
7
- noticeList: any;
8
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
9
- export default _default;
@@ -1,42 +0,0 @@
1
- import { RouteRecordRaw } from 'vue-router';
2
- import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ExtractPropTypes<{
4
- menuList: {
5
- type: {
6
- (arrayLength: number): RouteRecordRaw[];
7
- (...items: RouteRecordRaw[]): RouteRecordRaw[];
8
- new (arrayLength: number): RouteRecordRaw[];
9
- new (...items: RouteRecordRaw[]): RouteRecordRaw[];
10
- isArray(arg: any): arg is any[];
11
- readonly prototype: any[];
12
- from<T>(arrayLike: ArrayLike<T>): T[];
13
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
14
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
15
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
16
- of<T>(...items: T[]): T[];
17
- readonly [Symbol.species]: ArrayConstructor;
18
- };
19
- default: () => never[];
20
- };
21
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
22
- menuList: {
23
- type: {
24
- (arrayLength: number): RouteRecordRaw[];
25
- (...items: RouteRecordRaw[]): RouteRecordRaw[];
26
- new (arrayLength: number): RouteRecordRaw[];
27
- new (...items: RouteRecordRaw[]): RouteRecordRaw[];
28
- isArray(arg: any): arg is any[];
29
- readonly prototype: any[];
30
- from<T>(arrayLike: ArrayLike<T>): T[];
31
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
32
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
33
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
34
- of<T>(...items: T[]): T[];
35
- readonly [Symbol.species]: ArrayConstructor;
36
- };
37
- default: () => never[];
38
- };
39
- }>> & Readonly<{}>, {
40
- menuList: RouteRecordRaw[];
41
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
42
- export default _default;
@@ -1,42 +0,0 @@
1
- import { RouteRecordRaw } from 'vue-router';
2
- import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ExtractPropTypes<{
4
- chil: {
5
- type: {
6
- (arrayLength: number): RouteRecordRaw[];
7
- (...items: RouteRecordRaw[]): RouteRecordRaw[];
8
- new (arrayLength: number): RouteRecordRaw[];
9
- new (...items: RouteRecordRaw[]): RouteRecordRaw[];
10
- isArray(arg: any): arg is any[];
11
- readonly prototype: any[];
12
- from<T>(arrayLike: ArrayLike<T>): T[];
13
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
14
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
15
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
16
- of<T>(...items: T[]): T[];
17
- readonly [Symbol.species]: ArrayConstructor;
18
- };
19
- default: () => never[];
20
- };
21
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
22
- chil: {
23
- type: {
24
- (arrayLength: number): RouteRecordRaw[];
25
- (...items: RouteRecordRaw[]): RouteRecordRaw[];
26
- new (arrayLength: number): RouteRecordRaw[];
27
- new (...items: RouteRecordRaw[]): RouteRecordRaw[];
28
- isArray(arg: any): arg is any[];
29
- readonly prototype: any[];
30
- from<T>(arrayLike: ArrayLike<T>): T[];
31
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
32
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
33
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
34
- of<T>(...items: T[]): T[];
35
- readonly [Symbol.species]: ArrayConstructor;
36
- };
37
- default: () => never[];
38
- };
39
- }>> & Readonly<{}>, {
40
- chil: RouteRecordRaw[];
41
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
42
- export default _default;
@@ -1,42 +0,0 @@
1
- import { RouteRecordRaw } from 'vue-router';
2
- import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ExtractPropTypes<{
4
- menuList: {
5
- type: {
6
- (arrayLength: number): RouteRecordRaw[];
7
- (...items: RouteRecordRaw[]): RouteRecordRaw[];
8
- new (arrayLength: number): RouteRecordRaw[];
9
- new (...items: RouteRecordRaw[]): RouteRecordRaw[];
10
- isArray(arg: any): arg is any[];
11
- readonly prototype: any[];
12
- from<T>(arrayLike: ArrayLike<T>): T[];
13
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
14
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
15
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
16
- of<T>(...items: T[]): T[];
17
- readonly [Symbol.species]: ArrayConstructor;
18
- };
19
- default: () => never[];
20
- };
21
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
22
- menuList: {
23
- type: {
24
- (arrayLength: number): RouteRecordRaw[];
25
- (...items: RouteRecordRaw[]): RouteRecordRaw[];
26
- new (arrayLength: number): RouteRecordRaw[];
27
- new (...items: RouteRecordRaw[]): RouteRecordRaw[];
28
- isArray(arg: any): arg is any[];
29
- readonly prototype: any[];
30
- from<T>(arrayLike: ArrayLike<T>): T[];
31
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
32
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
33
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
34
- of<T>(...items: T[]): T[];
35
- readonly [Symbol.species]: ArrayConstructor;
36
- };
37
- default: () => never[];
38
- };
39
- }>> & Readonly<{}>, {
40
- menuList: RouteRecordRaw[];
41
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
42
- export default _default;
@@ -1,35 +0,0 @@
1
- import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<ExtractPropTypes<{
3
- refreshKey: {
4
- type: StringConstructor;
5
- default: () => string;
6
- };
7
- name: {
8
- type: StringConstructor;
9
- default: () => string;
10
- };
11
- list: {
12
- type: ArrayConstructor;
13
- default: () => never[];
14
- };
15
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
16
- refreshKey: {
17
- type: StringConstructor;
18
- default: () => string;
19
- };
20
- name: {
21
- type: StringConstructor;
22
- default: () => string;
23
- };
24
- list: {
25
- type: ArrayConstructor;
26
- default: () => never[];
27
- };
28
- }>> & Readonly<{}>, {
29
- name: string;
30
- list: unknown[];
31
- refreshKey: string;
32
- }, {}, {}, {}, string, ComponentProvideOptions, true, {
33
- iframeRef: HTMLIFrameElement;
34
- }, HTMLDivElement>;
35
- export default _default;
@@ -1,3 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
3
- export default _default;
@@ -1,52 +0,0 @@
1
- import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<ExtractPropTypes<{
3
- disable: {
4
- type: BooleanConstructor;
5
- default: () => boolean;
6
- };
7
- placeholder: {
8
- type: StringConstructor;
9
- default: () => string;
10
- };
11
- mode: {
12
- type: StringConstructor;
13
- default: () => string;
14
- };
15
- height: {
16
- type: StringConstructor;
17
- default: () => string;
18
- };
19
- getHtml: StringConstructor;
20
- getText: StringConstructor;
21
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
- "update:getHtml": (...args: any[]) => void;
23
- "update:getText": (...args: any[]) => void;
24
- }, string, PublicProps, Readonly< ExtractPropTypes<{
25
- disable: {
26
- type: BooleanConstructor;
27
- default: () => boolean;
28
- };
29
- placeholder: {
30
- type: StringConstructor;
31
- default: () => string;
32
- };
33
- mode: {
34
- type: StringConstructor;
35
- default: () => string;
36
- };
37
- height: {
38
- type: StringConstructor;
39
- default: () => string;
40
- };
41
- getHtml: StringConstructor;
42
- getText: StringConstructor;
43
- }>> & Readonly<{
44
- "onUpdate:getHtml"?: ((...args: any[]) => any) | undefined;
45
- "onUpdate:getText"?: ((...args: any[]) => any) | undefined;
46
- }>, {
47
- placeholder: string;
48
- mode: string;
49
- height: string;
50
- disable: boolean;
51
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
52
- export default _default;
@@ -1,45 +0,0 @@
1
- type IdleTimeoutConfig = {
2
- /** 空闲超时时间(秒),默认30分钟 */
3
- timeout?: number;
4
- /** 用于设置最后活动时间的监听事件列表 */
5
- events?: string[];
6
- /** 登出回调函数,在超时发生时执行 */
7
- onTimeout?: () => void;
8
- /** 监听事件防抖间隔(毫秒),默认 200,设为0表示不启用防抖 */
9
- debounceInterval?: number;
10
- };
11
- declare class IdleTimeoutManager {
12
- private timerId;
13
- private readonly config;
14
- private readonly debouncedReset;
15
- /** 检查闲置超时时间间隔 */
16
- private readonly checkTimeoutInterval;
17
- constructor(config?: IdleTimeoutConfig);
18
- private init;
19
- private handleVisibilityChange;
20
- /** 设置最后活动时间 */
21
- setLastActivityTime(): void;
22
- /**
23
- * 更新空闲超时时间
24
- * @param timeout - 新的超时时间(毫秒)
25
- */
26
- updateIdleTimeout(timeout: number): void;
27
- /** 检查是否超时 */
28
- checkTimeout(): void;
29
- /** 销毁实例 */
30
- destroy(): void;
31
- /** 超时时执行 */
32
- private timeOutExec;
33
- }
34
- /** 初始化函数(在应用启动时调用) */
35
- export declare function initIdleTimeout(config?: IdleTimeoutConfig): IdleTimeoutManager;
36
- /** 销毁函数(在需要时调用) */
37
- export declare function destroyIdleTimeout(): void;
38
- /** 更新空闲超时时间(毫秒) */
39
- export declare function updateIdleTimeout(timeout: number): void;
40
- declare global {
41
- interface Window {
42
- __IDLE_TIMEOUT__?: IdleTimeoutManager;
43
- }
44
- }
45
- export {};
@@ -1,3 +0,0 @@
1
- import * as SignalR from '@microsoft/signalr';
2
- declare const connection: SignalR.HubConnection;
3
- export { connection as signalR };
@@ -1,124 +0,0 @@
1
- import { debounce } from 'lodash-es';
2
- import { Local, Session } from '../storage/index.mjs';
3
- import { ElMessageBox } from 'element-plus';
4
- import { PUB } from '../const/index.mjs';
5
- import { useI18n } from 'vue-i18n';
6
-
7
- let signalR;
8
- async function loadSignalR() {
9
- if (!signalR) {
10
- const module = await import('./signalR.mjs');
11
- signalR = module.signalR;
12
- }
13
- return signalR;
14
- }
15
- class IdleTimeoutManager {
16
- timerId = null;
17
- config;
18
- debouncedReset;
19
- /** 检查闲置超时时间间隔 */
20
- checkTimeoutInterval = 2 * 1e3;
21
- constructor(config = {}) {
22
- this.config = {
23
- timeout: 30 * 60,
24
- events: ["mousewheel", "keydown", "click"],
25
- onTimeout: this.timeOutExec.bind(this),
26
- debounceInterval: 200,
27
- ...config
28
- };
29
- this.debouncedReset = this.config.debounceInterval > 0 ? debounce(this.setLastActivityTime.bind(this), this.config.debounceInterval) : this.setLastActivityTime.bind(this);
30
- this.init();
31
- }
32
- init() {
33
- this.config.events.forEach((event) => {
34
- window.addEventListener(event, this.debouncedReset);
35
- });
36
- document.addEventListener("visibilitychange", this.handleVisibilityChange);
37
- this.setLastActivityTime();
38
- this.updateIdleTimeout(this.config.timeout);
39
- }
40
- handleVisibilityChange = () => {
41
- if (document.visibilityState === "visible") {
42
- this.setLastActivityTime();
43
- }
44
- };
45
- /** 设置最后活动时间 */
46
- setLastActivityTime() {
47
- Local.set("lastActivityTime", (/* @__PURE__ */ new Date()).getTime());
48
- }
49
- /**
50
- * 更新空闲超时时间
51
- * @param timeout - 新的超时时间(毫秒)
52
- */
53
- updateIdleTimeout(timeout) {
54
- this.config.timeout = timeout;
55
- if (this.config.timeout > 0 && this.timerId == null) {
56
- this.timerId = window.setInterval(this.checkTimeout.bind(this), this.checkTimeoutInterval);
57
- } else if (this.config.timeout == 0 && this.timerId != null) {
58
- window.clearInterval(this.timerId);
59
- this.timerId = null;
60
- }
61
- }
62
- /** 检查是否超时 */
63
- checkTimeout() {
64
- const currentTime = (/* @__PURE__ */ new Date()).getTime();
65
- const lastActivityTime = Number(Local.get("lastActivityTime"));
66
- if (lastActivityTime == 0) return;
67
- const accessToken = Local.get(PUB.accessTokenKey);
68
- if (!accessToken || accessToken == "invalid_token") return;
69
- const timeout = this.config.timeout * 1e3;
70
- if (currentTime - lastActivityTime > timeout) {
71
- this.destroy();
72
- this.config.onTimeout();
73
- }
74
- }
75
- /** 销毁实例 */
76
- destroy() {
77
- this.config.events.forEach((event) => {
78
- window.removeEventListener(event, this.debouncedReset);
79
- });
80
- document.removeEventListener("visibilitychange", this.handleVisibilityChange);
81
- if (this.timerId !== null) {
82
- window.clearInterval(this.timerId);
83
- this.timerId = null;
84
- }
85
- }
86
- /** 超时时执行 */
87
- timeOutExec() {
88
- const appEl = document.getElementById("app");
89
- appEl?.remove();
90
- loadSignalR().then((signalR2) => {
91
- signalR2.stop();
92
- });
93
- Local.remove(PUB.accessTokenKey);
94
- Local.remove(PUB.refreshAccessTokenKey);
95
- Session.clear();
96
- const { t } = useI18n();
97
- ElMessageBox.alert(t("message.list.idleTimeoutMessage"), t("message.list.sysMessage"), {
98
- type: "warning",
99
- draggable: true,
100
- callback: () => {
101
- window.location.reload();
102
- }
103
- });
104
- }
105
- }
106
- function initIdleTimeout(config) {
107
- if (!window.__IDLE_TIMEOUT__) {
108
- window.__IDLE_TIMEOUT__ = new IdleTimeoutManager(config);
109
- }
110
- return window.__IDLE_TIMEOUT__;
111
- }
112
- function destroyIdleTimeout() {
113
- if (window.__IDLE_TIMEOUT__) {
114
- window.__IDLE_TIMEOUT__.destroy();
115
- window.__IDLE_TIMEOUT__ = void 0;
116
- }
117
- }
118
- function updateIdleTimeout(timeout) {
119
- if (window.__IDLE_TIMEOUT__) {
120
- window.__IDLE_TIMEOUT__.updateIdleTimeout(timeout);
121
- }
122
- }
123
-
124
- export { destroyIdleTimeout, initIdleTimeout, updateIdleTimeout };
@@ -1,45 +0,0 @@
1
- import * as SignalR from '@microsoft/signalr';
2
- import { ElNotification } from 'element-plus';
3
- import '../../api/index.mjs';
4
- import { getToken } from '../../api/utils/request.mjs';
5
-
6
- const connection = new SignalR.HubConnectionBuilder().configureLogging(SignalR.LogLevel.Information).withUrl(`${window.__env__.VITE_API_URL}/fmauth/hubs/onlineUser?token=${getToken()}`, { transport: SignalR.HttpTransportType.WebSockets, skipNegotiation: true }).withAutomaticReconnect({
7
- nextRetryDelayInMilliseconds: () => {
8
- return 5e3;
9
- }
10
- }).build();
11
- connection.keepAliveIntervalInMilliseconds = 15 * 1e3;
12
- connection.serverTimeoutInMilliseconds = 30 * 60 * 1e3;
13
- connection.serverTimeoutInMilliseconds = 30 * 1e3;
14
- connection.keepAliveIntervalInMilliseconds = 15 * 1e3;
15
- connection.start().then(() => {
16
- });
17
- connection.onclose(async () => {
18
- });
19
- connection.onreconnecting(() => {
20
- ElNotification({
21
- title: "\u63D0\u793A",
22
- message: "\u670D\u52A1\u5668\u5DF2\u65AD\u7EBF...",
23
- type: "error",
24
- position: "bottom-right"
25
- });
26
- });
27
- connection.onreconnected(() => {
28
- });
29
- connection.on("OnlineUserList", () => {
30
- });
31
- connection.on("ReceiveMessage", (message) => {
32
- var tmpMsg = `<div style="white-space: pre-wrap;">${message.message}<div><br/>`;
33
- tmpMsg += `<p style="color:#808080; font-size:12px">\u53D1\u9001\u4EBA\u5458\uFF1A${message.sendUserName}<p>`;
34
- tmpMsg += `<p style="color:#808080; font-size:12px">\u53D1\u9001\u65F6\u95F4\uFF1A${message.sendTime}<p>`;
35
- ElNotification({
36
- title: `\u6D88\u606F\u3010${message.title}\u3011`,
37
- message: tmpMsg,
38
- type: "info",
39
- position: "top-right",
40
- dangerouslyUseHTMLString: true,
41
- duration: 0
42
- });
43
- });
44
-
45
- export { connection as signalR };
package/es/sysInfo.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare function loadSysInfo(tenantid: number): Promise<void>;
2
- export declare const updateFavicon: (url: string) => void;
package/es/sysInfo.mjs DELETED
@@ -1,53 +0,0 @@
1
- import './packages/core/index.mjs';
2
- import { storeToRefs } from 'pinia';
3
- import { updateIdleTimeout } from './packages/core/utils/comm/idleTimeout.mjs';
4
- import { useThemeConfig } from './packages/core/stores/themeConfig.mjs';
5
- import { feature, useSysApi } from './packages/core/api/sys/index.mjs';
6
- import { Local } from './packages/core/utils/storage/index.mjs';
7
- import { PUB } from './packages/core/utils/const/index.mjs';
8
-
9
- async function loadSysInfo(tenantid) {
10
- const storesThemeConfig = useThemeConfig();
11
- const { themeConfig } = storeToRefs(storesThemeConfig);
12
- const [err, res] = await feature(useSysApi().getSysInfo(Number(tenantid)));
13
- if (err) {
14
- themeConfig.value.logoUrl = "logo.png";
15
- Local.remove(PUB.themeConfig);
16
- Local.set(PUB.themeConfig, storesThemeConfig.themeConfig);
17
- return;
18
- } else {
19
- if (res.data.type != "success" || res.data.result == null) return;
20
- const data = res.data.result;
21
- themeConfig.value.logoUrl = data.logo;
22
- themeConfig.value.globalTitle = data.title;
23
- themeConfig.value.globalViceTitle = data.viceTitle;
24
- themeConfig.value.globalViceTitleMsg = data.viceDesc;
25
- themeConfig.value.icp = data.icp;
26
- themeConfig.value.icpUrl = data.icpUrl;
27
- themeConfig.value.isWatermark = data.watermark != null;
28
- themeConfig.value.watermarkText = data.watermark;
29
- themeConfig.value.copyright = data.copyright;
30
- themeConfig.value.version = data.version;
31
- themeConfig.value.primary = data.themeColor;
32
- themeConfig.value.layout = data.layout;
33
- themeConfig.value.animation = data.animation;
34
- themeConfig.value.secondVer = data.secondVer;
35
- themeConfig.value.captcha = data.captcha;
36
- themeConfig.value.forceChangePassword = data.forceChangePassword;
37
- themeConfig.value.passwordExpirationTime = data.passwordExpirationTime;
38
- themeConfig.value.i18NSwitch = data.i18NSwitch;
39
- themeConfig.value.idleTimeout = data.idleTimeout;
40
- themeConfig.value.onlineNotice = data.onlineNotice;
41
- window.__env__.VITE_SM_PUBLIC_KEY = data.publicKey;
42
- updateFavicon(data.logo);
43
- updateIdleTimeout(themeConfig.value.idleTimeout ?? 0);
44
- Local.remove(PUB.themeConfig);
45
- Local.set(PUB.themeConfig, storesThemeConfig.themeConfig);
46
- }
47
- }
48
- const updateFavicon = (url) => {
49
- const favicon = document.getElementById("favicon");
50
- favicon.href = url ? url : "data:;base64,=";
51
- };
52
-
53
- export { loadSysInfo, updateFavicon };
@@ -1,5 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
3
- layoutAsideScrollbarRef: unknown;
4
- }, HTMLDivElement>;
5
- export default _default;
@@ -1,5 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
3
- columnsAsideActiveRef: HTMLDivElement;
4
- }, HTMLDivElement>;
5
- export default _default;
@@ -1,3 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
- export default _default;
@@ -1,7 +0,0 @@
1
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {
3
- layoutMainScrollbarRef: Ref<any, any>;
4
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
5
- layoutMainScrollbarRef: unknown;
6
- }, any>;
7
- export default _default;
@@ -1,3 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
- export default _default;
@@ -1,18 +0,0 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
3
- layoutMainRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
4
- layoutMainScrollbarRef: Ref<any, any>;
5
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
6
- layoutMainScrollbarRef: unknown;
7
- }, any, ComponentProvideOptions, {
8
- P: {};
9
- B: {};
10
- D: {};
11
- C: {};
12
- M: {};
13
- Defaults: {};
14
- }, Readonly<{}> & Readonly<{}>, {
15
- layoutMainScrollbarRef: Ref<any, any>;
16
- }, {}, {}, {}, {}> | null;
17
- }, any>;
18
- export default _default;