@ftlab/one-vue3 0.3.8-5 → 0.4.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +36 -140
  2. package/README.md +143 -61
  3. package/assets/css/index.scss +25 -25
  4. package/assets/css/mixin.scss +142 -142
  5. package/assets/css/public.scss +175 -175
  6. package/assets/img/Germany.png +0 -0
  7. package/components.d.ts +6 -3
  8. package/dist/CheckMessageDialog-DygR717d.js +78 -0
  9. package/dist/FtlEntry.js +109 -0
  10. package/dist/FtlMessage.js +186 -0
  11. package/dist/FtlMultipleChoose-D8o09guU.js +312 -0
  12. package/dist/FtlMultipleChoose.js +1 -0
  13. package/dist/FtlNavbar-SsenWatk.js +191 -0
  14. package/dist/FtlNavbar.js +1 -0
  15. package/dist/FtlPasswordDialog-Dj_vS0mC.js +188 -0
  16. package/dist/FtlPasswordDialog.js +1 -0
  17. package/dist/FtlSidebar-D5AkRjgA.js +159 -0
  18. package/dist/FtlSidebar.js +1 -0
  19. package/dist/_plugin-vue_export-helper-Djzt4Yr7.js +7 -0
  20. package/dist/asyncToGenerator-CENKRPhX.js +26 -0
  21. package/dist/configProvider-CFU3sEdy.js +6 -0
  22. package/dist/ftlOne.js +16 -13
  23. package/dist/langSelect-DdbxrMFQ.js +106 -0
  24. package/dist/objectSpread2-Bpgh6RJW.js +57 -0
  25. package/dist/storage-DBeiC15W.js +25 -0
  26. package/dist/store.js +39 -98
  27. package/dist/style.css +2 -1
  28. package/dist/utils-BuLanift.js +10 -0
  29. package/dist/utils.js +558 -475
  30. package/eslint.config.js +34 -0
  31. package/ftlab-one-vue3-0.4.0.tgz +0 -0
  32. package/global.d.ts +63 -63
  33. package/i18n/cn.json +22 -22
  34. package/i18n/de.json +23 -0
  35. package/i18n/en.json +22 -22
  36. package/i18n/es.json +23 -0
  37. package/i18n/fr.json +22 -22
  38. package/package.json +119 -74
  39. package/vitest.config.ts +8 -0
  40. package/.eslintrc.cjs +0 -24
  41. package/.prettierrc.cjs +0 -18
  42. package/dist/CheckMessageDialog-0f85dbee.js +0 -167
  43. package/dist/index-2284be94.js +0 -15036
  44. package/dist/storage-9f2ae3ed.js +0 -30
  45. package/dist/utils-0eda3e43.js +0 -17
  46. package/dist/vuex.esm-bundler-2a047356.js +0 -770
  47. package/function/index.ts +0 -4
  48. package/function/info.js +0 -17
  49. package/function/permission.js +0 -17
  50. package/store/app.js +0 -24
  51. package/store/auth.js +0 -87
  52. package/store/index.ts +0 -10
