@ozdao/prometheus-framework 0.1.77 โ†’ 0.1.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  3. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +33 -30
  4. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  5. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
  6. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  7. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
  8. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  9. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  10. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  11. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +41 -43
  12. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +33 -35
  14. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +43 -45
  18. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +87 -84
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +44 -46
  22. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -0
  23. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +38 -0
  24. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/auth/store/auth.js +93 -75
  26. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -3
  28. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +12 -11
  30. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +2 -2
  31. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +12 -11
  32. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +5 -4
  34. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +2 -2
  35. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +20 -19
  36. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +15 -13
  38. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  40. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  42. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
  62. package/dist/prometheus-framework.cjs.js +10 -10
  63. package/dist/prometheus-framework.es.js +8 -5
  64. package/dist/style.css +1 -1
  65. package/package.json +1 -2
  66. package/src/components/Field/Field.vue +4 -1
  67. package/src/components/Status/Status.vue +5 -8
  68. package/src/modules/auth/components/layouts/Auth.vue +45 -36
  69. package/src/modules/auth/components/pages/EnterCode.vue +0 -17
  70. package/src/modules/auth/components/pages/EnterPassword.vue +0 -23
  71. package/src/modules/auth/components/pages/ResetPassword.vue +0 -27
  72. package/src/modules/auth/components/pages/SignIn.vue +17 -47
  73. package/src/modules/auth/components/pages/SignUp.vue +0 -29
  74. package/src/modules/auth/localization/EnterCode.json +14 -0
  75. package/src/modules/auth/localization/EnterPassword.json +20 -0
  76. package/src/modules/auth/localization/ResetPassword.json +24 -0
  77. package/src/modules/auth/localization/SignIn.json +34 -0
  78. package/src/modules/auth/localization/SignUp.json +26 -0
  79. package/src/modules/auth/store/auth.js +20 -20
  80. package/src/modules/constructor/components/elements/Bullets.vue +1 -0
  81. package/src/modules/constructor/components/elements/Caption.vue +1 -0
  82. package/src/modules/constructor/components/elements/H2.vue +1 -0
  83. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  84. package/src/modules/constructor/components/elements/Textarea.vue +1 -0
  85. package/src/modules/globals/localization/methods/get-app-locales.js +13 -0
  86. package/src/modules/globals/localization/vue-i18n.js +20 -14
  87. package/src/modules/globals/localization/vue-i18n.singleton.js +1 -1
  88. 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
- <!-- <img src="@/assets/images/logo.svg" class="i-extra mn-small"> -->
4
+ <img :src="'/logo/logo_square.svg'" class="i-extra mn-small">
5
+
40
6
  <h3 class="mn-medium">
41
- {{ $t('title') }}
7
+ {{ t('title') }}
42
8
  <br>
43
- <span class="t-semi">{{ $t('subtitle') }}</span>
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">{{ $t('signup') }}</router-link>
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: $t('phone'), value: 'phone'},
56
- {name: $t('email'), value: 'email'}
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: $t('phonePlaceholder')}"
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="$t('emailPlaceholder')"
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="$t('passwordPlaceholder')"
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
- {{ $t('forgotPassword') }}
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
- {{ $t('signin') }}
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
- {{ $t('signin_apple') }}
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
- // async function initialize() {
31
- // const userCookie = await getCookie('user');
30
+ async function initialize() {
31
+ const userCookie = await getCookie('user');
32
32
 
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();
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) {
@@ -7,6 +7,7 @@
7
7
  @input="handleInput"
8
8
  @focus="emit('focus', textarea)"
9
9
  ref="textarea"
10
+ tabindex="-1"
10
11
  class="text-area mn-small">
11
12
  </textarea>
12
13
  </div>
@@ -6,6 +6,7 @@
6
6
  @input="handleInput"
7
7
  @focus="emit('focus', textarea)"
8
8
  ref="textarea"
9
+ tabindex="-1"
9
10
  class="br-l br-solid br-main pd-l-small text-area mn-small">
10
11
  </textarea>
11
12
  </div>
@@ -7,6 +7,7 @@
7
7
  @focus="emit('focus', textarea)"
8
8
  @keyup="handleKeyUp"
9
9
  ref="textarea"
10
+ tabindex="-1"
10
11
  class="h3 text-area mn-thin">
11
12
  </textarea>
12
13
  </div>
@@ -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
 
@@ -7,6 +7,7 @@
7
7
  @focus="emit('focus', textarea)"
8
8
  @keyup="handleKeyUp"
9
9
  ref="textarea"
10
+ tabindex="-1"
10
11
  class="text-area mn-thin">
11
12
  </textarea>
12
13
  </div>
@@ -0,0 +1,13 @@
1
+ export function getSupportedLocales() {
2
+ let annotatedLocales = []
3
+
4
+ for (const code of Object.keys(supportedLocales)) {
5
+ annotatedLocales.push({
6
+ code,
7
+ name: supportedLocales[code]
8
+ })
9
+ }
10
+
11
+ return annotatedLocales
12
+ }
13
+
@@ -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)
@@ -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
- }