@ozdao/prometheus-framework 0.0.87 β 0.0.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Feed-51e4e232.js +1 -0
- package/dist/Feed-dc8b66bf.mjs +367 -0
- package/dist/Image-6c7584f5.mjs +477 -0
- package/dist/Image-9a870c88.js +9 -0
- package/dist/Product-1724d88d.mjs +837 -0
- package/dist/Product-a94d8b65.js +7 -0
- package/dist/ProductEdit-57484f1e.mjs +349 -0
- package/dist/ProductEdit-ef301baa.js +1 -0
- package/dist/ProfileEvents-1cfe6858.mjs +55 -0
- package/dist/ProfileEvents-d8e16509.js +1 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +197 -214
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +328 -309
- package/dist/events.server.js +77 -0
- package/dist/events.server.mjs +77 -0
- package/dist/organizations.client-686845be.mjs +3179 -0
- package/dist/organizations.client-99bfc474.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +2 -2
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +1 -1
- package/package.json +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +7 -2
- package/src/modules/events/components/pages/Event.vue +43 -4
- package/src/modules/events/middlewares/server/index.js +10 -0
- package/src/modules/events/middlewares/server/verifyEvent.js +60 -0
- package/src/modules/events/routes/events.routes.js +14 -1
package/dist/community.client.js
CHANGED
@@ -1,31 +1,31 @@
|
|
1
|
-
import { resolveComponent as Y, openBlock as i, createElementBlock as
|
2
|
-
import { useRoute as
|
1
|
+
import { resolveComponent as Y, openBlock as i, createElementBlock as p, createElementVNode as o, createVNode as h, normalizeClass as B, unref as c, createCommentVNode as v, withCtx as k, Transition as G, createBlock as I, resolveDynamicComponent as Q, ref as g, onMounted as F, computed as V, createTextVNode as T, createStaticVNode as Z, TransitionGroup as H, Fragment as D, renderList as U, mergeProps as ee, watch as te, toDisplayString as N, watchEffect as se, isRef as W, withAsyncContext as ae, pushScopeId as oe, popScopeId as ne } from "vue";
|
2
|
+
import { useRoute as z, useRouter as A } from "vue-router";
|
3
3
|
import { S as le, _ as re } from "./Publics-9ebffff1.mjs";
|
4
4
|
import { s as M, r as L, c as ie, u as q, a as R, b as ue, d as K, _ as ce } from "./Feed-a31c43c2.mjs";
|
5
|
-
import { e as
|
5
|
+
import { e as es, f as ts, g as ss } from "./Feed-a31c43c2.mjs";
|
6
6
|
import { s as w, b as pe, _ as X, F as de } from "./auth-35ef1791.mjs";
|
7
|
-
import {
|
8
|
-
import { _ as
|
9
|
-
import { _ as
|
10
|
-
import { a as
|
11
|
-
import { _ as
|
12
|
-
import { useI18n as
|
7
|
+
import { c as me, _ as ge, a as _e, b as he } from "./Image-6c7584f5.mjs";
|
8
|
+
import { _ as fe } from "./Popup-82fb2c8a.mjs";
|
9
|
+
import { _ as ve, S as be, C as ye } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
|
10
|
+
import { a as we } from "./organizations-1b4c84ee.mjs";
|
11
|
+
import { _ as xe } from "./EmptyState-34d85f10.mjs";
|
12
|
+
import { useI18n as $e } from "vue-i18n";
|
13
13
|
import "./globals-96ba60e4.mjs";
|
14
14
|
import "./CardOrganization-f70bd169.mjs";
|
15
15
|
import "./ButtonFollow-728aab73.mjs";
|
16
16
|
import "./CardHeader-ce5a1a75.mjs";
|
17
17
|
import "./PlaceholderUserpic-995da0fc.mjs";
|
18
18
|
import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
19
|
-
const
|
19
|
+
const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Ce = { class: "flex-v-center flex-nowrap flex t-left" }, Te = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), Se = { class: "bg-grey pd-medium radius-big mn-semi flex-nowrap flex" }, Be = { class: "" }, Ie = {
|
20
20
|
__name: "Community",
|
21
|
-
setup(
|
22
|
-
const n =
|
21
|
+
setup(d) {
|
22
|
+
const n = z(), s = A();
|
23
23
|
return (e, a) => {
|
24
24
|
const m = Y("router-view");
|
25
|
-
return i(),
|
26
|
-
o("header",
|
27
|
-
o("h2",
|
28
|
-
|
25
|
+
return i(), p("div", ke, [
|
26
|
+
o("header", Pe, [
|
27
|
+
o("h2", Ce, [
|
28
|
+
Te,
|
29
29
|
h(le, {
|
30
30
|
options: ["today", "week", "month", "year"],
|
31
31
|
select: M.filter.period,
|
@@ -35,26 +35,26 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
35
35
|
}, null, 8, ["select"])
|
36
36
|
])
|
37
37
|
]),
|
38
|
-
o("ul",
|
38
|
+
o("ul", Se, [
|
39
39
|
o("li", {
|
40
|
-
class: B([{ "t-white bg-black":
|
41
|
-
onClick: a[1] || (a[1] = (t) =>
|
40
|
+
class: B([{ "t-white bg-black": c(n).params.category === "featured" }, "mn-r-small t-medium pd-small radius-small"]),
|
41
|
+
onClick: a[1] || (a[1] = (t) => c(s).push({ name: "Blog" }))
|
42
42
|
}, "π Featured", 2),
|
43
43
|
o("li", {
|
44
|
-
class: B([{ "t-white bg-black":
|
45
|
-
onClick: a[2] || (a[2] = (t) =>
|
44
|
+
class: B([{ "t-white bg-black": c(n).params.category === "popular" }, "mn-r-small t-medium pd-small radius-small"]),
|
45
|
+
onClick: a[2] || (a[2] = (t) => c(s).push({ name: "Blog", params: { category: "popular" } }))
|
46
46
|
}, "π₯ Popular", 2),
|
47
47
|
o("li", {
|
48
|
-
class: B([{ "t-white bg-black":
|
49
|
-
onClick: a[3] || (a[3] = (t) =>
|
48
|
+
class: B([{ "t-white bg-black": c(n).params.category === "new" }, "mn-r-small t-medium pd-small radius-small"]),
|
49
|
+
onClick: a[3] || (a[3] = (t) => c(s).push({ name: "Blog", params: { category: "new" } }))
|
50
50
|
}, "π New", 2),
|
51
|
-
w.user._id ? (i(),
|
51
|
+
w.user._id ? (i(), p("li", {
|
52
52
|
key: 0,
|
53
|
-
class: B([{ "t-white bg-black":
|
54
|
-
onClick: a[4] || (a[4] = (t) =>
|
55
|
-
}, "π₯ Following", 2)) :
|
53
|
+
class: B([{ "t-white bg-black": c(n).params.category === "following" }, "t-medium pd-small radius-small"]),
|
54
|
+
onClick: a[4] || (a[4] = (t) => c(s).push({ name: "Blog", params: { category: "following" } }))
|
55
|
+
}, "π₯ Following", 2)) : v("", !0)
|
56
56
|
]),
|
57
|
-
o("section",
|
57
|
+
o("section", Be, [
|
58
58
|
h(m, null, {
|
59
59
|
default: k(({ Component: t, route: _ }) => [
|
60
60
|
h(G, {
|
@@ -76,28 +76,28 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
76
76
|
]);
|
77
77
|
};
|
78
78
|
}
|
79
|
-
},
|
79
|
+
}, Me = { class: "pd-thin" }, Fe = {
|
80
80
|
key: 0,
|
81
81
|
class: "h-100 w-100 bg-grey pd-big radius-big"
|
82
|
-
},
|
82
|
+
}, Ne = { class: "w-full h-full" }, ze = {
|
83
83
|
key: 1,
|
84
84
|
class: "pd-thin pos-fixed pos-l-0 pos-b-0 w-100"
|
85
|
-
},
|
85
|
+
}, Oe = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, je = { class: "w-m-66r t-left pd-big bg-white radius-big" }, De = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Final Touches", -1), Ue = /* @__PURE__ */ o("h5", { class: "mn-thin" }, "Add to public:", -1), Ae = {
|
86
86
|
key: 0,
|
87
87
|
class: "mn-thin"
|
88
|
-
},
|
88
|
+
}, Le = {
|
89
89
|
key: 1,
|
90
90
|
class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
|
91
|
-
},
|
91
|
+
}, Ee = {
|
92
92
|
__name: "CreateBlogPost",
|
93
|
-
setup(
|
94
|
-
const n =
|
93
|
+
setup(d) {
|
94
|
+
const n = z(), s = A();
|
95
95
|
let e = g(null), a = g(null);
|
96
96
|
const m = g([]), t = g(null);
|
97
97
|
F(async () => {
|
98
98
|
if (n.params.url) {
|
99
|
-
const
|
100
|
-
e.value =
|
99
|
+
const u = await L({ user: w.user._id, url: n.params.url });
|
100
|
+
e.value = u.pop();
|
101
101
|
} else
|
102
102
|
ie(), e.value = M.current;
|
103
103
|
e.value.owner || (e.value.owner = {
|
@@ -112,14 +112,14 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
112
112
|
name: e.value.owner.target.profile.name,
|
113
113
|
photo: e.value.owner.target.profile.photo
|
114
114
|
});
|
115
|
-
const r = await
|
115
|
+
const r = await we.read({
|
116
116
|
user: w.user._id,
|
117
117
|
postable: w.user._id
|
118
118
|
});
|
119
|
-
console.log(r), a.value = r.map((
|
120
|
-
name:
|
121
|
-
_id:
|
122
|
-
photo:
|
119
|
+
console.log(r), a.value = r.map((u) => ({
|
120
|
+
name: u.profile.name,
|
121
|
+
_id: u._id,
|
122
|
+
photo: u.profile.photo
|
123
123
|
}));
|
124
124
|
});
|
125
125
|
const _ = g(""), l = g([
|
@@ -129,13 +129,13 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
129
129
|
{ text: "discussion" },
|
130
130
|
{ text: "photos" }
|
131
131
|
]);
|
132
|
-
V(() => l.value.filter((r) => r.text.toLowerCase().includes(_.value.toLowerCase()))), V(() => l.value.filter((r) => !m.value.some((
|
133
|
-
const
|
132
|
+
V(() => l.value.filter((r) => r.text.toLowerCase().includes(_.value.toLowerCase()))), V(() => l.value.filter((r) => !m.value.some((u) => u.text === r.text)));
|
133
|
+
const f = g(!1);
|
134
134
|
function P() {
|
135
|
-
|
135
|
+
f.value = !0;
|
136
136
|
}
|
137
137
|
function $() {
|
138
|
-
|
138
|
+
f.value = !1;
|
139
139
|
}
|
140
140
|
function S() {
|
141
141
|
m.value.length > 0 && m.value.map((r) => r.text), e.value.status = "draft", n.params.url ? q(e.value).then((r) => {
|
@@ -148,7 +148,7 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
148
148
|
console.log(r);
|
149
149
|
});
|
150
150
|
}
|
151
|
-
function
|
151
|
+
function O() {
|
152
152
|
t.value && (e.value.owner = {
|
153
153
|
target: t.value._id,
|
154
154
|
type: "organization"
|
@@ -162,62 +162,62 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
162
162
|
console.log(r);
|
163
163
|
});
|
164
164
|
}
|
165
|
-
function
|
165
|
+
function j() {
|
166
166
|
confirm("Are you sure you want to delete this post?") && ue(e.value._id).then((r) => {
|
167
167
|
s.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
|
168
168
|
}).catch((r) => {
|
169
169
|
console.log(r);
|
170
170
|
});
|
171
171
|
}
|
172
|
-
return (r,
|
173
|
-
|
174
|
-
o("div",
|
172
|
+
return (r, u) => (i(), p("article", Me, [
|
173
|
+
c(e) ? (i(), p("section", Fe, [
|
174
|
+
o("div", Ne, [
|
175
175
|
h(me, {
|
176
|
-
prop:
|
176
|
+
prop: c(e),
|
177
177
|
content: "name",
|
178
178
|
placeholder: "Enter post title",
|
179
179
|
class: "h2"
|
180
180
|
}, null, 8, ["prop"])
|
181
181
|
]),
|
182
182
|
h(ge, {
|
183
|
-
content:
|
184
|
-
onUpdate:
|
183
|
+
content: c(e).content,
|
184
|
+
onUpdate: u[0] || (u[0] = (b) => c(e).content = b)
|
185
185
|
}, null, 8, ["content"])
|
186
|
-
])) :
|
187
|
-
|
188
|
-
o("div",
|
189
|
-
|
186
|
+
])) : v("", !0),
|
187
|
+
c(e) ? (i(), p("section", ze, [
|
188
|
+
o("div", Oe, [
|
189
|
+
c(n).params.url ? (i(), p("a", {
|
190
190
|
key: 0,
|
191
|
-
onClick:
|
191
|
+
onClick: u[1] || (u[1] = (b) => j()),
|
192
192
|
class: "mn-r-auto bg-red t-white t-black button"
|
193
|
-
}, "Delete")) :
|
193
|
+
}, "Delete")) : v("", !0),
|
194
194
|
o("a", {
|
195
|
-
onClick:
|
195
|
+
onClick: u[2] || (u[2] = (b) => S()),
|
196
196
|
class: "mn-l-auto bg-white t-black button"
|
197
197
|
}, "To Drafts"),
|
198
198
|
o("a", {
|
199
|
-
onClick:
|
199
|
+
onClick: u[3] || (u[3] = (b) => P()),
|
200
200
|
class: "mn-l-thin bg-black t-white button"
|
201
201
|
}, "Publish")
|
202
202
|
])
|
203
|
-
])) :
|
204
|
-
h(
|
203
|
+
])) : v("", !0),
|
204
|
+
h(fe, {
|
205
205
|
title: "ΠΠΎΠ±Π°Π²ΠΈΡΡ ΡΡΠ°ΡΡΠ½ΠΈΠΊΠ°",
|
206
206
|
onClosePopup: $,
|
207
|
-
isPopupOpen:
|
207
|
+
isPopupOpen: f.value
|
208
208
|
}, {
|
209
209
|
default: k(() => [
|
210
|
-
o("div",
|
211
|
-
|
212
|
-
h(
|
213
|
-
onTagsChanged:
|
214
|
-
tags:
|
210
|
+
o("div", je, [
|
211
|
+
De,
|
212
|
+
h(ve, {
|
213
|
+
onTagsChanged: u[4] || (u[4] = (b) => c(e).tags = b),
|
214
|
+
tags: c(e).tags
|
215
215
|
}, null, 8, ["tags"]),
|
216
216
|
Ue,
|
217
|
-
h(
|
217
|
+
h(be, {
|
218
218
|
modelValue: t.value,
|
219
|
-
"onUpdate:modelValue":
|
220
|
-
options:
|
219
|
+
"onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
|
220
|
+
options: c(a),
|
221
221
|
multiple: !1,
|
222
222
|
taggable: !1,
|
223
223
|
placeholder: "Type to search or add tag",
|
@@ -225,18 +225,18 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
225
225
|
"track-by": "_id",
|
226
226
|
class: "mn-medium bg-grey radius-medium pd-small"
|
227
227
|
}, null, 8, ["modelValue", "options"]),
|
228
|
-
t.value ? (i(),
|
229
|
-
t.value ? (i(),
|
230
|
-
h(
|
228
|
+
t.value ? (i(), p("h5", Ae, "Options:")) : v("", !0),
|
229
|
+
t.value ? (i(), p("div", Le, [
|
230
|
+
h(ye, {
|
231
231
|
label: "Hide Author",
|
232
|
-
radio:
|
233
|
-
"onUpdate:radio":
|
232
|
+
radio: c(e).creator.hidden,
|
233
|
+
"onUpdate:radio": u[6] || (u[6] = (b) => c(e).creator.hidden = b),
|
234
234
|
name: "prices",
|
235
235
|
class: "w-100"
|
236
236
|
}, null, 8, ["radio"])
|
237
|
-
])) :
|
237
|
+
])) : v("", !0),
|
238
238
|
h(pe, {
|
239
|
-
submit:
|
239
|
+
submit: O,
|
240
240
|
callback: r.redirectTo,
|
241
241
|
class: "w-100 bg-black t-white"
|
242
242
|
}, {
|
@@ -253,38 +253,21 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
253
253
|
}
|
254
254
|
}, J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
255
255
|
__proto__: null,
|
256
|
-
default:
|
257
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
256
|
+
default: Ee
|
257
|
+
}, Symbol.toStringTag, { value: "Module" })), Ve = {}, He = {
|
258
258
|
width: "100%",
|
259
259
|
height: "20rem",
|
260
260
|
xmlns: "http://www.w3.org/2000/svg"
|
261
|
-
},
|
262
|
-
|
261
|
+
}, qe = /* @__PURE__ */ Z('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), Re = [
|
262
|
+
qe
|
263
263
|
];
|
264
|
-
function
|
265
|
-
return i(),
|
264
|
+
function Je(d, n) {
|
265
|
+
return i(), p("svg", He, Re);
|
266
266
|
}
|
267
|
-
const
|
268
|
-
__name: "Image",
|
269
|
-
props: [
|
270
|
-
"label",
|
271
|
-
"value",
|
272
|
-
"prop"
|
273
|
-
],
|
274
|
-
setup(u) {
|
275
|
-
return g(null), (n, s) => (i(), c("div", Ge, [
|
276
|
-
u.prop.content ? (i(), c("img", {
|
277
|
-
key: 0,
|
278
|
-
src: u.prop.content,
|
279
|
-
alt: "Uploaded image",
|
280
|
-
class: "w-100 h-30r object-fit-contain"
|
281
|
-
}, null, 8, Qe)) : f("", !0)
|
282
|
-
]));
|
283
|
-
}
|
284
|
-
}, Ke = { class: "pd-thin" }, Xe = {
|
267
|
+
const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, We = {
|
285
268
|
__name: "BlogPost",
|
286
|
-
setup(
|
287
|
-
const n =
|
269
|
+
setup(d) {
|
270
|
+
const n = z(), s = g(null), e = g(!0);
|
288
271
|
F(async () => {
|
289
272
|
e.value = !0;
|
290
273
|
const t = await L({ user: w.user._id, url: n.params.url });
|
@@ -295,30 +278,30 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
295
278
|
H2: "h2",
|
296
279
|
Bullets: "p",
|
297
280
|
Caption: "p",
|
298
|
-
ImageUpload:
|
281
|
+
ImageUpload: he
|
299
282
|
};
|
300
283
|
function m(t) {
|
301
284
|
return t.type === "Textarea" ? { innerHTML: t.content, class: "p-medium" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
|
302
285
|
}
|
303
|
-
return (t, _) => (i(),
|
286
|
+
return (t, _) => (i(), p("section", Qe, [
|
304
287
|
h(H, {
|
305
288
|
tag: "ul",
|
306
289
|
name: "fade",
|
307
290
|
class: "o-hidden bg-grey radius-big"
|
308
291
|
}, {
|
309
292
|
default: k(() => [
|
310
|
-
e.value ? (i(),
|
293
|
+
e.value ? (i(), p(D, { key: 0 }, U(3, (l) => h(Ge, { key: l })), 64)) : v("", !0)
|
311
294
|
]),
|
312
295
|
_: 1
|
313
296
|
}),
|
314
297
|
h(G, { name: "fade" }, {
|
315
298
|
default: k(() => [
|
316
|
-
!e.value && !s.value ? (i(), I(
|
299
|
+
!e.value && !s.value ? (i(), I(xe, {
|
317
300
|
key: 0,
|
318
301
|
title: "No Blogpost Found",
|
319
302
|
description: "Currently, there are no blogposts available. Please check back later.",
|
320
303
|
class: "pd-medium mn-thin bg-grey radius-big"
|
321
|
-
})) :
|
304
|
+
})) : v("", !0)
|
322
305
|
]),
|
323
306
|
_: 1
|
324
307
|
}),
|
@@ -340,37 +323,37 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
340
323
|
}, {
|
341
324
|
default: k(() => [
|
342
325
|
o("section", null, [
|
343
|
-
s.value && s.value.content ? (i(!0),
|
344
|
-
key:
|
345
|
-
index:
|
326
|
+
s.value && s.value.content ? (i(!0), p(D, { key: 0 }, U(s.value.content, (l, f) => (i(), I(Q(a[l.type]), ee({
|
327
|
+
key: f,
|
328
|
+
index: f,
|
346
329
|
component: l,
|
347
330
|
prop: l,
|
348
331
|
class: l.class,
|
349
332
|
content: "content"
|
350
|
-
}, m(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) :
|
333
|
+
}, m(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : v("", !0)
|
351
334
|
])
|
352
335
|
]),
|
353
336
|
_: 1
|
354
|
-
}, 8, ["blogpost", "user", "class"])) :
|
337
|
+
}, 8, ["blogpost", "user", "class"])) : v("", !0),
|
355
338
|
h(re, { class: "mn-small" }),
|
356
339
|
!e.value && s.value ? (i(), I(_e, {
|
357
340
|
key: 1,
|
358
341
|
type: "blogpost",
|
359
342
|
target: s.value._id,
|
360
343
|
owner: w.user._id
|
361
|
-
}, null, 8, ["target", "owner"])) :
|
344
|
+
}, null, 8, ["target", "owner"])) : v("", !0)
|
362
345
|
]),
|
363
346
|
_: 1
|
364
347
|
})
|
365
348
|
]));
|
366
349
|
}
|
367
|
-
},
|
350
|
+
}, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
368
351
|
__proto__: null,
|
369
|
-
default:
|
370
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
352
|
+
default: We
|
353
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = {
|
371
354
|
__name: "Blog",
|
372
|
-
setup(
|
373
|
-
const n =
|
355
|
+
setup(d) {
|
356
|
+
const n = z(), s = A();
|
374
357
|
return n.params.category || (n.params.category = "featured"), F(() => {
|
375
358
|
if (n.query) {
|
376
359
|
const e = n.query, a = {
|
@@ -388,62 +371,62 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
388
371
|
Object.entries(e).filter(([_, l]) => Array.isArray(l) && l.length > 0 || typeof l == "string" && l).map(([_, l]) => [_, Array.isArray(l) ? l.join(",") : l])
|
389
372
|
);
|
390
373
|
Object.assign(m, t), s.push({ query: m });
|
391
|
-
}, { deep: !0 }), (e, a) => (i(),
|
374
|
+
}, { deep: !0 }), (e, a) => (i(), p("section", null, [
|
392
375
|
h(ce, {
|
393
|
-
category:
|
376
|
+
category: c(n).params.category,
|
394
377
|
user: w.user._id,
|
395
|
-
period:
|
378
|
+
period: c(n).query.period
|
396
379
|
}, null, 8, ["category", "user", "period"])
|
397
380
|
]));
|
398
381
|
}
|
399
|
-
},
|
382
|
+
}, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
400
383
|
__proto__: null,
|
401
|
-
default:
|
402
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
384
|
+
default: Xe
|
385
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = { class: "w-100 cols-4 t-left flex-nowrap flex" }, et = {
|
403
386
|
key: 0,
|
404
387
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
405
|
-
},
|
388
|
+
}, tt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "π", -1), st = { class: "t-semi uppercase" }, at = /* @__PURE__ */ o("br", null, null, -1), ot = {
|
406
389
|
key: 1,
|
407
390
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
408
|
-
},
|
391
|
+
}, nt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "π¬", -1), lt = { class: "t-semi uppercase" }, rt = /* @__PURE__ */ o("br", null, null, -1), it = {
|
409
392
|
key: 2,
|
410
393
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
411
|
-
},
|
394
|
+
}, ut = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "π", -1), ct = { class: "t-semi uppercase" }, pt = /* @__PURE__ */ o("br", null, null, -1), Gt = {
|
412
395
|
__name: "Activity",
|
413
396
|
props: {
|
414
397
|
likes: Number,
|
415
398
|
comments: Number,
|
416
399
|
subscriptions: Number
|
417
400
|
},
|
418
|
-
setup(
|
419
|
-
return (n, s) => (i(),
|
420
|
-
|
421
|
-
|
422
|
-
o("span",
|
423
|
-
T(N(
|
424
|
-
|
401
|
+
setup(d) {
|
402
|
+
return (n, s) => (i(), p("section", Ze, [
|
403
|
+
d.likes ? (i(), p("div", et, [
|
404
|
+
tt,
|
405
|
+
o("span", st, [
|
406
|
+
T(N(d.likes), 1),
|
407
|
+
at,
|
425
408
|
T("likes")
|
426
409
|
])
|
427
|
-
])) :
|
428
|
-
|
429
|
-
|
430
|
-
o("span",
|
431
|
-
T(N(
|
432
|
-
|
410
|
+
])) : v("", !0),
|
411
|
+
d.comments ? (i(), p("div", ot, [
|
412
|
+
nt,
|
413
|
+
o("span", lt, [
|
414
|
+
T(N(d.comments), 1),
|
415
|
+
rt,
|
433
416
|
T("comments")
|
434
417
|
])
|
435
|
-
])) :
|
436
|
-
|
437
|
-
|
438
|
-
o("span",
|
439
|
-
T(N(
|
440
|
-
|
418
|
+
])) : v("", !0),
|
419
|
+
d.subscriptions ? (i(), p("div", it, [
|
420
|
+
ut,
|
421
|
+
o("span", ct, [
|
422
|
+
T(N(d.subscriptions), 1),
|
423
|
+
pt,
|
441
424
|
T("subscriptions")
|
442
425
|
])
|
443
|
-
])) :
|
426
|
+
])) : v("", !0)
|
444
427
|
]));
|
445
428
|
}
|
446
|
-
},
|
429
|
+
}, dt = { class: "pd-thin radius-extra flex-nowrap flex" }, mt = ["innerHTML"], gt = {
|
447
430
|
__name: "FieldBig",
|
448
431
|
props: {
|
449
432
|
input: String,
|
@@ -475,20 +458,20 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
475
458
|
}
|
476
459
|
},
|
477
460
|
emits: ["update:input", "action"],
|
478
|
-
setup(
|
479
|
-
const s =
|
480
|
-
let m = g(0), t = g(s.input), _ = g(s.placeholder), l = g(s.enableTyping),
|
481
|
-
function
|
461
|
+
setup(d, { emit: n }) {
|
462
|
+
const s = d, { t: e, locale: a } = $e();
|
463
|
+
let m = g(0), t = g(s.input), _ = g(s.placeholder), l = g(s.enableTyping), f = g(null), P = g(""), $ = g(!0), S = null;
|
464
|
+
function O() {
|
482
465
|
n("action");
|
483
466
|
}
|
484
|
-
function
|
467
|
+
function j(x) {
|
485
468
|
n("update:input", x), P.value = x;
|
486
469
|
}
|
487
470
|
function r() {
|
488
471
|
m.value = (m.value + 1) % s.placeholderTexts[a.value].length;
|
489
472
|
}
|
490
|
-
function
|
491
|
-
l.value = !1, clearInterval(
|
473
|
+
function u() {
|
474
|
+
l.value = !1, clearInterval(f.value), _.value = s.placeholder, P.value || (t.value = "");
|
492
475
|
}
|
493
476
|
function b() {
|
494
477
|
!P.value && s.enableTyping && (l.value = !0, _.value = "", E());
|
@@ -497,7 +480,7 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
497
480
|
let x = s.placeholderTexts[a.value][m.value], y = 0, C = !1;
|
498
481
|
S = setInterval(() => {
|
499
482
|
$.value = !$.value;
|
500
|
-
}, 200),
|
483
|
+
}, 200), f.value = setInterval(() => {
|
501
484
|
l.value && (C ? (t.value = t.value.slice(0, -1), t.value = x.substring(0, y) + ($.value && y % 2 ? "|" : ""), y--) : (t.value = x.substring(0, y) + ($.value && y % 2 ? "|" : ""), y++), y > x.length && s.loopTyping && setTimeout(() => {
|
502
485
|
C = !0, t.value = x.substring(0, y);
|
503
486
|
}, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[a.value][m.value]));
|
@@ -506,44 +489,44 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
506
489
|
return F(() => {
|
507
490
|
s.enableTyping && E();
|
508
491
|
}), se(() => {
|
509
|
-
l.value || (clearInterval(
|
510
|
-
}), (x, y) => (i(),
|
492
|
+
l.value || (clearInterval(f.value), clearInterval(S));
|
493
|
+
}), (x, y) => (i(), p("div", dt, [
|
511
494
|
h(de, {
|
512
|
-
field:
|
495
|
+
field: c(t),
|
513
496
|
"onUpdate:field": [
|
514
497
|
y[0] || (y[0] = (C) => W(t) ? t.value = C : t = C),
|
515
|
-
|
498
|
+
j
|
516
499
|
],
|
517
|
-
placeholder:
|
500
|
+
placeholder: c(_),
|
518
501
|
onInput: r,
|
519
|
-
onFocus:
|
502
|
+
onFocus: u,
|
520
503
|
onBlur: b,
|
521
504
|
class: "w-100 pd-small p-big"
|
522
505
|
}, null, 8, ["field", "placeholder"]),
|
523
|
-
|
506
|
+
d.action ? (i(), p("button", {
|
524
507
|
key: 0,
|
525
|
-
onClick:
|
508
|
+
onClick: O,
|
526
509
|
class: "w-min hover_bg-white hover-t-black t-black bg-main button",
|
527
|
-
innerHTML:
|
528
|
-
}, null, 8,
|
510
|
+
innerHTML: d.action
|
511
|
+
}, null, 8, mt)) : v("", !0)
|
529
512
|
]));
|
530
513
|
}
|
531
514
|
};
|
532
|
-
const
|
515
|
+
const _t = { class: "pd-thin" }, ht = { class: "o-hidden t-black bg-main pd-big radius-big" }, ft = /* @__PURE__ */ o("header", { class: "t-center z-index-1 mn-big" }, [
|
533
516
|
/* @__PURE__ */ o("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
|
534
517
|
/* @__PURE__ */ o("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
|
535
|
-
], -1),
|
518
|
+
], -1), vt = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, bt = /* @__PURE__ */ o("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
|
536
519
|
/* @__PURE__ */ o("div", { class: "spiral" })
|
537
|
-
], -1),
|
520
|
+
], -1), Qt = {
|
538
521
|
__name: "SubscribeNewsletter",
|
539
|
-
setup(
|
522
|
+
setup(d) {
|
540
523
|
let n = g("");
|
541
|
-
return (s, e) => (i(),
|
542
|
-
o("div",
|
543
|
-
|
544
|
-
o("div",
|
545
|
-
h(
|
546
|
-
input:
|
524
|
+
return (s, e) => (i(), p("section", _t, [
|
525
|
+
o("div", ht, [
|
526
|
+
ft,
|
527
|
+
o("div", vt, [
|
528
|
+
h(gt, {
|
529
|
+
input: c(n),
|
547
530
|
typingSpeed: 75,
|
548
531
|
loopTyping: !1,
|
549
532
|
enableTyping: !1,
|
@@ -554,14 +537,14 @@ const ft = { class: "pd-thin" }, vt = { class: "o-hidden t-black bg-main pd-big
|
|
554
537
|
class: "mn-l-auto mn-r-auto bg-white t-black w-50"
|
555
538
|
}, null, 8, ["input"])
|
556
539
|
]),
|
557
|
-
|
540
|
+
bt
|
558
541
|
])
|
559
542
|
]));
|
560
543
|
}
|
561
544
|
};
|
562
|
-
const
|
545
|
+
const yt = { class: "container container-joinus" }, wt = { class: "content" }, xt = { class: "h0 mn-big" }, $t = /* @__PURE__ */ o("p", { class: "w-m-33r t-center mn-small p-big" }, "Together, we're shaping the future of the globals cannabis community.", -1), kt = /* @__PURE__ */ o("button", { class: "bg-black t-white button" }, "Join Now", -1), Wt = {
|
563
546
|
__name: "JoinUs",
|
564
|
-
setup(
|
547
|
+
setup(d) {
|
565
548
|
const n = g(120950), s = g([
|
566
549
|
"/assets/images/reviews/01.png",
|
567
550
|
"/assets/images/reviews/02.png",
|
@@ -587,25 +570,25 @@ const xt = { class: "container container-joinus" }, $t = { class: "content" }, k
|
|
587
570
|
s.value.forEach((t, _) => {
|
588
571
|
let l = document.createElement("img");
|
589
572
|
l.src = t, l.classList.add("floating-image");
|
590
|
-
let
|
591
|
-
l.style.left = `${
|
573
|
+
let f = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], P = (Math.random() - 0.5) * 2 * 10;
|
574
|
+
l.style.left = `${f + P}%`, l.style.animationDuration = `${Math.random() * (a.maxDuration - a.minDuration) + a.minDuration}s`, document.querySelector(".container").appendChild(l), l.addEventListener("animationiteration", () => {
|
592
575
|
const $ = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], S = (Math.random() - 0.5) * 2 * 10;
|
593
576
|
l.style.left = `${$ + S}%`;
|
594
577
|
});
|
595
578
|
});
|
596
579
|
};
|
597
|
-
return (t, _) => (i(),
|
598
|
-
o("div",
|
599
|
-
o("span",
|
600
|
-
|
601
|
-
|
580
|
+
return (t, _) => (i(), p("div", yt, [
|
581
|
+
o("div", wt, [
|
582
|
+
o("span", xt, N(n.value.toLocaleString()), 1),
|
583
|
+
$t,
|
584
|
+
kt
|
602
585
|
])
|
603
586
|
]));
|
604
587
|
}
|
605
588
|
};
|
606
|
-
const
|
589
|
+
const Pt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Ct = { class: "community-feed" }, Tt = /* @__PURE__ */ Pt(() => /* @__PURE__ */ o("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), St = { class: "grid-container" }, Bt = {
|
607
590
|
__name: "HotPosts",
|
608
|
-
async setup(
|
591
|
+
async setup(d) {
|
609
592
|
let n, s;
|
610
593
|
const e = g([]), a = async () => {
|
611
594
|
const t = await L({ skip: 0, limit: 7, period: "year" });
|
@@ -629,22 +612,22 @@ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "comm
|
|
629
612
|
return "";
|
630
613
|
}
|
631
614
|
};
|
632
|
-
return (t, _) => (i(),
|
633
|
-
|
634
|
-
o("div",
|
635
|
-
(i(!0),
|
615
|
+
return (t, _) => (i(), p("section", Ct, [
|
616
|
+
Tt,
|
617
|
+
o("div", St, [
|
618
|
+
(i(!0), p(D, null, U(e.value, (l, f) => (i(), I(K, {
|
636
619
|
blogpost: l,
|
637
620
|
owner: w.user._id,
|
638
|
-
key:
|
639
|
-
class: B(m(
|
621
|
+
key: f,
|
622
|
+
class: B(m(f))
|
640
623
|
}, null, 8, ["blogpost", "owner", "class"]))), 128))
|
641
624
|
])
|
642
625
|
]));
|
643
626
|
}
|
644
|
-
},
|
627
|
+
}, Kt = /* @__PURE__ */ X(Bt, [["__scopeId", "data-v-18db0d1b"]]), Xt = [
|
645
628
|
{
|
646
629
|
path: "community",
|
647
|
-
component:
|
630
|
+
component: Ie,
|
648
631
|
meta: {
|
649
632
|
title: {
|
650
633
|
en: "Community",
|
@@ -654,7 +637,7 @@ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "comm
|
|
654
637
|
children: [{
|
655
638
|
path: ":category?",
|
656
639
|
name: "Blog",
|
657
|
-
component: () => Promise.resolve().then(() =>
|
640
|
+
component: () => Promise.resolve().then(() => Ye)
|
658
641
|
}]
|
659
642
|
},
|
660
643
|
{
|
@@ -678,7 +661,7 @@ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "comm
|
|
678
661
|
ru: "ΠΠΎΡΡ"
|
679
662
|
}
|
680
663
|
},
|
681
|
-
component: () => Promise.resolve().then(() =>
|
664
|
+
component: () => Promise.resolve().then(() => Ke)
|
682
665
|
},
|
683
666
|
{
|
684
667
|
path: "community/posts/:url/edit",
|
@@ -694,19 +677,19 @@ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "comm
|
|
694
677
|
}
|
695
678
|
];
|
696
679
|
export {
|
697
|
-
|
698
|
-
|
699
|
-
|
680
|
+
Gt as Activity,
|
681
|
+
Xe as Blog,
|
682
|
+
We as BlogPost,
|
700
683
|
K as CardBlogpost,
|
701
684
|
_e as Comments,
|
702
|
-
|
703
|
-
|
685
|
+
Ie as Community,
|
686
|
+
Ee as CreateBlogPost,
|
704
687
|
ce as Feed,
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
688
|
+
es as FooterBlogpost,
|
689
|
+
Kt as HotPosts,
|
690
|
+
Wt as JoinUs,
|
691
|
+
Qt as SubscribeNewsletter,
|
692
|
+
Xt as blogpostsRoutes,
|
693
|
+
ts as blogpostsStore,
|
694
|
+
ss as reactionsStore
|
712
695
|
};
|