@@ -0,0 +1,34 @@
1
+ import js from '@eslint/js';
2
+ import pluginVue from 'eslint-plugin-vue';
3
+ import tseslint from 'typescript-eslint';
4
+ import globals from 'globals';
5
+ import eslintConfigPrettier from 'eslint-config-prettier';
6
+
7
+ export default tseslint.config(
8
+ { ignores: ['dist/**', 'node_modules/**', 'auto-import.d.ts', '**/*.d.ts'] },
9
+ js.configs.recommended,
10
+ ...tseslint.configs.recommended,
11
+ ...pluginVue.configs['flat/essential'],
12
+ {
13
+ languageOptions: {
14
+ ecmaVersion: 'latest',
15
+ sourceType: 'module',
16
+ globals: { ...globals.browser, ...globals.node }
17
+ },
18
+ rules: {
19
+ '@typescript-eslint/no-explicit-any': 'off',
20
+ '@typescript-eslint/no-unused-vars': 'off',
21
+ // 历史代码里的 `obj && obj.emit()` 短路口语与直接改 modelValue 数组,保持现状
22
+ '@typescript-eslint/no-unused-expressions': 'off',
23
+ 'vue/no-mutating-props': 'off',
24
+ '@typescript-eslint/no-empty-object-type': 'off',
25
+ 'vue/multi-word-component-names': 'off',
26
+ 'no-undef': 'off'
27
+ }
28
+ },
29
+ {
30
+ files: ['**/*.vue'],
31
+ languageOptions: { parserOptions: { parser: tseslint.parser } }
32
+ },
33
+ eslintConfigPrettier
34
+ );
Binary file
package/global.d.ts CHANGED
@@ -1,63 +1,63 @@
1
- declare module '@ftlab/one-vue3/utils' {
2
- import { Dayjs } from 'dayjs';
3
-
4
- type dateFormat = (date: string | Date | null | undefined, format?: string, defaultStr?: string) => string;
5
- type dateTransform = (date: string | Date | null | undefined, defaultStr?: string) => Date | string;
6
- type tzTransform = (date: string | Date | null | undefined, tz: string) => Date | string;
7
- type dateValidate = (date: any) => boolean;
8
-
9
- export const TIME_FORMAT: string;
10
-
11
- export const isValidDate: dateValidate;
12
-
13
- export const utc_cn: dateFormat;
14
- export const utc_fr: dateFormat;
15
-
16
- export const local_utc_date: dateTransform;
17
- export const local_tz_date: tzTransform;
18
- export const local_cn_date: dateTransform;
19
- export const local_fr_date: dateTransform;
20
-
21
- export const dayjs: typeof import('dayjs');
22
-
23
- export { dateFormat, dateTransform, tzTransform, dateValidate };
24
- }
25
-
26
- declare module '@ftlab/one-vue3/store' {
27
- import { Pinia, StoreDefinition } from 'pinia';
28
-
29
- const store: Pinia;
30
- export default store;
31
-
32
- export const useAuthStore: StoreDefinition<
33
- 'auth',
34
- {
35
- userInfo: Record<string, any>;
36
- username: string;
37
- owner: string;
38
- roles: any[];
39
- menus: any[];
40
- resources: any[];
41
- },
42
- {},
43
- {
44
- setInfo(authInfo: Record<string, any>): void;
45
- setMenu(menus: any[]): void;
46
- setResources(resources: any[]): void;
47
- logout(): void;
48
- }
49
- >;
50
-
51
- export const useLangStore: StoreDefinition<
52
- 'lang',
53
- {
54
- language: string;
55
- },
56
- {},
57
- {
58
- setLanguage(lang: string): void;
59
- }
60
- >;
61
- }
62
-
63
- declare module '@ftlab/one-vue3' {}
1
+ declare module '@ftlab/one-vue3/utils' {
2
+ import { Dayjs } from 'dayjs';
3
+
4
+ type dateFormat = (date: string | Date | null | undefined, format?: string, defaultStr?: string) => string;
5
+ type dateTransform = (date: string | Date | null | undefined, defaultStr?: string) => Date | string;
6
+ type tzTransform = (date: string | Date | null | undefined, tz: string) => Date | string;
7
+ type dateValidate = (date: any) => boolean;
8
+
9
+ export const TIME_FORMAT: string;
10
+
11
+ export const isValidDate: dateValidate;
12
+
13
+ export const utc_cn: dateFormat;
14
+ export const utc_fr: dateFormat;
15
+
16
+ export const local_utc_date: dateTransform;
17
+ export const local_tz_date: tzTransform;
18
+ export const local_cn_date: dateTransform;
19
+ export const local_fr_date: dateTransform;
20
+
21
+ export const dayjs: typeof import('dayjs');
22
+
23
+ export { dateFormat, dateTransform, tzTransform, dateValidate };
24
+ }
25
+
26
+ declare module '@ftlab/one-vue3/store' {
27
+ import { Pinia, StoreDefinition } from 'pinia';
28
+
29
+ const store: Pinia;
30
+ export default store;
31
+
32
+ export const useAuthStore: StoreDefinition<
33
+ 'auth',
34
+ {
35
+ userInfo: Record<string, any>;
36
+ username: string;
37
+ owner: string;
38
+ roles: any[];
39
+ menus: any[];
40
+ resources: any[];
41
+ },
42
+ {},
43
+ {
44
+ setInfo(authInfo: Record<string, any>): void;
45
+ setMenu(menus: any[]): void;
46
+ setResources(resources: any[]): void;
47
+ logout(): void;
48
+ }
49
+ >;
50
+
51
+ export const useLangStore: StoreDefinition<
52
+ 'lang',
53
+ {
54
+ language: string;
55
+ },
56
+ {},
57
+ {
58
+ setLanguage(lang: string): void;
59
+ }
60
+ >;
61
+ }
62
+
63
+ declare module '@ftlab/one-vue3' {}
package/i18n/cn.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "ftlOne.text.trackingNumber": "包裹号",
3
- "ftlOne.changePassword": "修改密码",
4
- "ftlOne.changePassword.holder1": "您已经长时间未修改密码。为保证您账户的安全,请在修改密码后继续使用系统功能",
5
- "ftlOne.changePassword.holder2": "请输入以下信息修改密码",
6
- "ftlOne.changePassword.oldPassword": "原密码",
7
- "ftlOne.changePassword.oldPassword.placeholder": "请输入原密码",
8
- "ftlOne.changePassword.newPassword": "新密码",
9
- "ftlOne.changePassword.newPassword.placeholder": "请输入新密码",
10
- "ftlOne.changePassword.newPassword.error1": "输入的密码必须包含数字和字母大小写",
11
- "ftlOne.changePassword.newPassword.error2": "输入的密码的长度须在8-16位",
12
- "ftlOne.changePassword.confirmPassword": "确认密码",
13
- "ftlOne.changePassword.confirmPassword.placeholder": "请输入确认密码",
14
- "ftlOne.changePassword.confirmPassword.error1": "请确保输入的密码与新密码一致",
15
- "ftlOne.changePassword.cancel": "取消",
16
- "ftlOne.changePassword.save": "保存",
17
- "ftlOne.exit": "退出",
18
- "ftlOne.findPassword.confirm.button": "确定",
19
- "ftlOne.mutipleChoose.searchText": "批量搜索{number}",
20
- "ftlOne.mutipleChoose.list.searchText": "请输入{number}, 批量搜索请换行",
21
- "ftlOne.mutipleChoose.list.exceed": "每次最多搜索{quantity}个{number}, 超出单号已自动删除",
22
- "ftlOne.mutipleChoose.same": "请勿输入重复的{number}"
1
+ {
2
+ "ftlOne.text.trackingNumber": "包裹号",
3
+ "ftlOne.changePassword": "修改密码",
4
+ "ftlOne.changePassword.holder1": "您已经长时间未修改密码。为保证您账户的安全,请在修改密码后继续使用系统功能",
5
+ "ftlOne.changePassword.holder2": "请输入以下信息修改密码",
6
+ "ftlOne.changePassword.oldPassword": "原密码",
7
+ "ftlOne.changePassword.oldPassword.placeholder": "请输入原密码",
8
+ "ftlOne.changePassword.newPassword": "新密码",
9
+ "ftlOne.changePassword.newPassword.placeholder": "请输入新密码",
10
+ "ftlOne.changePassword.newPassword.error1": "输入的密码必须包含数字和字母大小写",
11
+ "ftlOne.changePassword.newPassword.error2": "输入的密码的长度须在8-16位",
12
+ "ftlOne.changePassword.confirmPassword": "确认密码",
13
+ "ftlOne.changePassword.confirmPassword.placeholder": "请输入确认密码",
14
+ "ftlOne.changePassword.confirmPassword.error1": "请确保输入的密码与新密码一致",
15
+ "ftlOne.changePassword.cancel": "取消",
16
+ "ftlOne.changePassword.save": "保存",
17
+ "ftlOne.exit": "退出",
18
+ "ftlOne.findPassword.confirm.button": "确定",
19
+ "ftlOne.mutipleChoose.searchText": "批量搜索{number}",
20
+ "ftlOne.mutipleChoose.list.searchText": "请输入{number}, 批量搜索请换行",
21
+ "ftlOne.mutipleChoose.list.exceed": "每次最多搜索{quantity}个{number}, 超出单号已自动删除",
22
+ "ftlOne.mutipleChoose.same": "请勿输入重复的{number}"
23
23
  }
