@ozdao/prometheus-framework 0.1.81 → 0.1.83
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +4 -4
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +3 -3
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2981 -2804
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.js +10 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +26 -26
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +28 -29
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +55 -65
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +23 -23
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +31 -31
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +22 -22
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +18 -18
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +24 -24
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +32 -32
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +31 -30
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +20 -20
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +32 -32
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +21 -21
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +8 -8
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +12 -12
- package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Text/Text.vue.js +11 -11
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +27 -27
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +18 -18
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +17 -17
- 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 +41 -40
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +17 -18
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +13 -13
- 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 +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +25 -25
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +56 -56
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +44 -43
- 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 +15 -15
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +10 -10
- 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 +51 -53
- 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 +59 -61
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +22 -22
- 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 +23 -23
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +23 -23
- 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 +11 -11
- 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 +18 -18
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- 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 +30 -30
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +24 -24
- 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 +20 -20
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +1949 -1937
- package/dist/style.css +1 -1
- package/package.json +2 -4
- package/src/modules/auth/components/pages/SignIn.vue +1 -0
- package/src/modules/auth/store/auth.js +2 -7
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue.cjs");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue.cjs");const m={class:""},v={class:"flex-nowrap flex-v-center flex"},p=["onClick"],k={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(s,{emit:o}){const i=o,l=s,a=e.ref(0);if(l.selected){const t=l.tabs.findIndex(c=>c.value===l.selected);t!==-1&&(a.value=t)}function u(t,c){a.value=t,i("update:selected",c.value),l.callback&&l.callback()}function d(t){return`${100/l.tabs.length*t}%`}function f(){return`${100/l.tabs.length}%`}const b=e.computed(()=>({left:d(a.value),width:f()}));return(t,c)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabs,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:_=>u(n,r),class:e.normalizeClass([{"t-transp":n!==a.value},"z-index-1 t-center pd-small w-100"])},[e.createElementVNode("label",null,e.toDisplayString(r.name),1)],10,p))),128)),e.createElementVNode("div",{style:e.normalizeStyle(b.value),class:"radius-extra bg-main t-white tab-selector"},null,4)])]))}};exports.default=k;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as v, computed as h, openBlock as c, createElementBlock as s, createElementVNode as r, Fragment as _, renderList as g, normalizeClass as k, toDisplayString as x, normalizeStyle as y } from "vue";
|
2
2
|
import "./Tab.vue.js";
|
3
3
|
const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex" }, w = ["onClick"], W = {
|
4
4
|
__name: "Tab",
|
@@ -9,32 +9,32 @@ const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex" }, w = ["
|
|
9
9
|
},
|
10
10
|
emits: ["update:selected"],
|
11
11
|
setup(o, { emit: d }) {
|
12
|
-
const t = o, a =
|
12
|
+
const u = d, t = o, a = v(0);
|
13
13
|
if (t.selected) {
|
14
14
|
const e = t.tabs.findIndex((l) => l.value === t.selected);
|
15
15
|
e !== -1 && (a.value = e);
|
16
16
|
}
|
17
|
-
function
|
18
|
-
a.value = e,
|
17
|
+
function f(e, l) {
|
18
|
+
a.value = e, u("update:selected", l.value), t.callback && t.callback();
|
19
19
|
}
|
20
|
-
function
|
20
|
+
function b(e) {
|
21
21
|
return `${100 / t.tabs.length * e}%`;
|
22
22
|
}
|
23
|
-
function
|
23
|
+
function m() {
|
24
24
|
return `${100 / t.tabs.length}%`;
|
25
25
|
}
|
26
|
-
const
|
26
|
+
const p = h(() => ({ left: b(a.value), width: m() }));
|
27
27
|
return (e, l) => (c(), s("div", S, [
|
28
28
|
r("div", T, [
|
29
|
-
(c(!0), s(
|
29
|
+
(c(!0), s(_, null, g(o.tabs, (i, n) => (c(), s("div", {
|
30
30
|
key: n,
|
31
|
-
onClick: (z) =>
|
32
|
-
class:
|
31
|
+
onClick: (z) => f(n, i),
|
32
|
+
class: k([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
|
33
33
|
}, [
|
34
|
-
r("label", null,
|
34
|
+
r("label", null, x(i.name), 1)
|
35
35
|
], 10, w))), 128)),
|
36
36
|
r("div", {
|
37
|
-
style:
|
37
|
+
style: y(p.value),
|
38
38
|
class: "radius-extra bg-main t-white tab-selector"
|
39
39
|
}, null, 4)
|
40
40
|
])
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d={key:0,class:"cursor-pointer t-second"},i={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0},showToggleText:{type:Boolean,default:!1}},setup(n){const t=n,o=e.ref(!1),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d={key:0,class:"cursor-pointer t-second"},i={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0},showToggleText:{type:Boolean,default:!1}},setup(n){const t=n,o=e.ref(!1),l=e.computed(()=>t.text.length>t.maxLen?t.text.slice(0,t.maxLen)+"...":t.text),u=e.computed(()=>t.text),c=()=>{o.value=!o.value},s=e.computed(()=>o.value?u.value:l.value),r=e.computed(()=>t.text.length>t.maxLen),a=e.computed(()=>o.value?"Hide":"Show more");return(p,x)=>(e.openBlock(),e.createElementBlock("span",{onClick:c,class:""},[e.createTextVNode(e.toDisplayString(s.value)+" ",1),r.value&&n.showToggleText?(e.openBlock(),e.createElementBlock("span",d,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]))}};exports.default=i;
|
@@ -1,27 +1,27 @@
|
|
1
|
-
import { ref as
|
2
|
-
const
|
1
|
+
import { ref as i, computed as t, openBlock as s, createElementBlock as a, createTextVNode as d, toDisplayString as l, createCommentVNode as h } from "vue";
|
2
|
+
const T = {
|
3
3
|
key: 0,
|
4
4
|
class: "cursor-pointer t-second"
|
5
|
-
},
|
5
|
+
}, w = {
|
6
6
|
__name: "Text",
|
7
7
|
props: {
|
8
8
|
maxLen: { type: Number, required: !0 },
|
9
9
|
text: { type: String, required: !0 },
|
10
10
|
showToggleText: { type: Boolean, default: !1 }
|
11
11
|
},
|
12
|
-
setup(
|
13
|
-
const e =
|
12
|
+
setup(n) {
|
13
|
+
const e = n, o = i(!1), r = t(() => e.text.length > e.maxLen ? e.text.slice(0, e.maxLen) + "..." : e.text), c = t(() => e.text), u = () => {
|
14
14
|
o.value = !o.value;
|
15
|
-
},
|
16
|
-
return (
|
17
|
-
onClick:
|
15
|
+
}, x = t(() => o.value ? c.value : r.value), m = t(() => e.text.length > e.maxLen), p = t(() => o.value ? "Hide" : "Show more");
|
16
|
+
return (g, v) => (s(), a("span", {
|
17
|
+
onClick: u,
|
18
18
|
class: ""
|
19
19
|
}, [
|
20
|
-
|
21
|
-
|
20
|
+
d(l(x.value) + " ", 1),
|
21
|
+
m.value && n.showToggleText ? (s(), a("span", T, l(p.value), 1)) : h("", !0)
|
22
22
|
]));
|
23
23
|
}
|
24
24
|
};
|
25
25
|
export {
|
26
|
-
|
26
|
+
w as default
|
27
27
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../node_modules/axios/lib/axios.cjs");require("./Upload.vue2.cjs");const f=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),p={key:0,class:"t-transp mn-r-small"},h={class:"w-100"},v=["placeholder","multiple"],g={key:0,class:"mn-t-thin mn-b-thin invalid-feedback"},y={__name:"Upload",props:{label:null,type:"file",placeholder:"Upload a file",validation:!1,multiple:{type:Boolean,default:!1}},emits:["update:field","focus","blur","file-change"],setup(t,{emit:r}){const s=r,c=t,l=e.ref(null);e.ref(null);async function d(a){let o=a.target.files[0],n=new FormData;n.append("file",o);try{let u=await m.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(c.uploadPath)}`,n,{headers:{"Content-Type":"multipart/form-data"}});l.value=u.data.filepath,s("file-change",l.value)}catch(i){console.error(i)}}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[a.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[e.createTextVNode(e.toDisplayString(l.value)+" ",1),t.label?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",h,[e.createElementVNode("input",{onChange:d,type:"file",class:"w-100",placeholder:t.placeholder,multiple:t.multiple,id:"photo",name:"photo"},null,40,v)])],2),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",g," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},b=f.default(y,[["__scopeId","data-v-5dd2f570"]]);exports.default=b;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { ref as c, openBlock as o, createElementBlock as n, Fragment as
|
2
|
-
import
|
1
|
+
import { ref as c, openBlock as o, createElementBlock as n, Fragment as x, createElementVNode as t, normalizeClass as g, createTextVNode as y, toDisplayString as i, createCommentVNode as m, createVNode as b, Transition as C, withCtx as w } from "vue";
|
2
|
+
import U from "../../../node_modules/axios/lib/axios.js";
|
3
3
|
import "./Upload.vue2.js";
|
4
|
-
import
|
5
|
-
const
|
4
|
+
import k from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const N = {
|
6
6
|
key: 0,
|
7
7
|
class: "t-transp mn-r-small"
|
8
|
-
},
|
8
|
+
}, _ = { class: "w-100" }, R = ["placeholder", "multiple"], V = {
|
9
9
|
key: 0,
|
10
10
|
class: "mn-t-thin mn-b-thin invalid-feedback"
|
11
|
-
},
|
11
|
+
}, $ = {
|
12
12
|
__name: "Upload",
|
13
13
|
props: {
|
14
14
|
label: null,
|
@@ -21,55 +21,55 @@ const k = {
|
|
21
21
|
}
|
22
22
|
},
|
23
23
|
emits: ["update:field", "focus", "blur", "file-change"],
|
24
|
-
setup(e, { emit:
|
25
|
-
const p = e,
|
24
|
+
setup(e, { emit: f }) {
|
25
|
+
const p = f, u = e, a = c(null);
|
26
26
|
c(null);
|
27
|
-
async function
|
27
|
+
async function h(l) {
|
28
28
|
let s = l.target.files[0], r = new FormData();
|
29
29
|
r.append("file", s);
|
30
30
|
try {
|
31
|
-
let
|
31
|
+
let v = await U.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(u.uploadPath)}`, r, {
|
32
32
|
headers: {
|
33
33
|
"Content-Type": "multipart/form-data"
|
34
34
|
}
|
35
35
|
});
|
36
|
-
|
36
|
+
a.value = v.data.filepath, p("file-change", a.value);
|
37
37
|
} catch (d) {
|
38
38
|
console.error(d);
|
39
39
|
}
|
40
40
|
}
|
41
|
-
return (l, s) => (o(), n(
|
42
|
-
|
43
|
-
class:
|
41
|
+
return (l, s) => (o(), n(x, null, [
|
42
|
+
t("div", {
|
43
|
+
class: g([[l.$attrs.class, { "bg-fourth-nano": e.validation }], "flex-center flex-nowrap flex"])
|
44
44
|
}, [
|
45
|
-
|
46
|
-
e.label ? (o(), n("div",
|
47
|
-
|
48
|
-
])) :
|
49
|
-
|
50
|
-
|
51
|
-
onChange:
|
45
|
+
y(i(a.value) + " ", 1),
|
46
|
+
e.label ? (o(), n("div", N, [
|
47
|
+
t("span", null, i(e.label), 1)
|
48
|
+
])) : m("", !0),
|
49
|
+
t("div", _, [
|
50
|
+
t("input", {
|
51
|
+
onChange: h,
|
52
52
|
type: "file",
|
53
53
|
class: "w-100",
|
54
54
|
placeholder: e.placeholder,
|
55
55
|
multiple: e.multiple,
|
56
56
|
id: "photo",
|
57
57
|
name: "photo"
|
58
|
-
}, null, 40,
|
58
|
+
}, null, 40, R)
|
59
59
|
])
|
60
60
|
], 2),
|
61
|
-
|
61
|
+
b(C, {
|
62
62
|
mode: "out-in",
|
63
63
|
name: "fade"
|
64
64
|
}, {
|
65
|
-
default:
|
66
|
-
e.validation ? (o(), n("div",
|
65
|
+
default: w(() => [
|
66
|
+
e.validation ? (o(), n("div", V, " * " + i(e.validation.message), 1)) : m("", !0)
|
67
67
|
]),
|
68
68
|
_: 1
|
69
69
|
})
|
70
70
|
], 64));
|
71
71
|
}
|
72
|
-
},
|
72
|
+
}, L = /* @__PURE__ */ k($, [["__scopeId", "data-v-5dd2f570"]]);
|
73
73
|
export {
|
74
|
-
|
74
|
+
L as default
|
75
75
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../node_modules/axios/lib/axios.cjs"),C=["src"],v={key:1,class:"flex-v-center flex-h-center flex w-100 h-100 bg-second"},g=e.createElementVNode("svg",{class:"i-medium",width:"104",height:"104",viewBox:"0 0 104 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"white",d:"M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"})],-1),w=[g],_={__name:"UploadImage",props:["uploadPath","photo"],emits:["update:photo"],setup(n,{emit:u}){const o=e.ref(null),a=e.ref(null),r=n,p=u;e.watch(r,({photo:t})=>{t&&(o.value=t)});function d(){a.value.click()}async function i(t){let l=t.target.files[0],s=new FormData;s.append("file",l);try{let h=await m.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(r.uploadPath)}`,s,{headers:{"Content-Type":"multipart/form-data"}});o.value=h.data.filepath,p("update:photo",o.value)}catch(c){console.error(c)}}function f(t){t.preventDefault(),i({target:{files:t.dataTransfer.files}})}return(t,l)=>(e.openBlock(),e.createElementBlock("div",{onClick:d,onDrop:f,onDragover:l[0]||(l[0]=e.withModifiers(()=>{},["prevent"])),class:"image-upload-area flex-v-center flex-h-center flex"},[o.value||n.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+(o.value||n.photo),alt:"Uploaded image",class:"w-100 h-100 object-fit-cover"},null,8,C)):(e.openBlock(),e.createElementBlock("div",v,w)),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:a,onChange:i,style:{display:"none"}},null,544)],32))}};exports.default=_;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as d, watch as
|
2
|
-
import
|
3
|
-
const
|
1
|
+
import { ref as d, watch as g, openBlock as l, createElementBlock as n, withModifiers as w, createElementVNode as i } from "vue";
|
2
|
+
import x from "../../../node_modules/axios/lib/axios.js";
|
3
|
+
const _ = ["src"], y = {
|
4
4
|
key: 1,
|
5
5
|
class: "flex-v-center flex-h-center flex w-100 h-100 bg-second"
|
6
|
-
},
|
6
|
+
}, k = /* @__PURE__ */ i("svg", {
|
7
7
|
class: "i-medium",
|
8
8
|
width: "104",
|
9
9
|
height: "104",
|
@@ -15,9 +15,9 @@ const x = ["src"], _ = {
|
|
15
15
|
fill: "white",
|
16
16
|
d: "M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"
|
17
17
|
})
|
18
|
-
], -1),
|
19
|
-
|
20
|
-
],
|
18
|
+
], -1), L = [
|
19
|
+
k
|
20
|
+
], I = {
|
21
21
|
__name: "UploadImage",
|
22
22
|
props: [
|
23
23
|
"uploadPath",
|
@@ -27,23 +27,23 @@ const x = ["src"], _ = {
|
|
27
27
|
],
|
28
28
|
emits: ["update:photo"],
|
29
29
|
setup(a, { emit: u }) {
|
30
|
-
const
|
31
|
-
|
30
|
+
const t = d(null), r = d(null), s = a, h = u;
|
31
|
+
g(s, ({ photo: e }) => {
|
32
32
|
e && (t.value = e);
|
33
33
|
});
|
34
|
-
function
|
35
|
-
|
34
|
+
function m() {
|
35
|
+
r.value.click();
|
36
36
|
}
|
37
37
|
async function c(e) {
|
38
38
|
let o = e.target.files[0], p = new FormData();
|
39
39
|
p.append("file", o);
|
40
40
|
try {
|
41
|
-
let
|
41
|
+
let v = await x.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(s.uploadPath)}`, p, {
|
42
42
|
headers: {
|
43
43
|
"Content-Type": "multipart/form-data"
|
44
44
|
}
|
45
45
|
});
|
46
|
-
t.value =
|
46
|
+
t.value = v.data.filepath, h("update:photo", t.value);
|
47
47
|
} catch (f) {
|
48
48
|
console.error(f);
|
49
49
|
}
|
@@ -56,9 +56,9 @@ const x = ["src"], _ = {
|
|
56
56
|
});
|
57
57
|
}
|
58
58
|
return (e, o) => (l(), n("div", {
|
59
|
-
onClick:
|
59
|
+
onClick: m,
|
60
60
|
onDrop: C,
|
61
|
-
onDragover: o[0] || (o[0] =
|
61
|
+
onDragover: o[0] || (o[0] = w(() => {
|
62
62
|
}, ["prevent"])),
|
63
63
|
class: "image-upload-area flex-v-center flex-h-center flex"
|
64
64
|
}, [
|
@@ -67,11 +67,11 @@ const x = ["src"], _ = {
|
|
67
67
|
src: (e.FILE_SERVER_URL || "") + (t.value || a.photo),
|
68
68
|
alt: "Uploaded image",
|
69
69
|
class: "w-100 h-100 object-fit-cover"
|
70
|
-
}, null, 8,
|
70
|
+
}, null, 8, _)) : (l(), n("div", y, L)),
|
71
71
|
i("input", {
|
72
72
|
type: "file",
|
73
73
|
ref_key: "fileInput",
|
74
|
-
ref:
|
74
|
+
ref: r,
|
75
75
|
onChange: c,
|
76
76
|
style: { display: "none" }
|
77
77
|
}, null, 544)
|
@@ -79,5 +79,5 @@ const x = ["src"], _ = {
|
|
79
79
|
}
|
80
80
|
};
|
81
81
|
export {
|
82
|
-
|
82
|
+
I as default
|
83
83
|
};
|
package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../node_modules/axios/lib/axios.cjs"),v=e.createElementVNode("div",{class:"flex-v-center flex-h-center flex w-100 h-100"}," upload ",-1),g={__name:"UploadImageMultiple",props:["uploadPath"],emits:["update:images"],setup(i,{emit:p}){const l=e.ref([]),a=e.ref(null),u=i,c=p;function f(){a.value.click()}async function r(o){let n=o.target.files,s=new FormData;for(let t=0;t<n.length;t++)s.append("file",n[t]);try{(await h.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(u.uploadPath)}`,s,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(m=>{l.value.push(m.filepath)}),c("update:images",l.value)}catch(t){console.error(t)}}function d(o){o.preventDefault(),r({target:{files:o.dataTransfer.files}})}return(o,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:d,onDragover:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),class:"flex-v-center flex-h-center flex"},[v,e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:a,onChange:r,multiple:"",style:{display:"none"}},null,544)],32))}};exports.default=g;
|
package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
const
|
1
|
+
import { ref as i, openBlock as v, createElementBlock as x, withModifiers as g, createElementVNode as s } from "vue";
|
2
|
+
import C from "../../../node_modules/axios/lib/axios.js";
|
3
|
+
const _ = /* @__PURE__ */ s("div", { class: "flex-v-center flex-h-center flex w-100 h-100" }, " upload ", -1), w = {
|
4
4
|
__name: "UploadImageMultiple",
|
5
5
|
props: [
|
6
6
|
"uploadPath"
|
7
7
|
],
|
8
8
|
emits: ["update:images"],
|
9
9
|
setup(p, { emit: f }) {
|
10
|
-
const
|
11
|
-
function
|
12
|
-
|
10
|
+
const n = i([]), a = i(null), c = p, u = f;
|
11
|
+
function m() {
|
12
|
+
a.value.click();
|
13
13
|
}
|
14
14
|
async function l(t) {
|
15
15
|
let o = t.target.files, r = new FormData();
|
16
16
|
for (let e = 0; e < o.length; e++)
|
17
17
|
r.append("file", o[e]);
|
18
18
|
try {
|
19
|
-
(await
|
19
|
+
(await C.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/multiple?folderName=${encodeURIComponent(c.uploadPath)}`, r, {
|
20
20
|
headers: {
|
21
21
|
"Content-Type": "multipart/form-data"
|
22
22
|
}
|
23
|
-
})).data.forEach((
|
24
|
-
|
25
|
-
}),
|
23
|
+
})).data.forEach((h) => {
|
24
|
+
n.value.push(h.filepath);
|
25
|
+
}), u("update:images", n.value);
|
26
26
|
} catch (e) {
|
27
27
|
console.error(e);
|
28
28
|
}
|
@@ -34,18 +34,18 @@ const C = /* @__PURE__ */ i("div", { class: "flex-v-center flex-h-center flex w-
|
|
34
34
|
}
|
35
35
|
});
|
36
36
|
}
|
37
|
-
return (t, o) => (
|
38
|
-
onClick:
|
37
|
+
return (t, o) => (v(), x("div", {
|
38
|
+
onClick: m,
|
39
39
|
onDrop: d,
|
40
|
-
onDragover: o[0] || (o[0] =
|
40
|
+
onDragover: o[0] || (o[0] = g(() => {
|
41
41
|
}, ["prevent"])),
|
42
42
|
class: "flex-v-center flex-h-center flex"
|
43
43
|
}, [
|
44
|
-
|
45
|
-
|
44
|
+
_,
|
45
|
+
s("input", {
|
46
46
|
type: "file",
|
47
47
|
ref_key: "fileInput",
|
48
|
-
ref:
|
48
|
+
ref: a,
|
49
49
|
onChange: l,
|
50
50
|
multiple: "",
|
51
51
|
style: { display: "none" }
|
@@ -54,5 +54,5 @@ const C = /* @__PURE__ */ i("div", { class: "flex-v-center flex-h-center flex w-
|
|
54
54
|
}
|
55
55
|
};
|
56
56
|
export {
|
57
|
-
|
57
|
+
w as default
|
58
58
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),V=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),w=require("../../../../components/Button/Button.vue2.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"},
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Tab/Tab.vue2.cjs"),c=require("../../../../components/Field/Field.vue2.cjs"),V=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),w=require("../../../../components/Button/Button.vue2.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"},T={class:"pos-relative"},P={class:"mn-thin radius-small"},I={class:"mn-thin radius-small o-hidden"},k={class:"w-100 mn-big"},U={__name:"SignIn",setup(j){const d=e.ref(null),m=e.ref(null),u=e.ref(null);p.useRoute();const h=p.useRouter(),{t:o}=N.useI18n(b.default),l=e.ref("phone"),f=n=>new Promise((s,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=n,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{l.value==="phone"&&await r.validateInputs(d,r.validatePhone,a.state.user.phone,"Некорректный телефон"),l.value==="email"&&await r.validateInputs(u,r.validateEmail,a.state.user.email,"Некорректный email")}catch{throw new Error}const n={...a.state.user};n.phone=a.state.user.phone.number,await a.actions.login(n,l.value)}function _(){h.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(n,s)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",y,[e.createTextVNode(e.toDisplayString(n.document.cookie)+" ",1),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(o)("title"))+" ",1),q,e.createElementVNode("span",x,e.toDisplayString(e.unref(o)("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(o)("signup")),1)]),_:1})]),e.createElementVNode("div",D,[e.createVNode(g.default,{selected:l.value,"onUpdate:selected":s[0]||(s[0]=t=>l.value=t),tabs:[{name:e.unref(o)("phone"),value:"phone"},{name:e.unref(o)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",P,[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(o)("phonePlaceholder")},class:"bg-grey pd-small radius-small mn-thin"},null,8,["modelValue","validation","inputOptions"])],512),[[e.vShow,l.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(o)("emailPlaceholder"),validation:u.value,class:"bg-grey pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,l.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(o)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(i,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("forgotPassword")),1)]),_:1})]),e.createVNode(w.default,{submit:v,callback:_,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("signin")),1)]),_:1})])}}};exports.default=U;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as c, onMounted as x, resolveComponent as U, openBlock as C, createElementBlock as E, createTextVNode as u, toDisplayString as d, createElementVNode as l, unref as a, createVNode as i, withCtx as m, Transition as f, withDirectives as v, vShow as g } from "vue";
|
2
2
|
import I from "../../../../components/Tab/Tab.vue2.js";
|
3
3
|
import w from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
@@ -6,68 +6,69 @@ import j from "../../../../components/Button/Button.vue2.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 o, 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
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
|
-
const h =
|
15
|
+
const h = c(null), y = c(null), _ = c(null);
|
16
16
|
F();
|
17
|
-
const V = N(), { t:
|
17
|
+
const V = N(), { t: s } = O(T), n = c("phone"), P = (r) => new Promise((t, p) => {
|
18
18
|
const e = document.createElement("script");
|
19
|
-
e.type = "text/javascript", e.src = r, e.onload = t, e.onerror =
|
19
|
+
e.type = "text/javascript", e.src = r, e.onload = t, e.onerror = p, document.head.appendChild(e);
|
20
20
|
});
|
21
|
-
|
22
|
-
await
|
21
|
+
x(async () => {
|
22
|
+
await P("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
|
23
23
|
});
|
24
|
-
async function
|
24
|
+
async function S() {
|
25
25
|
try {
|
26
26
|
n.value === "phone" && await b(
|
27
27
|
h,
|
28
28
|
A,
|
29
|
-
|
29
|
+
o.user.phone,
|
30
30
|
"Некорректный телефон"
|
31
31
|
), n.value === "email" && await b(
|
32
32
|
_,
|
33
33
|
B,
|
34
|
-
|
34
|
+
o.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 = { ...o.user };
|
41
|
+
r.phone = o.user.phone.number, await q.login(r, n.value);
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function k() {
|
44
44
|
V.push({
|
45
45
|
name: "User Profile",
|
46
46
|
params: {
|
47
|
-
_id:
|
47
|
+
_id: o.user._id
|
48
48
|
},
|
49
49
|
query: { afterAuth: "true" }
|
50
50
|
});
|
51
51
|
}
|
52
52
|
return (r, t) => {
|
53
|
-
const
|
53
|
+
const p = U("router-link");
|
54
54
|
return C(), E("section", R, [
|
55
|
+
u(d(r.document.cookie) + " ", 1),
|
55
56
|
l("img", {
|
56
57
|
src: "/logo/logo_square.svg",
|
57
58
|
class: "i-extra radius-small mn-small"
|
58
59
|
}, null, 8, $),
|
59
60
|
l("h3", L, [
|
60
|
-
|
61
|
+
u(d(a(s)("title")) + " ", 1),
|
61
62
|
M,
|
62
|
-
l("span", z, d(
|
63
|
+
l("span", z, d(a(s)("subtitle")), 1)
|
63
64
|
]),
|
64
65
|
l("p", G, [
|
65
|
-
i(
|
66
|
+
i(p, {
|
66
67
|
to: { name: "Sign Up" },
|
67
68
|
class: "underline t-second"
|
68
69
|
}, {
|
69
|
-
default:
|
70
|
-
|
70
|
+
default: m(() => [
|
71
|
+
u(d(a(s)("signup")), 1)
|
71
72
|
]),
|
72
73
|
_: 1
|
73
74
|
})
|
@@ -77,18 +78,18 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
77
78
|
selected: n.value,
|
78
79
|
"onUpdate:selected": t[0] || (t[0] = (e) => n.value = e),
|
79
80
|
tabs: [
|
80
|
-
{ name:
|
81
|
-
{ name:
|
81
|
+
{ name: a(s)("phone"), value: "phone" },
|
82
|
+
{ name: a(s)("email"), value: "email" }
|
82
83
|
]
|
83
84
|
}, null, 8, ["selected", "tabs"])
|
84
85
|
]),
|
85
86
|
l("div", J, [
|
86
87
|
i(f, { name: "slide-fade" }, {
|
87
|
-
default:
|
88
|
+
default: m(() => [
|
88
89
|
v(l("div", K, [
|
89
90
|
i(D, {
|
90
|
-
modelValue:
|
91
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) =>
|
91
|
+
modelValue: o.user.phone,
|
92
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => o.user.phone = e),
|
92
93
|
dropdownOptions: {
|
93
94
|
showDialCodeInSelection: !0,
|
94
95
|
showFlags: !0,
|
@@ -96,7 +97,7 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
96
97
|
},
|
97
98
|
validation: h.value,
|
98
99
|
mode: "national",
|
99
|
-
inputOptions: { placeholder:
|
100
|
+
inputOptions: { placeholder: a(s)("phonePlaceholder") },
|
100
101
|
class: "bg-grey pd-small radius-small mn-thin"
|
101
102
|
}, null, 8, ["modelValue", "validation", "inputOptions"])
|
102
103
|
], 512), [
|
@@ -106,12 +107,12 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
106
107
|
_: 1
|
107
108
|
}),
|
108
109
|
i(f, { name: "slide-fade" }, {
|
109
|
-
default:
|
110
|
+
default: m(() => [
|
110
111
|
v(l("div", Q, [
|
111
112
|
i(w, {
|
112
|
-
field:
|
113
|
-
"onUpdate:field": t[2] || (t[2] = (e) =>
|
114
|
-
placeholder:
|
113
|
+
field: o.user.email,
|
114
|
+
"onUpdate:field": t[2] || (t[2] = (e) => o.user.email = e),
|
115
|
+
placeholder: a(s)("emailPlaceholder"),
|
115
116
|
validation: _.value,
|
116
117
|
class: "bg-grey pd-medium radius-small"
|
117
118
|
}, null, 8, ["field", "placeholder", "validation"])
|
@@ -123,31 +124,31 @@ const R = { class: "" }, $ = ["src"], L = { class: "mn-medium" }, M = /* @__PURE
|
|
123
124
|
})
|
124
125
|
]),
|
125
126
|
i(w, {
|
126
|
-
field:
|
127
|
-
"onUpdate:field": t[3] || (t[3] = (e) =>
|
127
|
+
field: o.user.password,
|
128
|
+
"onUpdate:field": t[3] || (t[3] = (e) => o.user.password = e),
|
128
129
|
type: "password",
|
129
130
|
validation: y.value,
|
130
|
-
placeholder:
|
131
|
+
placeholder: a(s)("passwordPlaceholder"),
|
131
132
|
class: "bg-grey pd-medium radius-small mn-semi"
|
132
133
|
}, null, 8, ["field", "validation", "placeholder"]),
|
133
134
|
l("div", W, [
|
134
|
-
i(
|
135
|
+
i(p, {
|
135
136
|
to: "/auth/reset-password",
|
136
137
|
class: "underline d-block t-blue"
|
137
138
|
}, {
|
138
|
-
default:
|
139
|
-
|
139
|
+
default: m(() => [
|
140
|
+
u(d(a(s)("forgotPassword")), 1)
|
140
141
|
]),
|
141
142
|
_: 1
|
142
143
|
})
|
143
144
|
]),
|
144
145
|
i(j, {
|
145
|
-
submit:
|
146
|
-
callback:
|
146
|
+
submit: S,
|
147
|
+
callback: k,
|
147
148
|
class: "mn-thin"
|
148
149
|
}, {
|
149
|
-
default:
|
150
|
-
|
150
|
+
default: m(() => [
|
151
|
+
u(d(a(s)("signin")), 1)
|
151
152
|
]),
|
152
153
|
_: 1
|
153
154
|
})
|