@ozdao/prometheus-framework 0.1.78 โ†’ 0.1.80

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
  4. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
  6. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +33 -30
  8. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  10. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  12. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +41 -43
  14. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +33 -35
  16. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +1 -1
  18. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +44 -46
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +83 -81
  22. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +44 -46
  24. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -0
  25. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +38 -0
  26. package/dist/prometheus-framework/src/modules/auth/router/auth.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/router/auth.js +114 -111
  28. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/store/auth.js +93 -75
  30. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  32. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -3
  34. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +12 -11
  36. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +2 -2
  37. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +12 -11
  38. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +5 -4
  40. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +2 -2
  41. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +20 -19
  42. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +15 -13
  56. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  78. package/dist/prometheus-framework.cjs.js +10 -10
  79. package/dist/prometheus-framework.es.js +8 -5
  80. package/dist/style.css +1 -1
  81. package/package.json +1 -2
  82. package/src/components/Field/Field.vue +4 -1
  83. package/src/modules/auth/components/layouts/Auth.vue +45 -36
  84. package/src/modules/auth/components/pages/EnterCode.vue +0 -17
  85. package/src/modules/auth/components/pages/EnterPassword.vue +0 -23
  86. package/src/modules/auth/components/pages/ResetPassword.vue +0 -27
  87. package/src/modules/auth/components/pages/SignIn.vue +26 -54
  88. package/src/modules/auth/components/pages/SignUp.vue +0 -29
  89. package/src/modules/auth/localization/EnterCode.json +14 -0
  90. package/src/modules/auth/localization/EnterPassword.json +20 -0
  91. package/src/modules/auth/localization/ResetPassword.json +24 -0
  92. package/src/modules/auth/localization/SignIn.json +34 -0
  93. package/src/modules/auth/localization/SignUp.json +26 -0
  94. package/src/modules/auth/router/auth.js +95 -86
  95. package/src/modules/auth/store/auth.js +20 -20
  96. package/src/modules/constructor/components/elements/Bullets.vue +1 -0
  97. package/src/modules/constructor/components/elements/Caption.vue +1 -0
  98. package/src/modules/constructor/components/elements/H2.vue +1 -0
  99. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  100. package/src/modules/constructor/components/elements/Textarea.vue +1 -0
  101. package/src/modules/globals/localization/methods/get-app-locales.js +13 -0
  102. package/src/modules/globals/localization/vue-i18n.js +20 -14
  103. package/src/modules/globals/localization/vue-i18n.singleton.js +1 -1
  104. package/src/modules/middlewares/client/inputs.validation.js +1 -0
  105. package/src/modules/globals/localization/vue-i18n-new.js +0 -70
@@ -1,22 +1,28 @@
1
- import Vue from "vue";
2
-
3
1
  import { createI18n, useI18n } from 'vue-i18n'
4
2
 
5
- let messages = {
6
- en: {
7
- name: "๐ŸŒŽ EN",
8
- },
9
- ru: {
10
- name: "๐Ÿ‡ท๐Ÿ‡บ RU",
3
+ const supportedLocales = {
4
+ en: "๐ŸŒŽ EN",
5
+ ru: "๐Ÿ‡ท๐Ÿ‡บ RU",
6
+ zh: "๐Ÿ‡จ๐Ÿ‡ณ ZH",
7
+ fr: "๐Ÿ‡ซ๐Ÿ‡ท FR",
8
+ de: "๐Ÿ‡ฉ๐Ÿ‡ช DE",
9
+ it: "๐Ÿ‡ฎ๐Ÿ‡น IT"
10
+ }
11
+
12
+ const messages = {};
13
+
14
+ for (const locale of Object.keys(supportedLocales)) {
15
+ messages[locale] = {
11
16
  }
12
17
  }
13
18
 
14
19
  const i18n = createI18n({
15
- locale: 'en',
16
- fallbackLocale: "en",
17
- legacy: false,
18
- globalInjection: true,
19
- messages: messages,
20
- })
20
+ locale: 'en',
21
+ fallbackLocale: "en",
22
+ legacy: false,
23
+ globalInjection: true,
24
+ messages: messages,
25
+ availableLocales: Object.keys(supportedLocales),
26
+ });
21
27
 
22
28
  export default i18n;
@@ -1,6 +1,6 @@
1
1
  let i18nInstance = null;
2
2
 
3
- import { createMyI18n } from "./vue-i18n"; // ะฟัƒั‚ัŒ ะดะพ ะฒะฐัˆะตะณะพ ั„ะฐะนะปะฐ vue-i18n.js
3
+ import { createMyI18n } from "./vue-i18n";
4
4
 
5
5
  export async function getI18nInstance(jsonModules = {}) {
6
6
  console.log(i18nInstance)
@@ -146,6 +146,7 @@ async function validateInputs(input, method, variable, message) {
146
146
  status: false,
147
147
  message: i18n.global.t("validation.length")
148
148
  }
149
+
149
150
  setTimeout(() => { input.value = null }, 3000);
150
151
  throw new Error(i18n.global.t("validation.length"));
151
152
  }
@@ -1,70 +0,0 @@
1
- import { createI18n, useI18n } from 'vue-i18n'
2
-
3
- export function createMyI18n(jsonModules = {}) { // Default to an empty object
4
- const supportedLocales = {
5
- en: "๐ŸŒŽ EN",
6
- ru: "๐Ÿ‡ท๐Ÿ‡บ RU",
7
- zh: "๐Ÿ‡จ๐Ÿ‡ณ ZH",
8
- fr: "๐Ÿ‡ซ๐Ÿ‡ท FR",
9
- de: "๐Ÿ‡ฉ๐Ÿ‡ช DE",
10
- it: "๐Ÿ‡ฎ๐Ÿ‡น IT"
11
- }
12
-
13
- const messages = {};
14
-
15
- for (const locale of Object.keys(supportedLocales)) {
16
- messages[locale] = {}
17
- for (const moduleKey in jsonModules) {
18
- messages[locale] = {
19
- ...messages[locale],
20
- ...((jsonModules[moduleKey][locale] || {}))
21
- }
22
- }
23
- }
24
-
25
- const i18n = createI18n({
26
- locale: 'en',
27
- fallbackLocale: "en",
28
- legacy: false,
29
- globalInjection: true,
30
- messages: messages,
31
- availableLocales: Object.keys(supportedLocales),
32
- });
33
-
34
- return i18n;
35
- }
36
-
37
-
38
- export function getSupportedLocales() {
39
- let annotatedLocales = []
40
-
41
- for (const code of Object.keys(supportedLocales)) {
42
- annotatedLocales.push({
43
- code,
44
- name: supportedLocales[code]
45
- })
46
- }
47
-
48
- return annotatedLocales
49
- }
50
-
51
- export function getBrowserLocale(options = {}) {
52
- const defaultOptions = { countryCodeOnly: false }
53
-
54
- const opt = { ...defaultOptions, ...options }
55
-
56
- const navigatorLocale =
57
- navigator.languages !== undefined
58
- ? navigator.languages[0]
59
- : navigator.language
60
-
61
- if (!navigatorLocale) {
62
- return undefined
63
- }
64
-
65
- const trimmedLocale = opt.countryCodeOnly
66
- ? navigatorLocale.trim().split(/-|_/)[0]
67
- : navigatorLocale.trim()
68
-
69
- return trimmedLocale
70
- }