@ftlab/one-vue3 0.3.8-6 → 0.4.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +39 -144
  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/global.d.ts +63 -63
  31. package/i18n/cn.json +22 -22
  32. package/i18n/de.json +23 -0
  33. package/i18n/en.json +22 -22
  34. package/i18n/es.json +23 -0
  35. package/i18n/fr.json +22 -22
  36. package/package.json +127 -74
  37. package/.eslintrc.cjs +0 -24
  38. package/.prettierrc.cjs +0 -18
  39. package/dist/CheckMessageDialog-0f85dbee.js +0 -167
  40. package/dist/index-2284be94.js +0 -15036
  41. package/dist/storage-9f2ae3ed.js +0 -30
  42. package/dist/utils-0eda3e43.js +0 -17
  43. package/dist/vuex.esm-bundler-2a047356.js +0 -770
  44. package/function/index.ts +0 -4
  45. package/function/info.js +0 -17
  46. package/function/permission.js +0 -17
  47. package/store/app.js +0 -24
  48. package/store/auth.js +0 -87
  49. package/store/index.ts +0 -10
  50. package/utils/date.ts +0 -127
  51. package/utils/index.ts +0 -3
  52. package/utils/storage.js +0 -27
  53. package/utils/utils.ts +0 -10
@@ -1,30 +0,0 @@
1
- const s = {
2
- get(t) {
3
- return localStorage.getItem(t);
4
- },
5
- set(t, e) {
6
- localStorage.setItem(t, e);
7
- },
8
- remove(t) {
9
- localStorage.removeItem(t);
10
- },
11
- // 保存token到本地缓存
12
- setToken(t) {
13
- this.set("token", t);
14
- },
15
- // 保存用户信息到本地缓存
16
- setAuth(t) {
17
- this.set("auth", JSON.stringify(t));
18
- },
19
- // 读取token
20
- getToken() {
21
- return this.get("token");
22
- },
23
- // 读取用户信息
24
- getAuth() {
25
- return this.get("auth") ? JSON.parse(this.get("auth")) : {};
26
- }
27
- };
28
- export {
29
- s
30
- };
@@ -1,17 +0,0 @@
1
- var n = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2
- function a(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- function f(e, t = 1e3) {
6
- let o;
7
- return function(...l) {
8
- clearTimeout(o), o = setTimeout(() => {
9
- e.apply(this, l);
10
- }, t);
11
- };
12
- }
13
- export {
14
- n as c,
15
- f as d,
16
- a as g
17
- };