@ozdao/prometheus-framework 0.1.32 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Chips-41cd6570.mjs +203 -0
- package/dist/Chips-c3d7341e.js +1 -0
- package/dist/EULA-e05236af.mjs +4210 -0
- package/dist/EULA-f5fba925.js +1 -0
- package/dist/Feed-046852fc.js +1 -0
- package/dist/Feed-4efa2a93.mjs +394 -0
- package/dist/Feed-acfbb839.mjs +371 -0
- package/dist/Feed-e6e84388.js +1 -0
- package/dist/Image-93c3a270.mjs +480 -0
- package/dist/Image-de94b883.js +9 -0
- package/dist/Product-1892b14a.js +7 -0
- package/dist/Product-d3f1d10a.mjs +844 -0
- package/dist/ProductEdit-8e779ed8.js +1 -0
- package/dist/ProductEdit-ebcc3f98.mjs +306 -0
- package/dist/ProfileBlogposts-8c10a505.js +1 -0
- package/dist/ProfileBlogposts-a2f7cd4c.mjs +70 -0
- package/dist/ProfileEvents-47409c9e.mjs +62 -0
- package/dist/ProfileEvents-db12cf78.js +1 -0
- package/dist/auth.server.js +4 -4
- package/dist/auth.server.mjs +4 -4
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +217 -241
- package/dist/community.server.js +2 -2
- package/dist/community.server.mjs +2 -2
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +4 -4
- package/dist/events.server.js +361 -224
- package/dist/events.server.mjs +361 -224
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +2 -0
- package/dist/organizations.client-76c3660a.mjs +3072 -0
- package/dist/organizations.client-ddbf8809.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +4 -4
- package/dist/organizations.server.js +4 -4
- package/dist/organizations.server.mjs +4 -4
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +2 -2
- package/dist/users.server.js +2 -2
- package/dist/users.server.mjs +2 -2
- package/package.json +1 -1
- package/src/components/CardHeader/CardHeader.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +2 -4
- package/src/modules/community/components/sections/Feed.vue +44 -39
- package/src/modules/community/components/sections/HotPosts.vue +9 -56
- package/src/modules/events/components/blocks/CardEvent.vue +0 -2
- package/src/modules/events/controllers/events.controller.js +55 -265
- package/src/modules/events/controllers/utils/queryProcessor.js +118 -0
- package/src/modules/events/models/event.new.model.js +76 -0
- package/src/modules/files/middlewares/server/middlewareMulter.js +1 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +228 -0
- package/src/modules/globals/models/common.schema.js +14 -0
- package/src/modules/globals/models/engagement.schema.js +10 -0
- package/src/modules/globals/models/metadata.schema.js +15 -0
- package/src/modules/globals/models/ownership.schema.js +34 -0
- package/src/modules/globals/utils/seo-friendly-url.js +28 -0
- package/src/modules/legal/components/pages/legal/EULA.vue +0 -3
- package/src/modules/products/controllers/categories.controller.js +3 -0
- package/src/modules/products/models/category.model.js +63 -13
- package/src/modules/products/models/leftover.model.js +38 -17
- package/src/modules/products/models/modification.model.js +31 -14
- package/src/modules/products/models/product.model.js +37 -38
- package/src/modules/products/products.server.js +11 -1
package/dist/community.client.js
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
import { resolveComponent as Y, openBlock as i, createElementBlock as
|
2
|
-
import { useRoute as z, useRouter as
|
3
|
-
import { S as
|
4
|
-
import { s as M, r as
|
5
|
-
import { e as
|
1
|
+
import { resolveComponent as Y, openBlock as i, createElementBlock as m, createElementVNode as o, createVNode as g, normalizeClass as B, unref as c, createCommentVNode as f, withCtx as k, Transition as J, createBlock as I, resolveDynamicComponent as G, ref as _, onMounted as F, computed as L, createTextVNode as T, createStaticVNode as Z, TransitionGroup as A, Fragment as E, renderList as V, mergeProps as ee, watch as te, toDisplayString as N, watchEffect as se, isRef as Q, pushScopeId as ae, popScopeId as oe } from "vue";
|
2
|
+
import { useRoute as z, useRouter as D } from "vue-router";
|
3
|
+
import { S as ne } from "./Select-11ddabf5.mjs";
|
4
|
+
import { s as M, r as W, c as le, u as H, a as q, b as re, d as ie, _ as K } from "./Feed-4efa2a93.mjs";
|
5
|
+
import { e as ss, f as as } from "./Feed-4efa2a93.mjs";
|
6
6
|
import { s as w } from "./auth-98fe3efb.mjs";
|
7
|
-
import { _ as
|
8
|
-
import { b as
|
9
|
-
import { _ as
|
10
|
-
import { _ as
|
11
|
-
import { a as
|
12
|
-
import { _ as
|
7
|
+
import { _ as ue, a as ce, b as pe, c as me } from "./Image-93c3a270.mjs";
|
8
|
+
import { b as de } from "./IconEdit-680dc269.mjs";
|
9
|
+
import { _ as ge, S as _e, C as he } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs";
|
10
|
+
import { _ as fe, F as ve } from "./Button-c59d387c.mjs";
|
11
|
+
import { a as be } from "./organizations-ea9de495.mjs";
|
12
|
+
import { _ as ye } from "./EmptyState-34d85f10.mjs";
|
13
13
|
import { _ as X } from "./_plugin-vue_export-helper-dad06003.mjs";
|
14
|
-
import { _ as
|
15
|
-
import { useI18n as
|
14
|
+
import { _ as we } from "./Publics-b1cbfd97.mjs";
|
15
|
+
import { useI18n as xe } from "vue-i18n";
|
16
16
|
import "./globals-96ba60e4.mjs";
|
17
|
-
import { r as
|
17
|
+
import { r as ns } from "./Chips-41cd6570.mjs";
|
18
18
|
import "./index-a661083c.mjs";
|
19
19
|
import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
20
20
|
import "./reports-79cd9459.mjs";
|
@@ -22,17 +22,17 @@ import "./click-outside-6101836c.mjs";
|
|
22
22
|
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
23
23
|
import "./CardOrganization-26714a5e.mjs";
|
24
24
|
import "./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs";
|
25
|
-
const
|
25
|
+
const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Pe = { class: "flex-v-center flex-nowrap flex t-left" }, Ce = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), Te = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, Se = { class: "" }, Be = {
|
26
26
|
__name: "Community",
|
27
|
-
setup(
|
28
|
-
const n = z(), s =
|
27
|
+
setup(p) {
|
28
|
+
const n = z(), s = D();
|
29
29
|
return (e, a) => {
|
30
|
-
const
|
31
|
-
return i(),
|
32
|
-
o("header",
|
33
|
-
o("h2",
|
34
|
-
|
35
|
-
|
30
|
+
const d = Y("router-view");
|
31
|
+
return i(), m("div", $e, [
|
32
|
+
o("header", ke, [
|
33
|
+
o("h2", Pe, [
|
34
|
+
Ce,
|
35
|
+
g(ne, {
|
36
36
|
options: ["today", "week", "month", "year"],
|
37
37
|
select: M.filter.period,
|
38
38
|
"onUpdate:select": a[0] || (a[0] = (t) => M.filter.period = t),
|
@@ -41,7 +41,7 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
41
41
|
}, null, 8, ["select"])
|
42
42
|
])
|
43
43
|
]),
|
44
|
-
o("ul",
|
44
|
+
o("ul", Te, [
|
45
45
|
o("li", {
|
46
46
|
class: B([{ "t-white bg-black": c(n).params.category === "featured" }, "t-medium pd-thin radius-small"]),
|
47
47
|
onClick: a[1] || (a[1] = (t) => c(s).push({ name: "Blog" }))
|
@@ -54,23 +54,23 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
54
54
|
class: B([{ "t-white bg-black": c(n).params.category === "new" }, "t-medium pd-thin radius-small"]),
|
55
55
|
onClick: a[3] || (a[3] = (t) => c(s).push({ name: "Blog", params: { category: "new" } }))
|
56
56
|
}, "🆕 New", 2),
|
57
|
-
w.user._id ? (i(),
|
57
|
+
w.user._id ? (i(), m("li", {
|
58
58
|
key: 0,
|
59
59
|
class: B([{ "t-white bg-black": c(n).params.category === "following" }, "t-medium pd-thin radius-small"]),
|
60
60
|
onClick: a[4] || (a[4] = (t) => c(s).push({ name: "Blog", params: { category: "following" } }))
|
61
|
-
}, "👥 Following", 2)) :
|
61
|
+
}, "👥 Following", 2)) : f("", !0)
|
62
62
|
]),
|
63
|
-
o("section",
|
64
|
-
|
65
|
-
default: k(({ Component: t, route:
|
66
|
-
|
63
|
+
o("section", Se, [
|
64
|
+
g(d, null, {
|
65
|
+
default: k(({ Component: t, route: h }) => [
|
66
|
+
g(J, {
|
67
67
|
name: "scaleIn",
|
68
68
|
mode: "out-in"
|
69
69
|
}, {
|
70
70
|
default: k(() => [
|
71
|
-
(i(), I(
|
71
|
+
(i(), I(G(t), {
|
72
72
|
ref: "page",
|
73
|
-
key:
|
73
|
+
key: h.query
|
74
74
|
}))
|
75
75
|
]),
|
76
76
|
_: 2
|
@@ -82,30 +82,30 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
82
82
|
]);
|
83
83
|
};
|
84
84
|
}
|
85
|
-
},
|
85
|
+
}, Ie = { class: "pd-thin" }, Me = {
|
86
86
|
key: 0,
|
87
87
|
class: "h-100 w-100 bg-grey pd-big radius-big"
|
88
|
-
},
|
88
|
+
}, Fe = { class: "w-full h-full" }, Ne = {
|
89
89
|
key: 1,
|
90
90
|
class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
|
91
|
-
},
|
91
|
+
}, ze = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Oe = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Final Touches", -1), je = /* @__PURE__ */ o("h5", { class: "mn-thin" }, "Add to public:", -1), De = {
|
92
92
|
key: 0,
|
93
93
|
class: "mn-thin"
|
94
|
-
},
|
94
|
+
}, Ue = {
|
95
95
|
key: 1,
|
96
96
|
class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
|
97
97
|
}, Le = {
|
98
98
|
__name: "CreateBlogPost",
|
99
|
-
setup(
|
100
|
-
const n = z(), s =
|
101
|
-
let e =
|
102
|
-
const
|
99
|
+
setup(p) {
|
100
|
+
const n = z(), s = D();
|
101
|
+
let e = _(null), a = _(null);
|
102
|
+
const d = _([]), t = _(null);
|
103
103
|
F(async () => {
|
104
104
|
if (n.params.url) {
|
105
|
-
const u = await
|
105
|
+
const u = await W({ user: w.user._id, url: n.params.url });
|
106
106
|
e.value = u.pop();
|
107
107
|
} else
|
108
|
-
|
108
|
+
le(), e.value = M.current;
|
109
109
|
e.value.owner || (e.value.owner = {
|
110
110
|
target: w.user._id,
|
111
111
|
type: "user"
|
@@ -118,7 +118,7 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
118
118
|
name: e.value.owner.target.profile.name,
|
119
119
|
photo: e.value.owner.target.profile.photo
|
120
120
|
});
|
121
|
-
const r = await
|
121
|
+
const r = await be.read({
|
122
122
|
user: w.user._id,
|
123
123
|
postable: w.user._id,
|
124
124
|
limit: 100
|
@@ -129,27 +129,27 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
129
129
|
photo: u.profile.photo
|
130
130
|
}));
|
131
131
|
});
|
132
|
-
const
|
132
|
+
const h = _(""), l = _([
|
133
133
|
{ text: "story" },
|
134
134
|
{ text: "news" },
|
135
135
|
{ text: "guide" },
|
136
136
|
{ text: "discussion" },
|
137
137
|
{ text: "photos" }
|
138
138
|
]);
|
139
|
-
|
140
|
-
const
|
139
|
+
L(() => l.value.filter((r) => r.text.toLowerCase().includes(h.value.toLowerCase()))), L(() => l.value.filter((r) => !d.value.some((u) => u.text === r.text)));
|
140
|
+
const v = _(!1);
|
141
141
|
function P() {
|
142
|
-
|
142
|
+
v.value = !0;
|
143
143
|
}
|
144
144
|
function $() {
|
145
|
-
|
145
|
+
v.value = !1;
|
146
146
|
}
|
147
147
|
function S() {
|
148
|
-
|
148
|
+
d.value.length > 0 && d.value.map((r) => r.text), e.value.status = "draft", n.params.url ? H(e.value).then((r) => {
|
149
149
|
s.push({ name: "BlogPost", params: { url: r.url } });
|
150
150
|
}).catch((r) => {
|
151
151
|
console.log(r);
|
152
|
-
}) :
|
152
|
+
}) : q(e.value).then((r) => {
|
153
153
|
s.push({ name: "BlogPost", params: { url: r.url } });
|
154
154
|
}).catch((r) => {
|
155
155
|
console.log(r);
|
@@ -159,45 +159,45 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
159
159
|
t.value && (e.value.owner = {
|
160
160
|
target: t.value._id,
|
161
161
|
type: "organization"
|
162
|
-
}), t.value || (e.value.creator.hidden = !1), t.value || (e.value.organization = e.value.creator), e.value.status = "published", console.log(e.value), n.params.url ?
|
162
|
+
}), t.value || (e.value.creator.hidden = !1), t.value || (e.value.organization = e.value.creator), e.value.status = "published", console.log(e.value), n.params.url ? H(e.value).then((r) => {
|
163
163
|
s.push({ name: "BlogPost", params: { url: r.url } });
|
164
164
|
}).catch((r) => {
|
165
165
|
console.log(r);
|
166
|
-
}) :
|
166
|
+
}) : q(e.value).then((r) => {
|
167
167
|
s.push({ name: "BlogPost", params: { url: r.url } });
|
168
168
|
}).catch((r) => {
|
169
169
|
console.log(r);
|
170
170
|
});
|
171
171
|
}
|
172
172
|
function j() {
|
173
|
-
confirm("Are you sure you want to delete this post?") &&
|
173
|
+
confirm("Are you sure you want to delete this post?") && re(e.value._id).then((r) => {
|
174
174
|
s.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
|
175
175
|
}).catch((r) => {
|
176
176
|
console.log(r);
|
177
177
|
});
|
178
178
|
}
|
179
|
-
return (r, u) => (i(),
|
180
|
-
c(e) ? (i(),
|
181
|
-
o("div",
|
182
|
-
|
179
|
+
return (r, u) => (i(), m("article", Ie, [
|
180
|
+
c(e) ? (i(), m("section", Me, [
|
181
|
+
o("div", Fe, [
|
182
|
+
g(ue, {
|
183
183
|
prop: c(e),
|
184
184
|
content: "name",
|
185
185
|
placeholder: "Enter post title",
|
186
186
|
class: "h2"
|
187
187
|
}, null, 8, ["prop"])
|
188
188
|
]),
|
189
|
-
|
189
|
+
g(ce, {
|
190
190
|
content: c(e).content,
|
191
191
|
onUpdate: u[0] || (u[0] = (b) => c(e).content = b)
|
192
192
|
}, null, 8, ["content"])
|
193
|
-
])) :
|
194
|
-
c(e) ? (i(),
|
195
|
-
o("div",
|
196
|
-
c(n).params.url ? (i(),
|
193
|
+
])) : f("", !0),
|
194
|
+
c(e) ? (i(), m("section", Ne, [
|
195
|
+
o("div", ze, [
|
196
|
+
c(n).params.url ? (i(), m("a", {
|
197
197
|
key: 0,
|
198
198
|
onClick: u[1] || (u[1] = (b) => j()),
|
199
199
|
class: "mn-r-auto bg-red t-white t-black button"
|
200
|
-
}, "Delete")) :
|
200
|
+
}, "Delete")) : f("", !0),
|
201
201
|
o("a", {
|
202
202
|
onClick: u[2] || (u[2] = (b) => S()),
|
203
203
|
class: "mn-l-auto bg-white t-black button"
|
@@ -207,21 +207,21 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
207
207
|
class: "mn-l-thin bg-black t-white button"
|
208
208
|
}, "Publish")
|
209
209
|
])
|
210
|
-
])) :
|
211
|
-
|
210
|
+
])) : f("", !0),
|
211
|
+
g(de, {
|
212
212
|
title: "Добавить участника",
|
213
213
|
onClosePopup: $,
|
214
|
-
isPopupOpen:
|
214
|
+
isPopupOpen: v.value,
|
215
215
|
class: "w-m-33r t-left pd-big bg-white radius-big"
|
216
216
|
}, {
|
217
217
|
default: k(() => [
|
218
|
-
|
219
|
-
|
218
|
+
Oe,
|
219
|
+
g(ge, {
|
220
220
|
onTagsChanged: u[4] || (u[4] = (b) => c(e).tags = b),
|
221
221
|
tags: c(e).tags
|
222
222
|
}, null, 8, ["tags"]),
|
223
|
-
|
224
|
-
|
223
|
+
je,
|
224
|
+
g(_e, {
|
225
225
|
modelValue: t.value,
|
226
226
|
"onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
|
227
227
|
options: c(a),
|
@@ -232,17 +232,17 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
232
232
|
"track-by": "_id",
|
233
233
|
class: "mn-medium bg-grey radius-medium pd-small"
|
234
234
|
}, null, 8, ["modelValue", "options"]),
|
235
|
-
t.value ? (i(),
|
236
|
-
t.value ? (i(),
|
237
|
-
|
235
|
+
t.value ? (i(), m("h5", De, "Options:")) : f("", !0),
|
236
|
+
t.value ? (i(), m("div", Ue, [
|
237
|
+
g(he, {
|
238
238
|
label: "Hide Author",
|
239
239
|
radio: c(e).creator.hidden,
|
240
240
|
"onUpdate:radio": u[6] || (u[6] = (b) => c(e).creator.hidden = b),
|
241
241
|
name: "prices",
|
242
242
|
class: "w-100"
|
243
243
|
}, null, 8, ["radio"])
|
244
|
-
])) :
|
245
|
-
|
244
|
+
])) : f("", !0),
|
245
|
+
g(fe, {
|
246
246
|
submit: O,
|
247
247
|
callback: r.redirectTo,
|
248
248
|
class: "w-100 bg-black t-white"
|
@@ -257,26 +257,26 @@ const ke = { class: "min-h-100vh pd-thin" }, Pe = { class: "mn-thin flex-v-cente
|
|
257
257
|
}, 8, ["isPopupOpen"])
|
258
258
|
]));
|
259
259
|
}
|
260
|
-
},
|
260
|
+
}, R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
261
261
|
__proto__: null,
|
262
262
|
default: Le
|
263
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
263
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = {}, Ee = {
|
264
264
|
width: "100%",
|
265
265
|
height: "20rem",
|
266
266
|
xmlns: "http://www.w3.org/2000/svg"
|
267
|
-
},
|
268
|
-
|
267
|
+
}, Ve = /* @__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), He = [
|
268
|
+
Ve
|
269
269
|
];
|
270
|
-
function
|
271
|
-
return i(),
|
270
|
+
function qe(p, n) {
|
271
|
+
return i(), m("svg", Ee, He);
|
272
272
|
}
|
273
|
-
const
|
273
|
+
const Re = /* @__PURE__ */ X(Ae, [["render", qe]]), Je = { class: "pd-thin" }, Ge = {
|
274
274
|
__name: "BlogPost",
|
275
|
-
setup(
|
276
|
-
const n = z(), s =
|
275
|
+
setup(p) {
|
276
|
+
const n = z(), s = _(null), e = _(!0);
|
277
277
|
F(async () => {
|
278
278
|
e.value = !0;
|
279
|
-
const t = await
|
279
|
+
const t = await W({ user: w.user._id, url: n.params.url });
|
280
280
|
s.value = t[0], e.value = !1;
|
281
281
|
});
|
282
282
|
const a = {
|
@@ -286,40 +286,40 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "pd-thin" }, Q
|
|
286
286
|
Caption: "p",
|
287
287
|
ImageUpload: me
|
288
288
|
};
|
289
|
-
function
|
289
|
+
function d(t) {
|
290
290
|
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 } : {};
|
291
291
|
}
|
292
|
-
return (t,
|
293
|
-
|
292
|
+
return (t, h) => (i(), m("section", Je, [
|
293
|
+
g(A, {
|
294
294
|
tag: "ul",
|
295
295
|
name: "fade",
|
296
296
|
class: "o-hidden bg-grey radius-big"
|
297
297
|
}, {
|
298
298
|
default: k(() => [
|
299
|
-
e.value ? (i(),
|
299
|
+
e.value ? (i(), m(E, { key: 0 }, V(3, (l) => g(Re, { key: l })), 64)) : f("", !0)
|
300
300
|
]),
|
301
301
|
_: 1
|
302
302
|
}),
|
303
|
-
|
303
|
+
g(J, { name: "fade" }, {
|
304
304
|
default: k(() => [
|
305
|
-
!e.value && !s.value ? (i(), I(
|
305
|
+
!e.value && !s.value ? (i(), I(ye, {
|
306
306
|
key: 0,
|
307
307
|
title: "No Blogpost Found",
|
308
308
|
description: "Currently, there are no blogposts available. Please check back later.",
|
309
309
|
class: "pd-medium mn-thin bg-grey radius-big"
|
310
|
-
})) :
|
310
|
+
})) : f("", !0)
|
311
311
|
]),
|
312
312
|
_: 1
|
313
313
|
}),
|
314
|
-
|
314
|
+
g(A, {
|
315
315
|
tag: "ul",
|
316
316
|
name: "fade",
|
317
317
|
class: "container"
|
318
318
|
}, {
|
319
319
|
default: k(() => [
|
320
|
-
!e.value && s.value ? (i(), I(
|
320
|
+
!e.value && s.value ? (i(), I(ie, {
|
321
321
|
key: 0,
|
322
|
-
onClick:
|
322
|
+
onClick: h[0] || (h[0] = (l) => t.$router.push({ name: "Blogpost", params: { url: s.value.url } })),
|
323
323
|
blogpost: s.value,
|
324
324
|
user: w.user._id,
|
325
325
|
type: "blogpostPage",
|
@@ -329,37 +329,37 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "pd-thin" }, Q
|
|
329
329
|
}, {
|
330
330
|
default: k(() => [
|
331
331
|
o("section", null, [
|
332
|
-
s.value && s.value.content ? (i(!0),
|
333
|
-
key:
|
334
|
-
index:
|
332
|
+
s.value && s.value.content ? (i(!0), m(E, { key: 0 }, V(s.value.content, (l, v) => (i(), I(G(a[l.type]), ee({
|
333
|
+
key: v,
|
334
|
+
index: v,
|
335
335
|
component: l,
|
336
336
|
prop: l,
|
337
337
|
class: l.class,
|
338
338
|
content: "content"
|
339
|
-
},
|
339
|
+
}, d(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : f("", !0)
|
340
340
|
])
|
341
341
|
]),
|
342
342
|
_: 1
|
343
|
-
}, 8, ["blogpost", "user", "class"])) :
|
344
|
-
|
345
|
-
!e.value && s.value ? (i(), I(
|
343
|
+
}, 8, ["blogpost", "user", "class"])) : f("", !0),
|
344
|
+
g(we, { class: "mn-small" }),
|
345
|
+
!e.value && s.value ? (i(), I(pe, {
|
346
346
|
key: 1,
|
347
347
|
type: "blogpost",
|
348
348
|
target: s.value._id,
|
349
349
|
owner: w.user._id
|
350
|
-
}, null, 8, ["target", "owner"])) :
|
350
|
+
}, null, 8, ["target", "owner"])) : f("", !0)
|
351
351
|
]),
|
352
352
|
_: 1
|
353
353
|
})
|
354
354
|
]));
|
355
355
|
}
|
356
|
-
},
|
356
|
+
}, Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
357
357
|
__proto__: null,
|
358
|
-
default:
|
359
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
358
|
+
default: Ge
|
359
|
+
}, Symbol.toStringTag, { value: "Module" })), We = {
|
360
360
|
__name: "Blog",
|
361
|
-
setup(
|
362
|
-
const n = z(), s =
|
361
|
+
setup(p) {
|
362
|
+
const n = z(), s = D();
|
363
363
|
return n.params.category || (n.params.category = "featured"), F(() => {
|
364
364
|
if (n.query) {
|
365
365
|
const e = n.query, a = {
|
@@ -369,70 +369,70 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "pd-thin" }, Q
|
|
369
369
|
M.filter = a;
|
370
370
|
}
|
371
371
|
}), te(() => M.filter, (e, a) => {
|
372
|
-
const
|
373
|
-
Object.keys(a).forEach((
|
374
|
-
|
372
|
+
const d = { ...n.query };
|
373
|
+
Object.keys(a).forEach((h) => {
|
374
|
+
d[h] && delete d[h];
|
375
375
|
});
|
376
376
|
const t = Object.fromEntries(
|
377
|
-
Object.entries(e).filter(([
|
377
|
+
Object.entries(e).filter(([h, l]) => Array.isArray(l) && l.length > 0 || typeof l == "string" && l).map(([h, l]) => [h, Array.isArray(l) ? l.join(",") : l])
|
378
378
|
);
|
379
|
-
Object.assign(
|
380
|
-
}, { deep: !0 }), (e, a) => (i(),
|
381
|
-
|
379
|
+
Object.assign(d, t), s.replace({ query: d });
|
380
|
+
}, { deep: !0 }), (e, a) => (i(), m("section", null, [
|
381
|
+
g(K, {
|
382
382
|
category: c(n).params.category,
|
383
383
|
user: w.user._id,
|
384
384
|
period: c(n).query.period
|
385
385
|
}, null, 8, ["category", "user", "period"])
|
386
386
|
]));
|
387
387
|
}
|
388
|
-
},
|
388
|
+
}, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
389
389
|
__proto__: null,
|
390
|
-
default:
|
391
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
390
|
+
default: We
|
391
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = { class: "w-100 cols-4 t-left flex-nowrap flex" }, Ye = {
|
392
392
|
key: 0,
|
393
393
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
394
|
-
},
|
394
|
+
}, Ze = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), et = { class: "t-semi uppercase" }, tt = /* @__PURE__ */ o("br", null, null, -1), st = {
|
395
395
|
key: 1,
|
396
396
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
397
|
-
},
|
397
|
+
}, at = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "💬", -1), ot = { class: "t-semi uppercase" }, nt = /* @__PURE__ */ o("br", null, null, -1), lt = {
|
398
398
|
key: 2,
|
399
399
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
400
|
-
},
|
400
|
+
}, rt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), it = { class: "t-semi uppercase" }, ut = /* @__PURE__ */ o("br", null, null, -1), Wt = {
|
401
401
|
__name: "Activity",
|
402
402
|
props: {
|
403
403
|
likes: Number,
|
404
404
|
comments: Number,
|
405
405
|
subscriptions: Number
|
406
406
|
},
|
407
|
-
setup(
|
408
|
-
return (n, s) => (i(),
|
409
|
-
|
410
|
-
|
411
|
-
o("span",
|
412
|
-
T(N(
|
413
|
-
|
407
|
+
setup(p) {
|
408
|
+
return (n, s) => (i(), m("section", Xe, [
|
409
|
+
p.likes ? (i(), m("div", Ye, [
|
410
|
+
Ze,
|
411
|
+
o("span", et, [
|
412
|
+
T(N(p.likes), 1),
|
413
|
+
tt,
|
414
414
|
T("likes")
|
415
415
|
])
|
416
|
-
])) :
|
417
|
-
|
418
|
-
|
419
|
-
o("span",
|
420
|
-
T(N(
|
421
|
-
|
416
|
+
])) : f("", !0),
|
417
|
+
p.comments ? (i(), m("div", st, [
|
418
|
+
at,
|
419
|
+
o("span", ot, [
|
420
|
+
T(N(p.comments), 1),
|
421
|
+
nt,
|
422
422
|
T("comments")
|
423
423
|
])
|
424
|
-
])) :
|
425
|
-
|
426
|
-
|
427
|
-
o("span",
|
428
|
-
T(N(
|
429
|
-
|
424
|
+
])) : f("", !0),
|
425
|
+
p.subscriptions ? (i(), m("div", lt, [
|
426
|
+
rt,
|
427
|
+
o("span", it, [
|
428
|
+
T(N(p.subscriptions), 1),
|
429
|
+
ut,
|
430
430
|
T("subscriptions")
|
431
431
|
])
|
432
|
-
])) :
|
432
|
+
])) : f("", !0)
|
433
433
|
]));
|
434
434
|
}
|
435
|
-
},
|
435
|
+
}, ct = { class: "pd-thin radius-extra flex-nowrap flex" }, pt = ["innerHTML"], mt = {
|
436
436
|
__name: "FieldBig",
|
437
437
|
props: {
|
438
438
|
input: String,
|
@@ -464,9 +464,9 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "pd-thin" }, Q
|
|
464
464
|
}
|
465
465
|
},
|
466
466
|
emits: ["update:input", "action"],
|
467
|
-
setup(
|
468
|
-
const s =
|
469
|
-
let
|
467
|
+
setup(p, { emit: n }) {
|
468
|
+
const s = p, { t: e, locale: a } = xe();
|
469
|
+
let d = _(0), t = _(s.input), h = _(s.placeholder), l = _(s.enableTyping), v = _(null), P = _(""), $ = _(!0), S = null;
|
470
470
|
function O() {
|
471
471
|
n("action");
|
472
472
|
}
|
@@ -474,84 +474,84 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "pd-thin" }, Q
|
|
474
474
|
n("update:input", x), P.value = x;
|
475
475
|
}
|
476
476
|
function r() {
|
477
|
-
|
477
|
+
d.value = (d.value + 1) % s.placeholderTexts[a.value].length;
|
478
478
|
}
|
479
479
|
function u() {
|
480
|
-
l.value = !1, clearInterval(
|
480
|
+
l.value = !1, clearInterval(v.value), h.value = s.placeholder, P.value || (t.value = "");
|
481
481
|
}
|
482
482
|
function b() {
|
483
|
-
!P.value && s.enableTyping && (l.value = !0,
|
483
|
+
!P.value && s.enableTyping && (l.value = !0, h.value = "", U());
|
484
484
|
}
|
485
|
-
function
|
486
|
-
let x = s.placeholderTexts[a.value][
|
485
|
+
function U() {
|
486
|
+
let x = s.placeholderTexts[a.value][d.value], y = 0, C = !1;
|
487
487
|
S = setInterval(() => {
|
488
488
|
$.value = !$.value;
|
489
|
-
}, 200),
|
489
|
+
}, 200), v.value = setInterval(() => {
|
490
490
|
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(() => {
|
491
491
|
C = !0, t.value = x.substring(0, y);
|
492
|
-
}, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[a.value][
|
492
|
+
}, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[a.value][d.value]));
|
493
493
|
}, s.typingSpeed);
|
494
494
|
}
|
495
495
|
return F(() => {
|
496
|
-
s.enableTyping &&
|
496
|
+
s.enableTyping && U();
|
497
497
|
}), se(() => {
|
498
|
-
l.value || (clearInterval(
|
499
|
-
}), (x, y) => (i(),
|
500
|
-
|
498
|
+
l.value || (clearInterval(v.value), clearInterval(S));
|
499
|
+
}), (x, y) => (i(), m("div", ct, [
|
500
|
+
g(ve, {
|
501
501
|
field: c(t),
|
502
502
|
"onUpdate:field": [
|
503
|
-
y[0] || (y[0] = (C) =>
|
503
|
+
y[0] || (y[0] = (C) => Q(t) ? t.value = C : t = C),
|
504
504
|
j
|
505
505
|
],
|
506
|
-
placeholder: c(
|
506
|
+
placeholder: c(h),
|
507
507
|
onInput: r,
|
508
508
|
onFocus: u,
|
509
509
|
onBlur: b,
|
510
510
|
class: "w-100 pd-small p-big"
|
511
511
|
}, null, 8, ["field", "placeholder"]),
|
512
|
-
|
512
|
+
p.action ? (i(), m("button", {
|
513
513
|
key: 0,
|
514
514
|
onClick: O,
|
515
515
|
class: "w-min hover_bg-white hover-t-black t-black bg-main button",
|
516
|
-
innerHTML:
|
517
|
-
}, null, 8,
|
516
|
+
innerHTML: p.action
|
517
|
+
}, null, 8, pt)) : f("", !0)
|
518
518
|
]));
|
519
519
|
}
|
520
520
|
};
|
521
|
-
const
|
521
|
+
const dt = { class: "pd-thin" }, gt = { class: "o-hidden t-black bg-main pd-big radius-big" }, _t = /* @__PURE__ */ o("header", { class: "t-center z-index-1 mn-big" }, [
|
522
522
|
/* @__PURE__ */ o("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
|
523
523
|
/* @__PURE__ */ o("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
|
524
|
-
], -1),
|
524
|
+
], -1), ht = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, ft = /* @__PURE__ */ o("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
|
525
525
|
/* @__PURE__ */ o("div", { class: "spiral" })
|
526
|
-
], -1),
|
526
|
+
], -1), Kt = {
|
527
527
|
__name: "SubscribeNewsletter",
|
528
|
-
setup(
|
529
|
-
let n =
|
530
|
-
return (s, e) => (i(),
|
531
|
-
o("div",
|
532
|
-
|
533
|
-
o("div",
|
534
|
-
|
528
|
+
setup(p) {
|
529
|
+
let n = _("");
|
530
|
+
return (s, e) => (i(), m("section", dt, [
|
531
|
+
o("div", gt, [
|
532
|
+
_t,
|
533
|
+
o("div", ht, [
|
534
|
+
g(mt, {
|
535
535
|
input: c(n),
|
536
536
|
typingSpeed: 75,
|
537
537
|
loopTyping: !1,
|
538
538
|
enableTyping: !1,
|
539
539
|
placeholder: "Please enter your email",
|
540
540
|
action: "Subscribe",
|
541
|
-
"onUpdate:input": e[0] || (e[0] = (a) =>
|
541
|
+
"onUpdate:input": e[0] || (e[0] = (a) => Q(n) ? n.value = a : n = a),
|
542
542
|
onAction: e[1] || (e[1] = (a) => s.router.push({ name: "Product Recommmendation", query: { mood: s.mood } })),
|
543
543
|
class: "mn-l-auto mn-r-auto bg-white t-black w-50"
|
544
544
|
}, null, 8, ["input"])
|
545
545
|
]),
|
546
|
-
|
546
|
+
ft
|
547
547
|
])
|
548
548
|
]));
|
549
549
|
}
|
550
550
|
};
|
551
|
-
const
|
551
|
+
const vt = { class: "container container-joinus" }, bt = { class: "content" }, yt = { class: "h0 mn-big" }, wt = /* @__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), xt = /* @__PURE__ */ o("button", { class: "bg-black t-white button" }, "Join Now", -1), Xt = {
|
552
552
|
__name: "JoinUs",
|
553
|
-
setup(
|
554
|
-
const n =
|
553
|
+
setup(p) {
|
554
|
+
const n = _(120950), s = _([
|
555
555
|
"/assets/images/reviews/01.png",
|
556
556
|
"/assets/images/reviews/02.png",
|
557
557
|
"/assets/images/reviews/03.png",
|
@@ -570,70 +570,46 @@ const bt = { class: "container container-joinus" }, yt = { class: "content" }, w
|
|
570
570
|
spawnPoints: [10, 90]
|
571
571
|
};
|
572
572
|
F(() => {
|
573
|
-
|
573
|
+
d(), e();
|
574
574
|
});
|
575
|
-
const
|
576
|
-
s.value.forEach((t,
|
575
|
+
const d = () => {
|
576
|
+
s.value.forEach((t, h) => {
|
577
577
|
let l = document.createElement("img");
|
578
578
|
l.src = t, l.classList.add("floating-image");
|
579
|
-
let
|
580
|
-
l.style.left = `${
|
579
|
+
let v = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], P = (Math.random() - 0.5) * 2 * 10;
|
580
|
+
l.style.left = `${v + P}%`, l.style.animationDuration = `${Math.random() * (a.maxDuration - a.minDuration) + a.minDuration}s`, document.querySelector(".container").appendChild(l), l.addEventListener("animationiteration", () => {
|
581
581
|
const $ = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], S = (Math.random() - 0.5) * 2 * 10;
|
582
582
|
l.style.left = `${$ + S}%`;
|
583
583
|
});
|
584
584
|
});
|
585
585
|
};
|
586
|
-
return (t,
|
587
|
-
o("div",
|
588
|
-
o("span",
|
589
|
-
|
590
|
-
|
586
|
+
return (t, h) => (i(), m("div", vt, [
|
587
|
+
o("div", bt, [
|
588
|
+
o("span", yt, N(n.value.toLocaleString()), 1),
|
589
|
+
wt,
|
590
|
+
xt
|
591
591
|
])
|
592
592
|
]));
|
593
593
|
}
|
594
594
|
};
|
595
|
-
const
|
595
|
+
const $t = (p) => (ae("data-v-2591cab6"), p = p(), oe(), p), kt = { class: "community-feed" }, Pt = /* @__PURE__ */ $t(() => /* @__PURE__ */ o("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), Ct = {
|
596
596
|
__name: "HotPosts",
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
return "grid-item-2x2";
|
608
|
-
case 1:
|
609
|
-
return "grid-item-2x1";
|
610
|
-
case 2:
|
611
|
-
return "grid-item-1x1";
|
612
|
-
case 3:
|
613
|
-
case 4:
|
614
|
-
return "grid-item-1x1";
|
615
|
-
case 6:
|
616
|
-
return "grid-item-2x1";
|
617
|
-
default:
|
618
|
-
return "";
|
619
|
-
}
|
620
|
-
};
|
621
|
-
return (t, _) => (i(), p("section", Pt, [
|
622
|
-
Ct,
|
623
|
-
o("div", Tt, [
|
624
|
-
(i(!0), p(D, null, U(e.value, (l, f) => (i(), I(K, {
|
625
|
-
blogpost: l,
|
626
|
-
owner: w.user._id,
|
627
|
-
key: f,
|
628
|
-
class: B(m(f))
|
629
|
-
}, null, 8, ["blogpost", "owner", "class"]))), 128))
|
630
|
-
])
|
597
|
+
setup(p) {
|
598
|
+
return (n, s) => (i(), m("section", kt, [
|
599
|
+
Pt,
|
600
|
+
g(K, {
|
601
|
+
skip: 0,
|
602
|
+
limit: 3,
|
603
|
+
user: w.user._id,
|
604
|
+
period: "year",
|
605
|
+
class: "cols-2 gap-thin"
|
606
|
+
}, null, 8, ["user"])
|
631
607
|
]));
|
632
608
|
}
|
633
|
-
},
|
609
|
+
}, Yt = /* @__PURE__ */ X(Ct, [["__scopeId", "data-v-2591cab6"]]), Zt = [
|
634
610
|
{
|
635
611
|
path: "community",
|
636
|
-
component:
|
612
|
+
component: Be,
|
637
613
|
meta: {
|
638
614
|
title: {
|
639
615
|
en: "Community",
|
@@ -651,7 +627,7 @@ const kt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Pt = { class: "comm
|
|
651
627
|
},
|
652
628
|
title_hide: !0
|
653
629
|
},
|
654
|
-
component: () => Promise.resolve().then(() =>
|
630
|
+
component: () => Promise.resolve().then(() => Ke)
|
655
631
|
}]
|
656
632
|
},
|
657
633
|
{
|
@@ -664,7 +640,7 @@ const kt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Pt = { class: "comm
|
|
664
640
|
},
|
665
641
|
authorize: []
|
666
642
|
},
|
667
|
-
component: () => Promise.resolve().then(() =>
|
643
|
+
component: () => Promise.resolve().then(() => R)
|
668
644
|
},
|
669
645
|
{
|
670
646
|
path: "community/posts/:url",
|
@@ -675,7 +651,7 @@ const kt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Pt = { class: "comm
|
|
675
651
|
ru: "Пост"
|
676
652
|
}
|
677
653
|
},
|
678
|
-
component: () => Promise.resolve().then(() =>
|
654
|
+
component: () => Promise.resolve().then(() => Qe)
|
679
655
|
},
|
680
656
|
{
|
681
657
|
path: "community/posts/:url/edit",
|
@@ -687,23 +663,23 @@ const kt = (d) => (oe("data-v-18db0d1b"), d = d(), ne(), d), Pt = { class: "comm
|
|
687
663
|
},
|
688
664
|
authorize: []
|
689
665
|
},
|
690
|
-
component: () => Promise.resolve().then(() =>
|
666
|
+
component: () => Promise.resolve().then(() => R)
|
691
667
|
}
|
692
668
|
];
|
693
669
|
export {
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
670
|
+
Wt as Activity,
|
671
|
+
We as Blog,
|
672
|
+
Ge as BlogPost,
|
673
|
+
ie as CardBlogpost,
|
674
|
+
pe as Comments,
|
675
|
+
Be as Community,
|
700
676
|
Le as CreateBlogPost,
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
677
|
+
K as Feed,
|
678
|
+
ss as FooterBlogpost,
|
679
|
+
Yt as HotPosts,
|
680
|
+
Xt as JoinUs,
|
681
|
+
Kt as SubscribeNewsletter,
|
682
|
+
Zt as blogpostsRoutes,
|
683
|
+
as as blogpostsStore,
|
684
|
+
ns as reactionsStore
|
709
685
|
};
|