@ozdao/prometheus-framework 0.2.93 โ 0.2.95
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +15 -14
- package/dist/auth.server.mjs +15 -14
- package/dist/main-BJvlNekm.mjs +13631 -0
- package/dist/main-pGo7JpSP.js +92 -0
- package/dist/orders.server.js +31 -27
- package/dist/orders.server.mjs +31 -27
- package/dist/organizations.server.js +31 -10
- package/dist/organizations.server.mjs +31 -10
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +19 -19
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +12 -12
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +21 -21
- package/dist/prometheus-framework/src/modules/auth/router/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/router/auth.js +4 -0
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +8 -8
- 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 +58 -58
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.js +22 -21
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +48 -37
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +160 -167
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +49 -48
- 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 +113 -110
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/orders/store/models/order.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/order.js +28 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +25 -43
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +20 -20
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.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 +47 -47
- 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 +143 -131
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +32 -34
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -32
- 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 +155 -187
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +18 -18
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +26 -22
- 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 +66 -63
- 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-B2xhKZNK.js +1 -0
- package/dist/web-DTzbVshr.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Block/Block.vue +1 -1
- package/src/modules/auth/controllers/auth.controller.js +19 -16
- package/src/modules/auth/router/auth.js +4 -0
- package/src/modules/backoffice/router/backoffice.js +3 -3
- package/src/modules/chats/routes/chats.routes.js +1 -2
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -1
- package/src/modules/icons/navigation/IconCross.vue +11 -7
- package/src/modules/orders/components/blocks/StatusHistory.vue +8 -11
- package/src/modules/orders/components/pages/OrderBackoffice.vue +37 -50
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +7 -3
- package/src/modules/orders/components/pages/Orders.vue +1 -1
- package/src/modules/orders/controllers/orders.controller.js +25 -25
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/routes/orders.routes.js +6 -0
- package/src/modules/orders/store/models/order.js +33 -0
- package/src/modules/orders/store/orders.js +7 -28
- package/src/modules/organizations/components/blocks/CardDepartment.vue +2 -2
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +7 -5
- package/src/modules/organizations/components/pages/Members.vue +50 -38
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/controllers/invites.controller.js +2 -0
- package/src/modules/organizations/controllers/memberships.controller.js +35 -11
- package/src/modules/organizations/models/invite.model.js +4 -0
- package/src/modules/organizations/organizations.client.js +0 -2
- package/src/modules/organizations/router/members.router.js +1 -1
- package/src/modules/organizations/store/departments.js +0 -1
- package/src/modules/organizations/store/memberships.js +1 -8
- package/src/modules/products/components/pages/ProductEdit.vue +39 -33
- package/src/modules/products/components/sections/EditProductInfo.vue +3 -3
- package/src/modules/users/components/blocks/CardUser.vue +9 -5
- package/src/modules/users/components/pages/Profile.vue +5 -3
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +0 -126
@@ -1,12 +1,12 @@
|
|
1
|
-
import { openBlock as
|
2
|
-
import
|
3
|
-
const
|
1
|
+
import { openBlock as t, createElementBlock as n, withModifiers as s, createCommentVNode as l, createBlock as m, createElementVNode as d, toDisplayString as a, resolveDynamicComponent as c, normalizeProps as u, mergeProps as h, Fragment as f, createTextVNode as y } from "vue";
|
2
|
+
import g from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
3
|
+
const b = { class: "flex-v-center flex-nowrap flex" }, k = ["src"], v = { class: "h4" }, x = { class: "mn-r-small" }, S = {
|
4
4
|
key: 2,
|
5
|
-
class: "mn-l-auto flex-v-center flex"
|
6
|
-
},
|
5
|
+
class: "mn-l-auto flex-stretch flex-v-center flex"
|
6
|
+
}, p = {
|
7
7
|
key: 0,
|
8
8
|
class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"
|
9
|
-
},
|
9
|
+
}, E = {
|
10
10
|
__name: "CardUser",
|
11
11
|
props: {
|
12
12
|
_id: {
|
@@ -39,22 +39,22 @@ const c = { class: "flex-v-center flex-nowrap flex" }, h = ["src"], f = { class:
|
|
39
39
|
}
|
40
40
|
},
|
41
41
|
setup(e) {
|
42
|
-
return (
|
43
|
-
e.photo ? (
|
42
|
+
return (o, i) => (t(), n("div", b, [
|
43
|
+
e.photo ? (t(), n("img", {
|
44
44
|
key: 0,
|
45
|
-
src: (
|
45
|
+
src: (o.FILE_SERVER_URL || "") + e.photo,
|
46
46
|
class: "radius-medium bg-white object-fit-cover mn-r-thin i-thin",
|
47
|
-
onClick:
|
47
|
+
onClick: i[0] || (i[0] = s((r) => o.$router.push({
|
48
48
|
name: e.user.type === "user" ? "User Profile" : "Organization",
|
49
49
|
params: {
|
50
50
|
_id: e.user._id
|
51
51
|
}
|
52
52
|
}), ["stop"]))
|
53
|
-
}, null, 8,
|
54
|
-
e.photo ? l("", !0) : (
|
53
|
+
}, null, 8, k)) : l("", !0),
|
54
|
+
e.photo ? l("", !0) : (t(), m(g, {
|
55
55
|
key: 1,
|
56
56
|
class: "radius-medium mn-r-thin i-thin",
|
57
|
-
onClick:
|
57
|
+
onClick: i[1] || (i[1] = s((r) => o.$router.push({
|
58
58
|
name: "User Profile",
|
59
59
|
params: {
|
60
60
|
_id: e.user._id || e._id
|
@@ -62,20 +62,24 @@ const c = { class: "flex-v-center flex-nowrap flex" }, h = ["src"], f = { class:
|
|
62
62
|
}), ["stop"]))
|
63
63
|
})),
|
64
64
|
d("div", null, [
|
65
|
-
d("p",
|
66
|
-
d("span",
|
65
|
+
d("p", v, a(e.name), 1),
|
66
|
+
d("span", x, a(e.phone || e.email), 1)
|
67
67
|
]),
|
68
|
-
e.action || e.role ? (
|
69
|
-
e.role ? (
|
70
|
-
e.action ? (
|
68
|
+
e.action || e.role ? (t(), n("div", S, [
|
69
|
+
e.role ? (t(), n("span", p, a(e.role), 1)) : l("", !0),
|
70
|
+
e.action ? (t(), n("button", {
|
71
71
|
key: 1,
|
72
|
-
onClick:
|
73
|
-
class: "h-
|
74
|
-
},
|
72
|
+
onClick: i[2] || (i[2] = s((...r) => e.action.method && e.action.method(...r), ["stop"])),
|
73
|
+
class: "h-2r w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"
|
74
|
+
}, [
|
75
|
+
e.action.label.is ? (t(), m(c(e.action.label.is), u(h({ key: 0 }, e.action.label.props)), null, 16)) : (t(), n(f, { key: 1 }, [
|
76
|
+
y(a(e.action.label), 1)
|
77
|
+
], 64))
|
78
|
+
])) : l("", !0)
|
75
79
|
])) : l("", !0)
|
76
80
|
]));
|
77
81
|
}
|
78
82
|
};
|
79
83
|
export {
|
80
|
-
|
84
|
+
E as default
|
81
85
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");const g=require("../../../../components/Dropdown/Dropdown.vue.cjs"),h=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.vue.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");const g=require("../../../../components/Dropdown/Dropdown.vue.cjs"),h=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.vue.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),B=require("../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../organizations/components/blocks/Socials.vue.cjs"),V=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),y=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),E=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const v={key:0,class:"for-transition w-100"},x={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-grey"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},O={key:6,class:"mn-t-small mn-b-thin"},L=e.createElementVNode("span",null,"Events",-1),j=e.createElementVNode("span",null,"Groups",-1),A=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),T={__name:"Profile",setup(H){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{E.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",v,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",x," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(B.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(y.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(C.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," ๐จโ๐จโ๐งโ๐ง "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",O," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(N.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(V.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),L]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),A]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[8]||(r[8]=s=>b())},{default:e.withCtx(()=>[G]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=T;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as U, onMounted as C, openBlock as i, createElementBlock as
|
1
|
+
import { ref as U, onMounted as C, openBlock as i, createElementBlock as c, unref as t, createBlock as d, createCommentVNode as m, createElementVNode as l, withCtx as u, createVNode as a, toDisplayString as _, Fragment as E, renderList as S, normalizeClass as P } from "vue";
|
2
2
|
import "../../../../components/Field/Field.vue2.js";
|
3
3
|
import "../../../../components/Loader/Loader.vue.js";
|
4
4
|
import "../../../../components/Button/Button.vue2.js";
|
@@ -6,18 +6,18 @@ import B from "../../../../components/Dropdown/Dropdown.vue.js";
|
|
6
6
|
import M from "../../../../components/Completion/Completion.vue.js";
|
7
7
|
import k from "../../../mobile/components/Menu/Menu.vue.js";
|
8
8
|
import f from "../../../mobile/components/Menu/MenuItem.vue.js";
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
9
|
+
import v from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
|
10
|
+
import R from "../../../reports/components/sections/FormReport.vue.js";
|
11
|
+
import F from "../../../organizations/components/blocks/Socials.vue.js";
|
12
|
+
import N from "../../../icons/entities/IconEvents.vue.js";
|
13
13
|
import w from "../../../icons/entities/IconGroups.vue.js";
|
14
14
|
import I from "../../../icons/entities/IconCommunity.vue.js";
|
15
15
|
import L from "../../../icons/navigation/IconEdit.vue.js";
|
16
16
|
import O from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
17
|
-
import { useRoute as V, useRouter as
|
18
|
-
import { state as
|
19
|
-
import { actions as
|
20
|
-
import { mutations as
|
17
|
+
import { useRoute as V, useRouter as A } from "vue-router";
|
18
|
+
import { state as n, actions as W } from "../../../auth/store/auth.js";
|
19
|
+
import { actions as j, state as e } from "../../store/users.js";
|
20
|
+
import { mutations as z } from "../../../organizations/store/memberships.js";
|
21
21
|
import "./Profile.vue2.js";
|
22
22
|
const D = {
|
23
23
|
key: 0,
|
@@ -29,44 +29,47 @@ const D = {
|
|
29
29
|
key: 1,
|
30
30
|
_id: "dash",
|
31
31
|
class: "pd-b-extra pd-thin w-100"
|
32
|
-
}, H = { class: "flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-grey" }, J = { class: "bg-black pd-thin radius-small" }, K = /* @__PURE__ */
|
33
|
-
key:
|
32
|
+
}, H = { class: "flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-grey" }, J = { class: "bg-black pd-thin radius-small" }, K = /* @__PURE__ */ l("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), Q = ["src"], T = { class: "mn-b-thin" }, X = {
|
33
|
+
key: 4,
|
34
|
+
class: "mn-b-thin t-main t-semi"
|
35
|
+
}, Y = { class: "mn-b-small p-medium" }, Z = { class: "mn-b-medium flex-center flex-nowrap flex" }, ee = { class: "t-semi mn-b-small" }, re = {
|
36
|
+
key: 6,
|
34
37
|
class: "mn-t-small mn-b-thin"
|
35
|
-
}, se = /* @__PURE__ */
|
38
|
+
}, se = /* @__PURE__ */ l("span", null, "Events", -1), te = /* @__PURE__ */ l("span", null, "Groups", -1), ie = /* @__PURE__ */ l("span", null, "Posts", -1), oe = /* @__PURE__ */ l("span", null, "Wallet", -1), ae = /* @__PURE__ */ l("span", null, " Settings ", -1), ne = /* @__PURE__ */ l("span", { class: "t-red" }, " Logout ", -1), Be = {
|
36
39
|
__name: "Profile",
|
37
40
|
setup(le) {
|
38
|
-
const
|
41
|
+
const o = V(), p = A(), g = U(!1);
|
39
42
|
C(async () => {
|
40
|
-
await
|
43
|
+
await j.read({ _id: o.params._id, user: n.user._id }), g.value = !0;
|
41
44
|
});
|
42
|
-
const
|
43
|
-
|
45
|
+
const y = ({ membership: b, status: r, target: s }, h, $) => {
|
46
|
+
z.handleMembershipUpdate(e.current, b, r, s, h, $);
|
44
47
|
};
|
45
48
|
function x() {
|
46
|
-
|
49
|
+
W.logout(), p.push({ name: "Sign In" });
|
47
50
|
}
|
48
|
-
return (b, r) => g.value ? (i(),
|
49
|
-
e.current.status === "removed" ? (i(),
|
50
|
-
t(
|
51
|
+
return (b, r) => g.value ? (i(), c("div", D, [
|
52
|
+
e.current.status === "removed" ? (i(), c("div", G, " Sorry, user has been removed. ")) : (i(), c("div", q, [
|
53
|
+
t(o).params._id === n.user._id && g.value ? (i(), d(M, {
|
51
54
|
key: 0,
|
52
|
-
user:
|
55
|
+
user: n.user._id,
|
53
56
|
target: e.current,
|
54
57
|
cta: !0,
|
55
58
|
text_cta: "Fill Profile",
|
56
59
|
text: "Profile completed at",
|
57
60
|
class: "mn-b-medium"
|
58
61
|
}, null, 8, ["user", "target"])) : m("", !0),
|
59
|
-
|
60
|
-
t(
|
62
|
+
l("section", H, [
|
63
|
+
t(o).params._id && t(o).params._id !== n.user._id ? (i(), d(B, {
|
61
64
|
key: 0,
|
62
65
|
label: "...",
|
63
66
|
align: "right",
|
64
67
|
class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
|
65
68
|
}, {
|
66
69
|
default: u(() => [
|
67
|
-
|
68
|
-
|
69
|
-
user:
|
70
|
+
l("section", J, [
|
71
|
+
a(R, {
|
72
|
+
user: n.user._id,
|
70
73
|
type: "user",
|
71
74
|
target: e.current._id,
|
72
75
|
text: "Report",
|
@@ -77,61 +80,61 @@ const D = {
|
|
77
80
|
]),
|
78
81
|
_: 1
|
79
82
|
}, 8, ["user", "target"]),
|
80
|
-
|
83
|
+
n.user._id ? (i(), d(v, {
|
81
84
|
key: 0,
|
82
|
-
user:
|
85
|
+
user: n.user._id,
|
83
86
|
type: "user",
|
84
87
|
role: "blocked",
|
85
88
|
target: e.current._id,
|
86
89
|
status: e.current.isBlocked,
|
87
90
|
text: { create: "Block", remove: "Unblock" },
|
88
|
-
onUpdateMembership: r[0] || (r[0] = (s) =>
|
91
|
+
onUpdateMembership: r[0] || (r[0] = (s) => y(s, "isBlocked")),
|
89
92
|
class: "t-white mn-t-thin bg-red"
|
90
93
|
}, null, 8, ["user", "target", "status"])) : m("", !0)
|
91
94
|
])
|
92
95
|
]),
|
93
96
|
_: 1
|
94
97
|
})) : m("", !0),
|
95
|
-
t(
|
98
|
+
t(o).params._id === n.user._id ? (i(), d(L, {
|
96
99
|
key: 1,
|
97
100
|
onClick: r[1] || (r[1] = (s) => b.$router.push({
|
98
101
|
name: "User Edit Profile",
|
99
102
|
params: {
|
100
|
-
_id:
|
103
|
+
_id: n.user._id
|
101
104
|
}
|
102
105
|
})),
|
103
106
|
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
104
107
|
})) : m("", !0),
|
105
|
-
e.current.profile.photo.length > 0 ? (i(),
|
108
|
+
e.current.profile.photo && e.current.profile.photo.length > 0 ? (i(), c("img", {
|
106
109
|
key: 2,
|
107
110
|
src: (b.FILE_SERVER_URL || "") + e.current.profile.photo,
|
108
111
|
class: "radius-extra bg-white mn-b-small object-fit-cover i-extra"
|
109
|
-
}, null, 8, Q)) : (i(),
|
112
|
+
}, null, 8, Q)) : (i(), d(O, {
|
110
113
|
key: 3,
|
111
114
|
class: "radius-medium mn-b-small i-extra"
|
112
115
|
})),
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
(i(!0),
|
116
|
+
l("h3", T, _(e.current.profile.name ? e.current.profile.name : "Anonymous"), 1),
|
117
|
+
e.current.username ? (i(), c("p", X, " @" + _(e.current.username ? e.current.username : "Not specified"), 1)) : m("", !0),
|
118
|
+
l("p", Y, _(e.current.profile.description ? e.current.profile.description : "Bio not specified"), 1),
|
119
|
+
l("div", Z, [
|
120
|
+
(i(!0), c(E, null, S(e.current.roles, (s, h) => (i(), c("div", {
|
118
121
|
class: P(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": h !== e.current.roles.length - 1 }])
|
119
122
|
}, _(s.icon) + " " + _(s.name), 3))), 256))
|
120
123
|
]),
|
121
|
-
|
122
|
-
|
123
|
-
key:
|
124
|
-
user:
|
124
|
+
l("p", ee, " ๐จโ๐จโ๐งโ๐ง " + _(e.current.numberOfSubscribers) + " followers ", 1),
|
125
|
+
n.user._id && t(o).params._id && t(o).params._id !== n.user._id ? (i(), d(v, {
|
126
|
+
key: 5,
|
127
|
+
user: n.user._id,
|
125
128
|
type: "user",
|
126
129
|
role: "subscriber",
|
127
130
|
target: e.current._id,
|
128
131
|
status: e.current.isSubscriber,
|
129
132
|
text: { create: "Follow", remove: "Unfollow" },
|
130
|
-
onUpdateMembership: r[2] || (r[2] = (s) =>
|
133
|
+
onUpdateMembership: r[2] || (r[2] = (s) => y(s, "isSubscriber", "numberOfSubscribers")),
|
131
134
|
class: "w-min mn-b-medium mn-r-auto mn-l-auto"
|
132
135
|
}, null, 8, ["user", "target", "status"])) : m("", !0),
|
133
|
-
Object.values(e.current.socials).some((s) => s) ? (i(),
|
134
|
-
|
136
|
+
Object.values(e.current.socials).some((s) => s) ? (i(), c("h4", re, " Find Me in Socials ")) : m("", !0),
|
137
|
+
a(F, {
|
135
138
|
telegram: e.current.socials.telegram,
|
136
139
|
facebook: e.current.socials.facebook,
|
137
140
|
instagram: e.current.socials.instagram,
|
@@ -139,14 +142,14 @@ const D = {
|
|
139
142
|
class: "mn-r-auto mn-l-auto"
|
140
143
|
}, null, 8, ["telegram", "facebook", "instagram", "twitter"])
|
141
144
|
]),
|
142
|
-
|
145
|
+
a(k, { class: "mn-b-regular bg-grey" }, {
|
143
146
|
default: u(() => [
|
144
|
-
|
145
|
-
onClick: r[3] || (r[3] = (s) => t(p).push({ name: "User Events", params: { _id: t(
|
147
|
+
a(f, {
|
148
|
+
onClick: r[3] || (r[3] = (s) => t(p).push({ name: "User Events", params: { _id: t(o).params._id } })),
|
146
149
|
class: "cursor-pointer"
|
147
150
|
}, {
|
148
151
|
default: u(() => [
|
149
|
-
|
152
|
+
a(N, {
|
150
153
|
class: "i-semi",
|
151
154
|
icon: !0,
|
152
155
|
fill: "rgb(var(--white))"
|
@@ -155,12 +158,12 @@ const D = {
|
|
155
158
|
]),
|
156
159
|
_: 1
|
157
160
|
}),
|
158
|
-
|
159
|
-
onClick: r[4] || (r[4] = (s) => t(p).push({ name: "User Organizations", params: { _id: t(
|
161
|
+
a(f, {
|
162
|
+
onClick: r[4] || (r[4] = (s) => t(p).push({ name: "User Organizations", params: { _id: t(o).params._id } })),
|
160
163
|
class: "cursor-pointer"
|
161
164
|
}, {
|
162
165
|
default: u(() => [
|
163
|
-
|
166
|
+
a(w, {
|
164
167
|
class: "i-semi",
|
165
168
|
icon: !0
|
166
169
|
}),
|
@@ -168,12 +171,12 @@ const D = {
|
|
168
171
|
]),
|
169
172
|
_: 1
|
170
173
|
}),
|
171
|
-
|
172
|
-
onClick: r[5] || (r[5] = (s) => t(p).push({ name: "User Blogposts", params: { _id: t(
|
174
|
+
a(f, {
|
175
|
+
onClick: r[5] || (r[5] = (s) => t(p).push({ name: "User Blogposts", params: { _id: t(o).params._id } })),
|
173
176
|
class: "cursor-pointer"
|
174
177
|
}, {
|
175
178
|
default: u(() => [
|
176
|
-
|
179
|
+
a(I, {
|
177
180
|
class: "i-semi",
|
178
181
|
icon: !0
|
179
182
|
}),
|
@@ -184,17 +187,17 @@ const D = {
|
|
184
187
|
]),
|
185
188
|
_: 1
|
186
189
|
}),
|
187
|
-
b.APP_NAME === "Weeder" ? (i(),
|
190
|
+
b.APP_NAME === "Weeder" ? (i(), d(k, {
|
188
191
|
key: 1,
|
189
192
|
class: "mn-b-regular bg-grey"
|
190
193
|
}, {
|
191
194
|
default: u(() => [
|
192
|
-
|
193
|
-
onClick: r[6] || (r[6] = (s) => t(p).push({ name: "User Wallet", params: { _id: t(
|
195
|
+
a(f, {
|
196
|
+
onClick: r[6] || (r[6] = (s) => t(p).push({ name: "User Wallet", params: { _id: t(o).params._id } })),
|
194
197
|
class: "cursor-pointer"
|
195
198
|
}, {
|
196
199
|
default: u(() => [
|
197
|
-
|
200
|
+
a(w, {
|
198
201
|
class: "i-semi",
|
199
202
|
icon: !0
|
200
203
|
}),
|
@@ -205,16 +208,16 @@ const D = {
|
|
205
208
|
]),
|
206
209
|
_: 1
|
207
210
|
})) : m("", !0),
|
208
|
-
|
211
|
+
n.user._id === t(o).params._id ? (i(), d(k, {
|
209
212
|
key: 2,
|
210
213
|
class: "bg-grey"
|
211
214
|
}, {
|
212
215
|
default: u(() => [
|
213
|
-
|
216
|
+
a(f, {
|
214
217
|
onClick: r[7] || (r[7] = (s) => t(p).push({
|
215
218
|
name: "User Edit Profile",
|
216
219
|
params: {
|
217
|
-
_id: t(
|
220
|
+
_id: t(o).params._id
|
218
221
|
}
|
219
222
|
})),
|
220
223
|
class: "cursor-pointer"
|
@@ -224,7 +227,7 @@ const D = {
|
|
224
227
|
]),
|
225
228
|
_: 1
|
226
229
|
}),
|
227
|
-
|
230
|
+
a(f, {
|
228
231
|
class: "cursor-pointer",
|
229
232
|
onClick: r[8] || (r[8] = (s) => x())
|
230
233
|
}, {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-pGo7JpSP.js");exports.Address=e.Address;exports.Breadcrumbs=e._sfc_main$9;exports.Button=e._sfc_main;exports.Checkbox=e.Checkbox;exports.Chips=e.Chips;exports.Countdown=e._sfc_main$10;exports.DatePicker=e._sfc_main$11;exports.Dropdown=e.Dropdown;exports.EmptyState=e._sfc_main$12;exports.Error=e._sfc_main$1;exports.Feed=e._sfc_main$13;exports.Field=e.Field;exports.FieldBig=e._sfc_main$14;exports.FieldPhone=e.FieldPhone;exports.FieldTags=e.FieldTags;exports.Loader=e.Loader;exports.LocationMarker=e.LocationMarker;exports.Magnifier=e.Magnifier;exports.Map=e.Map;exports.Popup=e._sfc_main$2;exports.Radio=e._sfc_main$3;exports.Select=e.Select;exports.SelectMulti=e.SelectMulti;exports.Shader=e.Shader;exports.Sidebar=e._sfc_main$15;exports.Slider=e._sfc_main$16;exports.Spoiler=e._sfc_main$4;exports.Status=e._sfc_main$17;exports.Tab=e._sfc_main$5;exports.Text=e._sfc_main$6;exports.Tooltip=e.Tooltip;exports.Upload=e.Upload;exports.UploadImage=e._sfc_main$7;exports.UploadImageMultiple=e._sfc_main$8;exports.default=e.main;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { A as e, k as o, _ as d, C as r, l as t, n as i, o as l, D as p, p as u, a as S, q as n, F as c, r as g, b as m, s as F, t as M, L as b, u as h, M as T, c as f, d as k, S as x, e as C, v as U, w, x as B, f as D, y as L, g as P, h as y, T as A, U as E, i as I, j, m as q } from "./main-
|
1
|
+
import { A as e, k as o, _ as d, C as r, l as t, n as i, o as l, D as p, p as u, a as S, q as n, F as c, r as g, b as m, s as F, t as M, L as b, u as h, M as T, c as f, d as k, S as x, e as C, v as U, w, x as B, f as D, y as L, g as P, h as y, T as A, U as E, i as I, j, m as q } from "./main-BJvlNekm.mjs";
|
2
2
|
export {
|
3
3
|
e as Address,
|
4
4
|
o as Breadcrumbs,
|