vuesp-components 3.0.5 → 4.0.1
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/dist/components/app/types.d.ts +6 -2
- package/dist/components/app/types.d.ts.map +1 -1
- package/dist/components/block/data/BlockDataSettings.vue.d.ts.map +1 -1
- package/dist/components/block/data/BlockMetricStyleDialog.vue.d.ts.map +1 -1
- package/dist/components/block/data/deviceStorage.d.ts.map +1 -1
- package/dist/components/block/data/metricStyles.d.ts +9 -9
- package/dist/components/block/data/metricStyles.d.ts.map +1 -1
- package/dist/components/block/data/types.d.ts +17 -17
- package/dist/components/block/data/types.d.ts.map +1 -1
- package/dist/components/block/data/useBlock.d.ts +20 -20
- package/dist/components/block/index.d.ts +1 -1
- package/dist/components/block/index.d.ts.map +1 -1
- package/dist/components/block/info/types.d.ts +9 -2
- package/dist/components/block/info/types.d.ts.map +1 -1
- package/dist/components/block/scan/BlockScan.vue.d.ts +3 -4
- package/dist/components/block/scan/BlockScan.vue.d.ts.map +1 -1
- package/dist/components/block/scan/types.d.ts +11 -3
- package/dist/components/block/scan/types.d.ts.map +1 -1
- package/dist/components/block/status/types.d.ts +9 -2
- package/dist/components/block/status/types.d.ts.map +1 -1
- package/dist/components/dashboard/cards/CardBase.vue.d.ts +36 -36
- package/dist/components/dashboard/cards/CardButton.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardDate.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardDimmer.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardInfo.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardInput.vue.d.ts +4 -4
- package/dist/components/dashboard/cards/CardList.vue.d.ts +4 -4
- package/dist/components/dashboard/edit/ItemEdit.vue.d.ts.map +1 -1
- package/dist/components/dashboard/edit/ItemOptions.vue.d.ts +3 -3
- package/dist/components/dashboard/edit/ItemOptions.vue.d.ts.map +1 -1
- package/dist/components/dashboard/edit/types.d.ts +2 -2
- package/dist/components/dashboard/edit/types.d.ts.map +1 -1
- package/dist/components/index.es.js +41 -42
- package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
- package/dist/components/ui/button/types.d.ts +4 -4
- package/dist/components/ui/button/types.d.ts.map +1 -1
- package/dist/components/ui/card/types.d.ts +6 -6
- package/dist/components/ui/card/types.d.ts.map +1 -1
- package/dist/components/ui/list/VListObject.vue.d.ts +2 -2
- package/dist/components/ui/list/types.d.ts +2 -2
- package/dist/components/ui/list/types.d.ts.map +1 -1
- package/dist/composables/types.d.ts +13 -13
- package/dist/composables/types.d.ts.map +1 -1
- package/dist/composables/useForms.d.ts +2 -2
- package/dist/composables/useForms.d.ts.map +1 -1
- package/dist/dashboard/index.d.ts +7 -5
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.es.js +30 -40
- package/dist/dashboard/types.d.ts +17 -8
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/plugins/i18n/index.d.ts +2 -2
- package/dist/plugins/i18n/index.d.ts.map +1 -1
- package/dist/plugins/i18n/types.d.ts +10 -10
- package/dist/plugins/i18n/types.d.ts.map +1 -1
- package/dist/plugins/types.d.ts +4 -4
- package/dist/plugins/types.d.ts.map +1 -1
- package/dist/types/components.d.ts +1 -1
- package/dist/types/components.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/directives/index.d.ts +2 -2
- package/dist/utils/directives/index.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/types/messages.d.ts +0 -193
- package/dist/types/messages.d.ts.map +0 -1
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type IDashboardItemOptions
|
|
3
|
-
export interface IDashboardItem
|
|
1
|
+
import { IDashboardItemOptions } from 'vuesp-dashboard-core';
|
|
2
|
+
export type { IDashboardItemOptions };
|
|
3
|
+
export interface IDashboardItem {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
entityType?: string;
|
|
4
8
|
icon: string;
|
|
9
|
+
opts?: IDashboardItemOptions;
|
|
10
|
+
args: string[];
|
|
11
|
+
get?: string;
|
|
12
|
+
getTo?: string;
|
|
13
|
+
set?: string;
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
5
15
|
value: string | number;
|
|
6
16
|
valueTo?: string | number;
|
|
7
|
-
opts?: IDashboardItemOptions;
|
|
8
17
|
}
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
12
|
-
export type
|
|
18
|
+
export type TGetTypeByPath<T, Path extends string> = Path extends keyof T ? T[Path] : Path extends `${infer K}.${infer R}` ? (K extends keyof T ? TGetTypeByPath<T[K], R> : never) : never;
|
|
19
|
+
export type TGetDataValue = <T extends string, S>(key: T, main: S) => TGetTypeByPath<S, T> | undefined;
|
|
20
|
+
export type TGetParamsData = <S>(item: IDashboardItem, main: S) => (TGetTypeByPath<S, string> | undefined)[];
|
|
21
|
+
export type TValueDashboardItemOptions = IDashboardItemOptions[keyof IDashboardItemOptions];
|
|
13
22
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAItC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,IAAI,SAAS,MAAM,IAAI,IAAI,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC;AAE3L,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;AAEvG,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC;AAE7G,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAC,MAAM,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
export declare function i18nPluralizer(rules: Record<string,
|
|
2
|
+
import { TI18nPluralRule } from './types';
|
|
3
|
+
export declare function i18nPluralizer(rules: Record<string, TI18nPluralRule>): (locale: string, count: number, forms: string[]) => string;
|
|
4
4
|
export declare const i18nPlugin: Plugin;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,MAAM,EAAE,MAAM,KAAK,CAAC;AACtD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,MAAM,EAAE,MAAM,KAAK,CAAC;AACtD,OAAO,KAAK,EAAsE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKhI,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,IACzC,QAAQ,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,KAAG,MAAM,CAMlF;AAED,eAAO,MAAM,UAAU,EAAE,MAkFxB,CAAC"}
|
|
@@ -4,32 +4,32 @@ export interface ILocaleMessages {
|
|
|
4
4
|
export interface ILocales {
|
|
5
5
|
[locale: string]: ILocaleMessages;
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
8
|
-
export interface
|
|
7
|
+
export type TI18nPluralRule = (count: number, forms: string[]) => string;
|
|
8
|
+
export interface II18nState {
|
|
9
9
|
locale: string;
|
|
10
10
|
}
|
|
11
|
-
export type
|
|
12
|
-
export interface
|
|
13
|
-
state: Readonly<
|
|
14
|
-
$t:
|
|
11
|
+
export type TI18nGet = (key: string, params?: Record<string, string | number>) => string;
|
|
12
|
+
export interface II18nInstance {
|
|
13
|
+
state: Readonly<II18nState>;
|
|
14
|
+
$t: TI18nGet;
|
|
15
15
|
setLocale(locale: string): void;
|
|
16
16
|
getLocale(): string;
|
|
17
17
|
getListLocales(): string[];
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface II18nOptions {
|
|
20
20
|
defaultLocale?: string;
|
|
21
21
|
locales?: ILocales;
|
|
22
22
|
pluralize: (locale: string, count: number, forms: string[]) => string;
|
|
23
23
|
}
|
|
24
24
|
declare module '@vue/runtime-core' {
|
|
25
25
|
interface ComponentCustomProperties {
|
|
26
|
-
$i18n:
|
|
27
|
-
$t:
|
|
26
|
+
$i18n: II18nInstance;
|
|
27
|
+
$t: TI18nGet;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
declare global {
|
|
31
31
|
interface Window {
|
|
32
|
-
$i18n?:
|
|
32
|
+
$i18n?: II18nInstance;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugins/i18n/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,CAAC;CACzC;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC;CACnC;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugins/i18n/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,CAAC;CACzC;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC;CACnC;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;AAEzE,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEzF,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC5B,EAAE,EAAE,QAAQ,CAAC;IACb,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,IAAI,MAAM,CAAC;IACpB,cAAc,IAAI,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;CACvE;AAED,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,yBAAyB;QACjC,KAAK,EAAE,aAAa,CAAC;QACrB,EAAE,EAAE,QAAQ,CAAC;KACd;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,KAAK,CAAC,EAAE,aAAa,CAAC;KACvB;CACF;AAED,OAAO,EAAE,CAAC"}
|
package/dist/plugins/types.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ILocaleMessages, ILocales,
|
|
2
|
-
export { ILocaleMessages, ILocales,
|
|
1
|
+
import { ILocaleMessages, ILocales, II18nOptions, II18nState, II18nInstance, TI18nPluralRule } from './i18n/types';
|
|
2
|
+
export { ILocaleMessages, ILocales, II18nOptions, II18nState, II18nInstance, TI18nPluralRule };
|
|
3
3
|
declare module '@vue/runtime-core' {
|
|
4
4
|
interface ComponentCustomProperties {
|
|
5
|
-
$i18n:
|
|
5
|
+
$i18n: II18nInstance;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
declare global {
|
|
9
9
|
interface Window {
|
|
10
|
-
$i18n?:
|
|
10
|
+
$i18n?: II18nInstance;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/plugins/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/plugins/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEhI,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAE/F,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,yBAAyB;QACjC,KAAK,EAAE,aAAa,CAAC;KACtB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,KAAK,CAAC,EAAE,aAAa,CAAC;KACvB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/types/components.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/types/components.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,cAAc,oBAAoB,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Directive } from 'vue';
|
|
2
|
-
export interface
|
|
2
|
+
export interface IItemDirective {
|
|
3
3
|
name: string;
|
|
4
4
|
directive: Directive;
|
|
5
5
|
}
|
|
6
|
-
declare const arr:
|
|
6
|
+
declare const arr: IItemDirective[];
|
|
7
7
|
export default arr;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/directives/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/directives/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,GAAG,EAAE,cAAc,EAA8C,CAAC;AAExE,eAAe,GAAG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "4.0.1",
|
|
3
3
|
"name": "vuesp-components",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
@@ -67,11 +67,12 @@
|
|
|
67
67
|
],
|
|
68
68
|
"scripts": {
|
|
69
69
|
"dev": "vite",
|
|
70
|
-
"build": "vue-tsc
|
|
70
|
+
"build": "vue-tsc -b && vite build && cp src/assets/theme.css dist/theme.css",
|
|
71
71
|
"preview": "vite preview",
|
|
72
72
|
"eslint": "eslint --fix",
|
|
73
73
|
"lint": "eslint src",
|
|
74
|
-
"prepublishOnly": "npm run build"
|
|
74
|
+
"prepublishOnly": "npm run build",
|
|
75
|
+
"typecheck": "vue-tsc -b"
|
|
75
76
|
},
|
|
76
77
|
"keywords": [
|
|
77
78
|
"vue",
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"dependencies": {
|
|
84
85
|
"@vueuse/core": "^13.9.0",
|
|
85
86
|
"tslib": "^2.3.0",
|
|
86
|
-
"vuesp-dashboard-core": "^0.
|
|
87
|
+
"vuesp-dashboard-core": "^0.3.0",
|
|
87
88
|
"yace": "1.1.0"
|
|
88
89
|
},
|
|
89
90
|
"devDependencies": {
|
package/dist/types/messages.d.ts
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
export type TypeKEYS = 'INIT' | 'SETTINGS' | 'INFO' | 'PING' | 'SCAN' | 'PROGRESS' | 'FILES' | 'REBOOT' | 'EVENT' | 'PORT' | 'MESSAGE' | 'DALLAS' | 'BUFFER' | 'DEVICE' | 'DISCOVERY';
|
|
2
|
-
export interface IMessageInit {
|
|
3
|
-
key?: number;
|
|
4
|
-
}
|
|
5
|
-
export interface IMessageSettings {
|
|
6
|
-
key?: number;
|
|
7
|
-
wifiDhcp: number;
|
|
8
|
-
wifiMode: number;
|
|
9
|
-
authMode: number;
|
|
10
|
-
version: number;
|
|
11
|
-
device: number;
|
|
12
|
-
wifiIp: number[];
|
|
13
|
-
wifiSubnet: number[];
|
|
14
|
-
wifiGateway: number[];
|
|
15
|
-
wifiDns: number[];
|
|
16
|
-
wifiSsid: string;
|
|
17
|
-
wifiPass: string;
|
|
18
|
-
authLogin: string;
|
|
19
|
-
authPass: string;
|
|
20
|
-
discovery: number;
|
|
21
|
-
discoveryInterval: number;
|
|
22
|
-
discoveryPort: number;
|
|
23
|
-
}
|
|
24
|
-
export interface IMessageInfo {
|
|
25
|
-
key?: number;
|
|
26
|
-
id: number;
|
|
27
|
-
firmware: number[];
|
|
28
|
-
totalBytes: number;
|
|
29
|
-
usedBytes: number;
|
|
30
|
-
uptime: number;
|
|
31
|
-
name: string;
|
|
32
|
-
board: number;
|
|
33
|
-
}
|
|
34
|
-
export interface IMessagePing {
|
|
35
|
-
key?: number;
|
|
36
|
-
}
|
|
37
|
-
export interface IMessageScan {
|
|
38
|
-
key?: number;
|
|
39
|
-
id: number;
|
|
40
|
-
isHidden: number;
|
|
41
|
-
encryptionType: number;
|
|
42
|
-
channel: number;
|
|
43
|
-
rssi: number;
|
|
44
|
-
ssid: string;
|
|
45
|
-
}
|
|
46
|
-
export interface IMessageProgress {
|
|
47
|
-
key?: number;
|
|
48
|
-
status: number;
|
|
49
|
-
empty: number;
|
|
50
|
-
size: number;
|
|
51
|
-
length: number;
|
|
52
|
-
}
|
|
53
|
-
export interface IMessageFile {
|
|
54
|
-
key?: number;
|
|
55
|
-
isDir?: number;
|
|
56
|
-
isFile?: number;
|
|
57
|
-
command: number;
|
|
58
|
-
size?: number;
|
|
59
|
-
name: string;
|
|
60
|
-
}
|
|
61
|
-
export interface IMessageEvent {
|
|
62
|
-
key?: number;
|
|
63
|
-
comm?: number;
|
|
64
|
-
comm2?: number;
|
|
65
|
-
value1: number;
|
|
66
|
-
value2?: number;
|
|
67
|
-
name: string;
|
|
68
|
-
}
|
|
69
|
-
export interface IMessagePort {
|
|
70
|
-
key?: number;
|
|
71
|
-
gpio: number;
|
|
72
|
-
value?: number;
|
|
73
|
-
mode?: number;
|
|
74
|
-
interrupt?: number;
|
|
75
|
-
list?: number;
|
|
76
|
-
disabled?: number;
|
|
77
|
-
isButton?: number;
|
|
78
|
-
command?: number;
|
|
79
|
-
isPressed?: number;
|
|
80
|
-
count?: number;
|
|
81
|
-
empty?: number;
|
|
82
|
-
valueOld?: number;
|
|
83
|
-
pressStart?: number;
|
|
84
|
-
}
|
|
85
|
-
export interface IMessageMessage {
|
|
86
|
-
key?: number;
|
|
87
|
-
type: number;
|
|
88
|
-
id?: number;
|
|
89
|
-
active?: number;
|
|
90
|
-
handler?: number;
|
|
91
|
-
index?: number;
|
|
92
|
-
len?: number;
|
|
93
|
-
date?: number;
|
|
94
|
-
text?: string;
|
|
95
|
-
}
|
|
96
|
-
export interface IMessageDallas {
|
|
97
|
-
key?: number;
|
|
98
|
-
comm: number;
|
|
99
|
-
comm2?: number;
|
|
100
|
-
address?: number[];
|
|
101
|
-
temp?: number;
|
|
102
|
-
}
|
|
103
|
-
export interface IMessageBuffer {
|
|
104
|
-
key?: number;
|
|
105
|
-
empty: number;
|
|
106
|
-
head?: number;
|
|
107
|
-
tail?: number;
|
|
108
|
-
count?: number;
|
|
109
|
-
data?: number[];
|
|
110
|
-
}
|
|
111
|
-
export interface IMessageDiscovery {
|
|
112
|
-
key?: number;
|
|
113
|
-
status: number;
|
|
114
|
-
empty: number;
|
|
115
|
-
id: number;
|
|
116
|
-
ip: number;
|
|
117
|
-
lastSeen: number;
|
|
118
|
-
}
|
|
119
|
-
export interface IMessageDevice {
|
|
120
|
-
key?: number;
|
|
121
|
-
command: number;
|
|
122
|
-
analog: number;
|
|
123
|
-
now: number;
|
|
124
|
-
list: number;
|
|
125
|
-
message: string;
|
|
126
|
-
pwm?: number;
|
|
127
|
-
}
|
|
128
|
-
export interface IMessageReboot {
|
|
129
|
-
key?: number;
|
|
130
|
-
}
|
|
131
|
-
interface IKeyMessageInit {
|
|
132
|
-
key: Extract<TypeKEYS, 'INIT'>;
|
|
133
|
-
object?: IMessageInit;
|
|
134
|
-
}
|
|
135
|
-
interface IKeyMessageSettings {
|
|
136
|
-
key: Extract<TypeKEYS, 'SETTINGS'>;
|
|
137
|
-
object?: IMessageSettings;
|
|
138
|
-
}
|
|
139
|
-
interface IKeyMessageInfo {
|
|
140
|
-
key: Extract<TypeKEYS, 'INFO'>;
|
|
141
|
-
object?: IMessageInfo;
|
|
142
|
-
}
|
|
143
|
-
interface IKeyMessagePing {
|
|
144
|
-
key: Extract<TypeKEYS, 'PING'>;
|
|
145
|
-
object?: IMessageFile;
|
|
146
|
-
}
|
|
147
|
-
interface IKeyMessageScan {
|
|
148
|
-
key: Extract<TypeKEYS, 'SCAN'>;
|
|
149
|
-
object?: IMessageScan;
|
|
150
|
-
}
|
|
151
|
-
interface IKeyMessageProgress {
|
|
152
|
-
key: Extract<TypeKEYS, 'PROGRESS'>;
|
|
153
|
-
object?: IMessageProgress;
|
|
154
|
-
}
|
|
155
|
-
interface IKeyMessageFiles {
|
|
156
|
-
key: Extract<TypeKEYS, 'FILES'>;
|
|
157
|
-
object?: IMessageFile;
|
|
158
|
-
}
|
|
159
|
-
interface IKeyMessageReboot {
|
|
160
|
-
key: Extract<TypeKEYS, 'REBOOT'>;
|
|
161
|
-
object?: IMessageReboot;
|
|
162
|
-
}
|
|
163
|
-
interface IKeyMessageEvent {
|
|
164
|
-
key: Extract<TypeKEYS, 'EVENT'>;
|
|
165
|
-
object?: IMessageEvent;
|
|
166
|
-
}
|
|
167
|
-
interface IKeyMessagePort {
|
|
168
|
-
key: Extract<TypeKEYS, 'PORT'>;
|
|
169
|
-
object?: IMessagePort;
|
|
170
|
-
}
|
|
171
|
-
interface IKeyMessageMessage {
|
|
172
|
-
key: Extract<TypeKEYS, 'MESSAGE'>;
|
|
173
|
-
object?: IMessageMessage;
|
|
174
|
-
}
|
|
175
|
-
interface IKeyMessageDallas {
|
|
176
|
-
key: Extract<TypeKEYS, 'DALLAS'>;
|
|
177
|
-
object?: IMessageDallas;
|
|
178
|
-
}
|
|
179
|
-
interface IKeyMessageBuffer {
|
|
180
|
-
key: Extract<TypeKEYS, 'BUFFER'>;
|
|
181
|
-
object?: IMessageBuffer;
|
|
182
|
-
}
|
|
183
|
-
interface IKeyMessageDiscovery {
|
|
184
|
-
key: Extract<TypeKEYS, 'DISCOVERY'>;
|
|
185
|
-
object?: IMessageDiscovery;
|
|
186
|
-
}
|
|
187
|
-
interface IKeyMessageDevice {
|
|
188
|
-
key: Extract<TypeKEYS, 'DEVICE'>;
|
|
189
|
-
object?: IMessageDevice;
|
|
190
|
-
}
|
|
191
|
-
export type TypeConstMessage = IKeyMessageInit | IKeyMessageSettings | IKeyMessageInfo | IKeyMessagePing | IKeyMessageScan | IKeyMessageProgress | IKeyMessageFiles | IKeyMessageReboot | IKeyMessageEvent | IKeyMessagePort | IKeyMessageMessage | IKeyMessageDallas | IKeyMessageBuffer | IKeyMessageDiscovery | IKeyMessageDevice;
|
|
192
|
-
export {};
|
|
193
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/types/messages.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEtL,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAA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