@ozdao/prometheus-framework 0.1.78 โ 0.1.79
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/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
- 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 +87 -84
- 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/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/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- 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 +3 -3
- 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 +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- 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/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.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 +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.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 +3 -3
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +17 -47
- 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/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/globals/localization/vue-i18n-new.js +0 -70
@@ -1,50 +1,16 @@
|
|
1
|
-
<i18n>
|
2
|
-
{
|
3
|
-
"en": {
|
4
|
-
"title": "Welcome to The Commune",
|
5
|
-
"subtitle": "Sign In to Continue",
|
6
|
-
"signup": "Don't have an account?",
|
7
|
-
"phone": "Phone",
|
8
|
-
"email": "Email",
|
9
|
-
"phonePlaceholder": "Enter your phone",
|
10
|
-
"emailPlaceholder": "Enter your email",
|
11
|
-
"haveAccount": "Don't have an account? Sign Up",
|
12
|
-
"passwordPlaceholder": "Enter your password",
|
13
|
-
"forgotPassword": "Forgot Password?",
|
14
|
-
"signin": "Sign In",
|
15
|
-
"signin_apple": "Sign In with Apple",
|
16
|
-
"soon": "SOON"
|
17
|
-
},
|
18
|
-
"ru": {
|
19
|
-
"title": "ะัะธะฒะตัััะฒัะตะผ ะฒะฐั,",
|
20
|
-
"subtitle": "ะะพะนะดะธัะต ะดะปั ะฟัะพะดะพะปะถะตะฝะธั",
|
21
|
-
"signup": "ะะตั ะฐะบะบะฐัะฝัะฐ?",
|
22
|
-
"phone": "ะขะตะปะตัะพะฝ",
|
23
|
-
"email": "Email",
|
24
|
-
"phonePlaceholder": "ะะฒะตะดะธัะต ะฒะฐั ัะตะปะตัะพะฝ",
|
25
|
-
"emailPlaceholder": "ะะฒะตะดะธัะต ะฒะฐั email",
|
26
|
-
"haveAccount": "ะะตั ะฐะบะบะฐัะฝัะฐ? ะะฐัะตะณะธัััะธัะพะฒะฐัััั",
|
27
|
-
"passwordPlaceholder": "ะะฒะตะดะธัะต ะฒะฐั ะฟะฐัะพะปั",
|
28
|
-
"forgotPassword": "ะะฐะฑัะปะธ ะฟะฐัะพะปั?",
|
29
|
-
"signin": "ะะพะนัะธ",
|
30
|
-
"signin_apple": "ะะพะนัะธ ัะตัะตะท Apple",
|
31
|
-
"soon": "ะกะะะ ะ"
|
32
|
-
}
|
33
|
-
}
|
34
|
-
</i18n>
|
35
|
-
|
36
1
|
<template>
|
37
2
|
<section class="">
|
38
3
|
<!-- Header -->
|
39
|
-
|
4
|
+
<img :src="'/logo/logo_square.svg'" class="i-extra mn-small">
|
5
|
+
|
40
6
|
<h3 class="mn-medium">
|
41
|
-
{{
|
7
|
+
{{ t('title') }}
|
42
8
|
<br>
|
43
|
-
<span class="t-semi">{{
|
9
|
+
<span class="t-semi">{{ t('subtitle') }}</span>
|
44
10
|
</h3>
|
45
11
|
<p class="mn-big">
|
46
12
|
|
47
|
-
<router-link :to="{name: 'Sign Up'}" class="underline t-second">{{
|
13
|
+
<router-link :to="{name: 'Sign Up'}" class="underline t-second">{{ t('signup') }}</router-link>
|
48
14
|
</p>
|
49
15
|
|
50
16
|
<!-- Select -->
|
@@ -52,8 +18,8 @@
|
|
52
18
|
<Tab
|
53
19
|
v-model:selected="tabAuth"
|
54
20
|
:tabs="[
|
55
|
-
{name:
|
56
|
-
{name:
|
21
|
+
{name: t('phone'), value: 'phone'},
|
22
|
+
{name: t('email'), value: 'email'}
|
57
23
|
]"
|
58
24
|
/>
|
59
25
|
</div>
|
@@ -72,7 +38,7 @@
|
|
72
38
|
}"
|
73
39
|
:validation="phoneValidation"
|
74
40
|
mode="national"
|
75
|
-
:inputOptions="{placeholder:
|
41
|
+
:inputOptions="{placeholder: t('phonePlaceholder')}"
|
76
42
|
class="bg-grey pd-small radius-small mn-thin"
|
77
43
|
/>
|
78
44
|
|
@@ -82,7 +48,7 @@
|
|
82
48
|
<div v-show="tabAuth === 'email'" class="mn-thin radius-small o-hidden">
|
83
49
|
<Field
|
84
50
|
v-model:field="auth.state.user.email"
|
85
|
-
:placeholder="
|
51
|
+
:placeholder="t('emailPlaceholder')"
|
86
52
|
:validation="emailValidation"
|
87
53
|
class="bg-grey pd-medium radius-small"
|
88
54
|
/>
|
@@ -95,7 +61,7 @@
|
|
95
61
|
v-model:field="auth.state.user.password"
|
96
62
|
type="password"
|
97
63
|
:validation="passswordValidation"
|
98
|
-
:placeholder="
|
64
|
+
:placeholder="t('passwordPlaceholder')"
|
99
65
|
class="
|
100
66
|
bg-grey
|
101
67
|
pd-medium
|
@@ -109,7 +75,7 @@
|
|
109
75
|
to="/auth/reset-password"
|
110
76
|
class="underline d-block t-blue"
|
111
77
|
>
|
112
|
-
{{
|
78
|
+
{{ t('forgotPassword') }}
|
113
79
|
</router-link>
|
114
80
|
</div>
|
115
81
|
<!-- Button -->
|
@@ -118,7 +84,7 @@
|
|
118
84
|
:callback="redirectTo"
|
119
85
|
class="mn-thin"
|
120
86
|
>
|
121
|
-
{{
|
87
|
+
{{ t('signin') }}
|
122
88
|
</Button>
|
123
89
|
|
124
90
|
<!-- <Button
|
@@ -126,7 +92,7 @@
|
|
126
92
|
:callback="redirectTo"
|
127
93
|
class="mn-thin bg-black t-white"
|
128
94
|
>
|
129
|
-
{{
|
95
|
+
{{ t('signin_apple') }}
|
130
96
|
</Button> -->
|
131
97
|
</section>
|
132
98
|
</template>
|
@@ -141,6 +107,8 @@ import Button from '@pf/src/components/Button/Button.vue'
|
|
141
107
|
import { computed, onMounted, ref, inject } from 'vue'
|
142
108
|
import { useRoute, useRouter } from 'vue-router'
|
143
109
|
import { useI18n } from 'vue-i18n'
|
110
|
+
// Import localization
|
111
|
+
import text from '@pf/src/modules/auth/localization/SignIn.json'
|
144
112
|
// Import state
|
145
113
|
import * as auth from '@pf/src/modules/auth/store/auth'
|
146
114
|
// Import validation
|
@@ -152,6 +120,8 @@ const emailValidation = ref(null)
|
|
152
120
|
// Accessing router
|
153
121
|
const route = useRoute()
|
154
122
|
const router = useRouter()
|
123
|
+
// Localization
|
124
|
+
const { t } = useI18n(text)
|
155
125
|
// Accessing state
|
156
126
|
const tabAuth = ref('phone')
|
157
127
|
// OUATH ENV
|
@@ -1,32 +1,3 @@
|
|
1
|
-
<i18n>
|
2
|
-
{
|
3
|
-
"en": {
|
4
|
-
"title": "Sign Up to The Commune",
|
5
|
-
"description": "Choose a convenient way to register via phone or email:",
|
6
|
-
"phone": "Phone",
|
7
|
-
"email": "Email",
|
8
|
-
"phonePlaceholder": "Enter your phone",
|
9
|
-
"emailPlaceholder": "Enter your email",
|
10
|
-
"emailNotice": "We will send you an email with a confirmation code that you will need to enter in the next step.",
|
11
|
-
"smsNotice": "We will send you an SMS with a confirmation code that you will need to enter in the next step.",
|
12
|
-
"sendCode": "Send Code",
|
13
|
-
"haveAccount": "Already have an account?"
|
14
|
-
},
|
15
|
-
"ru": {
|
16
|
-
"title": "ะะพะฒะฐั ััะตัะฝะฐั ะทะฐะฟะธัั",
|
17
|
-
"description": "ะัะฑะตัะธัะต ัะดะพะฑะฝัะน ัะฟะพัะพะฑ ัะตะณะธัััะฐัะธะธ ัะตัะตะท ัะตะปะตัะพะฝ ะธะปะธ email:",
|
18
|
-
"phone": "ะขะตะปะตัะพะฝ",
|
19
|
-
"email": "Email",
|
20
|
-
"phonePlaceholder": "ะะฒะตะดะธัะต ะฒะฐั ัะตะปะตัะพะฝ",
|
21
|
-
"emailPlaceholder": "ะะฒะตะดะธัะต ะฒะฐั email",
|
22
|
-
"emailNotice": "ะั ะพัะฟัะฐะฒะธะผ ะฒะฐะผ ัะปะตะบััะพะฝะฝะพะต ะฟะธััะผะพ ั ะบะพะดะพะผ ะฟะพะดัะฒะตัะถะดะตะฝะธั, ะบะพัะพััะน ะฒั ะดะพะปะถะฝั ะฑัะดะตัะต ะฒะฒะตััะธ ะฒ ัะปะตะดัััะตะผ ัะฐะณะต.",
|
23
|
-
"smsNotice": "ะั ะฒััะปะตะผ ะฒะฐะผ SMS ั ะบะพะดะพะผ ะฟะพะดัะฒะตัะถะดะตะฝะธั, ะบะพัะพััะน ะฒั ะดะพะปะถะฝั ะฑัะดะตัะต ะฒะฒะตััะธ ะฒ ัะปะตะดัััะตะผ ัะฐะณะต.",
|
24
|
-
"sendCode": "ะัะฟัะฐะฒะธัั ะบะพะด",
|
25
|
-
"haveAccount": "ะฃ ะฒะฐั ัะถะต ะตััั ะฐะบะบะฐัะฝั?"
|
26
|
-
}
|
27
|
-
}
|
28
|
-
</i18n>
|
29
|
-
|
30
1
|
<template>
|
31
2
|
<section class="t-left pd-medium">
|
32
3
|
<!-- Header -->
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"en": {
|
3
|
+
"verifyNumberTitle": "Verify Number",
|
4
|
+
"instructions": "We have sent a registration code to your phone number. Please enter it in the field below:",
|
5
|
+
"resendCode": "Send the code again",
|
6
|
+
"secondsResend": "seconds to the possibility of sending the code again."
|
7
|
+
},
|
8
|
+
"ru": {
|
9
|
+
"verifyNumberTitle": "ะะพะดัะฒะตัะดะธัะต ะฝะพะผะตั",
|
10
|
+
"instructions": "ะั ะพัะฟัะฐะฒะธะปะธ ะบะพะด ัะตะณะธัััะฐัะธะธ ะฝะฐ ะฒะฐั ะฝะพะผะตั ัะตะปะตัะพะฝะฐ. ะะฒะตะดะธัะต ะตะณะพ ะฒ ะฟะพะปะต ะฝะธะถะต:",
|
11
|
+
"resendCode": "ะัะฟัะฐะฒะธัั ะบะพะด ะตัะต ัะฐะท",
|
12
|
+
"secondsResend": "ัะตะบัะฝะด ะดะพ ะฒะพะทะผะพะถะฝะพััะธ ะพัะฟัะฐะฒะธัั ะบะพะด ะตัะต ัะฐะท."
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"en": {
|
3
|
+
"almostDone": "Almost there!",
|
4
|
+
"newPasswordPrompt": "Please, set a new password.",
|
5
|
+
"registrationPasswordPrompt": "Please, set your password to complete the registration.",
|
6
|
+
"passwordPlaceholder": "Password",
|
7
|
+
"repeatPasswordPlaceholder": "Repeat Password",
|
8
|
+
"changePasswordBtn": "Change Password",
|
9
|
+
"registerBtn": "Register"
|
10
|
+
},
|
11
|
+
"ru": {
|
12
|
+
"almostDone": "ะะพััะธ ะฒัะต!",
|
13
|
+
"newPasswordPrompt": "ะะพะถะฐะปัะนััะฐ, ัะบะฐะถะธัะต ะฝะพะฒัะน ะฟะฐัะพะปั.",
|
14
|
+
"registrationPasswordPrompt": "ะะพะถะฐะปัะนััะฐ, ัะบะฐะถะธัะต ะฟะฐัะพะปั, ะฝะฐ ััะพะผ ัะตะณะธัััะฐัะธั ะฑัะดะตั ะทะฐะบะพะฝัะตะฝะฐ.",
|
15
|
+
"passwordPlaceholder": "ะะฐัะพะปั",
|
16
|
+
"repeatPasswordPlaceholder": "ะะพะฒัะพัะธัะต ะฟะฐัะพะปั",
|
17
|
+
"changePasswordBtn": "ะะพะผะตะฝััั ะฟะฐัะพะปั",
|
18
|
+
"registerBtn": "ะะฐัะตะณะธัััะธัะพะฒะฐัััั"
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"en": {
|
3
|
+
"forgotPasswordTitle": "Forgot Password?",
|
4
|
+
"instructions": "To reset your password, specify the phone or email used during registration.",
|
5
|
+
"smsInfo": "We will send you an SMS with a confirmation code to reset your password, which you will need to enter in the next step.",
|
6
|
+
"emailInfo": "We will send you an email with a confirmation code to reset your password, which you will need to enter in the next step.",
|
7
|
+
"phone": "Phone",
|
8
|
+
"email": "Email",
|
9
|
+
"phonePlaceholder": "Enter your phone",
|
10
|
+
"emailPlaceholder": "Enter your email",
|
11
|
+
"sendCode": "Send code"
|
12
|
+
},
|
13
|
+
"ru": {
|
14
|
+
"forgotPasswordTitle": "ะะฐะฑัะปะธ ะฟะฐัะพะปั?",
|
15
|
+
"instructions": "ะงัะพะฑั ัะฑัะพัะธัั ะฟะฐัะพะปั, ัะบะฐะถะธัะต ัะตะปะตัะพะฝ ะธะปะธ email, ะธัะฟะพะปัะทะพะฒะฐะฝะฝัะต ะฟัะธ ัะตะณะธัััะฐัะธะธ.",
|
16
|
+
"smsInfo": "ะั ะฒััะปะตะผ ะฒะฐะผ SMS ั ะบะพะดะพะผ ะฟะพะดัะฒะตัะถะดะตะฝะธั ะดะปั ัะฑัะพัะฐ ะฟะฐัะพะปั, ะบะพัะพััะน ะฒั ะดะพะปะถะฝั ะฑัะดะตัะต ะฒะฒะตััะธ ะฒ ัะปะตะดัััะตะผ ัะฐะณะต.",
|
17
|
+
"emailInfo": "ะั ะพัะฟัะฐะฒะธะผ ะฒะฐะผ ัะปะตะบััะพะฝะฝะพะต ะฟะธััะผะพ ั ะบะพะดะพะผ ะฟะพะดัะฒะตัะถะดะตะฝะธั ะดะปั ัะฑัะพัะฐ ะฟะฐัะพะปั, ะบะพัะพััะน ะฒั ะดะพะปะถะฝั ะฑัะดะตัะต ะฒะฒะตััะธ ะฒ ัะปะตะดัััะตะผ ัะฐะณะต.",
|
18
|
+
"phone": "ะขะตะปะตัะพะฝ",
|
19
|
+
"email": "Email",
|
20
|
+
"phonePlaceholder": "ะะฒะตะดะธัะต ะฒะฐั ัะตะปะตัะพะฝ",
|
21
|
+
"emailPlaceholder": "ะะฒะตะดะธัะต ะฒะฐั email",
|
22
|
+
"sendCode": "ะัะฟัะฐะฒะธัั ะบะพะด"
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"messages": {
|
3
|
+
"en": {
|
4
|
+
"title": "Welcome to Weeder",
|
5
|
+
"subtitle": "Sign In to Continue",
|
6
|
+
"signup": "Don't have an account?",
|
7
|
+
"phone": "Phone",
|
8
|
+
"email": "Email",
|
9
|
+
"phonePlaceholder": "Enter your phone",
|
10
|
+
"emailPlaceholder": "Enter your email",
|
11
|
+
"haveAccount": "Don't have an account? Sign Up",
|
12
|
+
"passwordPlaceholder": "Enter your password",
|
13
|
+
"forgotPassword": "Forgot Password?",
|
14
|
+
"signin": "Sign In",
|
15
|
+
"signin_apple": "Sign In with Apple",
|
16
|
+
"soon": "SOON"
|
17
|
+
},
|
18
|
+
"ru": {
|
19
|
+
"title": "ะัะธะฒะตัััะฒัะตะผ ะฒะฐั,",
|
20
|
+
"subtitle": "ะะพะนะดะธัะต ะดะปั ะฟัะพะดะพะปะถะตะฝะธั",
|
21
|
+
"signup": "ะะตั ะฐะบะบะฐัะฝัะฐ?",
|
22
|
+
"phone": "ะขะตะปะตัะพะฝ",
|
23
|
+
"email": "Email",
|
24
|
+
"phonePlaceholder": "ะะฒะตะดะธัะต ะฒะฐั ัะตะปะตัะพะฝ",
|
25
|
+
"emailPlaceholder": "ะะฒะตะดะธัะต ะฒะฐั email",
|
26
|
+
"haveAccount": "ะะตั ะฐะบะบะฐัะฝัะฐ? ะะฐัะตะณะธัััะธัะพะฒะฐัััั",
|
27
|
+
"passwordPlaceholder": "ะะฒะตะดะธัะต ะฒะฐั ะฟะฐัะพะปั",
|
28
|
+
"forgotPassword": "ะะฐะฑัะปะธ ะฟะฐัะพะปั?",
|
29
|
+
"signin": "ะะพะนัะธ",
|
30
|
+
"signin_apple": "ะะพะนัะธ ัะตัะตะท Apple",
|
31
|
+
"soon": "ะกะะะ ะ"
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"en": {
|
3
|
+
"title": "Sign Up to The Commune",
|
4
|
+
"description": "Choose a convenient way to register via phone or email:",
|
5
|
+
"phone": "Phone",
|
6
|
+
"email": "Email",
|
7
|
+
"phonePlaceholder": "Enter your phone",
|
8
|
+
"emailPlaceholder": "Enter your email",
|
9
|
+
"emailNotice": "We will send you an email with a confirmation code that you will need to enter in the next step.",
|
10
|
+
"smsNotice": "We will send you an SMS with a confirmation code that you will need to enter in the next step.",
|
11
|
+
"sendCode": "Send Code",
|
12
|
+
"haveAccount": "Already have an account?"
|
13
|
+
},
|
14
|
+
"ru": {
|
15
|
+
"title": "ะะพะฒะฐั ััะตัะฝะฐั ะทะฐะฟะธัั",
|
16
|
+
"description": "ะัะฑะตัะธัะต ัะดะพะฑะฝัะน ัะฟะพัะพะฑ ัะตะณะธัััะฐัะธะธ ัะตัะตะท ัะตะปะตัะพะฝ ะธะปะธ email:",
|
17
|
+
"phone": "ะขะตะปะตัะพะฝ",
|
18
|
+
"email": "Email",
|
19
|
+
"phonePlaceholder": "ะะฒะตะดะธัะต ะฒะฐั ัะตะปะตัะพะฝ",
|
20
|
+
"emailPlaceholder": "ะะฒะตะดะธัะต ะฒะฐั email",
|
21
|
+
"emailNotice": "ะั ะพัะฟัะฐะฒะธะผ ะฒะฐะผ ัะปะตะบััะพะฝะฝะพะต ะฟะธััะผะพ ั ะบะพะดะพะผ ะฟะพะดัะฒะตัะถะดะตะฝะธั, ะบะพัะพััะน ะฒั ะดะพะปะถะฝั ะฑัะดะตัะต ะฒะฒะตััะธ ะฒ ัะปะตะดัััะตะผ ัะฐะณะต.",
|
22
|
+
"smsNotice": "ะั ะฒััะปะตะผ ะฒะฐะผ SMS ั ะบะพะดะพะผ ะฟะพะดัะฒะตัะถะดะตะฝะธั, ะบะพัะพััะน ะฒั ะดะพะปะถะฝั ะฑัะดะตัะต ะฒะฒะตััะธ ะฒ ัะปะตะดัััะตะผ ัะฐะณะต.",
|
23
|
+
"sendCode": "ะัะฟัะฐะฒะธัั ะบะพะด",
|
24
|
+
"haveAccount": "ะฃ ะฒะฐั ัะถะต ะตััั ะฐะบะบะฐัะฝั?"
|
25
|
+
}
|
26
|
+
}
|
@@ -27,27 +27,27 @@
|
|
27
27
|
},
|
28
28
|
});
|
29
29
|
|
30
|
-
|
31
|
-
|
30
|
+
async function initialize() {
|
31
|
+
const userCookie = await getCookie('user');
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
33
|
+
if (userCookie) {
|
34
|
+
const {_id, email, phone, roles, accessToken} = userCookie;
|
35
|
+
|
36
|
+
Object.assign(state.user, {_id, email, phone});
|
37
|
+
Object.assign(state.access, {token: accessToken, roles, status: !!accessToken});
|
38
|
+
|
39
|
+
$axios.interceptors.request.use((config) => {
|
40
|
+
if (accessToken) {
|
41
|
+
config.headers['x-access-token'] = accessToken;
|
42
|
+
}
|
43
|
+
return config;
|
44
|
+
}, (error) => {
|
45
|
+
return Promise.reject(error);
|
46
|
+
});
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
initialize();
|
51
51
|
|
52
52
|
const actions = {
|
53
53
|
async login (user, type) {
|
@@ -6,7 +6,7 @@
|
|
6
6
|
class="w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small">
|
7
7
|
<img v-if="prop.content" :src="(FILE_SERVER_URL || '') + prop.content" alt="Uploaded image" class="w-100 h-30r object-fit-contain"/>
|
8
8
|
<span v-else class="t-transp pd-extra" >Click or drag-and-drop your image</span>
|
9
|
-
<input type="file" ref="fileInput" @change="onFileChange" style="display: none"/>
|
9
|
+
<input type="file" ref="fileInput" tabindex="-1" @change="onFileChange" style="display: none"/>
|
10
10
|
</div>
|
11
11
|
</template>
|
12
12
|
|
@@ -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;
|
@@ -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
|
-
}
|