@ozdao/prometheus-framework 0.1.79 → 0.1.81
Sign up to get free protection for your applications and to get access to all the features.
- 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 +15 -17
- 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 +24 -26
- 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 +28 -30
- 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 +78 -79
- 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 +30 -32
- 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/router/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/router/auth.js +114 -111
- 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 +12 -10
- 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/router/auth.js +95 -86
- package/src/modules/middlewares/client/inputs.validation.js +1 -0
@@ -1,95 +1,94 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import { useRoute as
|
7
|
-
import { useI18n as
|
8
|
-
import
|
9
|
-
import { state as
|
10
|
-
import { validateInputs as
|
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.vue2.js";
|
3
|
+
import w from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
+
import j from "../../../../components/Button/Button.vue2.js";
|
6
|
+
import { useRoute as F, useRouter as N } from "vue-router";
|
7
|
+
import { useI18n as O } from "vue-i18n";
|
8
|
+
import T from "../../localization/SignIn.json.js";
|
9
|
+
import { state as s, actions as q } from "../../store/auth.js";
|
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
|
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
|
-
setup(
|
15
|
-
const h =
|
16
|
-
|
17
|
-
const
|
18
|
-
f("APPLE_CLIENTID"), f("APPLE_REDIRECT_URL");
|
19
|
-
const V = (c) => new Promise((a, u) => {
|
14
|
+
setup(X) {
|
15
|
+
const h = p(null), y = p(null), _ = p(null);
|
16
|
+
F();
|
17
|
+
const V = N(), { t: a } = O(T), n = p("phone"), x = (r) => new Promise((t, m) => {
|
20
18
|
const e = document.createElement("script");
|
21
|
-
e.type = "text/javascript", e.src =
|
19
|
+
e.type = "text/javascript", e.src = r, e.onload = t, e.onerror = m, document.head.appendChild(e);
|
22
20
|
});
|
23
|
-
|
24
|
-
await
|
21
|
+
U(async () => {
|
22
|
+
await x("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
|
25
23
|
});
|
26
|
-
async function
|
24
|
+
async function P() {
|
27
25
|
try {
|
28
|
-
n.value === "phone" && await
|
26
|
+
n.value === "phone" && await b(
|
29
27
|
h,
|
30
|
-
|
31
|
-
|
28
|
+
A,
|
29
|
+
s.user.phone,
|
32
30
|
"Некорректный телефон"
|
33
|
-
), n.value === "email" && await
|
31
|
+
), n.value === "email" && await b(
|
34
32
|
_,
|
35
|
-
|
36
|
-
|
33
|
+
B,
|
34
|
+
s.user.email,
|
37
35
|
"Некорректный email"
|
38
36
|
);
|
39
37
|
} catch {
|
40
38
|
throw new Error();
|
41
39
|
}
|
42
|
-
|
40
|
+
const r = { ...s.user };
|
41
|
+
r.phone = s.user.phone.number, await q.login(r, n.value);
|
43
42
|
}
|
44
|
-
function
|
45
|
-
|
43
|
+
function S() {
|
44
|
+
V.push({
|
46
45
|
name: "User Profile",
|
47
46
|
params: {
|
48
|
-
_id:
|
47
|
+
_id: s.user._id
|
49
48
|
},
|
50
49
|
query: { afterAuth: "true" }
|
51
50
|
});
|
52
51
|
}
|
53
|
-
return (
|
54
|
-
const
|
55
|
-
return C(),
|
52
|
+
return (r, t) => {
|
53
|
+
const m = k("router-link");
|
54
|
+
return C(), E("section", R, [
|
56
55
|
l("img", {
|
57
56
|
src: "/logo/logo_square.svg",
|
58
|
-
class: "i-extra mn-small"
|
57
|
+
class: "i-extra radius-small mn-small"
|
59
58
|
}, null, 8, $),
|
60
|
-
l("h3",
|
61
|
-
|
62
|
-
|
63
|
-
l("span",
|
59
|
+
l("h3", L, [
|
60
|
+
c(d(o(a)("title")) + " ", 1),
|
61
|
+
M,
|
62
|
+
l("span", z, d(o(a)("subtitle")), 1)
|
64
63
|
]),
|
65
|
-
l("p",
|
66
|
-
i(
|
64
|
+
l("p", G, [
|
65
|
+
i(m, {
|
67
66
|
to: { name: "Sign Up" },
|
68
67
|
class: "underline t-second"
|
69
68
|
}, {
|
70
|
-
default:
|
71
|
-
|
69
|
+
default: u(() => [
|
70
|
+
c(d(o(a)("signup")), 1)
|
72
71
|
]),
|
73
72
|
_: 1
|
74
73
|
})
|
75
74
|
]),
|
76
|
-
l("div",
|
77
|
-
i(
|
75
|
+
l("div", H, [
|
76
|
+
i(I, {
|
78
77
|
selected: n.value,
|
79
|
-
"onUpdate:selected":
|
78
|
+
"onUpdate:selected": t[0] || (t[0] = (e) => n.value = e),
|
80
79
|
tabs: [
|
81
|
-
{ name: o(
|
82
|
-
{ name: o(
|
80
|
+
{ name: o(a)("phone"), value: "phone" },
|
81
|
+
{ name: o(a)("email"), value: "email" }
|
83
82
|
]
|
84
83
|
}, null, 8, ["selected", "tabs"])
|
85
84
|
]),
|
86
|
-
l("div",
|
87
|
-
i(
|
88
|
-
default:
|
89
|
-
|
90
|
-
i(
|
91
|
-
modelValue:
|
92
|
-
"onUpdate:modelValue":
|
85
|
+
l("div", J, [
|
86
|
+
i(f, { name: "slide-fade" }, {
|
87
|
+
default: u(() => [
|
88
|
+
v(l("div", K, [
|
89
|
+
i(D, {
|
90
|
+
modelValue: s.user.phone,
|
91
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => s.user.phone = e),
|
93
92
|
dropdownOptions: {
|
94
93
|
showDialCodeInSelection: !0,
|
95
94
|
showFlags: !0,
|
@@ -97,58 +96,58 @@ const B = { class: "" }, $ = ["src"], M = { class: "mn-medium" }, z = /* @__PURE
|
|
97
96
|
},
|
98
97
|
validation: h.value,
|
99
98
|
mode: "national",
|
100
|
-
inputOptions: { placeholder: o(
|
99
|
+
inputOptions: { placeholder: o(a)("phonePlaceholder") },
|
101
100
|
class: "bg-grey pd-small radius-small mn-thin"
|
102
101
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
103
102
|
], 512), [
|
104
|
-
[
|
103
|
+
[g, n.value === "phone"]
|
105
104
|
])
|
106
105
|
]),
|
107
106
|
_: 1
|
108
107
|
}),
|
109
|
-
i(
|
110
|
-
default:
|
111
|
-
|
112
|
-
i(
|
113
|
-
field:
|
114
|
-
"onUpdate:field":
|
115
|
-
placeholder: o(
|
108
|
+
i(f, { name: "slide-fade" }, {
|
109
|
+
default: u(() => [
|
110
|
+
v(l("div", Q, [
|
111
|
+
i(w, {
|
112
|
+
field: s.user.email,
|
113
|
+
"onUpdate:field": t[2] || (t[2] = (e) => s.user.email = e),
|
114
|
+
placeholder: o(a)("emailPlaceholder"),
|
116
115
|
validation: _.value,
|
117
116
|
class: "bg-grey pd-medium radius-small"
|
118
117
|
}, null, 8, ["field", "placeholder", "validation"])
|
119
118
|
], 512), [
|
120
|
-
[
|
119
|
+
[g, n.value === "email"]
|
121
120
|
])
|
122
121
|
]),
|
123
122
|
_: 1
|
124
123
|
})
|
125
124
|
]),
|
126
|
-
i(
|
127
|
-
field:
|
128
|
-
"onUpdate:field":
|
125
|
+
i(w, {
|
126
|
+
field: s.user.password,
|
127
|
+
"onUpdate:field": t[3] || (t[3] = (e) => s.user.password = e),
|
129
128
|
type: "password",
|
130
129
|
validation: y.value,
|
131
|
-
placeholder: o(
|
130
|
+
placeholder: o(a)("passwordPlaceholder"),
|
132
131
|
class: "bg-grey pd-medium radius-small mn-semi"
|
133
132
|
}, null, 8, ["field", "validation", "placeholder"]),
|
134
|
-
l("div",
|
135
|
-
i(
|
133
|
+
l("div", W, [
|
134
|
+
i(m, {
|
136
135
|
to: "/auth/reset-password",
|
137
136
|
class: "underline d-block t-blue"
|
138
137
|
}, {
|
139
|
-
default:
|
140
|
-
|
138
|
+
default: u(() => [
|
139
|
+
c(d(o(a)("forgotPassword")), 1)
|
141
140
|
]),
|
142
141
|
_: 1
|
143
142
|
})
|
144
143
|
]),
|
145
|
-
i(
|
146
|
-
submit:
|
147
|
-
callback:
|
144
|
+
i(j, {
|
145
|
+
submit: P,
|
146
|
+
callback: S,
|
148
147
|
class: "mn-thin"
|
149
148
|
}, {
|
150
|
-
default:
|
151
|
-
|
149
|
+
default: u(() => [
|
150
|
+
c(d(o(a)("signin")), 1)
|
152
151
|
]),
|
153
152
|
_: 1
|
154
153
|
})
|
@@ -157,5 +156,5 @@ const B = { class: "" }, $ = ["src"], M = { class: "mn-medium" }, z = /* @__PURE
|
|
157
156
|
}
|
158
157
|
};
|
159
158
|
export {
|
160
|
-
|
159
|
+
de as default
|
161
160
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Tab/Tab.vue2.cjs"),f=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue2.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
|
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.vue2.js";
|
3
3
|
import N from "../../../../components/Field/Field.vue2.js";
|
4
|
-
import
|
4
|
+
import S from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
5
|
import D from "../../../../components/Button/Button.vue2.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;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
const e = {
|
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
|
+
}, o = {
|
27
|
+
messages: e
|
28
|
+
};
|
29
|
+
export {
|
30
|
+
o as default,
|
31
|
+
e as messages
|
32
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../components/layouts/Auth.vue.cjs"),e=require("../../middlewares/client/states.validation.cjs"),t=require("../../middlewares/client/auth.validation.cjs");function o(r){return[{path:"auth",name:"Authentication",meta:{title:{en:"Аутентификация",ru:"Authentication"},options:r},component:n.default,children:[{path:"signin",name:"Sign In",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Sign In",ru:"Вход"}},component:()=>Promise.resolve().then(()=>require("../components/pages/SignIn.vue.cjs"))},{path:"reset-password",name:"Reset Password",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Reset Password",ru:"Сбросить Пароль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/ResetPassword.vue.cjs"))},{path:"signup",name:"Sign Up",beforeEnter:[t.requiresNoAuth,e.resetUser],meta:{title:{en:"Sign Up",ru:"Регистрация"}},component:()=>Promise.resolve().then(()=>require("../components/pages/SignUp.vue.cjs"))},{path:"enter-code",name:"Enter Code",beforeEnter:[t.requiresNoAuth,e.checkUser],meta:{title:{en:"Enter Code",ru:"Введите Код"}},component:()=>Promise.resolve().then(()=>require("../components/pages/EnterCode.vue.cjs"))},{path:"enter-password",name:"Enter Password",beforeEnter:[t.requiresNoAuth,e.checkUser],meta:{title:{en:"Enter Password",ru:"Введите Пароль"}},component:()=>Promise.resolve().then(()=>require("../components/pages/EnterPassword.vue.cjs"))},{path:"invite",name:"Invite",meta:{title:{en:"Invite",ru:"Приглашение"}},component:()=>Promise.resolve().then(()=>require("../components/pages/Invite.vue.cjs"))}]}]}exports.default=o;
|