@ozdao/prometheus-framework 0.1.80 → 0.1.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- 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/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
- 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 +3 -3
- 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 +16 -18
- 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 +27 -29
- 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 +3 -3
- 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 +31 -33
- 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 +29 -29
- 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 +32 -34
- package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +20 -0
- package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +26 -0
- package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +30 -0
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +32 -0
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +71 -62
- 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/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.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/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.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 +4 -4
- 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/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.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 +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.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 +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +3 -4
- package/src/modules/auth/components/pages/ResetPassword.vue +4 -5
- package/src/modules/auth/components/pages/SignIn.vue +3 -3
- package/src/modules/auth/components/pages/SignUp.vue +4 -5
- package/src/modules/auth/localization/EnterCode.json +13 -11
- package/src/modules/auth/localization/EnterPassword.json +19 -17
- package/src/modules/auth/localization/ResetPassword.json +23 -21
- package/src/modules/auth/localization/SignIn.json +1 -1
- package/src/modules/auth/localization/SignUp.json +25 -23
- package/src/modules/auth/store/auth.js +11 -7
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Tab/Tab.vue.cjs"),f=require("../../../../components/Field/Field.vue.cjs"),v=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),_=require("../../../../components/Button/Button.vue.cjs"),u=require("vue-router"),w=require("vue-i18n"),V=require("../../localization/ResetPassword.json.cjs"),s=require("../../store/auth.cjs");require("../../store/twofa.cjs");const n=require("../../../middlewares/client/inputs.validation.cjs");require("./ResetPassword.vue2.cjs");const g={class:"t-left pd-medium"},y={class:"mn-small"},N={class:"mn-small t-transp"},b={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},E={key:0,class:"mn-semi radius-small o-hidden"},k={class:"mn-small t-transp"},C={key:0,class:"mn-semi radius-small o-hidden"},P={class:"mn-small t-transp"},S={__name:"ResetPassword",setup(I){const{t}=w.useI18n(V.default),i=e.ref(null),d=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await n.validateInputs(i,n.validatePhone,s.state.user.phone,"Некорректный телефон"),a.value==="email"&&await n.validateInputs(d,n.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}try{await s.actions.resetPassword(s.state.user,a.value,"reset-password")}catch(r){throw console.log(r),new Error}}function p(){c.push({name:"Enter Code",query:{type:a.value,method:"reset-password"}})}return(r,o)=>(e.openBlock(),e.createElementBlock("section",g,[e.createElementVNode("h3",y,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",N,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",b,[e.createVNode(h.default,{selected:a.value,"onUpdate:selected":o[0]||(o[0]=l=>a.value=l),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="phone"?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",k,e.toDisplayString(e.unref(t)("smsInfo")),1),e.createVNode(v.default,{modelValue:s.state.user.phone,"onUpdate:modelValue":o[1]||(o[1]=l=>s.state.user.phone=l),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="email"?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("p",P,e.toDisplayString(e.unref(t)("emailInfo")),1),e.createVNode(f.default,{field:s.state.user.email,"onUpdate:field":o[2]||(o[2]=l=>s.state.user.email=l),placeholder:e.unref(t)("emailPlaceholder"),validation:d.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(_.default,{submit:m,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};exports.default=S;
|
@@ -1,47 +1,45 @@
|
|
1
1
|
import { ref as m, openBlock as u, createElementBlock as p, createElementVNode as l, toDisplayString as r, unref as t, createVNode as i, Transition as _, withCtx as c, createCommentVNode as v, createTextVNode as V } from "vue";
|
2
|
-
import P from "../../../../components/Tab/Tab.
|
3
|
-
import C from "../../../../components/Field/Field.
|
2
|
+
import P from "../../../../components/Tab/Tab.vue.js";
|
3
|
+
import C from "../../../../components/Field/Field.vue.js";
|
4
4
|
import E from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
-
import I from "../../../../components/Button/Button.
|
5
|
+
import I from "../../../../components/Button/Button.vue.js";
|
6
6
|
import { useRoute as k, useRouter as x } from "vue-router";
|
7
7
|
import { useI18n as N } from "vue-i18n";
|
8
|
-
import
|
8
|
+
import T from "../../localization/ResetPassword.json.js";
|
9
|
+
import { state as s, actions as D } from "../../store/auth.js";
|
9
10
|
import "../../store/twofa.js";
|
10
|
-
import { validateInputs as w, validatePhone as
|
11
|
+
import { validateInputs as w, validatePhone as F, validateEmail as O } from "../../../middlewares/client/inputs.validation.js";
|
11
12
|
import "./ResetPassword.vue2.js";
|
12
|
-
const
|
13
|
+
const R = { class: "t-left pd-medium" }, S = { class: "mn-small" }, U = { class: "mn-small t-transp" }, B = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, $ = { class: "pos-relative" }, q = {
|
13
14
|
key: 0,
|
14
15
|
class: "mn-semi radius-small o-hidden"
|
15
|
-
},
|
16
|
+
}, A = { class: "mn-small t-transp" }, L = {
|
16
17
|
key: 0,
|
17
18
|
class: "mn-semi radius-small o-hidden"
|
18
|
-
},
|
19
|
+
}, j = { class: "mn-small t-transp" }, oe = {
|
19
20
|
__name: "ResetPassword",
|
20
|
-
setup(
|
21
|
-
const { t: e } = N(
|
22
|
-
inheritLocale: !0,
|
23
|
-
useScope: "local"
|
24
|
-
}), h = m(null), f = m(null);
|
21
|
+
setup(z) {
|
22
|
+
const { t: e } = N(T), h = m(null), f = m(null);
|
25
23
|
k();
|
26
24
|
const g = x(), o = m("phone");
|
27
25
|
async function b() {
|
28
26
|
try {
|
29
27
|
o.value === "phone" && await w(
|
30
28
|
h,
|
31
|
-
|
32
|
-
|
29
|
+
F,
|
30
|
+
s.user.phone,
|
33
31
|
"Некорректный телефон"
|
34
32
|
), o.value === "email" && await w(
|
35
33
|
f,
|
36
|
-
|
37
|
-
|
34
|
+
O,
|
35
|
+
s.user.email,
|
38
36
|
"Некорректный email"
|
39
37
|
);
|
40
38
|
} catch {
|
41
39
|
throw new Error();
|
42
40
|
}
|
43
41
|
try {
|
44
|
-
await
|
42
|
+
await D.resetPassword(s.user, o.value, "reset-password");
|
45
43
|
} catch (d) {
|
46
44
|
throw console.log(d), new Error();
|
47
45
|
}
|
@@ -49,27 +47,27 @@ const F = { class: "t-left pd-medium" }, O = { class: "mn-small" }, R = { class:
|
|
49
47
|
function y() {
|
50
48
|
g.push({ name: "Enter Code", query: { type: o.value, method: "reset-password" } });
|
51
49
|
}
|
52
|
-
return (d,
|
53
|
-
l("h3",
|
54
|
-
l("p",
|
55
|
-
l("div",
|
50
|
+
return (d, a) => (u(), p("section", R, [
|
51
|
+
l("h3", S, r(t(e)("forgotPasswordTitle")), 1),
|
52
|
+
l("p", U, r(t(e)("instructions")), 1),
|
53
|
+
l("div", B, [
|
56
54
|
i(P, {
|
57
55
|
selected: o.value,
|
58
|
-
"onUpdate:selected":
|
56
|
+
"onUpdate:selected": a[0] || (a[0] = (n) => o.value = n),
|
59
57
|
tabs: [
|
60
58
|
{ name: t(e)("phone"), value: "phone" },
|
61
59
|
{ name: t(e)("email"), value: "email" }
|
62
60
|
]
|
63
61
|
}, null, 8, ["selected", "tabs"])
|
64
62
|
]),
|
65
|
-
l("div",
|
63
|
+
l("div", $, [
|
66
64
|
i(_, { name: "slide-fade" }, {
|
67
65
|
default: c(() => [
|
68
|
-
o.value === "phone" ? (u(), p("div",
|
69
|
-
l("p",
|
66
|
+
o.value === "phone" ? (u(), p("div", q, [
|
67
|
+
l("p", A, r(t(e)("smsInfo")), 1),
|
70
68
|
i(E, {
|
71
|
-
modelValue:
|
72
|
-
"onUpdate:modelValue":
|
69
|
+
modelValue: s.user.phone,
|
70
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => s.user.phone = n),
|
73
71
|
dropdownOptions: {
|
74
72
|
showDialCodeInSelection: !0,
|
75
73
|
showFlags: !0,
|
@@ -86,11 +84,11 @@ const F = { class: "t-left pd-medium" }, O = { class: "mn-small" }, R = { class:
|
|
86
84
|
}),
|
87
85
|
i(_, { name: "slide-fade" }, {
|
88
86
|
default: c(() => [
|
89
|
-
o.value === "email" ? (u(), p("div",
|
90
|
-
l("p",
|
87
|
+
o.value === "email" ? (u(), p("div", L, [
|
88
|
+
l("p", j, r(t(e)("emailInfo")), 1),
|
91
89
|
i(C, {
|
92
|
-
field:
|
93
|
-
"onUpdate:field":
|
90
|
+
field: s.user.email,
|
91
|
+
"onUpdate:field": a[2] || (a[2] = (n) => s.user.email = n),
|
94
92
|
placeholder: t(e)("emailPlaceholder"),
|
95
93
|
validation: f.value,
|
96
94
|
class: "bg-grey pd-medium radius-small"
|
@@ -114,5 +112,5 @@ const F = { class: "t-left pd-medium" }, O = { class: "mn-small" }, R = { class:
|
|
114
112
|
}
|
115
113
|
};
|
116
114
|
export {
|
117
|
-
|
115
|
+
oe as default
|
118
116
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue.cjs"),c=require("../../../../components/Field/Field.vue.cjs"),V=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),w=require("../../../../components/Button/Button.vue.cjs"),p=require("vue-router"),N=require("vue-i18n"),b=require("../../localization/SignIn.json.cjs"),a=require("../../store/auth.cjs"),r=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const y={class:""},S=["src"],E={class:"mn-medium"},q=e.createElementVNode("br",null,null,-1),x={class:"t-semi"},C={class:"mn-big"},D={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},P={class:"pos-relative"},T={class:"mn-thin radius-small"},I={class:"mn-thin radius-small o-hidden"},U={class:"w-100 mn-big"},k={__name:"SignIn",setup(j){const d=e.ref(null),m=e.ref(null),u=e.ref(null);p.useRoute();const h=p.useRouter(),{t:l}=N.useI18n(b.default),n=e.ref("phone"),f=o=>new Promise((s,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=s,t.onerror=i,document.head.appendChild(t)});e.onMounted(async()=>{await f("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function v(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,a.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}const o={...a.state.user};o.phone=a.state.user.phone.number,await a.actions.login(o,n.value)}function _(){h.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(o,s)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("img",{src:"/logo/logo_square.svg",class:"i-extra radius-small mn-small"},null,8,S),e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),q,e.createElementVNode("span",x,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",C,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",D,[e.createVNode(g.default,{selected:n.value,"onUpdate:selected":s[0]||(s[0]=t=>n.value=t),tabs:[{name:e.unref(l)("phone"),value:"phone"},{name:e.unref(l)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",P,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",T,[e.createVNode(V.default,{modelValue:a.state.user.phone,"onUpdate:modelValue":s[1]||(s[1]=t=>a.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(l)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(c.default,{field:a.state.user.email,"onUpdate:field":s[2]||(s[2]=t=>a.state.user.email=t),placeholder:e.unref(l)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(c.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:m.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",U,[e.createVNode(i,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("forgotPassword")),1)]),_:1})]),e.createVNode(w.default,{submit:v,callback:_,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=k;
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import { ref as p, onMounted as U, resolveComponent as k, openBlock as C, createElementBlock as E, createElementVNode as l, createTextVNode as c, toDisplayString as d, unref as
|
2
|
-
import I from "../../../../components/Tab/Tab.
|
3
|
-
import w from "../../../../components/Field/Field.
|
1
|
+
import { ref as p, onMounted as U, resolveComponent as k, openBlock as C, createElementBlock as E, createElementVNode as l, createTextVNode as c, toDisplayString as d, unref as o, createVNode as i, withCtx as u, Transition as f, withDirectives as v, vShow as g } from "vue";
|
2
|
+
import I from "../../../../components/Tab/Tab.vue.js";
|
3
|
+
import w from "../../../../components/Field/Field.vue.js";
|
4
4
|
import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
-
import j from "../../../../components/Button/Button.
|
5
|
+
import j from "../../../../components/Button/Button.vue.js";
|
6
6
|
import { useRoute as F, useRouter as N } from "vue-router";
|
7
7
|
import { useI18n as O } from "vue-i18n";
|
8
8
|
import T from "../../localization/SignIn.json.js";
|
9
|
-
import { state as
|
9
|
+
import { state as s, actions as q } from "../../store/auth.js";
|
10
10
|
import { validateInputs as b, validatePhone as A, validateEmail as B } from "../../../middlewares/client/inputs.validation.js";
|
11
11
|
import "./SignIn.vue2.js";
|
12
|
-
const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE__ */ l("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-big" }, H = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "" }, K = { class: "mn-thin radius-small" }, Q = { class: "mn-thin radius-small o-hidden" }, W = { class: "w-100 mn-big" }, de = {
|
12
|
+
const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE__ */ l("br", null, null, -1), z = { class: "t-semi" }, G = { class: "mn-big" }, H = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, J = { class: "pos-relative" }, K = { class: "mn-thin radius-small" }, Q = { class: "mn-thin radius-small o-hidden" }, W = { class: "w-100 mn-big" }, de = {
|
13
13
|
__name: "SignIn",
|
14
14
|
setup(X) {
|
15
15
|
const h = p(null), y = p(null), _ = p(null);
|
16
16
|
F();
|
17
|
-
const V = N(), { t:
|
17
|
+
const V = N(), { t: a } = O(T), n = p("phone"), x = (r) => new Promise((t, m) => {
|
18
18
|
const e = document.createElement("script");
|
19
19
|
e.type = "text/javascript", e.src = r, e.onload = t, e.onerror = m, document.head.appendChild(e);
|
20
20
|
});
|
@@ -26,25 +26,25 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
26
26
|
n.value === "phone" && await b(
|
27
27
|
h,
|
28
28
|
A,
|
29
|
-
|
29
|
+
s.user.phone,
|
30
30
|
"Некорректный телефон"
|
31
31
|
), n.value === "email" && await b(
|
32
32
|
_,
|
33
33
|
B,
|
34
|
-
|
34
|
+
s.user.email,
|
35
35
|
"Некорректный email"
|
36
36
|
);
|
37
37
|
} catch {
|
38
38
|
throw new Error();
|
39
39
|
}
|
40
|
-
const r = { ...
|
41
|
-
r.phone =
|
40
|
+
const r = { ...s.user };
|
41
|
+
r.phone = s.user.phone.number, await q.login(r, n.value);
|
42
42
|
}
|
43
43
|
function S() {
|
44
44
|
V.push({
|
45
45
|
name: "User Profile",
|
46
46
|
params: {
|
47
|
-
_id:
|
47
|
+
_id: s.user._id
|
48
48
|
},
|
49
49
|
query: { afterAuth: "true" }
|
50
50
|
});
|
@@ -54,12 +54,12 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
54
54
|
return C(), E("section", R, [
|
55
55
|
l("img", {
|
56
56
|
src: "/logo/logo_square.svg",
|
57
|
-
class: "i-extra mn-small"
|
57
|
+
class: "i-extra radius-small mn-small"
|
58
58
|
}, null, 8, $),
|
59
59
|
l("h3", L, [
|
60
|
-
c(d(a
|
60
|
+
c(d(o(a)("title")) + " ", 1),
|
61
61
|
M,
|
62
|
-
l("span", z, d(a
|
62
|
+
l("span", z, d(o(a)("subtitle")), 1)
|
63
63
|
]),
|
64
64
|
l("p", G, [
|
65
65
|
i(m, {
|
@@ -67,7 +67,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
67
67
|
class: "underline t-second"
|
68
68
|
}, {
|
69
69
|
default: u(() => [
|
70
|
-
c(d(a
|
70
|
+
c(d(o(a)("signup")), 1)
|
71
71
|
]),
|
72
72
|
_: 1
|
73
73
|
})
|
@@ -77,8 +77,8 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
77
77
|
selected: n.value,
|
78
78
|
"onUpdate:selected": t[0] || (t[0] = (e) => n.value = e),
|
79
79
|
tabs: [
|
80
|
-
{ name: a
|
81
|
-
{ name: a
|
80
|
+
{ name: o(a)("phone"), value: "phone" },
|
81
|
+
{ name: o(a)("email"), value: "email" }
|
82
82
|
]
|
83
83
|
}, null, 8, ["selected", "tabs"])
|
84
84
|
]),
|
@@ -87,8 +87,8 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
87
87
|
default: u(() => [
|
88
88
|
v(l("div", K, [
|
89
89
|
i(D, {
|
90
|
-
modelValue:
|
91
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) =>
|
90
|
+
modelValue: s.user.phone,
|
91
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => s.user.phone = e),
|
92
92
|
dropdownOptions: {
|
93
93
|
showDialCodeInSelection: !0,
|
94
94
|
showFlags: !0,
|
@@ -96,7 +96,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
96
96
|
},
|
97
97
|
validation: h.value,
|
98
98
|
mode: "national",
|
99
|
-
inputOptions: { placeholder: a
|
99
|
+
inputOptions: { placeholder: o(a)("phonePlaceholder") },
|
100
100
|
class: "bg-grey pd-small radius-small mn-thin"
|
101
101
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
102
102
|
], 512), [
|
@@ -109,9 +109,9 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
109
109
|
default: u(() => [
|
110
110
|
v(l("div", Q, [
|
111
111
|
i(w, {
|
112
|
-
field:
|
113
|
-
"onUpdate:field": t[2] || (t[2] = (e) =>
|
114
|
-
placeholder: a
|
112
|
+
field: s.user.email,
|
113
|
+
"onUpdate:field": t[2] || (t[2] = (e) => s.user.email = e),
|
114
|
+
placeholder: o(a)("emailPlaceholder"),
|
115
115
|
validation: _.value,
|
116
116
|
class: "bg-grey pd-medium radius-small"
|
117
117
|
}, null, 8, ["field", "placeholder", "validation"])
|
@@ -123,11 +123,11 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
123
123
|
})
|
124
124
|
]),
|
125
125
|
i(w, {
|
126
|
-
field:
|
127
|
-
"onUpdate:field": t[3] || (t[3] = (e) =>
|
126
|
+
field: s.user.password,
|
127
|
+
"onUpdate:field": t[3] || (t[3] = (e) => s.user.password = e),
|
128
128
|
type: "password",
|
129
129
|
validation: y.value,
|
130
|
-
placeholder: a
|
130
|
+
placeholder: o(a)("passwordPlaceholder"),
|
131
131
|
class: "bg-grey pd-medium radius-small mn-semi"
|
132
132
|
}, null, 8, ["field", "validation", "placeholder"]),
|
133
133
|
l("div", W, [
|
@@ -136,7 +136,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
136
136
|
class: "underline d-block t-blue"
|
137
137
|
}, {
|
138
138
|
default: u(() => [
|
139
|
-
c(d(a
|
139
|
+
c(d(o(a)("forgotPassword")), 1)
|
140
140
|
]),
|
141
141
|
_: 1
|
142
142
|
})
|
@@ -147,7 +147,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
147
147
|
class: "mn-thin"
|
148
148
|
}, {
|
149
149
|
default: u(() => [
|
150
|
-
c(d(a
|
150
|
+
c(d(o(a)("signin")), 1)
|
151
151
|
]),
|
152
152
|
_: 1
|
153
153
|
})
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue.cjs"),f=require("../../../../components/Field/Field.vue.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue.cjs"),u=require("vue-router"),g=require("vue-i18n"),w=require("../../localization/SignUp.json.cjs"),n=require("../../store/auth.cjs"),N=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const b={class:"t-left pd-medium"},E={class:"mn-small"},S={class:"mn-small t-transp"},y={class:"mn-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},C={class:"mn-semi radius-small"},D={class:"mn-small t-transp"},x={class:"mn-semi radius-small o-hidden"},T={class:"mn-small t-transp"},k={class:"w-100"},I={__name:"SignUp",setup(P){const{t}=g.useI18n(w.default),i=e.ref(null),r=e.ref(null);u.useRoute();const c=u.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,n.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,n.state.user.email,"Некорректный email")}catch{throw new Error}try{await N.sendCode(n.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(d,l)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",b,[e.createElementVNode("h3",E,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(t)("description")),1),e.createElementVNode("div",y,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":l[0]||(l[0]=o=>a.value=o),tabs:[{name:e.unref(t)("phone"),value:"phone"},{name:e.unref(t)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",q,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",C,[e.createElementVNode("p",D,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{modelValue:n.state.user.phone,"onUpdate:modelValue":l[1]||(l[1]=o=>n.state.user.phone=o),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validation:i.value,mode:"national",inputOptions:{placeholder:e.unref(t)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,a.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",x,[e.createElementVNode("p",T,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(f.default,{field:n.state.user.email,"onUpdate:field":l[2]||(l[2]=o=>n.state.user.email=o),placeholder:e.unref(t)("emailPlaceholder"),validation:r.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,a.value==="email"]])]),_:1})]),e.createVNode(V.default,{submit:m,callback:p,class:"mn-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",k,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=I;
|
@@ -1,33 +1,31 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
import N from "../../../../components/Field/Field.
|
4
|
-
import
|
5
|
-
import D from "../../../../components/Button/Button.
|
1
|
+
import { ref as d, resolveComponent as C, openBlock as k, createElementBlock as E, createElementVNode as o, toDisplayString as n, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as _, vShow as f, createTextVNode as v } from "vue";
|
2
|
+
import x from "../../../../components/Tab/Tab.vue.js";
|
3
|
+
import N from "../../../../components/Field/Field.vue.js";
|
4
|
+
import S from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
+
import D from "../../../../components/Button/Button.vue.js";
|
6
6
|
import { useRoute as I, useRouter as P } from "vue-router";
|
7
7
|
import { useI18n as U } from "vue-i18n";
|
8
|
+
import F from "../../localization/SignUp.json.js";
|
8
9
|
import { state as s } from "../../store/auth.js";
|
9
|
-
import { sendCode as
|
10
|
-
import { validateInputs as w, validatePhone as
|
10
|
+
import { sendCode as O } from "../../store/twofa.js";
|
11
|
+
import { validateInputs as w, validatePhone as T, validateEmail as A } from "../../../middlewares/client/inputs.validation.js";
|
11
12
|
import "./SignUp.vue2.js";
|
12
|
-
const
|
13
|
+
const B = { class: "t-left pd-medium" }, R = { class: "mn-small" }, $ = { class: "mn-small t-transp" }, L = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, j = { class: "pos-relative" }, q = { class: "mn-semi radius-small" }, z = { class: "mn-small t-transp" }, G = { class: "mn-semi radius-small o-hidden" }, H = { class: "mn-small t-transp" }, J = { class: "w-100" }, ie = {
|
13
14
|
__name: "SignUp",
|
14
|
-
setup(
|
15
|
-
const { t: e } = U(
|
16
|
-
inheritLocale: !0,
|
17
|
-
useScope: "local"
|
18
|
-
}), u = m(null), c = m(null);
|
15
|
+
setup(K) {
|
16
|
+
const { t: e } = U(F), u = d(null), c = d(null);
|
19
17
|
I();
|
20
|
-
const b = P(), l =
|
18
|
+
const b = P(), l = d("phone");
|
21
19
|
async function g() {
|
22
20
|
try {
|
23
21
|
l.value === "phone" && await w(
|
24
22
|
u,
|
25
|
-
|
23
|
+
T,
|
26
24
|
s.user.phone,
|
27
25
|
"Некорректный телефон"
|
28
26
|
), l.value === "email" && await w(
|
29
27
|
c,
|
30
|
-
|
28
|
+
A,
|
31
29
|
s.user.email,
|
32
30
|
"Некорректный email"
|
33
31
|
);
|
@@ -35,7 +33,7 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
|
|
35
33
|
throw new Error();
|
36
34
|
}
|
37
35
|
try {
|
38
|
-
await
|
36
|
+
await O(s.user, "signup", l.value);
|
39
37
|
} catch {
|
40
38
|
throw new Error();
|
41
39
|
}
|
@@ -45,11 +43,11 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
|
|
45
43
|
}
|
46
44
|
return (p, i) => {
|
47
45
|
const y = C("router-link");
|
48
|
-
return k(), E("section",
|
49
|
-
o("h3",
|
50
|
-
o("p",
|
51
|
-
o("div",
|
52
|
-
a(
|
46
|
+
return k(), E("section", B, [
|
47
|
+
o("h3", R, n(t(e)("title")), 1),
|
48
|
+
o("p", $, n(t(e)("description")), 1),
|
49
|
+
o("div", L, [
|
50
|
+
a(x, {
|
53
51
|
selected: l.value,
|
54
52
|
"onUpdate:selected": i[0] || (i[0] = (r) => l.value = r),
|
55
53
|
tabs: [
|
@@ -58,12 +56,12 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
|
|
58
56
|
]
|
59
57
|
}, null, 8, ["selected", "tabs"])
|
60
58
|
]),
|
61
|
-
o("div",
|
59
|
+
o("div", j, [
|
62
60
|
a(h, { name: "slide-fade" }, {
|
63
|
-
default:
|
64
|
-
_(o("div",
|
65
|
-
o("p",
|
66
|
-
a(
|
61
|
+
default: m(() => [
|
62
|
+
_(o("div", q, [
|
63
|
+
o("p", z, n(t(e)("smsNotice")), 1),
|
64
|
+
a(S, {
|
67
65
|
modelValue: s.user.phone,
|
68
66
|
"onUpdate:modelValue": i[1] || (i[1] = (r) => s.user.phone = r),
|
69
67
|
dropdownOptions: {
|
@@ -83,9 +81,9 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
|
|
83
81
|
_: 1
|
84
82
|
}),
|
85
83
|
a(h, { name: "slide-fade" }, {
|
86
|
-
default:
|
87
|
-
_(o("div",
|
88
|
-
o("p",
|
84
|
+
default: m(() => [
|
85
|
+
_(o("div", G, [
|
86
|
+
o("p", H, n(t(e)("emailNotice")), 1),
|
89
87
|
a(N, {
|
90
88
|
field: s.user.email,
|
91
89
|
"onUpdate:field": i[2] || (i[2] = (r) => s.user.email = r),
|
@@ -105,17 +103,17 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
|
|
105
103
|
callback: V,
|
106
104
|
class: "mn-big"
|
107
105
|
}, {
|
108
|
-
default:
|
106
|
+
default: m(() => [
|
109
107
|
v(n(t(e)("sendCode")), 1)
|
110
108
|
]),
|
111
109
|
_: 1
|
112
110
|
}),
|
113
|
-
o("div",
|
111
|
+
o("div", J, [
|
114
112
|
a(y, {
|
115
113
|
to: "/auth/signin",
|
116
114
|
class: "underline mn-medium d-block t-blue"
|
117
115
|
}, {
|
118
|
-
default:
|
116
|
+
default: m(() => [
|
119
117
|
v(n(t(e)("haveAccount")), 1)
|
120
118
|
]),
|
121
119
|
_: 1
|
@@ -126,5 +124,5 @@ const A = { class: "t-left pd-medium" }, B = { class: "mn-small" }, L = { class:
|
|
126
124
|
}
|
127
125
|
};
|
128
126
|
export {
|
129
|
-
|
127
|
+
ie as default
|
130
128
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{verifyNumberTitle:"Verify Number",instructions:"We have sent a registration code to your phone number. Please enter it in the field below:",resendCode:"Send the code again",secondsResend:"seconds to the possibility of sending the code again."},ru:{verifyNumberTitle:"Подтвердите номер",instructions:"Мы отправили код регистрации на ваш номер телефона. Введите его в поле ниже:",resendCode:"Отправить код еще раз",secondsResend:"секунд до возможности отправить код еще раз."}},s={messages:e};exports.default=s;exports.messages=e;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
const e = {
|
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
|
+
}, s = {
|
15
|
+
messages: e
|
16
|
+
};
|
17
|
+
export {
|
18
|
+
s as default,
|
19
|
+
e as messages
|
20
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{almostDone:"Almost there!",newPasswordPrompt:"Please, set a new password.",registrationPasswordPrompt:"Please, set your password to complete the registration.",passwordPlaceholder:"Password",repeatPasswordPlaceholder:"Repeat Password",changePasswordBtn:"Change Password",registerBtn:"Register"},ru:{almostDone:"Почти все!",newPasswordPrompt:"Пожалуйста, укажите новый пароль.",registrationPasswordPrompt:"Пожалуйста, укажите пароль, на этом регистрация будет закончена.",passwordPlaceholder:"Пароль",repeatPasswordPlaceholder:"Повторите пароль",changePasswordBtn:"Поменять пароль",registerBtn:"Зарегистрироваться"}},s={messages:e};exports.default=s;exports.messages=e;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
const s = {
|
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
|
+
}, e = {
|
21
|
+
messages: s
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
e as default,
|
25
|
+
s as messages
|
26
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{forgotPasswordTitle:"Forgot Password?",instructions:"To reset your password, specify the phone or email used during registration.",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.",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.",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",sendCode:"Send code"},ru:{forgotPasswordTitle:"Забыли пароль?",instructions:"Чтобы сбросить пароль, укажите телефон или email, использованные при регистрации.",smsInfo:"Мы вышлем вам SMS с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",emailInfo:"Мы отправим вам электронное письмо с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге.",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",sendCode:"Отправить код"}},o={messages:e};exports.default=o;exports.messages=e;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
const e = {
|
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
|
+
}, o = {
|
25
|
+
messages: e
|
26
|
+
};
|
27
|
+
export {
|
28
|
+
o as default,
|
29
|
+
e as messages
|
30
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{title:"Welcome to
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{title:"Welcome to The Commune",subtitle:"Sign In to Continue",signup:"Don't have an account?",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",haveAccount:"Don't have an account? Sign Up",passwordPlaceholder:"Enter your password",forgotPassword:"Forgot Password?",signin:"Sign In",signin_apple:"Sign In with Apple",soon:"SOON"},ru:{title:"Приветствуем вас,",subtitle:"Войдите для продолжения",signup:"Нет аккаунта?",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",haveAccount:"Нет аккаунта? Зарегистрироваться",passwordPlaceholder:"Введите ваш пароль",forgotPassword:"Забыли пароль?",signin:"Войти",signin_apple:"Войти через Apple",soon:"СКОРО"}},o={messages:e};exports.default=o;exports.messages=e;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={en:{title:"Sign Up to The Commune",description:"Choose a convenient way to register via phone or email:",phone:"Phone",email:"Email",phonePlaceholder:"Enter your phone",emailPlaceholder:"Enter your email",emailNotice:"We will send you an email with a confirmation code that you will need to enter in the next step.",smsNotice:"We will send you an SMS with a confirmation code that you will need to enter in the next step.",sendCode:"Send Code",haveAccount:"Already have an account?"},ru:{title:"Новая учетная запись",description:"Выберите удобный способ регистрации через телефон или email:",phone:"Телефон",email:"Email",phonePlaceholder:"Введите ваш телефон",emailPlaceholder:"Введите ваш email",emailNotice:"Мы отправим вам электронное письмо с кодом подтверждения, который вы должны будете ввести в следующем шаге.",smsNotice:"Мы вышлем вам SMS с кодом подтверждения, который вы должны будете ввести в следующем шаге.",sendCode:"Отправить код",haveAccount:"У вас уже есть аккаунт?"}},o={messages:e};exports.default=o;exports.messages=e;
|