@ozdao/prometheus-framework 0.2.63 → 0.2.65
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-BoybHtmb.mjs +13753 -0
- package/dist/main-CJ7URLjm.js +91 -0
- package/dist/products.server.js +8 -1
- package/dist/products.server.mjs +8 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +3 -3
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +46 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -46
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +59 -58
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- 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/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +78 -74
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +132 -85
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +28 -33
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +59 -45
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +8 -8
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/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 +1 -1
- 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.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-B9Vtg5cN.mjs +54 -0
- package/dist/web-ZM1AOTc1.js +1 -0
- package/package.json +1 -1
- package/src/components/Block/Block.vue +1 -1
- package/src/modules/icons/icons.client.js +1 -0
- package/src/modules/products/components/blocks/CardPosition.vue +57 -51
- package/src/modules/products/components/pages/EditLeftover.vue +64 -16
- package/src/modules/products/components/pages/Products.vue +1 -1
package/dist/products.server.js
CHANGED
@@ -876,6 +876,9 @@ const controllerFactory$1 = (db) => {
|
|
876
876
|
if (req.query.organization) {
|
877
877
|
query.organization = new db.mongoose.Types.ObjectId(req.query.organization);
|
878
878
|
}
|
879
|
+
if (req.query.type) {
|
880
|
+
query.type = req.query.type;
|
881
|
+
}
|
879
882
|
console.log(query);
|
880
883
|
const leftoveres = await Leftover.find(query, null, options).sort({ createdAt: "desc" }).exec();
|
881
884
|
if (!leftoveres) {
|
@@ -889,17 +892,21 @@ const controllerFactory$1 = (db) => {
|
|
889
892
|
};
|
890
893
|
const create = async (req, res) => {
|
891
894
|
try {
|
895
|
+
console.log(req.body);
|
892
896
|
const leftover = await Leftover.create({
|
893
897
|
organization: req.body.organization,
|
894
898
|
type: req.body.type,
|
895
899
|
order: req.body.order,
|
896
|
-
positions: req.body.positions
|
900
|
+
positions: req.body.positions,
|
901
|
+
creator: req.body.creator,
|
902
|
+
owner: req.body.owner
|
897
903
|
});
|
898
904
|
if (!leftover) {
|
899
905
|
return res.status(404).send({ message: "ERROR_CREATING_LEFTOVER" });
|
900
906
|
}
|
901
907
|
res.status(200).send(leftover);
|
902
908
|
} catch (err) {
|
909
|
+
console.log(err);
|
903
910
|
res.status(500).send({ message: "ERROR_CREATE_LEFTOVER" });
|
904
911
|
}
|
905
912
|
};
|
package/dist/products.server.mjs
CHANGED
@@ -874,6 +874,9 @@ const controllerFactory$1 = (db) => {
|
|
874
874
|
if (req.query.organization) {
|
875
875
|
query.organization = new db.mongoose.Types.ObjectId(req.query.organization);
|
876
876
|
}
|
877
|
+
if (req.query.type) {
|
878
|
+
query.type = req.query.type;
|
879
|
+
}
|
877
880
|
console.log(query);
|
878
881
|
const leftoveres = await Leftover.find(query, null, options).sort({ createdAt: "desc" }).exec();
|
879
882
|
if (!leftoveres) {
|
@@ -887,17 +890,21 @@ const controllerFactory$1 = (db) => {
|
|
887
890
|
};
|
888
891
|
const create = async (req, res) => {
|
889
892
|
try {
|
893
|
+
console.log(req.body);
|
890
894
|
const leftover = await Leftover.create({
|
891
895
|
organization: req.body.organization,
|
892
896
|
type: req.body.type,
|
893
897
|
order: req.body.order,
|
894
|
-
positions: req.body.positions
|
898
|
+
positions: req.body.positions,
|
899
|
+
creator: req.body.creator,
|
900
|
+
owner: req.body.owner
|
895
901
|
});
|
896
902
|
if (!leftover) {
|
897
903
|
return res.status(404).send({ message: "ERROR_CREATING_LEFTOVER" });
|
898
904
|
}
|
899
905
|
res.status(200).send(leftover);
|
900
906
|
} catch (err) {
|
907
|
+
console.log(err);
|
901
908
|
res.status(500).send({ message: "ERROR_CREATE_LEFTOVER" });
|
902
909
|
}
|
903
910
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue.cjs"),c={class:"bg-grey pd-medium radius-medium"},a={class:"flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-thin t-medium p-big"},u=["onClick"],d=e.createElementVNode("p",{class:"bg-main radius-small t-center i-medium"},"i",-1),m={key:0,class:"w-100"},p={__name:"Block",props:{title:{type:String,default:null},tooltip:{type:String,default:null},actions:{type:Array,default:null},placeholder:{type:String,default:"Nothing here"},options:{type:Object,default:{theme:"white"}}},setup(t){e.useSlots();const r=(o
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue.cjs"),c={class:"bg-grey pd-medium radius-medium"},a={class:"mn-b-small flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-thin t-medium p-big"},u=["onClick"],d=e.createElementVNode("p",{class:"bg-main radius-small t-center i-medium"},"i",-1),m={key:0,class:"w-100"},p={__name:"Block",props:{title:{type:String,default:null},tooltip:{type:String,default:null},actions:{type:Array,default:null},placeholder:{type:String,default:"Nothing here"},options:{type:Object,default:{theme:"white"}}},setup(t){e.useSlots();const r=(n,o={})=>n?n(o).some(l=>Array.isArray(l.children)?!!l.children.length:l.type!==e.Comment):!1;return(n,o)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",a,[t.title?(e.openBlock(),e.createElementBlock("p",s,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("button",{onClick:l.function,class:"i-small pd-thin button-delete button"},e.toDisplayString(l.label),9,u))),256)),t.tooltip?(e.openBlock(),e.createBlock(i.default,{key:1,text:t.tooltip},{default:e.withCtx(()=>[d]),_:1},8,["text"])):e.createCommentVNode("",!0)]),r(n.$slots.default)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.placeholder),1)),e.renderSlot(n.$slots,"default")]))}};exports.default=p;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useSlots as c, openBlock as l, createElementBlock as i, createElementVNode as a, toDisplayString as o, createCommentVNode as r, Fragment as d, renderList as m, createBlock as h, withCtx as f, renderSlot as p, Comment as y } from "vue";
|
2
2
|
import g from "../Tooltip/Tooltip.vue.js";
|
3
|
-
const
|
3
|
+
const b = { class: "bg-grey pd-medium radius-medium" }, k = { class: "mn-b-small flex-v-center flex-nowrap flex" }, S = {
|
4
4
|
key: 0,
|
5
5
|
class: "mn-r-thin t-medium p-big"
|
6
6
|
}, _ = ["onClick"], x = /* @__PURE__ */ a("p", { class: "bg-main radius-small t-center i-medium" }, "i", -1), C = {
|
@@ -35,8 +35,8 @@ const k = { class: "bg-grey pd-medium radius-medium" }, b = { class: "flex-v-cen
|
|
35
35
|
setup(t) {
|
36
36
|
c();
|
37
37
|
const u = (n, s = {}) => n ? n(s).some((e) => Array.isArray(e.children) ? !!e.children.length : e.type !== y) : !1;
|
38
|
-
return (n, s) => (l(), i("div",
|
39
|
-
a("div",
|
38
|
+
return (n, s) => (l(), i("div", b, [
|
39
|
+
a("div", k, [
|
40
40
|
t.title ? (l(), i("p", S, o(t.title), 1)) : r("", !0),
|
41
41
|
(l(!0), i(d, null, m(t.actions, (e) => (l(), i("button", {
|
42
42
|
onClick: e.function,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const g=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const h=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),k={__name:"Feed",props:{search:{type:Boolean,default:!1},showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const g=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const h=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),k={__name:"Feed",props:{search:{type:Boolean,default:!1},showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(l){const a=l,n=e.ref([]),r=e.ref(!1);let i=e.ref(!0),u=e.ref(a.options.skip?a.options.skip:0),s=e.ref(a.options.limit?a.options.limit:10);const d=async()=>{if(r.value){u.value+=s.value;const t=await a.store.read({skip:u.value,limit:s.value,...a.options});t.length===0||t.length<s.value?r.value=!1:r.value=!0,n.value=[...n.value,...t]}},c=async()=>{const t=await a.store.read({skip:u.value,limit:s.value,...a.options});t.length===0||t.length<s.value?r.value=!1:r.value=!0,console.log(t),n.value=t,i.value=!1};e.watch(()=>a.options,(t,o)=>{(t.organization!==o.organization||t.categories!==o.categories||t.prices!==o.prices||t.delivery!==o.delivery||t.search!==o.search||t.status!==o.status||t.hidden!==o.hidden||t.type!==o.type)&&c()},{deep:!0});function m(t){a.options.search=t,console.log(t),c()}return e.onMounted(async()=>{await c()}),(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[l.search?(e.openBlock(),e.createBlock(h.default,{key:0,onSearch:m,placeholder:"Enter product name",class:"bg-white mn-b-thin"})):e.createCommentVNode("",!0)]),_:1}),e.unref(i)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(s),p=>(e.openBlock(),e.createBlock(f.default,{key:p}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&n.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:l.states.empty.title,description:l.states.empty.description,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(i)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value,user:t.user}):e.createCommentVNode("",!0),l.showLoadMore&&r.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"col-w-100 w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3},8,["class"])],64))}};exports.default=k;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as c, watch as T, onMounted as
|
1
|
+
import { ref as c, watch as T, onMounted as B, openBlock as n, createElementBlock as h, Fragment as k, createVNode as v, TransitionGroup as y, withCtx as p, createBlock as d, createCommentVNode as o, unref as m, renderList as M, Transition as j, normalizeClass as w, renderSlot as C } from "vue";
|
2
2
|
import O from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
|
3
3
|
import "../Loader/Loader.vue.js";
|
4
4
|
import $ from "../EmptyState/EmptyState.vue.js";
|
@@ -47,17 +47,17 @@ const q = {
|
|
47
47
|
}
|
48
48
|
},
|
49
49
|
setup(r) {
|
50
|
-
const t = r, i = c([]),
|
50
|
+
const t = r, i = c([]), s = c(!1);
|
51
51
|
let u = c(!0), f = c(t.options.skip ? t.options.skip : 0), l = c(t.options.limit ? t.options.limit : 10);
|
52
52
|
const b = async () => {
|
53
|
-
if (
|
53
|
+
if (s.value) {
|
54
54
|
f.value += l.value;
|
55
55
|
const e = await t.store.read({
|
56
56
|
skip: f.value,
|
57
57
|
limit: l.value,
|
58
58
|
...t.options
|
59
59
|
});
|
60
|
-
e.length === 0 || e.length < l.value ?
|
60
|
+
e.length === 0 || e.length < l.value ? s.value = !1 : s.value = !0, i.value = [...i.value, ...e];
|
61
61
|
}
|
62
62
|
}, g = async () => {
|
63
63
|
const e = await t.store.read({
|
@@ -65,23 +65,23 @@ const q = {
|
|
65
65
|
limit: l.value,
|
66
66
|
...t.options
|
67
67
|
});
|
68
|
-
e.length === 0 || e.length < l.value ?
|
68
|
+
e.length === 0 || e.length < l.value ? s.value = !1 : s.value = !0, console.log(e), i.value = e, u.value = !1;
|
69
69
|
};
|
70
|
-
T(() => t.options, (e,
|
71
|
-
(e.organization !==
|
70
|
+
T(() => t.options, (e, a) => {
|
71
|
+
(e.organization !== a.organization || e.categories !== a.categories || e.prices !== a.prices || e.delivery !== a.delivery || e.search !== a.search || e.status !== a.status || e.hidden !== a.hidden || e.type !== a.type) && g();
|
72
72
|
}, { deep: !0 });
|
73
73
|
function L(e) {
|
74
74
|
t.options.search = e, console.log(e), g();
|
75
75
|
}
|
76
|
-
return
|
76
|
+
return B(async () => {
|
77
77
|
await g();
|
78
|
-
}), (e,
|
78
|
+
}), (e, a) => (n(), h(k, null, [
|
79
79
|
v(y, {
|
80
80
|
tag: "ul",
|
81
81
|
name: "scaleTransition"
|
82
82
|
}, {
|
83
|
-
default:
|
84
|
-
r.search ? (n(),
|
83
|
+
default: p(() => [
|
84
|
+
r.search ? (n(), d(z, {
|
85
85
|
key: 0,
|
86
86
|
onSearch: L,
|
87
87
|
placeholder: "Enter product name",
|
@@ -90,20 +90,20 @@ const q = {
|
|
90
90
|
]),
|
91
91
|
_: 1
|
92
92
|
}),
|
93
|
-
m(u) ? (n(),
|
93
|
+
m(u) ? (n(), d(y, {
|
94
94
|
key: 0,
|
95
95
|
tag: "ul",
|
96
96
|
name: "scaleTransition",
|
97
97
|
class: "o-hidden bg-grey radius-big"
|
98
98
|
}, {
|
99
|
-
default:
|
100
|
-
m(u) ? (n(!0), h(k, { key: 0 },
|
99
|
+
default: p(() => [
|
100
|
+
m(u) ? (n(!0), h(k, { key: 0 }, M(m(l), (S) => (n(), d(O, { key: S }))), 128)) : o("", !0)
|
101
101
|
]),
|
102
102
|
_: 1
|
103
103
|
})) : o("", !0),
|
104
|
-
v(
|
105
|
-
default:
|
106
|
-
!m(u) && i.value.length < 1 ? (n(),
|
104
|
+
v(j, { name: "scaleTransition" }, {
|
105
|
+
default: p(() => [
|
106
|
+
!m(u) && i.value.length < 1 ? (n(), d($, {
|
107
107
|
key: 0,
|
108
108
|
title: r.states.empty.title,
|
109
109
|
description: r.states.empty.description,
|
@@ -115,15 +115,15 @@ const q = {
|
|
115
115
|
v(y, {
|
116
116
|
tag: "ul",
|
117
117
|
name: "scaleTransition",
|
118
|
-
class:
|
118
|
+
class: w(e.$attrs.class)
|
119
119
|
}, {
|
120
|
-
default:
|
120
|
+
default: p(() => [
|
121
121
|
!m(u) && i.value.length > 0 ? C(e.$slots, "default", {
|
122
122
|
key: 0,
|
123
123
|
items: i.value,
|
124
124
|
user: e.user
|
125
125
|
}) : o("", !0),
|
126
|
-
r.showLoadMore &&
|
126
|
+
r.showLoadMore && s.value && i.value.length > 0 ? (n(), h("button", {
|
127
127
|
key: 1,
|
128
128
|
onClick: b,
|
129
129
|
class: "col-w-100 w-100 bg-main button"
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tab.vue2.cjs");const m={class:""},v={class:"flex-nowrap flex-v-center flex pos-relative"},p=["onClick"],k={__name:"Tab",props:{tabs:Array,selected:String,callback:Function},emits:["update:selected"],setup(s,{emit:o}){const i=o,l=s,c=e.ref(0);if(l.selected){const t=l.tabs.findIndex(a=>a.value===l.selected);t!==-1&&(c.value=t)}function u(t,a){c.value=t,i("update:selected",a.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(c.value),width:f()}));return(t,a)=>(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!==c.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 +1,46 @@
|
|
1
|
-
|
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
|
+
import "./Tab.vue2.js";
|
3
|
+
const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex pos-relative" }, w = ["onClick"], W = {
|
4
|
+
__name: "Tab",
|
5
|
+
props: {
|
6
|
+
tabs: Array,
|
7
|
+
selected: String,
|
8
|
+
callback: Function
|
9
|
+
},
|
10
|
+
emits: ["update:selected"],
|
11
|
+
setup(o, { emit: d }) {
|
12
|
+
const u = d, t = o, a = v(0);
|
13
|
+
if (t.selected) {
|
14
|
+
const e = t.tabs.findIndex((l) => l.value === t.selected);
|
15
|
+
e !== -1 && (a.value = e);
|
16
|
+
}
|
17
|
+
function f(e, l) {
|
18
|
+
a.value = e, u("update:selected", l.value), t.callback && t.callback();
|
19
|
+
}
|
20
|
+
function b(e) {
|
21
|
+
return `${100 / t.tabs.length * e}%`;
|
22
|
+
}
|
23
|
+
function m() {
|
24
|
+
return `${100 / t.tabs.length}%`;
|
25
|
+
}
|
26
|
+
const p = h(() => ({ left: b(a.value), width: m() }));
|
27
|
+
return (e, l) => (c(), s("div", S, [
|
28
|
+
r("div", T, [
|
29
|
+
(c(!0), s(_, null, g(o.tabs, (i, n) => (c(), s("div", {
|
30
|
+
key: n,
|
31
|
+
onClick: (z) => f(n, i),
|
32
|
+
class: k([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
|
33
|
+
}, [
|
34
|
+
r("label", null, x(i.name), 1)
|
35
|
+
], 10, w))), 128)),
|
36
|
+
r("div", {
|
37
|
+
style: y(p.value),
|
38
|
+
class: "radius-extra bg-main t-white tab-selector"
|
39
|
+
}, null, 4)
|
40
|
+
])
|
41
|
+
]));
|
42
|
+
}
|
43
|
+
};
|
44
|
+
export {
|
45
|
+
W as default
|
46
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,46 +1 @@
|
|
1
|
-
|
2
|
-
import "./Tab.vue.js";
|
3
|
-
const S = { class: "" }, T = { class: "flex-nowrap flex-v-center flex pos-relative" }, w = ["onClick"], W = {
|
4
|
-
__name: "Tab",
|
5
|
-
props: {
|
6
|
-
tabs: Array,
|
7
|
-
selected: String,
|
8
|
-
callback: Function
|
9
|
-
},
|
10
|
-
emits: ["update:selected"],
|
11
|
-
setup(o, { emit: d }) {
|
12
|
-
const u = d, t = o, a = v(0);
|
13
|
-
if (t.selected) {
|
14
|
-
const e = t.tabs.findIndex((l) => l.value === t.selected);
|
15
|
-
e !== -1 && (a.value = e);
|
16
|
-
}
|
17
|
-
function f(e, l) {
|
18
|
-
a.value = e, u("update:selected", l.value), t.callback && t.callback();
|
19
|
-
}
|
20
|
-
function b(e) {
|
21
|
-
return `${100 / t.tabs.length * e}%`;
|
22
|
-
}
|
23
|
-
function m() {
|
24
|
-
return `${100 / t.tabs.length}%`;
|
25
|
-
}
|
26
|
-
const p = h(() => ({ left: b(a.value), width: m() }));
|
27
|
-
return (e, l) => (c(), s("div", S, [
|
28
|
-
r("div", T, [
|
29
|
-
(c(!0), s(_, null, g(o.tabs, (i, n) => (c(), s("div", {
|
30
|
-
key: n,
|
31
|
-
onClick: (z) => f(n, i),
|
32
|
-
class: k([{ "t-transp": n !== a.value }, "z-index-1 t-center pd-small w-100"])
|
33
|
-
}, [
|
34
|
-
r("label", null, x(i.name), 1)
|
35
|
-
], 10, w))), 128)),
|
36
|
-
r("div", {
|
37
|
-
style: y(p.value),
|
38
|
-
class: "radius-extra bg-main t-white tab-selector"
|
39
|
-
}, null, 4)
|
40
|
-
])
|
41
|
-
]));
|
42
|
-
}
|
43
|
-
};
|
44
|
-
export {
|
45
|
-
W as default
|
46
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../sections/SliderFeatures.vue2.cjs");const r=require("vue-router");require("../../store/auth.cjs");require("../../../middlewares/client/inputs.validation.cjs");const n={class:"cols-2-1_2 gap-small pd-small bg-white"},u=e.createElementVNode("section",{class:"w-100 desktop-only o-hidden radius-big bg-grad-main"},null,-1),s={__name:"Auth",setup(a){return e.ref(null),e.ref(null),e.ref(null),r.useRoute(),r.useRouter(),e.ref("email"),(o,c)=>{const t=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",n,[e.createVNode(t,{class:"pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center"},{default:e.withCtx(({Component:l,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{ref:"page",key:i.path,localPosition:o.localPosition},null,8,["localPosition"]))]),_:2},1024)]),_:1}),u])}}};exports.default=s;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as e, resolveComponent as a, openBlock as o, createElementBlock as m, createVNode as t, withCtx as r, Transition as c, createBlock as p, resolveDynamicComponent as u, createElementVNode as d } from "vue";
|
2
|
-
import "../../../../components/Tab/Tab.
|
2
|
+
import "../../../../components/Tab/Tab.vue2.js";
|
3
3
|
import "../../../../components/Field/Field.vue2.js";
|
4
4
|
import "../../../../components/Button/Button.vue2.js";
|
5
5
|
import "vue-i18n";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const l=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),i=require("vue-router"),h=require("vue-i18n"),t=require("../../store/auth.cjs"),d=require("../../../middlewares/client/inputs.validation.cjs"),w=require("../../localization/EnterPassword.json.cjs");require("./EnterPassword.vue2.cjs");const y={class:"t-left pd-medium"},_={class:"mn-b-small"},g={key:0,class:"mn-b-semi t-transp"},b={key:1,class:"mn-b-semi t-transp"},k={class:"mn-b-semi radius-small o-hidden"},q={key:2,class:"p-medium t-semi mn-b-semi"},B=e.createElementVNode("a",{class:"t-second",href:"/legal/eula",target:"_blank",rel:"noopener noreferrer"},"End User License Agreement (EULA)",-1),E={key:0},P={key:1},v={__name:"EnterPassword",setup(S){const n=e.ref(null),{t:s}=h.useI18n({useScope:"global",...w.default}),r=i.useRoute(),u=i.useRouter();e.ref("phone");async function c(){try{await d.validateInputs(n,d.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}r.query.method==="reset-password"&&await t.actions.updatePassword(t.state.user,r.query.type),r.query.method!=="reset-password"&&await t.actions.signup(t.state.user,r.query.type)}function p(){u.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(m,o)=>(e.openBlock(),e.createElementBlock("section",y,[e.createElementVNode("h3",_,e.toDisplayString(e.unref(s)("almostDone")),1),e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(e.unref(s)("newPasswordPrompt")),1)):(e.openBlock(),e.createElementBlock("p",b,e.toDisplayString(e.unref(s)("registrationPasswordPrompt")),1)),e.createElementVNode("div",k,[e.createVNode(l.default,{field:t.state.user.password,"onUpdate:field":o[0]||(o[0]=a=>t.state.user.password=a),type:"password",validation:n.value,placeholder:e.unref(s)("passwordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","validation","placeholder"]),e.createVNode(l.default,{field:t.state.user.passwordRepeat,"onUpdate:field":o[1]||(o[1]=a=>t.state.user.passwordRepeat=a),type:"password",placeholder:e.unref(s)("repeatPasswordPlaceholder"),class:"bg-grey pd-small radius-small mn-b-thin"},null,8,["field","placeholder"])]),e.unref(r).query.method!=="reset-password"?(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(" By registering, you agree to our "),B])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:c,callback:p,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.unref(r).query.method==="reset-password"?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(e.unref(s)("changePasswordBtn")),1)):(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(e.unref(s)("registerBtn")),1))]),_:1})]))}};exports.default=v;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as u, openBlock as o, createElementBlock as a, createElementVNode as p, toDisplayString as d, unref as e, createVNode as l, createTextVNode as g, createCommentVNode as b, withCtx as P } from "vue";
|
2
|
-
import "../../../../components/Tab/Tab.
|
2
|
+
import "../../../../components/Tab/Tab.vue2.js";
|
3
3
|
import c from "../../../../components/Field/Field.vue.js";
|
4
4
|
import k from "../../../../components/Button/Button.vue.js";
|
5
5
|
import { useRoute as q, useRouter as v } from "vue-router";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue2.cjs");const u=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),t=require("../../store/auth.cjs"),w=require("../../../organizations/store/invites.cjs"),c=require("../../../middlewares/client/inputs.validation.cjs");require("./Invite.vue2.cjs");const b={class:"t-left pd-medium"},h=e.createElementVNode("h3",{class:"mn-b-small"},"Вы были пригилашены в организацию",-1),v=e.createElementVNode("p",{class:"mn-b-semi t-transp"},"Пожалуйста, укажите пароль, на этом регистрация будет закочена.",-1),q={class:"mn-b-semi radius-small o-hidden"},y=e.createElementVNode("span",null,"Join",-1),V={__name:"Invite",async setup(g){let i,n;const l=e.ref(null),a=d.useRoute(),p=d.useRouter();[i,n]=e.withAsyncContext(()=>w.actions.readOne(a.query.inviteCode)),await i,n();async function m(){try{await c.validateInputs(l,c.validatePassword,t.state.user.password,"Некорректный пароль")}catch{throw new Error}try{await t.actions.signup(t.state.user,a.query.type,a.query.inviteCode)}catch(r){console.log(r)}}function _(){p.push({name:"User Profile",params:{_id:t.state.user._id},query:{afterAuth:"true"}})}return(r,s)=>(e.openBlock(),e.createElementBlock("section",b,[h,v,e.createElementVNode("div",q,[e.createVNode(u.default,{field:t.state.user.password,"onUpdate:field":s[0]||(s[0]=o=>t.state.user.password=o),type:"password",validation:l.value,label:"Пароль",placeholder:"******",class:"bg-white radius-small mn-b-small"},null,8,["field","validation"]),e.createVNode(u.default,{field:t.state.user.passwordRepeat,"onUpdate:field":s[1]||(s[1]=o=>t.state.user.passwordRepeat=o),type:"password",label:"Повторите пароль",placeholder:"******",class:"bg-white radius-small mn-b-semi"},null,8,["field"])]),e.createVNode(f.default,{submit:m,callback:_,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode("\\ "),y]),_:1})]))}};exports.default=V;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as f, withAsyncContext as _, openBlock as w, createElementBlock as b, createElementVNode as s, createVNode as i, withCtx as h, createTextVNode as y } from "vue";
|
2
|
-
import "../../../../components/Tab/Tab.
|
2
|
+
import "../../../../components/Tab/Tab.vue2.js";
|
3
3
|
import m from "../../../../components/Field/Field.vue.js";
|
4
4
|
import v from "../../../../components/Button/Button.vue.js";
|
5
5
|
import { useRoute as g, useRouter as x } from "vue-router";
|
@@ -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"),b=require("vue-i18n"),w=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 V={class:"t-left pd-medium"},g={class:"mn-b-small"},y={class:"mn-b-small t-transp"},N={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},E={key:0,class:"mn-b-semi radius-small o-hidden"},S={class:"mn-b-small t-transp"},k={key:0,class:"mn-b-semi radius-small o-hidden"},C={class:"mn-b-small t-transp"},P={__name:"ResetPassword",setup(I){const{t}=b.useI18n({useScope:"global",...w.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",V,[e.createElementVNode("h3",g,e.toDisplayString(e.unref(t)("forgotPasswordTitle")),1),e.createElementVNode("p",y,e.toDisplayString(e.unref(t)("instructions")),1),e.createElementVNode("div",N,[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",S,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-b-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",k,[e.createElementVNode("p",C,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-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1})]))}};exports.default=P;
|
@@ -1,5 +1,5 @@
|
|
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.
|
2
|
+
import P from "../../../../components/Tab/Tab.vue.js";
|
3
3
|
import C from "../../../../components/Field/Field.vue.js";
|
4
4
|
import E from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
5
|
import I from "../../../../components/Button/Button.vue.js";
|
@@ -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"),m=require("../../../../components/Field/Field.vue.cjs"),w=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../components/Button/Button.vue.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),a=require("../../store/auth.cjs"),i=require("../../../middlewares/client/inputs.validation.cjs");require("./SignIn.vue2.cjs");const S={class:""},q=["src"],E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},T={class:"pos-relative"},U={class:"mn-b-thin radius-small"},I={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},j={__name:"SignIn",setup(O){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:l}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((s,r)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=s,t.onerror=r,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function _(){try{n.value==="phone"&&await i.validateInputs(d,i.validatePhone,a.state.user.phone,"Некорректный телефон"),n.value==="email"&&await i.validateInputs(u,i.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 b(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:a.state.user._id},query:{afterAuth:"true"}})}return(o,s)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[e.createElementVNode("img",{src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,8,q),e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(r,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[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",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(w.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-b-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(m.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(m.default,{field:a.state.user.password,"onUpdate:field":s[3]||(s[3]=t=>a.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-grey pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(r,{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(V.default,{submit:_,callback:b,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=j;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as p, onMounted as k, resolveComponent as C, openBlock as E, createElementBlock as I, createElementVNode as a, createTextVNode as c, toDisplayString as d, unref as o, createVNode as i, withCtx as u, Transition as b, withDirectives as g, vShow as w } from "vue";
|
2
|
-
import q from "../../../../components/Tab/Tab.
|
2
|
+
import q from "../../../../components/Tab/Tab.vue.js";
|
3
3
|
import y from "../../../../components/Field/Field.vue.js";
|
4
4
|
import D from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
5
|
import j from "../../../../components/Button/Button.vue.js";
|
@@ -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"),b=require("../../../../components/Button/Button.vue.cjs"),d=require("vue-router"),g=require("vue-i18n"),w=require("../../localization/SignUp.json.cjs"),l=require("../../store/auth.cjs"),V=require("../../store/twofa.cjs"),s=require("../../../middlewares/client/inputs.validation.cjs");require("./SignUp.vue2.cjs");const N={class:"t-left pd-medium"},S={class:"mn-b-small"},E={class:"mn-b-small p-small uppercase t-semi bg-grey radius-big o-hidden"},q={class:"pos-relative"},y={class:"mn-b-semi radius-small"},C={class:"mn-b-small t-transp"},D={class:"mn-b-semi radius-small o-hidden"},x={class:"mn-b-small t-transp"},T={class:"w-100"},k={__name:"SignUp",setup(I){const{t}=g.useI18n({useScope:"global",...w.default}),i=e.ref(null),r=e.ref(null);d.useRoute();const c=d.useRouter(),a=e.ref("phone");async function m(){try{a.value==="phone"&&await s.validateInputs(i,s.validatePhone,l.state.user.phone,"Некорректный телефон"),a.value==="email"&&await s.validateInputs(r,s.validateEmail,l.state.user.email,"Некорректный email")}catch{throw new Error}try{await V.sendCode(l.state.user,"signup",a.value)}catch{throw new Error}}function p(){c.push({name:"Enter Code"})}return(u,n)=>{const h=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",N,[e.createElementVNode("h3",S,e.toDisplayString(e.unref(t)("title")),1),e.createElementVNode("div",E,[e.createVNode(v.default,{selected:a.value,"onUpdate:selected":n[0]||(n[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",y,[e.createElementVNode("p",C,e.toDisplayString(e.unref(t)("smsNotice")),1),e.createVNode(_.default,{modelValue:l.state.user.phone,"onUpdate:modelValue":n[1]||(n[1]=o=>l.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-b-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",D,[e.createElementVNode("p",x,e.toDisplayString(e.unref(t)("emailNotice")),1),e.createVNode(f.default,{field:l.state.user.email,"onUpdate:field":n[2]||(n[2]=o=>l.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(b.default,{submit:m,callback:p,class:"w-100 bg-main mn-b-big"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("sendCode")),1)]),_:1}),e.createElementVNode("div",T,[e.createVNode(h,{to:"/auth/signin",class:"underline mn-b-medium d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("haveAccount")),1)]),_:1})])])}}};exports.default=k;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as d, resolveComponent as C, openBlock as k, createElementBlock as E, createElementVNode as o, toDisplayString as r, unref as t, createVNode as a, Transition as h, withCtx as m, withDirectives as f, vShow as _, createTextVNode as v } from "vue";
|
2
|
-
import S from "../../../../components/Tab/Tab.
|
2
|
+
import S from "../../../../components/Tab/Tab.vue.js";
|
3
3
|
import x from "../../../../components/Field/Field.vue.js";
|
4
4
|
import N from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
5
|
import D from "../../../../components/Button/Button.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../mobile/components/Menu/Menu.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../mobile/components/Menu/Menu.vue2.cjs"),s=require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const u=require("vue-router");require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const l={class:""},i=e.createElementVNode("h1",null,"Welcome to Backoffice",-1),d=e.createElementVNode("span",null," Members ",-1),f=e.createElementVNode("span",null," Events ",-1),c=e.createElementVNode("span",null," Community ",-1),p=e.createElementVNode("span",null," Products ",-1),m=e.createElementVNode("span",null," Leftovers ",-1),_=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Payments ",-1),N=e.createElementVNode("span",null," Organizations ",-1),V=e.createElementVNode("span",null," Gallery ",-1),k=e.createElementVNode("span",null," Reports ",-1),v={__name:"Dashboard",props:{favorites:Array},setup(h){const r=u.useRoute(),n=u.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(E,t)=>(e.openBlock(),e.createElementBlock("div",l,[i,e.createVNode(o.default,{class:"bg-grey mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[0]||(t[0]=a=>e.unref(n).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(s.default,{onClick:t[1]||(t[1]=a=>e.unref(n).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(s.default,{onClick:t[2]||(t[2]=a=>e.unref(n).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(s.default,{onClick:t[3]||(t[3]=a=>e.unref(n).push({name:"Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(s.default,{onClick:t[4]||(t[4]=a=>e.unref(n).push({name:"Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(s.default,{onClick:t[5]||(t[5]=a=>e.unref(n).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(s.default,{onClick:t[6]||(t[6]=a=>e.unref(n).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1})]),_:1}),e.createVNode(o.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(s.default,{onClick:t[7]||(t[7]=a=>e.unref(n).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(s.default,{onClick:t[8]||(t[8]=a=>e.unref(n).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(s.default,{onClick:t[9]||(t[9]=a=>e.unref(n).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1})]),_:1})]))}};exports.default=v;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as p, onMounted as m, openBlock as d, createElementBlock as _, createVNode as o, withCtx as n, unref as e, createElementVNode as t } from "vue";
|
2
|
-
import u from "../../../mobile/components/Menu/Menu.
|
2
|
+
import u from "../../../mobile/components/Menu/Menu.vue2.js";
|
3
3
|
import i from "../../../mobile/components/Menu/MenuItem.vue.js";
|
4
4
|
import "../../../../components/SelectMulti/SelectMulti.vue2.js";
|
5
5
|
import { useRoute as f, useRouter as c } from "vue-router";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./entities/IconCommunity.vue.cjs"),t=require("./entities/IconEvents.vue.cjs"),o=require("./entities/IconGroups.vue.cjs"),n=require("./labels/LabelGooglePlay.vue.cjs"),r=require("./labels/LabelAppStore.vue.cjs"),u=require("./navigation/IconCross.vue.cjs"),l=require("./navigation/IconChevronRight.vue.cjs"),c=require("./navigation/IconEdit.vue.cjs"),i=require("./navigation/IconInfo.vue.cjs"),a=require("./navigation/IconLike.vue.cjs"),d=require("./navigation/IconMute.vue.cjs"),s=require("./navigation/IconUnMute.vue.cjs"),f=require("./navigation/IconAdd.vue.cjs"),q=require("./navigation/IconDelete.vue.cjs"),I=require("./placeholders/PlaceholderUserpic.vue.cjs")
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./entities/IconCommunity.vue.cjs"),t=require("./entities/IconEvents.vue.cjs"),o=require("./entities/IconGroups.vue.cjs"),n=require("./labels/LabelGooglePlay.vue.cjs"),r=require("./labels/LabelAppStore.vue.cjs"),u=require("./navigation/IconCross.vue.cjs"),l=require("./navigation/IconChevronRight.vue.cjs"),c=require("./navigation/IconEdit.vue.cjs"),i=require("./navigation/IconInfo.vue.cjs"),a=require("./navigation/IconLike.vue.cjs"),d=require("./navigation/IconMute.vue.cjs"),s=require("./navigation/IconUnMute.vue.cjs"),f=require("./navigation/IconAdd.vue.cjs"),q=require("./navigation/IconDelete.vue.cjs"),I=require("./placeholders/PlaceholderUserpic.vue.cjs");require("vue");const b=require("./skeletons/SkeletonEventShort.vue.cjs"),k=require("./skeletons/SkeletonBlogpost.vue.cjs"),g=require("./skeletons/SkeletonOrganization.vue.cjs"),S=require("./skeletons/SkeletonEvent.vue.cjs"),p=require("./socials/vk.vue.cjs"),v=require("./socials/instagram.vue.cjs"),m=require("./socials/telegram.vue.cjs"),h=require("./socials/twitter.vue.cjs"),E=require("./socials/linkedin.vue.cjs"),L=require("./socials/reddit.vue.cjs"),y=require("./socials/dribbble.vue.cjs"),C=require("./socials/facebook.vue.cjs"),M=require("./socials/youtube.vue.cjs"),P=require("./socials/line.vue.cjs");exports.IconCommunity=e.default;exports.IconEvents=t.default;exports.IconGroups=o.default;exports.LabelGooglePlay=n.default;exports.LabelAppStore=r.default;exports.IconCross=u.default;exports.IconChevronRight=l.default;exports.IconEdit=c.default;exports.IconInfo=i.default;exports.IconLike=a.default;exports.IconMute=d.default;exports.IconUnMute=s.default;exports.IconAdd=f.default;exports.IconDelete=q.default;exports.PlaceholderUserpic=I.default;exports.SkeletonEventShort=b.default;exports.SkeletonBlogpost=k.default;exports.SkeletonOrganization=g.default;exports.SkeletonEvent=S.default;exports.Vk=p.default;exports.Instagram=v.default;exports.Telegram=m.default;exports.Twitter=h.default;exports.Linkedin=E.default;exports.Reddit=L.default;exports.Dribbble=y.default;exports.Facebook=C.default;exports.Youtube=M.default;exports.Line=P.default;
|