@ozdao/prometheus-framework 0.2.137 → 0.2.139
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +29 -14
- package/dist/auth.server.mjs +29 -14
- package/dist/community.server.js +3 -3
- package/dist/community.server.mjs +3 -3
- package/dist/events.server.js +3 -3
- package/dist/events.server.mjs +3 -3
- package/dist/files.server.js +3 -3
- package/dist/files.server.mjs +3 -3
- package/dist/gallery.server.js +4 -4
- package/dist/gallery.server.mjs +4 -4
- package/dist/index-DNI4aUP2.js +259 -0
- package/dist/index-Tcyehi73.mjs +260 -0
- package/dist/main-DTHFR7H_.mjs +14510 -0
- package/dist/main-wXdocsbd.js +92 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +9 -8
- package/dist/orders.server.mjs +9 -8
- package/dist/organizations.server.js +32 -17
- package/dist/organizations.server.mjs +32 -17
- package/dist/products.server.js +37 -5
- package/dist/products.server.mjs +37 -5
- 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/Completion/Completion.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Completion/Completion.vue.js +19 -19
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +3 -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 +32 -31
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +50 -47
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/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/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/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +1 -1
- 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 +12 -12
- 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/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +41 -38
- 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 +123 -114
- 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 +51 -52
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +16 -15
- 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 +120 -60
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +25 -24
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +65 -66
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +81 -76
- package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
- 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 +2 -2
- 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 +78 -74
- 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/reports.server.js +0 -3
- package/dist/reports.server.mjs +0 -3
- package/dist/spots.server.js +3 -3
- package/dist/spots.server.mjs +3 -3
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +5 -5
- package/dist/wallet.server.mjs +8 -8
- package/dist/web-Dh669DqQ.mjs +54 -0
- package/dist/web-Dt2RCU54.js +1 -0
- package/package.json +1 -1
- package/src/components/Completion/Completion.vue +29 -30
- package/src/components/Map/Map.vue +2 -2
- package/src/modules/auth/components/pages/Invite.vue +4 -2
- package/src/modules/auth/controllers/auth.controller.js +30 -12
- package/src/modules/auth/middlewares/authJwt.js +80 -0
- package/src/modules/{middlewares/server → auth/middlewares}/index.js +1 -3
- package/src/modules/{middlewares/server → auth/middlewares}/verifyAccesses.js +1 -1
- package/src/modules/auth/routes/auth.routes.js +2 -2
- package/src/modules/auth/routes/twofa.routes.js +1 -1
- package/src/modules/auth/store/auth.js +9 -0
- package/src/modules/chats/routes/chats.routes.js +1 -1
- package/src/modules/community/routes/blog.routes.js +2 -2
- package/src/modules/events/routes/events.routes.js +2 -2
- package/src/modules/files/routes/files.routes.js +2 -2
- package/src/modules/gallery/routes/gallery.routes.js +4 -5
- package/src/modules/globals/services/globals.crud.js +2 -2
- package/src/modules/marketplace/store/marketplace.js +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -2
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/controllers/orders.controller.js +1 -0
- package/src/modules/orders/routes/applications.routes.js +2 -2
- package/src/modules/orders/routes/orders.routes.js +2 -2
- package/src/modules/organizations/components/blocks/CardOrganization.vue +9 -7
- package/src/modules/organizations/components/pages/Members.vue +26 -15
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +101 -43
- package/src/modules/organizations/controllers/invites.controller.js +18 -13
- package/src/modules/organizations/controllers/memberships.controller.js +18 -11
- package/src/modules/organizations/controllers/organizations.controller.js +3 -4
- package/src/modules/organizations/models/membership.model.js +2 -0
- package/src/modules/organizations/models/organization.model.js +4 -0
- package/src/modules/organizations/routes/invites.routes.js +2 -2
- package/src/modules/organizations/store/invites.js +2 -1
- package/src/modules/products/controllers/leftovers.controller.js +1 -1
- package/src/modules/products/middlewares/index.js +11 -0
- package/src/modules/products/routes/categories.routes.js +2 -2
- package/src/modules/reports/routes/reports.routes.js +2 -2
- package/src/modules/spots/components/blocks/CardSpot.vue +0 -1
- package/src/modules/spots/components/layouts/Spots.vue +2 -2
- package/src/modules/spots/components/pages/Map.vue +79 -78
- package/src/modules/spots/components/pages/SpotEdit.vue +8 -5
- package/src/modules/spots/controllers/spots.controller.js +1 -5
- package/src/modules/spots/router/spots.js +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +37 -22
- package/src/modules/wallet/controllers/routes/payments.routes.js +2 -2
- package/src/modules/wallet/controllers/routes/rewards.routes.js +2 -2
- package/src/modules/middlewares/server/authJwt.js +0 -68
- /package/src/modules/{middlewares/server → auth/middlewares}/authSecret.js +0 -0
- /package/src/modules/{middlewares/server → auth/middlewares}/verifyInvites.js +0 -0
- /package/src/modules/{middlewares/server → auth/middlewares}/verifySignUp.js +0 -0
- /package/src/modules/{middlewares/server → auth/middlewares}/verifyUser.js +0 -0
- /package/src/modules/globals/services/{globals.cashe.js → globals.cache.js} +0 -0
- /package/src/modules/{middlewares/server → products/middlewares}/verifyCategory.js +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as f, onMounted as _, openBlock as a, createElementBlock as k, createVNode as i, withCtx as o, unref as s, createBlock as c, createCommentVNode as l, createElementVNode as t } from "vue";
|
2
|
-
import v from "../../../../components/Menu/Menu.
|
2
|
+
import v from "../../../../components/Menu/Menu.vue2.js";
|
3
3
|
import p from "../../../../components/Menu/MenuItem.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import h from "../../../icons/entities/IconProducts.vue.js";
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Dropdown/Dropdown.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),m=require("../../../../components/Text/Text.vue.cjs"),g=require("../../../../components/Chips/Chips.vue2.cjs"),b=require("../../../icons/entities/IconFollowing.vue.cjs"),h=require("../../../icons/navigation/IconEdit.vue.cjs"),f=require("../../../icons/navigation/IconEllipsis.vue.cjs"),k=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),c=require("../elements/ButtonToggleMembership.vue.cjs"),z=require("../blocks/Socials.vue.cjs"),w=require("../../../reports/components/sections/FormReport.vue.cjs"),x=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs"),V={class:"flex-center flex flex-column t-center pd-medium radius-big bg-light"},y={class:"bg-black pd-thin radius-small"},N=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),E=["src"],q={class:"mn-b-thin"},p={class:"flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},C={class:"mn-t-thin p-medium t-medium uppercase mn-b-thin"},S={class:"w-max-50r mn-t-regular mn-b-medium p-big"},v={key:5,class:"mn-t-small mn-b-thin"},O={__name:"DetailsTab",props:{organization:Object,user:Object},setup(t){const s=u.useRoute(),l=({membership:o,status:i,target:r},n,a)=>{B.mutations.handleMembershipUpdate(x.state.current,o,i,r,n,a)};return(o,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>{var r,n;return[e.createElementVNode("section",V,[t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(d.default,{key:0,label:{component:f.default,class:"i-regular t-transp"},align:"right",class:"cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",y,[e.createVNode(w.default,{user:t.user._id,type:"organization",target:t.organization._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[N]),_:1},8,["user","target"]),t.user._id&&t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(c.default,{key:0,user:t.user._id,type:"organization",role:"blocked",target:t.organization._id,status:t.organization.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:i[0]||(i[0]=a=>l(a,"isBlocked")),class:"t-white w-100 mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),t.user._id===t.organization.owner?(e.openBlock(),e.createBlock(h.default,{key:1,onClick:i[1]||(i[1]=a=>o.$router.push({name:"Organization Edit",params:{_id:t.organization._id}})),class:"pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"})):e.createCommentVNode("",!0),t.organization.profile.photo?(e.openBlock(),e.createElementBlock("img",{key:2,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"radius-big bg-light flex-center flex mn-b-small w-8r"},null,8,E)):(e.openBlock(),e.createBlock(k.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h1",q,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("div",p,[e.createVNode(b.default,{class:"i-medium mn-r-micro t-transp"}),e.createElementVNode("p",C,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),t.user._id&&e.unref(s).params._id&&e.unref(s).params._id!==t.user._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(c.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[2]||(i[2]=a=>l(a,"isSubscriber","numberOfSubscribers")),class:"mn-l-thin p-medium t-medium radius-extra i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)]),e.createElementVNode("p",S,[e.createVNode(m.default,{text:t.organization.profile.description||"",showToggleText:!0,maxLen:320},null,8,["text"])]),((n=(r=t.organization.profile)==null?void 0:r.tags)==null?void 0:n.length)>0?(e.openBlock(),e.createBlock(g.default,{key:4,chips:t.organization.profile.tags,class:"p-medium"},null,8,["chips"])):e.createCommentVNode("",!0),Object.values(t.organization.socials).some(a=>a)?(e.openBlock(),e.createElementBlock("h4",v," Find us in socials ")):e.createCommentVNode("",!0),e.createVNode(z.default,{telegram:t.organization.socials.telegram,facebook:t.organization.socials.facebook,instagram:t.organization.socials.instagram,twitter:t.organization.socials.twitter,youtube:t.organization.socials.youtube},null,8,["telegram","facebook","instagram","twitter","youtube"])])]}),_:1}))}};exports.default=O;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { openBlock as e, createBlock as r, Transition as
|
2
|
-
import { useRoute as
|
3
|
-
import w from "../../../../components/Dropdown/Dropdown.
|
1
|
+
import { openBlock as e, createBlock as r, Transition as x, withCtx as c, createElementVNode as n, createVNode as u, createCommentVNode as o, createElementBlock as b, toDisplayString as f, unref as h } from "vue";
|
2
|
+
import { useRoute as k } from "vue-router";
|
3
|
+
import w from "../../../../components/Dropdown/Dropdown.vue2.js";
|
4
4
|
import y from "../../../../components/Text/Text.vue.js";
|
5
5
|
import p from "../../../../components/Chips/Chips.vue2.js";
|
6
6
|
import $ from "../../../icons/entities/IconFollowing.vue.js";
|
@@ -12,7 +12,7 @@ import R from "../blocks/Socials.vue.js";
|
|
12
12
|
import S from "../../../reports/components/sections/FormReport.vue.js";
|
13
13
|
import { state as U } from "../../store/organizations.js";
|
14
14
|
import { mutations as v } from "../../store/memberships.js";
|
15
|
-
const M = { class: "flex-center flex flex-column t-center pd-medium radius-big bg-light" },
|
15
|
+
const M = { class: "flex-center flex flex-column t-center pd-medium radius-big bg-light" }, T = { class: "bg-black pd-thin radius-small" }, V = /* @__PURE__ */ n("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), j = ["src"], C = { class: "mn-b-thin" }, L = { class: "flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max" }, N = { class: "mn-t-thin p-medium t-medium uppercase mn-b-thin" }, D = { class: "w-max-50r mn-t-regular mn-b-medium p-big" }, F = {
|
16
16
|
key: 5,
|
17
17
|
class: "mn-t-small mn-b-thin"
|
18
18
|
}, tt = {
|
@@ -22,10 +22,10 @@ const M = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
22
22
|
user: Object
|
23
23
|
},
|
24
24
|
setup(t) {
|
25
|
-
const d =
|
25
|
+
const d = k(), g = ({ membership: s, status: i, target: l }, m, a) => {
|
26
26
|
v.handleMembershipUpdate(U.current, s, i, l, m, a);
|
27
27
|
};
|
28
|
-
return (s, i) => (e(), r(
|
28
|
+
return (s, i) => (e(), r(x, { name: "slide-fade" }, {
|
29
29
|
default: c(() => {
|
30
30
|
var l, m;
|
31
31
|
return [
|
@@ -37,7 +37,7 @@ const M = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
37
37
|
class: "cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"
|
38
38
|
}, {
|
39
39
|
default: c(() => [
|
40
|
-
n("section",
|
40
|
+
n("section", T, [
|
41
41
|
u(S, {
|
42
42
|
user: t.user._id,
|
43
43
|
type: "organization",
|
@@ -46,7 +46,7 @@ const M = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
46
46
|
class: "w-100"
|
47
47
|
}, {
|
48
48
|
default: c(() => [
|
49
|
-
|
49
|
+
V
|
50
50
|
]),
|
51
51
|
_: 1
|
52
52
|
}, 8, ["user", "target"]),
|
@@ -79,14 +79,14 @@ const M = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
79
79
|
key: 2,
|
80
80
|
src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
|
81
81
|
class: "radius-big bg-light flex-center flex mn-b-small w-8r"
|
82
|
-
}, null, 8,
|
82
|
+
}, null, 8, j)) : (e(), r(E, {
|
83
83
|
key: 3,
|
84
84
|
class: "radius-medium mn-b-small i-extra"
|
85
85
|
})),
|
86
|
-
n("h1",
|
87
|
-
n("div",
|
86
|
+
n("h1", C, f(t.organization.profile.name), 1),
|
87
|
+
n("div", L, [
|
88
88
|
u($, { class: "i-medium mn-r-micro t-transp" }),
|
89
|
-
n("p",
|
89
|
+
n("p", N, f(t.organization.numberOfSubscribers) + " followers", 1),
|
90
90
|
t.user._id && h(d).params._id && h(d).params._id !== t.user._id && t.organization.owner !== t.user._id ? (e(), r(z, {
|
91
91
|
key: 0,
|
92
92
|
user: t.user._id,
|
@@ -99,10 +99,11 @@ const M = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
99
99
|
class: "mn-l-thin p-medium t-medium radius-extra i-semi"
|
100
100
|
}, null, 8, ["user", "target", "status"])) : o("", !0)
|
101
101
|
]),
|
102
|
-
n("p",
|
102
|
+
n("p", D, [
|
103
103
|
u(y, {
|
104
104
|
text: t.organization.profile.description || "",
|
105
|
-
|
105
|
+
showToggleText: !0,
|
106
|
+
maxLen: 320
|
106
107
|
}, null, 8, ["text"])
|
107
108
|
]),
|
108
109
|
((m = (l = t.organization.profile) == null ? void 0 : l.tags) == null ? void 0 : m.length) > 0 ? (e(), r(p, {
|
@@ -110,7 +111,7 @@ const M = { class: "flex-center flex flex-column t-center pd-medium radius-big b
|
|
110
111
|
chips: t.organization.profile.tags,
|
111
112
|
class: "p-medium"
|
112
113
|
}, null, 8, ["chips"])) : o("", !0),
|
113
|
-
Object.values(t.organization.socials).some((a) => a) ? (e(), b("h4",
|
114
|
+
Object.values(t.organization.socials).some((a) => a) ? (e(), b("h4", F, " Find us in socials ")) : o("", !0),
|
114
115
|
u(R, {
|
115
116
|
telegram: t.organization.socials.telegram,
|
116
117
|
facebook: t.organization.socials.facebook,
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const v=require("../../../../components/Button/Button.vue2.cjs"),k=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),g=require("../../../users/components/blocks/CardUser.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),B=require("../../../icons/navigation/IconAdd.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");const w=require("../../../users/store/users.cjs"),x={class:"mn-b-thin t-transp p-medium"},E={class:"mn-b-thin pos-relative"},y={key:0,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"},N={class:"cols-1 mn-b-small radius-medium pd-semi bg-light pos-relative"},V=["onClick"],q=e.createElementVNode("span",null,"Invite to organization",-1),C={__name:"MembersAdd",props:{organization:Object,text:String},emits:["send-invite"],setup(c,{emit:d}){let r=e.ref(null),l=e.ref(!1);const u=e.ref(null),m=d,n=e.ref([{contact:""}]);async function p(){return new Promise((i,s)=>{m("send-invite",n.value,i,s)})}return(i,s)=>{const f=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("p",x,e.toDisplayString(c.text),1),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(b.default,{onSearch:s[0]||(s[0]=o=>{e.isRef(r)?r.value=o:r=o,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-grey"},null,512),[[f,()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(r)&&e.unref(l)?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(k.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:o=>w.actions.read(o),state:null},options:{search:e.unref(r)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(t,a)=>(e.openBlock(),e.createBlock(g.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{n.value.push({contact:t.email||t.phone}),e.isRef(l)?l.value=!1:l=!1},class:"bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),e.createElementVNode("section",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(o,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"br-1px br-solid br-grey-transp-25 flex gap-thin radius-small mn-b-thin"},[e.createVNode(h.default,{field:o.contact,"onUpdate:field":a=>o.contact=a,placeholder:"Enter email or phone",class:"w-100 pd-small radius-small bg-white",validation:u.value},{default:e.withCtx(()=>[t<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:s[1]||(s[1]=()=>n.value.push({contact:""})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(B.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>n.value.splice(t,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(_.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,V))]),_:2},1032,["field","onUpdate:field","validation"])]))),128))]),e.createVNode(v.default,{submit:p,class:"w-100 bg-main"},{default:e.withCtx(()=>[q]),_:1})])}}};exports.default=C;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js
CHANGED
@@ -1,74 +1,134 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
1
|
+
import { ref as c, resolveDirective as C, openBlock as s, createElementBlock as l, createElementVNode as d, toDisplayString as $, withDirectives as U, createVNode as a, isRef as m, unref as p, withCtx as u, Fragment as _, renderList as v, createBlock as E, createCommentVNode as N } from "vue";
|
2
|
+
import S from "../../../../components/Field/Field.vue2.js";
|
3
3
|
/* empty css */
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
4
|
+
import V from "../../../../components/Button/Button.vue2.js";
|
5
|
+
import z from "../../../../components/Feed/Feed.vue.js";
|
6
|
+
import B from "../../../globals/components/blocks/BlockSearch.vue.js";
|
7
|
+
import D from "../../../users/components/blocks/CardUser.vue.js";
|
8
|
+
import M from "../../../icons/navigation/IconDelete.vue.js";
|
9
|
+
import F from "../../../icons/navigation/IconAdd.vue.js";
|
7
10
|
import "../../../middlewares/client/inputs.validation.js";
|
8
|
-
import "
|
9
|
-
const
|
11
|
+
import { actions as L } from "../../../users/store/users.js";
|
12
|
+
const j = { class: "mn-b-thin t-transp p-medium" }, A = { class: "mn-b-thin pos-relative" }, I = {
|
13
|
+
key: 0,
|
14
|
+
class: "mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"
|
15
|
+
}, O = { class: "cols-1 mn-b-small radius-medium pd-semi bg-light pos-relative" }, P = ["onClick"], R = /* @__PURE__ */ d("span", null, "Invite to organization", -1), ee = {
|
10
16
|
__name: "MembersAdd",
|
11
17
|
props: {
|
12
18
|
organization: Object,
|
13
19
|
text: String
|
14
20
|
},
|
15
21
|
emits: ["send-invite"],
|
16
|
-
setup(
|
17
|
-
|
18
|
-
|
19
|
-
|
22
|
+
setup(b, { emit: g }) {
|
23
|
+
let n = c(null), t = c(!1);
|
24
|
+
const k = c(null), x = g, r = c([{ contact: "" }]);
|
25
|
+
async function w() {
|
26
|
+
return new Promise((f, o) => {
|
27
|
+
x("send-invite", r.value, f, o);
|
28
|
+
});
|
20
29
|
}
|
21
|
-
return (
|
22
|
-
|
23
|
-
l("
|
24
|
-
(
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
30
|
+
return (f, o) => {
|
31
|
+
const y = C("click-outside");
|
32
|
+
return s(), l("div", null, [
|
33
|
+
d("p", j, $(b.text), 1),
|
34
|
+
d("div", A, [
|
35
|
+
U(a(B, {
|
36
|
+
onSearch: o[0] || (o[0] = (i) => {
|
37
|
+
m(n) ? n.value = i : n = i, m(t) ? t.value = !0 : t = !0;
|
38
|
+
}),
|
39
|
+
placeholder: "Enter name, phone or email",
|
40
|
+
class: "bg-grey"
|
41
|
+
}, null, 512), [
|
42
|
+
[y, () => {
|
43
|
+
m(t) ? t.value = !1 : t = !1;
|
44
|
+
}]
|
45
|
+
]),
|
46
|
+
p(n) && p(t) ? (s(), l("div", I, [
|
47
|
+
a(z, {
|
48
|
+
states: {
|
49
|
+
empty: {
|
50
|
+
title: "No User Found",
|
51
|
+
description: "Currently, there are no such user."
|
52
|
+
}
|
53
|
+
},
|
54
|
+
store: {
|
55
|
+
read: (i) => L.read(i),
|
56
|
+
state: null
|
57
|
+
},
|
58
|
+
options: {
|
59
|
+
search: p(n)
|
60
|
+
},
|
61
|
+
showLoadMore: !1,
|
62
|
+
class: "h-max-20r o-scroll"
|
63
|
+
}, {
|
64
|
+
default: u(({
|
65
|
+
items: i
|
66
|
+
}) => [
|
67
|
+
(s(!0), l(_, null, v(i, (e, h) => (s(), E(D, {
|
68
|
+
key: e._id,
|
69
|
+
user: e,
|
70
|
+
photo: e.profile.photo,
|
71
|
+
name: e.profile.name || e.phone || e.email,
|
72
|
+
onClick: () => {
|
73
|
+
r.value.push({ contact: e.email || e.phone }), m(t) ? t.value = !1 : t = !1;
|
74
|
+
},
|
75
|
+
class: "bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"
|
76
|
+
}, null, 8, ["user", "photo", "name", "onClick"]))), 128))
|
77
|
+
]),
|
78
|
+
_: 1
|
79
|
+
}, 8, ["store", "options"])
|
80
|
+
])) : N("", !0)
|
66
81
|
]),
|
67
|
-
|
68
|
-
|
69
|
-
|
82
|
+
d("section", O, [
|
83
|
+
(s(!0), l(_, null, v(r.value, (i, e) => (s(), l("div", {
|
84
|
+
key: e,
|
85
|
+
class: "br-1px br-solid br-grey-transp-25 flex gap-thin radius-small mn-b-thin"
|
86
|
+
}, [
|
87
|
+
a(S, {
|
88
|
+
field: i.contact,
|
89
|
+
"onUpdate:field": (h) => i.contact = h,
|
90
|
+
placeholder: "Enter email or phone",
|
91
|
+
class: "w-100 pd-small radius-small bg-white",
|
92
|
+
validation: k.value
|
93
|
+
}, {
|
94
|
+
default: u(() => [
|
95
|
+
e < 1 ? (s(), l("div", {
|
96
|
+
key: 0,
|
97
|
+
onClick: o[1] || (o[1] = () => r.value.push({ contact: "" })),
|
98
|
+
class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"
|
99
|
+
}, [
|
100
|
+
a(F, {
|
101
|
+
class: "i-medium",
|
102
|
+
fill: "rgb(var(--white)"
|
103
|
+
})
|
104
|
+
])) : (s(), l("div", {
|
105
|
+
key: 1,
|
106
|
+
onClick: () => r.value.splice(e, 1),
|
107
|
+
class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"
|
108
|
+
}, [
|
109
|
+
a(M, {
|
110
|
+
class: "i-medium",
|
111
|
+
fill: "rgb(var(--white)"
|
112
|
+
})
|
113
|
+
], 8, P))
|
114
|
+
]),
|
115
|
+
_: 2
|
116
|
+
}, 1032, ["field", "onUpdate:field", "validation"])
|
117
|
+
]))), 128))
|
118
|
+
]),
|
119
|
+
a(V, {
|
120
|
+
submit: w,
|
121
|
+
class: "w-100 bg-main"
|
122
|
+
}, {
|
123
|
+
default: u(() => [
|
124
|
+
R
|
125
|
+
]),
|
126
|
+
_: 1
|
127
|
+
})
|
128
|
+
]);
|
129
|
+
};
|
70
130
|
}
|
71
131
|
};
|
72
132
|
export {
|
73
|
-
|
133
|
+
ee as default
|
74
134
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");;/* empty css */require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");;/* empty css */;/* empty css */const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -6,7 +6,7 @@ import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
/* empty css */
|
9
|
-
/* empty css
|
9
|
+
/* empty css */
|
10
10
|
/* empty css */
|
11
11
|
import { state as k } from "../../../auth/store/auth.js";
|
12
12
|
import "../../store/memberships.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("axios"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("axios"),i=require("vue"),a=require("../../globals/store/globals.cjs"),n=require("../../auth/store/auth.cjs"),s=c.create({baseURL:process.env.API_URL,withCredentials:!0}),r=i.reactive({invites:[],invite:null,error:null}),l={async read(t){try{const e=await s.get(`/api/invites/${t.owner}`);return r.invites=e.data,r.error=null,e.data}catch(e){a.setError(e)}},async readOne(t){try{const e=await s.get(`/api/invites/get/${t}`);r.invite=e.data,n.state.user.phone=e.data.phone,n.state.user.email=e.data.email}catch(e){a.setError(e)}},async create(t){try{const e=await s.post("/api/invites/create",t);return Promise.resolve(e.data)}catch(e){a.setError(e)}},async update(t,e){try{await s.put("/api/invites/update",e),r.error=null}catch(o){a.setError(o)}},async delete(t){try{await s.delete(`/api/invites/delete/${t}`),r.error=null}catch(e){a.setError(e)}}};i.watch(r,(t,e)=>{});exports.actions=l;exports.state=r;
|
@@ -1,51 +1,52 @@
|
|
1
1
|
import s from "axios";
|
2
2
|
import { reactive as c, watch as l } from "vue";
|
3
3
|
import { setError as a } from "../../globals/store/globals.js";
|
4
|
-
import { state as
|
4
|
+
import { state as o } from "../../auth/store/auth.js";
|
5
5
|
const i = s.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = c({
|
6
6
|
invites: [],
|
7
7
|
invite: null,
|
8
8
|
error: null
|
9
9
|
}), m = {
|
10
|
-
async read(
|
10
|
+
async read(t) {
|
11
11
|
try {
|
12
|
-
const
|
13
|
-
return r.invites =
|
14
|
-
} catch (
|
15
|
-
a(
|
12
|
+
const e = await i.get(`/api/invites/${t.owner}`);
|
13
|
+
return r.invites = e.data, r.error = null, e.data;
|
14
|
+
} catch (e) {
|
15
|
+
a(e);
|
16
16
|
}
|
17
17
|
},
|
18
|
-
async readOne(
|
18
|
+
async readOne(t) {
|
19
19
|
try {
|
20
|
-
const
|
21
|
-
r.invite =
|
22
|
-
} catch (
|
23
|
-
a(
|
20
|
+
const e = await i.get(`/api/invites/get/${t}`);
|
21
|
+
r.invite = e.data, o.user.phone = e.data.phone, o.user.email = e.data.email;
|
22
|
+
} catch (e) {
|
23
|
+
a(e);
|
24
24
|
}
|
25
25
|
},
|
26
|
-
async create(
|
26
|
+
async create(t) {
|
27
27
|
try {
|
28
|
-
await i.post("/api/invites/create",
|
29
|
-
|
30
|
-
|
28
|
+
const e = await i.post("/api/invites/create", t);
|
29
|
+
return Promise.resolve(e.data);
|
30
|
+
} catch (e) {
|
31
|
+
a(e);
|
31
32
|
}
|
32
33
|
},
|
33
|
-
async update(
|
34
|
+
async update(t, e) {
|
34
35
|
try {
|
35
|
-
await i.put("/api/invites/update",
|
36
|
-
} catch (
|
37
|
-
a(
|
36
|
+
await i.put("/api/invites/update", e), r.error = null;
|
37
|
+
} catch (n) {
|
38
|
+
a(n);
|
38
39
|
}
|
39
40
|
},
|
40
|
-
async delete(
|
41
|
+
async delete(t) {
|
41
42
|
try {
|
42
|
-
await i.delete(`/api/invites/delete/${
|
43
|
-
} catch (
|
44
|
-
a(
|
43
|
+
await i.delete(`/api/invites/delete/${t}`), r.error = null;
|
44
|
+
} catch (e) {
|
45
|
+
a(e);
|
45
46
|
}
|
46
47
|
}
|
47
48
|
};
|
48
|
-
l(r, (
|
49
|
+
l(r, (t, e) => {
|
49
50
|
});
|
50
51
|
export {
|
51
52
|
m as actions,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../icons/navigation/IconEdit.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../icons/navigation/IconEdit.vue.cjs"),a=require("../../../../components/Chips/Chips.vue2.cjs"),d=require("../../../../components/Map/Map.vue.cjs");;/* empty css */const c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),l=t=>(e.pushScopeId("data-v-6c15ff4f"),t=t(),e.popScopeId(),t),p={class:"radius-big o-hidden pos-relative cols-2-1_3"},u={class:"pd-medium w-100"},m=["innerHTML"],h={class:"d-block p-big mn-b-semi"},g=l(()=>e.createElementVNode("h4",null,"Delivery:",-1)),f=l(()=>e.createElementVNode("h4",null,"Accepted Payment:",-1)),y={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const i=t;return(o,n)=>(e.openBlock(),e.createElementBlock("div",p,[e.createVNode(d.default,{apiKey:o.GOOGLE_MAPS_API_KEY,location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},locale:o.$i18n.locale,class:""},null,8,["apiKey","location","locale"]),e.createElementVNode("div",u,[e.createVNode(r.default,{onClick:n[0]||(n[0]=s=>o.$router.push({name:"Spot Edit",params:{_id:i.organization._id,spot:t.spot._id}})),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),e.createElementVNode("p",{onClick:n[1]||(n[1]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"pd-thin bg-white radius-small mn-b-thin p-small w-max"},e.toDisplayString(t.spot.address),1),e.createElementVNode("h3",{onClick:n[2]||(n[2]=s=>o.$router.push(`/app/organization/${i.organization._id}/spots/${t.spot._id}`)),class:"mn-b-thin w-100",innerHTML:t.spot.profile.name},null,8,m),e.createElementVNode("p",h,e.toDisplayString(t.spot.profile.description),1),g,o.type!=="short"&&t.spot.delivery.length>0?(e.openBlock(),e.createBlock(a.default,{key:0,chips:t.spot.delivery},null,8,["chips"])):e.createCommentVNode("",!0),f,o.type!=="short"&&t.spot.payment.length>0?(e.openBlock(),e.createBlock(a.default,{key:1,chips:t.spot.payment},null,8,["chips"])):e.createCommentVNode("",!0)])]))}},v=c.default(y,[["__scopeId","data-v-6c15ff4f"]]);exports.default=v;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { openBlock as n, createElementBlock as u, createVNode as l, createElementVNode as i, toDisplayString as r, createBlock as p, createCommentVNode as d, pushScopeId as h, popScopeId as
|
2
|
-
import
|
1
|
+
import { openBlock as n, createElementBlock as u, createVNode as l, createElementVNode as i, toDisplayString as r, createBlock as p, createCommentVNode as d, pushScopeId as h, popScopeId as f } from "vue";
|
2
|
+
import g from "../../../icons/navigation/IconEdit.vue.js";
|
3
3
|
import c from "../../../../components/Chips/Chips.vue2.js";
|
4
4
|
import y from "../../../../components/Map/Map.vue.js";
|
5
5
|
/* empty css */
|
6
6
|
import $ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
7
|
-
const m = (o) => (h("data-v-
|
7
|
+
const m = (o) => (h("data-v-6c15ff4f"), o = o(), f(), o), v = { class: "radius-big o-hidden pos-relative cols-2-1_3" }, b = { class: "pd-medium w-100" }, k = ["innerHTML"], S = { class: "d-block p-big mn-b-semi" }, z = /* @__PURE__ */ m(() => /* @__PURE__ */ i("h4", null, "Delivery:", -1)), C = /* @__PURE__ */ m(() => /* @__PURE__ */ i("h4", null, "Accepted Payment:", -1)), w = {
|
8
8
|
__name: "CardSpot",
|
9
9
|
props: {
|
10
10
|
spot: Object,
|
@@ -12,7 +12,7 @@ const m = (o) => (h("data-v-fba16034"), o = o(), g(), o), b = { class: "radius-b
|
|
12
12
|
},
|
13
13
|
setup(o) {
|
14
14
|
const s = o;
|
15
|
-
return (t, e) => (n(), u("div",
|
15
|
+
return (t, e) => (n(), u("div", v, [
|
16
16
|
l(y, {
|
17
17
|
apiKey: t.GOOGLE_MAPS_API_KEY,
|
18
18
|
location: {
|
@@ -22,8 +22,8 @@ const m = (o) => (h("data-v-fba16034"), o = o(), g(), o), b = { class: "radius-b
|
|
22
22
|
locale: t.$i18n.locale,
|
23
23
|
class: ""
|
24
24
|
}, null, 8, ["apiKey", "location", "locale"]),
|
25
|
-
i("div",
|
26
|
-
l(
|
25
|
+
i("div", b, [
|
26
|
+
l(g, {
|
27
27
|
onClick: e[0] || (e[0] = (a) => t.$router.push({
|
28
28
|
name: "Spot Edit",
|
29
29
|
params: {
|
@@ -56,7 +56,7 @@ const m = (o) => (h("data-v-fba16034"), o = o(), g(), o), b = { class: "radius-b
|
|
56
56
|
])
|
57
57
|
]));
|
58
58
|
}
|
59
|
-
}, K = /* @__PURE__ */ $(w, [["__scopeId", "data-v-
|
59
|
+
}, K = /* @__PURE__ */ $(w, [["__scopeId", "data-v-6c15ff4f"]]);
|
60
60
|
export {
|
61
61
|
K as default
|
62
62
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */require("../../../globals/localization/vue-i18n.cjs");;/* empty css */;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("vue-router"),v=require("vue-i18n");;/* empty css */;/* empty css */require("../../../globals/localization/vue-i18n.cjs");;/* empty css */;/* empty css */const m=require("../../../globals/store/globals.cjs"),f=require("../../../products/store/categories.cjs"),g=require("../../../marketplace/store/marketplace.cjs"),h={class:"w-100 h-100"},k={class:"h-100 w-100 flex-nowrap flex-column flex gap-thin"},_={class:"pos-absolute z-index-2 w-100"},w={class:"bg-black-transp-25 t-white pd-small w-100 bg-blur-big mn-l-auto mn-r-auto t-center"},b=e.createElementVNode("span",{class:""},"Weed in ",-1),B={key:0},q={key:1},E={key:2},C={__name:"Spots",setup(O){const s=y.useRoute(),n=y.useRouter(),o=e.ref({city:null,state:null,country:null});function u(t){return t.replace(/-/g," ").replace(/\b\w/g,r=>r.toUpperCase())}e.onMounted(async()=>{if(s.params){let t={country:u(s.params.country),state:u(s.params.state),city:u(s.params.city)};o.value=t}if(s.query){const t=s.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};g.state.filter.selected=r}await f.actions.fetchCategories()}),e.watch(()=>g.state.filter.selected,(t,r)=>{const a={...s.query};Object.keys(r).forEach(l=>{a[l]&&delete a[l]});const i=Object.fromEntries(Object.entries(t).filter(([l,c])=>Array.isArray(c)&&c.length>0).map(([l,c])=>[l,c.join(",")]));Object.assign(a,i),n.push({query:a})},{deep:!0});function p(t){return t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,"")}e.watch(()=>m.state.position,t=>{const r={...n.currentRoute.value};let a={country:p(t.country),state:p(t.state),city:p(t.city)};r.params=a,n.replace(r)},{deep:!0});const d={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};return f.state.all.forEach(t=>{t.localization.forEach(r=>{d.messages[r.locale].categories.push(r.text)})}),v.useI18n(d),(t,r)=>{const a=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",k,[e.createElementVNode("div",_,[e.createElementVNode("h2",w,[b,o.value.city||o.value.state||o.value.country?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[0]||(r[0]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"},[o.value.city?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(o.value.city)+", ",1)):e.createCommentVNode("",!0),o.value.state?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(o.value.state)+", ",1)):e.createCommentVNode("",!0),o.value.country?(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(o.value.country),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=i=>{m.state.isOpenLocationPopup=!0}),class:"t-semi t-main"}," The World "))])]),e.createVNode(a,null,{default:e.withCtx(({Component:i,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{ref:"page",key:l.path,localPosition:o.value,apiKey:t.GOOGLE_MAPS_API_KEY,locale:t.$i18n.locale,class:""},null,8,["localPosition","apiKey","locale"]))]),_:2},1024)]),_:1})])])}}};exports.default=C;
|
@@ -5,7 +5,7 @@ import { useI18n as j } from "vue-i18n";
|
|
5
5
|
/* empty css */
|
6
6
|
import "../../../globals/localization/vue-i18n.js";
|
7
7
|
/* empty css */
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
import { state as h } from "../../../globals/store/globals.js";
|
10
10
|
import { actions as q, state as R } from "../../../products/store/categories.js";
|
11
11
|
import { state as b } from "../../../marketplace/store/marketplace.js";
|
@@ -36,10 +36,10 @@ const T = { class: "w-100 h-100" }, V = { class: "h-100 w-100 flex-nowrap flex-c
|
|
36
36
|
delivery: e.delivery ? e.delivery.split(",") : []
|
37
37
|
// Продолжайте этот паттерн для остальных полей фильтра
|
38
38
|
};
|
39
|
-
b.filter = t;
|
39
|
+
b.filter.selected = t;
|
40
40
|
}
|
41
41
|
await q.fetchCategories();
|
42
|
-
}), g(() => b.filter, (e, t) => {
|
42
|
+
}), g(() => b.filter.selected, (e, t) => {
|
43
43
|
const o = { ...a.query };
|
44
44
|
Object.keys(t).forEach((s) => {
|
45
45
|
o[s] && delete o[s];
|