package/i18n/de.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "ftlOne.text.trackingNumber": "Paketnummer",
3
+ "ftlOne.changePassword": "Passwort ändern",
4
+ "ftlOne.changePassword.holder1": "Sie haben Ihr Passwort seit längerer Zeit nicht geändert. Um die Sicherheit Ihres Kontos zu gewährleisten, nutzen Sie die Systemfunktionen bitte erst nach der Passwortänderung weiter",
5
+ "ftlOne.changePassword.holder2": "Bitte geben Sie die folgenden Informationen ein, um Ihr Passwort zu ändern",
6
+ "ftlOne.changePassword.oldPassword": "Altes Passwort",
7
+ "ftlOne.changePassword.oldPassword.placeholder": "Altes Passwort eingeben",
8
+ "ftlOne.changePassword.newPassword": "Neues Passwort",
9
+ "ftlOne.changePassword.newPassword.placeholder": "Neues Passwort eingeben",
10
+ "ftlOne.changePassword.newPassword.error1": "Das Passwort muss Zahlen, Groß- und Kleinbuchstaben enthalten",
11
+ "ftlOne.changePassword.newPassword.error2": "Das Passwort muss 8-16 Zeichen lang sein",
12
+ "ftlOne.changePassword.confirmPassword": "Passwort bestätigen",
13
+ "ftlOne.changePassword.confirmPassword.placeholder": "Passwort bestätigen",
14
+ "ftlOne.changePassword.confirmPassword.error1": "Das bestätigte Passwort muss mit dem neuen Passwort übereinstimmen",
15
+ "ftlOne.changePassword.cancel": "Abbrechen",
16
+ "ftlOne.changePassword.save": "Speichern",
17
+ "ftlOne.exit": "Beenden",
18
+ "ftlOne.findPassword.confirm.button": "Bestätigen",
19
+ "ftlOne.mutipleChoose.searchText": "{number} Massensuche",
20
+ "ftlOne.mutipleChoose.list.searchText": "{number} eingeben, für Massensuche Zeilenumbrüche verwenden",
21
+ "ftlOne.mutipleChoose.list.exceed": "Maximal {quantity} {number} pro Suche, überzählige Nummern werden automatisch gelöscht",
22
+ "ftlOne.mutipleChoose.same": "Keine doppelten {number} eingeben"
23
+ }
package/i18n/en.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "ftlOne.text.trackingNumber": "n°parcel",
3
- "ftlOne.exit":"Log out",
4
- "ftlOne.changePassword.save":"Save",
5
- "ftlOne.changePassword.cancel":"Cancel",
6
- "ftlOne.changePassword.confirmPassword.error1":"Please ensure that the password you enter matches the new password",
7
- "ftlOne.changePassword.confirmPassword.placeholder":"Please confirm password",
8
- "ftlOne.changePassword.confirmPassword":"Confirm password",
9
- "ftlOne.changePassword.newPassword.error2":"The length of the password you enter must be between 8-16 digits",
10
- "ftlOne.changePassword.newPassword.error1":"Must contain numbers and uppercase and lowercase letters",
11
- "ftlOne.changePassword.newPassword.placeholder":"Please enter new password",
12
- "ftlOne.changePassword.newPassword":"New password",
13
- "ftlOne.changePassword.oldPassword.placeholder":"Please enter original password",
14
- "ftlOne.changePassword.oldPassword":"Original password",
15
- "ftlOne.changePassword.holder2":"Please enter the following information to change your password",
16
- "ftlOne.changePassword.holder1":"You have not changed your password for a long time. To ensure the security of your account, please change your password before using the system.",
17
- "ftlOne.changePassword":"Change password",
18
- "ftlOne.findPassword.confirm.button": "confirm",
19
- "ftlOne.mutipleChoose.searchText": "Search {number}",
20
- "ftlOne.mutipleChoose.list.searchText": "Each {nunmber} occupies one ligne",
21
- "ftlOne.mutipleChoose.list.exceed": "Search up to {quantity} of {number} at a time, the exceeding numbers has been deleted automatically.",
22
- "ftlOne.mutipleChoose.same": "Please do not search same {number}"
1
+ {
2
+ "ftlOne.text.trackingNumber": "n°parcel",
3
+ "ftlOne.exit":"Log out",
4
+ "ftlOne.changePassword.save":"Save",
5
+ "ftlOne.changePassword.cancel":"Cancel",
6
+ "ftlOne.changePassword.confirmPassword.error1":"Please ensure that the password you enter matches the new password",
7
+ "ftlOne.changePassword.confirmPassword.placeholder":"Please confirm password",
8
+ "ftlOne.changePassword.confirmPassword":"Confirm password",
9
+ "ftlOne.changePassword.newPassword.error2":"The length of the password you enter must be between 8-16 digits",
10
+ "ftlOne.changePassword.newPassword.error1":"Must contain numbers and uppercase and lowercase letters",
11
+ "ftlOne.changePassword.newPassword.placeholder":"Please enter new password",
12
+ "ftlOne.changePassword.newPassword":"New password",
13
+ "ftlOne.changePassword.oldPassword.placeholder":"Please enter original password",
14
+ "ftlOne.changePassword.oldPassword":"Original password",
15
+ "ftlOne.changePassword.holder2":"Please enter the following information to change your password",
16
+ "ftlOne.changePassword.holder1":"You have not changed your password for a long time. To ensure the security of your account, please change your password before using the system.",
17
+ "ftlOne.changePassword":"Change password",
18
+ "ftlOne.findPassword.confirm.button": "confirm",
19
+ "ftlOne.mutipleChoose.searchText": "Search {number}",
20
+ "ftlOne.mutipleChoose.list.searchText": "Each {nunmber} occupies one ligne",
21
+ "ftlOne.mutipleChoose.list.exceed": "Search up to {quantity} of {number} at a time, the exceeding numbers has been deleted automatically.",
22
+ "ftlOne.mutipleChoose.same": "Please do not search same {number}"
23
23
  }
