@ozdao/prometheus-framework 0.2.94 → 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 +26 -22
- package/dist/orders.server.mjs +26 -22
- 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 +2 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -94
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +19 -19
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +12 -12
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +21 -21
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +60 -60
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/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/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/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 +50 -49
- 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/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- 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 +19 -19
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +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/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- 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/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- 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 +1 -1
- 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/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- 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 +19 -19
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/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 +68 -65
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- 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 +24 -24
- 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
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { openBlock as
|
1
|
+
import { openBlock as u, createElementBlock as a, Fragment as o, createVNode as d, withCtx as n } from "vue";
|
2
2
|
import "../../../../components/Loader/Loader.vue.js";
|
3
|
-
import "../../../../components/Button/Button.
|
4
|
-
import
|
5
|
-
import
|
3
|
+
import "../../../../components/Button/Button.vue2.js";
|
4
|
+
import r from "../../../../components/Field/Field.vue.js";
|
5
|
+
import i from "../../../../components/Select/Select.vue.js";
|
6
6
|
const w = {
|
7
7
|
__name: "EditProductInfo",
|
8
8
|
props: {
|
9
9
|
product: Object
|
10
10
|
},
|
11
11
|
setup(e) {
|
12
|
-
return (
|
13
|
-
d(
|
12
|
+
return (p, t) => (u(), a(o, null, [
|
13
|
+
d(i, {
|
14
14
|
select: e.product.status,
|
15
|
-
"onUpdate:select":
|
15
|
+
"onUpdate:select": t[0] || (t[0] = (l) => e.product.status = l),
|
16
16
|
label: "Status",
|
17
17
|
options: [
|
18
18
|
"unpublished",
|
@@ -22,25 +22,25 @@ const w = {
|
|
22
22
|
placeholder: "Display product",
|
23
23
|
class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
|
24
24
|
}, null, 8, ["select"]),
|
25
|
-
d(
|
25
|
+
d(r, {
|
26
26
|
field: e.product.name,
|
27
|
-
"onUpdate:field":
|
27
|
+
"onUpdate:field": t[1] || (t[1] = (l) => e.product.name = l),
|
28
28
|
label: "Name",
|
29
|
-
placeholder: "
|
29
|
+
placeholder: "Enter product name",
|
30
30
|
class: "w-100 mn-b-small bg-white radius-small pd-medium"
|
31
31
|
}, null, 8, ["field"]),
|
32
|
-
d(
|
32
|
+
d(r, {
|
33
33
|
field: e.product.price,
|
34
|
-
"onUpdate:field":
|
34
|
+
"onUpdate:field": t[3] || (t[3] = (l) => e.product.price = l),
|
35
35
|
label: "Price",
|
36
|
-
placeholder: "
|
36
|
+
placeholder: "Enter product price",
|
37
37
|
class: "w-100 mn-b-small bg-white radius-small pd-medium",
|
38
38
|
type: "number"
|
39
39
|
}, {
|
40
|
-
default:
|
41
|
-
d(
|
40
|
+
default: n(() => [
|
41
|
+
d(i, {
|
42
42
|
select: e.product.price.currency,
|
43
|
-
"onUpdate:select":
|
43
|
+
"onUpdate:select": t[2] || (t[2] = (l) => e.product.price.currency = l),
|
44
44
|
placeholder: "฿",
|
45
45
|
options: [
|
46
46
|
"฿"
|
@@ -50,11 +50,11 @@ const w = {
|
|
50
50
|
]),
|
51
51
|
_: 1
|
52
52
|
}, 8, ["field"]),
|
53
|
-
d(
|
53
|
+
d(r, {
|
54
54
|
field: e.product.description,
|
55
|
-
"onUpdate:field":
|
55
|
+
"onUpdate:field": t[4] || (t[4] = (l) => e.product.description = l),
|
56
56
|
label: "Description",
|
57
|
-
placeholder: "
|
57
|
+
placeholder: "Enter product description",
|
58
58
|
class: "w-100 bg-white radius-small pd-medium",
|
59
59
|
type: "textarea"
|
60
60
|
}, null, 8, ["field"])
|
package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../../components/Button/Button.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../../components/Button/Button.vue.cjs"),u=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),g=require("../blocks/Images360.vue.cjs"),h=require("../blocks/ImagesThumbnails.vue.cjs");require("../elements/THC.vue2.cjs");const k=require("../elements/Price.vue.cjs"),f=require("vue-i18n"),n=require("../../../orders/store/shopcart.cjs"),p={class:"cols-2-1_2 w-100 gap-big"},y={class:"flex-nowrap flex-column flex pos-relative"},b={class:"h-100 h-max-50vh bg-grey radius-big o-hidden"},B=["src"],v={class:"pos-relative w-100 h-100 flex-column flex-justify flex col"},V={key:0,class:"t-main t-semi p-big"},N={class:"w-100 h1-product mn-b-thin"},E={key:1,class:"mn-b-semi"},w={key:2,class:"w-100 mn-b-medium t-transp"},C={key:3,class:"w-100 mn-b-medium t-transp"},S={class:"cols-2 w-100 gap-small mn-b-semi"},x={class:"w-100 pd-small radius-small bg-grey-transp-30 product-information"},q={class:"t-demi"},z={class:"max-w-33rem mobile-w-100 t-white gap-small cols-2"},D={__name:"SectionProduct",props:{product:{type:Object,required:!0},user:{type:String},recommendation:{type:String}},setup(t){const i=t,a=e.computed(()=>i.product.images),s={messages:{en:{airecommend:"AI Recommends You",description:"",addtoorder:"Add to order",fastorder:"Fast Order"},ru:{airecommend:"AI Рекомендует вам",description:"",addtoorder:"Добавить в корзину",fastorder:"Быстрый заказ"}}},{t:c}=f.useI18n(s);function l(o){return!(o.quantity>0)}function d(o){n.state.organization!==o.organization&&(n.state.positions=[],n.state.organization=o.organization),n.actions.addProductToCart(o,o.organization)}return(o,I)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",y,[e.createElementVNode("div",b,[t.product&&t.product.image3d?(e.openBlock(),e.createBlock(g.default,{key:0,class:"h-100 w-100",imagePath:`/assets/images/products/${t.product.image3d}`,imageCount:36},null,8,["imagePath"])):e.createCommentVNode("",!0),a.value[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-100 bg-grey w-100",style:{"object-fit":"contain"},src:(o.FILE_SERVER_URL||"")+a.value[0]},null,8,B)):e.createCommentVNode("",!0),!a.value[0]&&!t.product.image3d?(e.openBlock(),e.createBlock(u.default,{key:2,class:"h-100 w-100",style:{"object-fit":"cover"}})):e.createCommentVNode("",!0)]),a.value.length>1?(e.openBlock(),e.createBlock(h.default,{key:0,images:a.value,class:"mn-t-medium"},null,8,["images"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",v,[t.recommendation?(e.openBlock(),e.createElementBlock("h2",V,e.toDisplayString(e.unref(c)("airecommend")),1)):e.createCommentVNode("",!0),e.createElementVNode("h1",N,e.toDisplayString(t.product.name),1),e.createVNode(k.default,{product:t.product,size:"big",class:"mn-b-semi"},null,8,["product"]),t.recommendation?(e.openBlock(),e.createElementBlock("h3",E,e.toDisplayString(t.recommendation),1)):e.createCommentVNode("",!0),t.product.description&&!t.product.localization<1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",w,e.toDisplayString(t.product.description),1)):e.createCommentVNode("",!0),t.product.localization&&t.product.localization.length>1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",C,e.toDisplayString(e.unref(c)("description")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",S,[t.product.information.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.product.information,r=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("p",q,e.toDisplayString(r.name),1),e.createElementVNode("p",null,e.toDisplayString(r.value),1)]))),256)):e.createCommentVNode("",!0)]),e.createElementVNode("div",z,[e.createVNode(m.default,{submit:r=>d(t.product),disabled:l(t.product),text:{success:" ✔ Added",error:"error"},class:"w-100 mn-r-small bg-main button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("addtoorder")),1)]),_:1},8,["submit","disabled"])])])]))}};exports.default=D;
|
package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as y, openBlock as t, createElementBlock as a, createElementVNode as r, createBlock as m, createCommentVNode as o, toDisplayString as s, unref as l, createVNode as g, Fragment as v, renderList as w, withCtx as x, createTextVNode as k } from "vue";
|
2
|
-
import z from "../../../../components/Button/Button.
|
2
|
+
import z from "../../../../components/Button/Button.vue.js";
|
3
3
|
import I from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
4
4
|
import C from "../blocks/Images360.vue.js";
|
5
5
|
import E from "../blocks/ImagesThumbnails.vue.js";
|
package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.vue.cjs"),m=require("../../../../components/Select/Select.vue.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(i){const t=i,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function l(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:o[1]||(o[1]=n=>u())},[e.renderSlot(p.$slots,"default"),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[b,g,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[0]||(o[0]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,e.createVNode(d.default,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])]))}};exports.default=h;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { reactive as d, ref as f, openBlock as b, createElementBlock as g, renderSlot as h, createVNode as s, withCtx as l, createTextVNode as y, createElementVNode as a } from "vue";
|
2
2
|
import _ from "../../../../components/Popup/Popup.vue.js";
|
3
|
-
import v from "../../../../components/Button/Button.
|
3
|
+
import v from "../../../../components/Button/Button.vue.js";
|
4
4
|
import w from "../../../../components/Select/Select.vue.js";
|
5
5
|
import { actions as S } from "../../store/reports.js";
|
6
6
|
const k = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, " Report Content ", -1), P = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, " We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ", -1), R = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), O = {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),a={class:"flex-v-center flex-nowrap flex"},r=["src"],c={class:"h4"},s={class:"mn-r-small"},d={key:2,class:"mn-l-auto flex-stretch flex-v-center flex"},m={key:0,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"},u={__name:"CardUser",props:{_id:{type:String,default:null},user:{type:Object,required:!0},action:{type:Object},photo:{type:String,default:null},name:{type:String,default:"No name"},role:{type:String},phone:{type:String},email:{type:String}},setup(t){return(i,n)=>(e.openBlock(),e.createElementBlock("div",a,[t.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(i.FILE_SERVER_URL||"")+t.photo,class:"radius-medium bg-white object-fit-cover mn-r-thin i-thin",onClick:n[0]||(n[0]=e.withModifiers(o=>i.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))},null,8,r)):e.createCommentVNode("",!0),t.photo?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:n[1]||(n[1]=e.withModifiers(o=>i.$router.push({name:"User Profile",params:{_id:t.user._id||t._id}}),["stop"]))})),e.createElementVNode("div",null,[e.createElementVNode("p",c,e.toDisplayString(t.name),1),e.createElementVNode("span",s,e.toDisplayString(t.phone||t.email),1)]),t.action||t.role?(e.openBlock(),e.createElementBlock("div",d,[t.role?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.role),1)):e.createCommentVNode("",!0),t.action?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[2]||(n[2]=e.withModifiers((...o)=>t.action.method&&t.action.method(...o),["stop"])),class:"h-2r w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"},[t.action.label.is?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.action.label.is),e.normalizeProps(e.mergeProps({key:0},t.action.label.props)),null,16)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.action.label),1)],64))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}};exports.default=u;
|
@@ -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.
|
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,23 +1,23 @@
|
|
1
|
-
import { ref as U, onMounted as C, openBlock as i, createElementBlock as
|
2
|
-
import "../../../../components/Field/Field.
|
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
|
+
import "../../../../components/Field/Field.vue2.js";
|
3
3
|
import "../../../../components/Loader/Loader.vue.js";
|
4
|
-
import "../../../../components/Button/Button.
|
4
|
+
import "../../../../components/Button/Button.vue2.js";
|
5
5
|
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("vue");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");const i=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");const i=require("../../../../components/Field/Field.vue.cjs"),m=require("../../../../components/Button/Button.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),h=require("../sections/ProfileCompletion.vue.cjs"),c=require("vue-router"),r=require("../../../auth/store/auth.cjs"),s=require("../../store/users.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./ProfileEdit.vue2.cjs");const N={class:"pd-medium for-transition w-100"},V=e.createElementVNode("h3",{class:"mn-b-small"},"Username",-1),w={class:"mn-b-semi"},y=e.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),U={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},_=e.createElementVNode("h4",null,"Upload userpic",-1),k=e.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),q=e.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),E=e.createElementVNode("h3",{class:"mn-b-small"},"Account",-1),P={__name:"ProfileEdit",async setup(S){let n,d;e.ref(null);const f=c.useRoute(),u=c.useRouter();[n,d]=e.withAsyncContext(()=>s.actions.read({_id:r.state.user._id})),await n,d();const l=e.ref(s.state.current);async function p(){await s.actions.update(s.state.current)}async function b(){window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.")&&(s.state.current.status="removed",await s.actions.update(s.state.current),r.actions.logout())}function v(){u.replace({name:"User Profile",params:{_id:s.state.current._id}})}return(o,a)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(f).params._id===r.state.user._id?(e.openBlock(),e.createBlock(h.default,{key:0,user:r.state.user._id,target:l.value,cta:!1},null,8,["user","target"])):e.createCommentVNode("",!0),V,e.createVNode(i.default,{field:l.value.username,"onUpdate:field":a[0]||(a[0]=t=>l.value.username=t),label:"@",placeholder:"Not specified",class:"mn-b-thin w-100 bg-grey pd-medium radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),e.createElementVNode("p",w,"Your username will be used for URL of profile like "+e.toDisplayString(o.API_URL)+"/users/username",1),y,e.createElementVNode("div",U,[e.createVNode(g.default,{photo:l.value.profile.photo,"onUpdate:photo":a[1]||(a[1]=t=>l.value.profile.photo=t),uploadPath:"users/"+l.value._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),_]),e.createVNode(i.default,{field:l.value.profile.name,"onUpdate:field":a[2]||(a[2]=t=>l.value.profile.name=t),label:"Name",placeholder:"Not specified",class:"mn-b-thin bg-grey pd-medium radius-small",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.profile.description,"onUpdate:field":a[3]||(a[3]=t=>l.value.profile.description=t),label:"Description",placeholder:"Not specified",class:"mn-b-semi bg-grey pd-medium radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),k,q,e.createVNode(i.default,{field:l.value.socials.instagram,"onUpdate:field":a[4]||(a[4]=t=>l.value.socials.instagram=t),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.twitter,"onUpdate:field":a[5]||(a[5]=t=>l.value.socials.twitter=t),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.facebook,"onUpdate:field":a[6]||(a[6]=t=>l.value.socials.facebook=t),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(i.default,{field:l.value.socials.telegram,"onUpdate:field":a[7]||(a[7]=t=>l.value.socials.telegram=t),label:"Telegram",placeholder:"",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["field"]),E,e.createVNode(i.default,{field:l.value.phone,"onUpdate:field":a[8]||(a[8]=t=>l.value.phone=t),label:"Phone",placeholder:"Not specified",class:"mn-b-thin bg-grey pd-medium mn-b-thin radius-small",disabled:"true",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(i.default,{field:l.value.email,"onUpdate:field":a[9]||(a[9]=t=>l.value.email=t),label:"Email",placeholder:"Not specified",class:"mn-b-semi bg-grey pd-medium radius-small",disabled:!0,validation:o.organizationName},null,8,["field","validation"]),e.createVNode(m.default,{submit:p,callback:v,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1}),e.createVNode(m.default,{submit:b,callback:o.a=()=>{e.unref(u).push({name:"Sign In"})},class:"mn-b-thin bg-red t-white"},{default:e.withCtx(()=>[e.createTextVNode("Delete Account")]),_:1},8,["callback"])]))}};exports.default=P;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ref as f, withAsyncContext as U, openBlock as c, createElementBlock as k, unref as b, createBlock as P, createCommentVNode as S, createVNode as i, createElementVNode as s, toDisplayString as z, withCtx as h, createTextVNode as g } from "vue";
|
2
2
|
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
3
|
import "../../../../components/Tab/Tab.vue.js";
|
4
|
-
import t from "../../../../components/Field/Field.
|
5
|
-
import v from "../../../../components/Button/Button.
|
4
|
+
import t from "../../../../components/Field/Field.vue.js";
|
5
|
+
import v from "../../../../components/Button/Button.vue.js";
|
6
6
|
import A from "../../../../components/UploadImage/UploadImage.vue.js";
|
7
7
|
import R from "../sections/ProfileCompletion.vue.js";
|
8
8
|
import { useRoute as $, useRouter as D } from "vue-router";
|