@ozdao/prometheus-framework 0.0.87 → 0.0.89
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-300fcb55.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-afba007a.mjs +1944 -0
- package/dist/ButtonFollow-001c4a65.mjs +130 -0
- package/dist/ButtonFollow-48043cc7.js +1 -0
- package/dist/CardHeader-0677d446.js +1 -0
- package/dist/CardHeader-e361dada.mjs +96 -0
- package/dist/CardOrganization-51309400.js +1 -0
- package/dist/CardOrganization-bacc2ef6.mjs +202 -0
- package/dist/Feed-4b28adc5.mjs +423 -0
- package/dist/Feed-51e4e232.js +1 -0
- package/dist/Feed-5d8d5c21.js +1 -0
- package/dist/Feed-76b2997e.mjs +367 -0
- package/dist/Feed-dc8b66bf.mjs +367 -0
- package/dist/Feed-eeb63363.js +1 -0
- package/dist/IconEdit-3028a3b7.js +1 -0
- package/dist/IconEdit-8df23653.mjs +205 -0
- package/dist/Image-30f04604.js +9 -0
- package/dist/Image-6c7584f5.mjs +477 -0
- package/dist/Image-6ec294f3.mjs +477 -0
- package/dist/Image-9a870c88.js +9 -0
- package/dist/PlaceholderUserpic-10fd9026.js +1 -0
- package/dist/PlaceholderUserpic-eb9820ce.mjs +28 -0
- package/dist/Popup-7c331e1c.js +1 -0
- package/dist/Popup-bdf043ba.mjs +76 -0
- package/dist/Product-1724d88d.mjs +837 -0
- package/dist/Product-a94d8b65.js +7 -0
- package/dist/Product-b233e2a3.js +7 -0
- package/dist/Product-eb00f35e.mjs +837 -0
- package/dist/ProductEdit-57484f1e.mjs +349 -0
- package/dist/ProductEdit-61413d02.mjs +349 -0
- package/dist/ProductEdit-ef301baa.js +1 -0
- package/dist/ProductEdit-fca68ff9.js +1 -0
- package/dist/ProfileBlogposts-6704a38c.js +1 -0
- package/dist/ProfileBlogposts-775b1cfa.mjs +63 -0
- package/dist/ProfileComments-175e42da.js +1 -0
- package/dist/ProfileComments-fd7d66bf.mjs +43 -0
- package/dist/ProfileEvents-1cfe6858.mjs +55 -0
- package/dist/ProfileEvents-4f2a5f00.js +1 -0
- package/dist/ProfileEvents-7a51a9e6.mjs +55 -0
- package/dist/ProfileEvents-d8e16509.js +1 -0
- package/dist/ProfileLikes-20a8a3c9.mjs +43 -0
- package/dist/ProfileLikes-b3b1350a.js +1 -0
- package/dist/ProfileOrganizations-4b866823.mjs +211 -0
- package/dist/ProfileOrganizations-6d3a43e4.js +1 -0
- package/dist/Publics-0e44c61e.mjs +122 -0
- package/dist/Publics-4e1c14fc.js +1 -0
- package/dist/Tab-a243605d.mjs +46 -0
- package/dist/UploadImage-6e312c46.mjs +83 -0
- package/dist/UploadImage-9e7e7468.js +1 -0
- package/dist/auth-2bc18d1e.js +8 -0
- package/dist/auth-fefd15a3.mjs +1503 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +5 -5
- package/dist/auth.validation-4a617c0b.mjs +20 -0
- package/dist/auth.validation-78a90fed.js +1 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +206 -222
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
- package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +332 -312
- package/dist/events.server.js +77 -0
- package/dist/events.server.mjs +77 -0
- package/dist/inputs.validation-14e8e01f.mjs +93 -0
- package/dist/main.css +1 -1
- package/dist/organizations-1581c013.mjs +121 -0
- package/dist/organizations-c455dad7.js +1 -0
- package/dist/organizations.client-040ec107.js +3 -0
- package/dist/organizations.client-686845be.mjs +3179 -0
- package/dist/organizations.client-7937e180.mjs +3037 -0
- package/dist/organizations.client-99bfc474.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +39 -39
- package/dist/organizations.server.js +7 -3
- package/dist/organizations.server.mjs +7 -3
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +3 -2
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +265 -256
- package/dist/users.server.js +2 -2
- package/dist/users.server.mjs +2 -2
- package/package.json +1 -1
- package/src/components/Field/Field.vue +2 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +2 -1
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +9 -3
- 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/src/modules/organizations/components/blocks/Socials.vue +16 -3
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +39 -15
- package/src/modules/organizations/components/sections/DetailsTab.vue +13 -9
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/organization.model.js +6 -2
- package/src/modules/organizations/store/organizations.js +2 -2
- package/src/modules/users/components/pages/Profile.vue +26 -11
- package/src/modules/users/components/pages/ProfileEdit.vue +28 -10
- package/src/modules/users/models/user.model.js +2 -2
- package/src/modules/users/store/users.js +1 -2
package/dist/community.client.js
CHANGED
@@ -1,31 +1,31 @@
|
|
1
|
-
import { resolveComponent as Y, openBlock as i, createElementBlock as
|
2
|
-
import { useRoute as
|
3
|
-
import { S as le, _ as re } from "./Publics-
|
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-
|
5
|
-
import { e as
|
6
|
-
import { s as w, b as pe, _ as X, F as de } from "./auth-
|
7
|
-
import {
|
8
|
-
import { _ as
|
9
|
-
import { _ as
|
10
|
-
import { a as
|
11
|
-
import { _ as
|
12
|
-
import { useI18n 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
|
+
import { S as le, _ as re } from "./Publics-0e44c61e.mjs";
|
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-4b28adc5.mjs";
|
5
|
+
import { e as es, f as ts, g as ss } from "./Feed-4b28adc5.mjs";
|
6
|
+
import { s as w, b as pe, _ as X, F as de } from "./auth-fefd15a3.mjs";
|
7
|
+
import { c as me, _ as ge, a as _e, b as he } from "./Image-6ec294f3.mjs";
|
8
|
+
import { _ as fe } from "./Popup-bdf043ba.mjs";
|
9
|
+
import { _ as ve, S as be, C as ye } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-afba007a.mjs";
|
10
|
+
import { a as we } from "./organizations-1581c013.mjs";
|
11
|
+
import { _ as xe } from "./EmptyState-34d85f10.mjs";
|
12
|
+
import { useI18n as $e } from "vue-i18n";
|
13
13
|
import "./globals-96ba60e4.mjs";
|
14
|
-
import "./CardOrganization-
|
15
|
-
import "./ButtonFollow-
|
16
|
-
import "./CardHeader-
|
17
|
-
import "./PlaceholderUserpic-
|
14
|
+
import "./CardOrganization-bacc2ef6.mjs";
|
15
|
+
import "./ButtonFollow-001c4a65.mjs";
|
16
|
+
import "./CardHeader-e361dada.mjs";
|
17
|
+
import "./PlaceholderUserpic-eb9820ce.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,15 @@ 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
|
-
postable: w.user._id
|
117
|
+
postable: w.user._id,
|
118
|
+
limit: 100
|
118
119
|
});
|
119
|
-
console.log(r), a.value = r.map((
|
120
|
-
name:
|
121
|
-
_id:
|
122
|
-
photo:
|
120
|
+
console.log(r), a.value = r.map((u) => ({
|
121
|
+
name: u.profile.name,
|
122
|
+
_id: u._id,
|
123
|
+
photo: u.profile.photo
|
123
124
|
}));
|
124
125
|
});
|
125
126
|
const _ = g(""), l = g([
|
@@ -129,13 +130,13 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
129
130
|
{ text: "discussion" },
|
130
131
|
{ text: "photos" }
|
131
132
|
]);
|
132
|
-
V(() => l.value.filter((r) => r.text.toLowerCase().includes(_.value.toLowerCase()))), V(() => l.value.filter((r) => !m.value.some((
|
133
|
-
const
|
133
|
+
V(() => l.value.filter((r) => r.text.toLowerCase().includes(_.value.toLowerCase()))), V(() => l.value.filter((r) => !m.value.some((u) => u.text === r.text)));
|
134
|
+
const f = g(!1);
|
134
135
|
function P() {
|
135
|
-
|
136
|
+
f.value = !0;
|
136
137
|
}
|
137
138
|
function $() {
|
138
|
-
|
139
|
+
f.value = !1;
|
139
140
|
}
|
140
141
|
function S() {
|
141
142
|
m.value.length > 0 && m.value.map((r) => r.text), e.value.status = "draft", n.params.url ? q(e.value).then((r) => {
|
@@ -148,7 +149,7 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
148
149
|
console.log(r);
|
149
150
|
});
|
150
151
|
}
|
151
|
-
function
|
152
|
+
function O() {
|
152
153
|
t.value && (e.value.owner = {
|
153
154
|
target: t.value._id,
|
154
155
|
type: "organization"
|
@@ -162,62 +163,62 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
162
163
|
console.log(r);
|
163
164
|
});
|
164
165
|
}
|
165
|
-
function
|
166
|
+
function j() {
|
166
167
|
confirm("Are you sure you want to delete this post?") && ue(e.value._id).then((r) => {
|
167
168
|
s.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
|
168
169
|
}).catch((r) => {
|
169
170
|
console.log(r);
|
170
171
|
});
|
171
172
|
}
|
172
|
-
return (r,
|
173
|
-
|
174
|
-
o("div",
|
173
|
+
return (r, u) => (i(), p("article", Me, [
|
174
|
+
c(e) ? (i(), p("section", Fe, [
|
175
|
+
o("div", Ne, [
|
175
176
|
h(me, {
|
176
|
-
prop:
|
177
|
+
prop: c(e),
|
177
178
|
content: "name",
|
178
179
|
placeholder: "Enter post title",
|
179
180
|
class: "h2"
|
180
181
|
}, null, 8, ["prop"])
|
181
182
|
]),
|
182
183
|
h(ge, {
|
183
|
-
content:
|
184
|
-
onUpdate:
|
184
|
+
content: c(e).content,
|
185
|
+
onUpdate: u[0] || (u[0] = (b) => c(e).content = b)
|
185
186
|
}, null, 8, ["content"])
|
186
|
-
])) :
|
187
|
-
|
188
|
-
o("div",
|
189
|
-
|
187
|
+
])) : v("", !0),
|
188
|
+
c(e) ? (i(), p("section", ze, [
|
189
|
+
o("div", Oe, [
|
190
|
+
c(n).params.url ? (i(), p("a", {
|
190
191
|
key: 0,
|
191
|
-
onClick:
|
192
|
+
onClick: u[1] || (u[1] = (b) => j()),
|
192
193
|
class: "mn-r-auto bg-red t-white t-black button"
|
193
|
-
}, "Delete")) :
|
194
|
+
}, "Delete")) : v("", !0),
|
194
195
|
o("a", {
|
195
|
-
onClick:
|
196
|
+
onClick: u[2] || (u[2] = (b) => S()),
|
196
197
|
class: "mn-l-auto bg-white t-black button"
|
197
198
|
}, "To Drafts"),
|
198
199
|
o("a", {
|
199
|
-
onClick:
|
200
|
+
onClick: u[3] || (u[3] = (b) => P()),
|
200
201
|
class: "mn-l-thin bg-black t-white button"
|
201
202
|
}, "Publish")
|
202
203
|
])
|
203
|
-
])) :
|
204
|
-
h(
|
204
|
+
])) : v("", !0),
|
205
|
+
h(fe, {
|
205
206
|
title: "Добавить участника",
|
206
207
|
onClosePopup: $,
|
207
|
-
isPopupOpen:
|
208
|
+
isPopupOpen: f.value
|
208
209
|
}, {
|
209
210
|
default: k(() => [
|
210
|
-
o("div",
|
211
|
-
|
212
|
-
h(
|
213
|
-
onTagsChanged:
|
214
|
-
tags:
|
211
|
+
o("div", je, [
|
212
|
+
De,
|
213
|
+
h(ve, {
|
214
|
+
onTagsChanged: u[4] || (u[4] = (b) => c(e).tags = b),
|
215
|
+
tags: c(e).tags
|
215
216
|
}, null, 8, ["tags"]),
|
216
217
|
Ue,
|
217
|
-
h(
|
218
|
+
h(be, {
|
218
219
|
modelValue: t.value,
|
219
|
-
"onUpdate:modelValue":
|
220
|
-
options:
|
220
|
+
"onUpdate:modelValue": u[5] || (u[5] = (b) => t.value = b),
|
221
|
+
options: c(a),
|
221
222
|
multiple: !1,
|
222
223
|
taggable: !1,
|
223
224
|
placeholder: "Type to search or add tag",
|
@@ -225,18 +226,18 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
225
226
|
"track-by": "_id",
|
226
227
|
class: "mn-medium bg-grey radius-medium pd-small"
|
227
228
|
}, null, 8, ["modelValue", "options"]),
|
228
|
-
t.value ? (i(),
|
229
|
-
t.value ? (i(),
|
230
|
-
h(
|
229
|
+
t.value ? (i(), p("h5", Ae, "Options:")) : v("", !0),
|
230
|
+
t.value ? (i(), p("div", Le, [
|
231
|
+
h(ye, {
|
231
232
|
label: "Hide Author",
|
232
|
-
radio:
|
233
|
-
"onUpdate:radio":
|
233
|
+
radio: c(e).creator.hidden,
|
234
|
+
"onUpdate:radio": u[6] || (u[6] = (b) => c(e).creator.hidden = b),
|
234
235
|
name: "prices",
|
235
236
|
class: "w-100"
|
236
237
|
}, null, 8, ["radio"])
|
237
|
-
])) :
|
238
|
+
])) : v("", !0),
|
238
239
|
h(pe, {
|
239
|
-
submit:
|
240
|
+
submit: O,
|
240
241
|
callback: r.redirectTo,
|
241
242
|
class: "w-100 bg-black t-white"
|
242
243
|
}, {
|
@@ -253,38 +254,21 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
253
254
|
}
|
254
255
|
}, J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
255
256
|
__proto__: null,
|
256
|
-
default:
|
257
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
257
|
+
default: Ee
|
258
|
+
}, Symbol.toStringTag, { value: "Module" })), Ve = {}, He = {
|
258
259
|
width: "100%",
|
259
260
|
height: "20rem",
|
260
261
|
xmlns: "http://www.w3.org/2000/svg"
|
261
|
-
},
|
262
|
-
|
262
|
+
}, 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 = [
|
263
|
+
qe
|
263
264
|
];
|
264
|
-
function
|
265
|
-
return i(),
|
265
|
+
function Je(d, n) {
|
266
|
+
return i(), p("svg", He, Re);
|
266
267
|
}
|
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 = {
|
268
|
+
const Ge = /* @__PURE__ */ X(Ve, [["render", Je]]), Qe = { class: "pd-thin" }, We = {
|
285
269
|
__name: "BlogPost",
|
286
|
-
setup(
|
287
|
-
const n =
|
270
|
+
setup(d) {
|
271
|
+
const n = z(), s = g(null), e = g(!0);
|
288
272
|
F(async () => {
|
289
273
|
e.value = !0;
|
290
274
|
const t = await L({ user: w.user._id, url: n.params.url });
|
@@ -295,30 +279,30 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
295
279
|
H2: "h2",
|
296
280
|
Bullets: "p",
|
297
281
|
Caption: "p",
|
298
|
-
ImageUpload:
|
282
|
+
ImageUpload: he
|
299
283
|
};
|
300
284
|
function m(t) {
|
301
285
|
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
286
|
}
|
303
|
-
return (t, _) => (i(),
|
287
|
+
return (t, _) => (i(), p("section", Qe, [
|
304
288
|
h(H, {
|
305
289
|
tag: "ul",
|
306
290
|
name: "fade",
|
307
291
|
class: "o-hidden bg-grey radius-big"
|
308
292
|
}, {
|
309
293
|
default: k(() => [
|
310
|
-
e.value ? (i(),
|
294
|
+
e.value ? (i(), p(D, { key: 0 }, U(3, (l) => h(Ge, { key: l })), 64)) : v("", !0)
|
311
295
|
]),
|
312
296
|
_: 1
|
313
297
|
}),
|
314
298
|
h(G, { name: "fade" }, {
|
315
299
|
default: k(() => [
|
316
|
-
!e.value && !s.value ? (i(), I(
|
300
|
+
!e.value && !s.value ? (i(), I(xe, {
|
317
301
|
key: 0,
|
318
302
|
title: "No Blogpost Found",
|
319
303
|
description: "Currently, there are no blogposts available. Please check back later.",
|
320
304
|
class: "pd-medium mn-thin bg-grey radius-big"
|
321
|
-
})) :
|
305
|
+
})) : v("", !0)
|
322
306
|
]),
|
323
307
|
_: 1
|
324
308
|
}),
|
@@ -340,37 +324,37 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
340
324
|
}, {
|
341
325
|
default: k(() => [
|
342
326
|
o("section", null, [
|
343
|
-
s.value && s.value.content ? (i(!0),
|
344
|
-
key:
|
345
|
-
index:
|
327
|
+
s.value && s.value.content ? (i(!0), p(D, { key: 0 }, U(s.value.content, (l, f) => (i(), I(Q(a[l.type]), ee({
|
328
|
+
key: f,
|
329
|
+
index: f,
|
346
330
|
component: l,
|
347
331
|
prop: l,
|
348
332
|
class: l.class,
|
349
333
|
content: "content"
|
350
|
-
}, m(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) :
|
334
|
+
}, m(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : v("", !0)
|
351
335
|
])
|
352
336
|
]),
|
353
337
|
_: 1
|
354
|
-
}, 8, ["blogpost", "user", "class"])) :
|
338
|
+
}, 8, ["blogpost", "user", "class"])) : v("", !0),
|
355
339
|
h(re, { class: "mn-small" }),
|
356
340
|
!e.value && s.value ? (i(), I(_e, {
|
357
341
|
key: 1,
|
358
342
|
type: "blogpost",
|
359
343
|
target: s.value._id,
|
360
344
|
owner: w.user._id
|
361
|
-
}, null, 8, ["target", "owner"])) :
|
345
|
+
}, null, 8, ["target", "owner"])) : v("", !0)
|
362
346
|
]),
|
363
347
|
_: 1
|
364
348
|
})
|
365
349
|
]));
|
366
350
|
}
|
367
|
-
},
|
351
|
+
}, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
368
352
|
__proto__: null,
|
369
|
-
default:
|
370
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
353
|
+
default: We
|
354
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = {
|
371
355
|
__name: "Blog",
|
372
|
-
setup(
|
373
|
-
const n =
|
356
|
+
setup(d) {
|
357
|
+
const n = z(), s = A();
|
374
358
|
return n.params.category || (n.params.category = "featured"), F(() => {
|
375
359
|
if (n.query) {
|
376
360
|
const e = n.query, a = {
|
@@ -388,62 +372,62 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
388
372
|
Object.entries(e).filter(([_, l]) => Array.isArray(l) && l.length > 0 || typeof l == "string" && l).map(([_, l]) => [_, Array.isArray(l) ? l.join(",") : l])
|
389
373
|
);
|
390
374
|
Object.assign(m, t), s.push({ query: m });
|
391
|
-
}, { deep: !0 }), (e, a) => (i(),
|
375
|
+
}, { deep: !0 }), (e, a) => (i(), p("section", null, [
|
392
376
|
h(ce, {
|
393
|
-
category:
|
377
|
+
category: c(n).params.category,
|
394
378
|
user: w.user._id,
|
395
|
-
period:
|
379
|
+
period: c(n).query.period
|
396
380
|
}, null, 8, ["category", "user", "period"])
|
397
381
|
]));
|
398
382
|
}
|
399
|
-
},
|
383
|
+
}, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
400
384
|
__proto__: null,
|
401
|
-
default:
|
402
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
385
|
+
default: Xe
|
386
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = { class: "w-100 cols-4 t-left flex-nowrap flex" }, et = {
|
403
387
|
key: 0,
|
404
388
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
405
|
-
},
|
389
|
+
}, 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
390
|
key: 1,
|
407
391
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
408
|
-
},
|
392
|
+
}, 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
393
|
key: 2,
|
410
394
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
411
|
-
},
|
395
|
+
}, 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
396
|
__name: "Activity",
|
413
397
|
props: {
|
414
398
|
likes: Number,
|
415
399
|
comments: Number,
|
416
400
|
subscriptions: Number
|
417
401
|
},
|
418
|
-
setup(
|
419
|
-
return (n, s) => (i(),
|
420
|
-
|
421
|
-
|
422
|
-
o("span",
|
423
|
-
T(N(
|
424
|
-
|
402
|
+
setup(d) {
|
403
|
+
return (n, s) => (i(), p("section", Ze, [
|
404
|
+
d.likes ? (i(), p("div", et, [
|
405
|
+
tt,
|
406
|
+
o("span", st, [
|
407
|
+
T(N(d.likes), 1),
|
408
|
+
at,
|
425
409
|
T("likes")
|
426
410
|
])
|
427
|
-
])) :
|
428
|
-
|
429
|
-
|
430
|
-
o("span",
|
431
|
-
T(N(
|
432
|
-
|
411
|
+
])) : v("", !0),
|
412
|
+
d.comments ? (i(), p("div", ot, [
|
413
|
+
nt,
|
414
|
+
o("span", lt, [
|
415
|
+
T(N(d.comments), 1),
|
416
|
+
rt,
|
433
417
|
T("comments")
|
434
418
|
])
|
435
|
-
])) :
|
436
|
-
|
437
|
-
|
438
|
-
o("span",
|
439
|
-
T(N(
|
440
|
-
|
419
|
+
])) : v("", !0),
|
420
|
+
d.subscriptions ? (i(), p("div", it, [
|
421
|
+
ut,
|
422
|
+
o("span", ct, [
|
423
|
+
T(N(d.subscriptions), 1),
|
424
|
+
pt,
|
441
425
|
T("subscriptions")
|
442
426
|
])
|
443
|
-
])) :
|
427
|
+
])) : v("", !0)
|
444
428
|
]));
|
445
429
|
}
|
446
|
-
},
|
430
|
+
}, dt = { class: "pd-thin radius-extra flex-nowrap flex" }, mt = ["innerHTML"], gt = {
|
447
431
|
__name: "FieldBig",
|
448
432
|
props: {
|
449
433
|
input: String,
|
@@ -475,20 +459,20 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
475
459
|
}
|
476
460
|
},
|
477
461
|
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
|
462
|
+
setup(d, { emit: n }) {
|
463
|
+
const s = d, { t: e, locale: a } = $e();
|
464
|
+
let m = g(0), t = g(s.input), _ = g(s.placeholder), l = g(s.enableTyping), f = g(null), P = g(""), $ = g(!0), S = null;
|
465
|
+
function O() {
|
482
466
|
n("action");
|
483
467
|
}
|
484
|
-
function
|
468
|
+
function j(x) {
|
485
469
|
n("update:input", x), P.value = x;
|
486
470
|
}
|
487
471
|
function r() {
|
488
472
|
m.value = (m.value + 1) % s.placeholderTexts[a.value].length;
|
489
473
|
}
|
490
|
-
function
|
491
|
-
l.value = !1, clearInterval(
|
474
|
+
function u() {
|
475
|
+
l.value = !1, clearInterval(f.value), _.value = s.placeholder, P.value || (t.value = "");
|
492
476
|
}
|
493
477
|
function b() {
|
494
478
|
!P.value && s.enableTyping && (l.value = !0, _.value = "", E());
|
@@ -497,7 +481,7 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
497
481
|
let x = s.placeholderTexts[a.value][m.value], y = 0, C = !1;
|
498
482
|
S = setInterval(() => {
|
499
483
|
$.value = !$.value;
|
500
|
-
}, 200),
|
484
|
+
}, 200), f.value = setInterval(() => {
|
501
485
|
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
486
|
C = !0, t.value = x.substring(0, y);
|
503
487
|
}, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[a.value][m.value]));
|
@@ -506,44 +490,44 @@ const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-whit
|
|
506
490
|
return F(() => {
|
507
491
|
s.enableTyping && E();
|
508
492
|
}), se(() => {
|
509
|
-
l.value || (clearInterval(
|
510
|
-
}), (x, y) => (i(),
|
493
|
+
l.value || (clearInterval(f.value), clearInterval(S));
|
494
|
+
}), (x, y) => (i(), p("div", dt, [
|
511
495
|
h(de, {
|
512
|
-
field:
|
496
|
+
field: c(t),
|
513
497
|
"onUpdate:field": [
|
514
498
|
y[0] || (y[0] = (C) => W(t) ? t.value = C : t = C),
|
515
|
-
|
499
|
+
j
|
516
500
|
],
|
517
|
-
placeholder:
|
501
|
+
placeholder: c(_),
|
518
502
|
onInput: r,
|
519
|
-
onFocus:
|
503
|
+
onFocus: u,
|
520
504
|
onBlur: b,
|
521
505
|
class: "w-100 pd-small p-big"
|
522
506
|
}, null, 8, ["field", "placeholder"]),
|
523
|
-
|
507
|
+
d.action ? (i(), p("button", {
|
524
508
|
key: 0,
|
525
|
-
onClick:
|
509
|
+
onClick: O,
|
526
510
|
class: "w-min hover_bg-white hover-t-black t-black bg-main button",
|
527
|
-
innerHTML:
|
528
|
-
}, null, 8,
|
511
|
+
innerHTML: d.action
|
512
|
+
}, null, 8, mt)) : v("", !0)
|
529
513
|
]));
|
530
514
|
}
|
531
515
|
};
|
532
|
-
const
|
516
|
+
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
517
|
/* @__PURE__ */ o("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
|
534
518
|
/* @__PURE__ */ o("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
|
535
|
-
], -1),
|
519
|
+
], -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
520
|
/* @__PURE__ */ o("div", { class: "spiral" })
|
537
|
-
], -1),
|
521
|
+
], -1), Qt = {
|
538
522
|
__name: "SubscribeNewsletter",
|
539
|
-
setup(
|
523
|
+
setup(d) {
|
540
524
|
let n = g("");
|
541
|
-
return (s, e) => (i(),
|
542
|
-
o("div",
|
543
|
-
|
544
|
-
o("div",
|
545
|
-
h(
|
546
|
-
input:
|
525
|
+
return (s, e) => (i(), p("section", _t, [
|
526
|
+
o("div", ht, [
|
527
|
+
ft,
|
528
|
+
o("div", vt, [
|
529
|
+
h(gt, {
|
530
|
+
input: c(n),
|
547
531
|
typingSpeed: 75,
|
548
532
|
loopTyping: !1,
|
549
533
|
enableTyping: !1,
|
@@ -554,14 +538,14 @@ const ft = { class: "pd-thin" }, vt = { class: "o-hidden t-black bg-main pd-big
|
|
554
538
|
class: "mn-l-auto mn-r-auto bg-white t-black w-50"
|
555
539
|
}, null, 8, ["input"])
|
556
540
|
]),
|
557
|
-
|
541
|
+
bt
|
558
542
|
])
|
559
543
|
]));
|
560
544
|
}
|
561
545
|
};
|
562
|
-
const
|
546
|
+
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
547
|
__name: "JoinUs",
|
564
|
-
setup(
|
548
|
+
setup(d) {
|
565
549
|
const n = g(120950), s = g([
|
566
550
|
"/assets/images/reviews/01.png",
|
567
551
|
"/assets/images/reviews/02.png",
|
@@ -587,25 +571,25 @@ const xt = { class: "container container-joinus" }, $t = { class: "content" }, k
|
|
587
571
|
s.value.forEach((t, _) => {
|
588
572
|
let l = document.createElement("img");
|
589
573
|
l.src = t, l.classList.add("floating-image");
|
590
|
-
let
|
591
|
-
l.style.left = `${
|
574
|
+
let f = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], P = (Math.random() - 0.5) * 2 * 10;
|
575
|
+
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
576
|
const $ = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], S = (Math.random() - 0.5) * 2 * 10;
|
593
577
|
l.style.left = `${$ + S}%`;
|
594
578
|
});
|
595
579
|
});
|
596
580
|
};
|
597
|
-
return (t, _) => (i(),
|
598
|
-
o("div",
|
599
|
-
o("span",
|
600
|
-
|
601
|
-
|
581
|
+
return (t, _) => (i(), p("div", yt, [
|
582
|
+
o("div", wt, [
|
583
|
+
o("span", xt, N(n.value.toLocaleString()), 1),
|
584
|
+
$t,
|
585
|
+
kt
|
602
586
|
])
|
603
587
|
]));
|
604
588
|
}
|
605
589
|
};
|
606
|
-
const
|
590
|
+
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
591
|
__name: "HotPosts",
|
608
|
-
async setup(
|
592
|
+
async setup(d) {
|
609
593
|
let n, s;
|
610
594
|
const e = g([]), a = async () => {
|
611
595
|
const t = await L({ skip: 0, limit: 7, period: "year" });
|
@@ -629,22 +613,22 @@ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "comm
|
|
629
613
|
return "";
|
630
614
|
}
|
631
615
|
};
|
632
|
-
return (t, _) => (i(),
|
633
|
-
|
634
|
-
o("div",
|
635
|
-
(i(!0),
|
616
|
+
return (t, _) => (i(), p("section", Ct, [
|
617
|
+
Tt,
|
618
|
+
o("div", St, [
|
619
|
+
(i(!0), p(D, null, U(e.value, (l, f) => (i(), I(K, {
|
636
620
|
blogpost: l,
|
637
621
|
owner: w.user._id,
|
638
|
-
key:
|
639
|
-
class: B(m(
|
622
|
+
key: f,
|
623
|
+
class: B(m(f))
|
640
624
|
}, null, 8, ["blogpost", "owner", "class"]))), 128))
|
641
625
|
])
|
642
626
|
]));
|
643
627
|
}
|
644
|
-
},
|
628
|
+
}, Kt = /* @__PURE__ */ X(Bt, [["__scopeId", "data-v-18db0d1b"]]), Xt = [
|
645
629
|
{
|
646
630
|
path: "community",
|
647
|
-
component:
|
631
|
+
component: Ie,
|
648
632
|
meta: {
|
649
633
|
title: {
|
650
634
|
en: "Community",
|
@@ -654,7 +638,7 @@ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "comm
|
|
654
638
|
children: [{
|
655
639
|
path: ":category?",
|
656
640
|
name: "Blog",
|
657
|
-
component: () => Promise.resolve().then(() =>
|
641
|
+
component: () => Promise.resolve().then(() => Ye)
|
658
642
|
}]
|
659
643
|
},
|
660
644
|
{
|
@@ -678,7 +662,7 @@ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "comm
|
|
678
662
|
ru: "Пост"
|
679
663
|
}
|
680
664
|
},
|
681
|
-
component: () => Promise.resolve().then(() =>
|
665
|
+
component: () => Promise.resolve().then(() => Ke)
|
682
666
|
},
|
683
667
|
{
|
684
668
|
path: "community/posts/:url/edit",
|
@@ -694,19 +678,19 @@ const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "comm
|
|
694
678
|
}
|
695
679
|
];
|
696
680
|
export {
|
697
|
-
|
698
|
-
|
699
|
-
|
681
|
+
Gt as Activity,
|
682
|
+
Xe as Blog,
|
683
|
+
We as BlogPost,
|
700
684
|
K as CardBlogpost,
|
701
685
|
_e as Comments,
|
702
|
-
|
703
|
-
|
686
|
+
Ie as Community,
|
687
|
+
Ee as CreateBlogPost,
|
704
688
|
ce as Feed,
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
689
|
+
es as FooterBlogpost,
|
690
|
+
Kt as HotPosts,
|
691
|
+
Wt as JoinUs,
|
692
|
+
Qt as SubscribeNewsletter,
|
693
|
+
Xt as blogpostsRoutes,
|
694
|
+
ts as blogpostsStore,
|
695
|
+
ss as reactionsStore
|
712
696
|
};
|