package/i18n/es.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "ftlOne.text.trackingNumber": "Número de paquete",
3
+ "ftlOne.changePassword": "Cambiar contraseña",
4
+ "ftlOne.changePassword.holder1": "Ha pasado mucho tiempo desde que cambió su contraseña. Para garantizar la seguridad de su cuenta, continúe usando las funciones del sistema después de cambiar la contraseña",
5
+ "ftlOne.changePassword.holder2": "Ingrese la siguiente información para cambiar la contraseña",
6
+ "ftlOne.changePassword.oldPassword": "Contraseña actual",
7
+ "ftlOne.changePassword.oldPassword.placeholder": "Ingrese la contraseña actual",
8
+ "ftlOne.changePassword.newPassword": "Nueva contraseña",
9
+ "ftlOne.changePassword.newPassword.placeholder": "Ingrese la nueva contraseña",
10
+ "ftlOne.changePassword.newPassword.error1": "La contraseña debe contener números, letras mayúsculas y minúsculas",
11
+ "ftlOne.changePassword.newPassword.error2": "La contraseña debe tener entre 8 y 16 caracteres",
12
+ "ftlOne.changePassword.confirmPassword": "Confirmar contraseña",
13
+ "ftlOne.changePassword.confirmPassword.placeholder": "Confirme la nueva contraseña",
14
+ "ftlOne.changePassword.confirmPassword.error1": "Asegúrese de que la contraseña ingresada coincida con la nueva contraseña",
15
+ "ftlOne.changePassword.cancel": "Cancelar",
16
+ "ftlOne.changePassword.save": "Guardar",
17
+ "ftlOne.exit": "Salir",
18
+ "ftlOne.findPassword.confirm.button": "Aceptar",
19
+ "ftlOne.mutipleChoose.searchText": "Búsqueda masiva de {number}",
20
+ "ftlOne.mutipleChoose.list.searchText": "Ingrese {number}, para búsqueda masiva use saltos de línea",
21
+ "ftlOne.mutipleChoose.list.exceed": "Máximo {quantity} {number} por búsqueda, los números excedentes se eliminarán automáticamente",
22
+ "ftlOne.mutipleChoose.same": "No ingrese {number} duplicados"
23
+ }
package/i18n/fr.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "ftlOne.text.trackingNumber": "n°colis",
3
- "ftlOne.exit":"Se déconnecter",
4
- "ftlOne.changePassword.save":"Enregistrer",
5
- "ftlOne.changePassword.cancel":"Annuler",
6
- "ftlOne.changePassword.confirmPassword.error1":"Veillez à saisir deux fois le même mot de passe",
7
- "ftlOne.changePassword.confirmPassword.placeholder":"Veuillez resaisir pour confirmer",
8
- "ftlOne.changePassword.confirmPassword":"Confirmer le mdp",
9
- "ftlOne.changePassword.newPassword.error2":"La longueur saisi doit être de 8 à 16 chiffres",
10
- "ftlOne.changePassword.newPassword.error1":"Doit contenir des chiffres et des lettres majuscules et minuscules.",
11
- "ftlOne.changePassword.newPassword.placeholder":"Veuillez entrer le nouveau mot de passe",
12
- "ftlOne.changePassword.newPassword":"Nouveau mdp",
13
- "ftlOne.changePassword.oldPassword.placeholder":"Veuillez entrer le mot de passe original",
14
- "ftlOne.changePassword.oldPassword":"Mdp original",
15
- "ftlOne.changePassword.holder2":"Veuillez entrer les informations suivantes pour modifier le mot de passe",
16
- "ftlOne.changePassword.holder1":"Vous n'avez pas modifié votre mot de passe depuis longtemps. Pour garantir la sécurité de votre compte, veuillez modifier votre mot de passe avant d'utiliser le système.",
17
- "ftlOne.changePassword":"Modifier le mot de passe",
18
- "ftlOne.findPassword.confirm.button": "Valider",
19
- "ftlOne.mutipleChoose.searchText": "Rechercher {number}",
20
- "ftlOne.mutipleChoose.list.searchText": "Chaque {number} occupe une ligne",
21
- "ftlOne.mutipleChoose.list.exceed": "Rechercher jusqu'à {quantity} {number} à la fois, numéros dépassés a été supprimé automatiquement.",
22
- "ftlOne.mutipleChoose.same": "Veuillez ne pas rechercher même {number}"
1
+ {
2
+ "ftlOne.text.trackingNumber": "n°colis",
3
+ "ftlOne.exit":"Se déconnecter",
4
+ "ftlOne.changePassword.save":"Enregistrer",
5
+ "ftlOne.changePassword.cancel":"Annuler",
6
+ "ftlOne.changePassword.confirmPassword.error1":"Veillez à saisir deux fois le même mot de passe",
7
+ "ftlOne.changePassword.confirmPassword.placeholder":"Veuillez resaisir pour confirmer",
8
+ "ftlOne.changePassword.confirmPassword":"Confirmer le mdp",
9
+ "ftlOne.changePassword.newPassword.error2":"La longueur saisi doit être de 8 à 16 chiffres",
10
+ "ftlOne.changePassword.newPassword.error1":"Doit contenir des chiffres et des lettres majuscules et minuscules.",
11
+ "ftlOne.changePassword.newPassword.placeholder":"Veuillez entrer le nouveau mot de passe",
12
+ "ftlOne.changePassword.newPassword":"Nouveau mdp",
13
+ "ftlOne.changePassword.oldPassword.placeholder":"Veuillez entrer le mot de passe original",
14
+ "ftlOne.changePassword.oldPassword":"Mdp original",
15
+ "ftlOne.changePassword.holder2":"Veuillez entrer les informations suivantes pour modifier le mot de passe",
16
+ "ftlOne.changePassword.holder1":"Vous n'avez pas modifié votre mot de passe depuis longtemps. Pour garantir la sécurité de votre compte, veuillez modifier votre mot de passe avant d'utiliser le système.",
17
+ "ftlOne.changePassword":"Modifier le mot de passe",
18
+ "ftlOne.findPassword.confirm.button": "Valider",
19
+ "ftlOne.mutipleChoose.searchText": "Rechercher {number}",
20
+ "ftlOne.mutipleChoose.list.searchText": "Chaque {number} occupe une ligne",
21
+ "ftlOne.mutipleChoose.list.exceed": "Rechercher jusqu'à {quantity} {number} à la fois, numéros dépassés a été supprimé automatiquement.",
22
+ "ftlOne.mutipleChoose.same": "Veuillez ne pas rechercher même {number}"
23
23
  }
