@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.
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +33 -30
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +41 -43
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +33 -35
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +44 -46
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +83 -81
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +44 -46
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +38 -0
- package/dist/prometheus-framework/src/modules/auth/router/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/router/auth.js +114 -111
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +93 -75
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +12 -11
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +12 -11
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +5 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +20 -19
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +15 -13
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +10 -10
- package/dist/prometheus-framework.es.js +8 -5
- package/dist/style.css +1 -1
- package/package.json +1 -2
- package/src/components/Field/Field.vue +4 -1
- package/src/modules/auth/components/layouts/Auth.vue +45 -36
- package/src/modules/auth/components/pages/EnterCode.vue +0 -17
- package/src/modules/auth/components/pages/EnterPassword.vue +0 -23
- package/src/modules/auth/components/pages/ResetPassword.vue +0 -27
- package/src/modules/auth/components/pages/SignIn.vue +26 -54
- package/src/modules/auth/components/pages/SignUp.vue +0 -29
- package/src/modules/auth/localization/EnterCode.json +14 -0
- package/src/modules/auth/localization/EnterPassword.json +20 -0
- package/src/modules/auth/localization/ResetPassword.json +24 -0
- package/src/modules/auth/localization/SignIn.json +34 -0
- package/src/modules/auth/localization/SignUp.json +26 -0
- package/src/modules/auth/router/auth.js +95 -86
- package/src/modules/auth/store/auth.js +20 -20
- package/src/modules/constructor/components/elements/Bullets.vue +1 -0
- package/src/modules/constructor/components/elements/Caption.vue +1 -0
- package/src/modules/constructor/components/elements/H2.vue +1 -0
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/constructor/components/elements/Textarea.vue +1 -0
- package/src/modules/globals/localization/methods/get-app-locales.js +13 -0
- package/src/modules/globals/localization/vue-i18n.js +20 -14
- package/src/modules/globals/localization/vue-i18n.singleton.js +1 -1
- package/src/modules/middlewares/client/inputs.validation.js +1 -0
- 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
|
-
|
6
|
-
en:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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;
|
@@ -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
|
-
}
|