package/package.json CHANGED
@@ -1,74 +1,119 @@
1
- {
2
- "name": "@ftlab/one-vue3",
3
- "version": "0.3.8-5",
4
- "description": "One for Apps based on Element UI",
5
- "main": "dist/ftlOne.js",
6
- "type": "module",
7
- "types": "global.d.ts",
8
- "scripts": {
9
- "serve": "vite --host",
10
- "push": "npm publish --access=public",
11
- "build": "vite build",
12
- "test": "jest",
13
- "version": "auto-changelog -p && git add CHANGELOG.md",
14
- "lint": "eslint --init",
15
- "prepare": "husky"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git@gitlab.ftlapp.cn:ftl/ftlab/one-vue3.git"
20
- },
21
- "author": "",
22
- "license": "ISC",
23
- "auto-changelog": {
24
- "output": "CHANGELOG.md",
25
- "template": "keepachangelog",
26
- "unreleased": true,
27
- "commitLimit": false
28
- },
29
- "devDependencies": {
30
- "@element-plus/icons-vue": "^2.1.0",
31
- "@icon-park/vue-next": "^1.4.2",
32
- "@jest/globals": "^29.7.0",
33
- "@rollup/plugin-replace": "^6.0.2",
34
- "@types/jest": "^29.5.12",
35
- "@types/node": "^20.3.2",
36
- "@typescript-eslint/eslint-plugin": "^5.60.1",
37
- "@typescript-eslint/parser": "^5.60.1",
38
- "@vitejs/plugin-vue": "^4.2.3",
39
- "auto-changelog": "^2.4.0",
40
- "axios": "^1.4.0",
41
- "element-plus": "^2.3.7",
42
- "eslint": "^8.44.0",
43
- "eslint-plugin-vue": "^9.15.1",
44
- "husky": "^9.0.11",
45
- "mitt": "^3.0.0",
46
- "pinia": "^2.1.4",
47
- "sass": "^1.56.0",
48
- "sass-loader": "^8.0.0",
49
- "screenfull": "^5.0.2",
50
- "ts-jest": "^29.1.2",
51
- "typescript": "^4.8.4",
52
- "unplugin-auto-import": "^0.16.4",
53
- "unplugin-vue-components": "^0.25.1",
54
- "vite": "^4.3.9",
55
- "vite-plugin-dts": "^3.0.0",
56
- "vue": "^3.3.4",
57
- "vue-i18n": "^9.2.2",
58
- "vue-router": "^4.2.2",
59
- "vuex": "^4.0.2"
60
- },
61
- "dependencies": {
62
- "dayjs": "^1.11.11"
63
- },
64
- "jest": {
65
- "preset": "ts-jest",
66
- "testEnvironment": "node",
67
- "transform": {
68
- "node_modules/variables/.+\\.(j|t)sx?$": "ts-jest"
69
- },
70
- "transformIgnorePatterns": [
71
- "node_modules/(?!variables/.*)"
72
- ]
73
- }
74
- }
1
+ {
2
+ "name": "@ftlab/one-vue3",
3
+ "version": "0.4.0",
4
+ "description": "One for Apps",
5
+ "main": "dist/ftlOne.js",
6
+ "type": "module",
7
+ "types": "global.d.ts",
8
+ "scripts": {
9
+ "serve": "vite --host",
10
+ "push": "npm publish --access=public",
11
+ "build": "vite build",
12
+ "test": "vitest run",
13
+ "version": "auto-changelog -p && git add CHANGELOG.md",
14
+ "lint": "eslint .",
15
+ "test:watch": "vitest"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git@gitlab.ftlapp.io:ftl/ftlab/one-vue3-vue.git"
20
+ },
21
+ "author": "",
22
+ "license": "ISC",
23
+ "auto-changelog": {
24
+ "output": "CHANGELOG.md",
25
+ "template": "keepachangelog",
26
+ "unreleased": true,
27
+ "commitLimit": false
28
+ },
29
+ "devDependencies": {
30
+ "@element-plus/icons-vue": "^2.3.2",
31
+ "@eslint/js": "^9.39.5",
32
+ "@icon-park/vue-next": "^1.4.2",
33
+ "@types/node": "^22.20.7",
34
+ "@vitejs/plugin-vue": "^6.0.11",
35
+ "auto-changelog": "^2.4.0",
36
+ "axios": "^1.21.1",
37
+ "dayjs": "^1.11.18",
38
+ "element-plus": "^2.14.8",
39
+ "eslint": "^9.39.5",
40
+ "eslint-config-prettier": "^10.1.8",
41
+ "eslint-plugin-vue": "^10.12.1",
42
+ "globals": "^17.14.0",
43
+ "mitt": "^3.0.1",
44
+ "pinia": "^2.3.1",
45
+ "sass": "^1.108.2",
46
+ "screenfull": "^6.0.2",
47
+ "typescript": "5.6.2",
48
+ "typescript-eslint": "^8.74.0",
49
+ "unplugin-auto-import": "^21.1.0",
50
+ "unplugin-vue-components": "^32.1.0",
51
+ "vite": "8.3.8",
52
+ "vitest": "^5.1.2",
53
+ "vue": "^3.5.46",
54
+ "vue-eslint-parser": "^10.4.2",
55
+ "vue-i18n": "^9.14.5",
56
+ "vue-router": "^4.5.0"
57
+ },
58
+ "exports": {
59
+ ".": {
60
+ "import": "./dist/ftlOne.js"
61
+ },
62
+ "./store": {
63
+ "import": "./dist/store.js"
64
+ },
65
+ "./utils": {
66
+ "import": "./dist/utils.js"
67
+ },
68
+ "./i18n/*": {
69
+ "import": "./i18n/*"
70
+ },
71
+ "./assets/*": {
72
+ "import": "./assets/*"
73
+ },
74
+ "./dist/*": {
75
+ "import": "./dist/*"
76
+ },
77
+ "./package.json": "./package.json",
78
+ "./FtlSidebar": {
79
+ "import": "./dist/FtlSidebar.js"
80
+ },
81
+ "./FtlNavbar": {
82
+ "import": "./dist/FtlNavbar.js"
83
+ },
84
+ "./FtlMultipleChoose": {
85
+ "import": "./dist/FtlMultipleChoose.js"
86
+ },
87
+ "./FtlPasswordDialog": {
88
+ "import": "./dist/FtlPasswordDialog.js"
89
+ },
90
+ "./FtlEntry": {
91
+ "import": "./dist/FtlEntry.js"
92
+ },
93
+ "./FtlMessage": {
94
+ "import": "./dist/FtlMessage.js"
95
+ }
96
+ },
97
+ "sideEffects": [
98
+ "*.css",
99
+ "*.scss",
100
+ "dist/style.css",
101
+ "assets/**"
102
+ ],
103
+ "peerDependencies": {
104
+ "@element-plus/icons-vue": "^2.0.0",
105
+ "axios": "^1.0.0",
106
+ "dayjs": "^1.11.0",
107
+ "element-plus": "^2.3.0",
108
+ "pinia": "^2.0.0",
109
+ "screenfull": "^5.0.0 || ^6.0.0",
110
+ "vue": "^3.3.0",
111
+ "vue-i18n": "^9.2.0",
112
+ "vue-router": "^4.0.0"
113
+ },
114
+ "peerDependenciesMeta": {
115
+ "screenfull": {
116
+ "optional": true
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: 'node',
6
+ include: ['__test__/**/*.test.ts']
7
+ }
8
+ });
package/.eslintrc.cjs DELETED
@@ -1,24 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- browser: true,
5
- es2021: true,
6
- node: true
7
- },
8
- extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:vue/vue3-essential'],
9
- parserOptions: {
10
- ecmaVersion: 'latest',
11
- parser: '@typescript-eslint/parser',
12
- sourceType: 'module'
13
- },
14
- plugins: ['@typescript-eslint', 'vue'],
15
- rules: {
16
- 'no-var': 'error', // 禁止使用 var
17
- 'no-mixed-spaces-and-tabs': 'error', // 不能空格与tab混用
18
- quotes: [2, 'single'], // 使用单引号
19
- 'vue/multi-word-component-names': 'off', // 驼峰警告
20
- '@typescript-eslint/no-explicit-any': 'off', // 使用any类型警告
21
- '@typescript-eslint/no-unused-vars': 'off', // 关闭检测未使用的变量,交由tsconfig.json中noUnusedLocals决定
22
- 'no-undef': 0 // 不能有未定义的变量
23
- }
24
- };
package/.prettierrc.cjs DELETED
@@ -1,18 +0,0 @@
1
- module.exports = {
2
- printWidth: 120, // 单行输出(不折行)的(最大)长度
3
- tabWidth: 2, // 每个缩进级别的空格数
4
- tabs: false, // 使用制表符 (tab) 缩进行而不是空格 (space)。
5
- semi: true, // 是否在语句末尾打印分号
6
- singleQuote: true, // 是否使用单引号
7
- quoteProps: "as-needed", // 仅在需要时在对象属性周围添加引号
8
- jsxSingleQuote: false, // jsx 不使用单引号,而使用双引号
9
- trailingComma: "none", // 去除对象最末尾元素跟随的逗号
10
- bracketSpacing: true, // 是否在对象属性添加空格
11
- jsxBracketSameLine: true, // 将 > 多行 JSX 元素放在最后一行的末尾,而不是单独放在下一行(不适用于自闭元素),默认false,这里选择>不另起一行
12
- arrowParens: "always", // 箭头函数,只有一个参数的时候,也需要括号
13
- proseWrap: "always", // 当超出print width(上面有这个参数)时就折行
14
- htmlWhitespaceSensitivity: "ignore", // 指定 HTML 文件的全局空白区域敏感度, "ignore" - 空格被认为是不敏感的
15
- vueIndentScriptAndStyle: false, // 在VUE文件中不要缩进脚本和样式标记
16
- stylelintIntegration: true,
17
- endOfLine: "auto",
18
- };