@ozdao/prometheus-framework 0.0.85 → 0.0.87
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-15e71ec4.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +138 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +1944 -0
- package/dist/ButtonFollow-728aab73.mjs +130 -0
- package/dist/CardHeader-ce5a1a75.mjs +96 -0
- package/dist/CardOrganization-58b54995.js +1 -0
- package/dist/CardOrganization-91e79698.mjs +320 -0
- package/dist/CardOrganization-ee5c34ab.js +1 -0
- package/dist/CardOrganization-f70bd169.mjs +202 -0
- package/dist/Comments-63f154a6.js +9 -0
- package/dist/Comments-c092550f.mjs +76 -0
- package/dist/Comments-c5afa4d6.mjs +459 -0
- package/dist/EditProductImages-61ff4321.mjs +236 -0
- package/dist/Feed-8fd41524.js +1 -0
- package/dist/Feed-926cf4f3.mjs +355 -0
- package/dist/Feed-a31c43c2.mjs +423 -0
- package/dist/Feed-ecf37814.mjs +367 -0
- package/dist/IconEdit-736c89be.js +1 -0
- package/dist/IconEdit-e9fd4c6c.mjs +21 -0
- package/dist/PlaceholderUserpic-995da0fc.mjs +28 -0
- package/dist/Popup-0c791801.mjs +76 -0
- package/dist/Popup-105ef2c3.js +1 -0
- package/dist/Popup-82fb2c8a.mjs +76 -0
- package/dist/Product-2f3d592f.mjs +837 -0
- package/dist/Product-2fbf9d99.js +7 -0
- package/dist/Product-6c37ef35.js +7 -0
- package/dist/Product-7087b358.mjs +837 -0
- package/dist/ProductEdit-20709821.mjs +349 -0
- package/dist/ProductEdit-a81d13b9.js +1 -0
- package/dist/ProductEdit-c5067942.mjs +113 -0
- package/dist/ProfileBlogposts-79d5c858.mjs +63 -0
- package/dist/ProfileBlogposts-eca9916c.js +1 -0
- package/dist/ProfileBlogposts-fb014bc6.mjs +63 -0
- package/dist/ProfileComments-48f3d4bc.mjs +43 -0
- package/dist/ProfileComments-58094a50.mjs +43 -0
- package/dist/ProfileComments-b919f021.js +1 -0
- package/dist/ProfileEvents-05485e20.js +1 -0
- package/dist/ProfileEvents-20695376.mjs +55 -0
- package/dist/ProfileEvents-5d206e3d.mjs +55 -0
- package/dist/ProfileLikes-2f3a4488.js +1 -0
- package/dist/ProfileLikes-503712ec.mjs +43 -0
- package/dist/ProfileLikes-b5ac7f48.mjs +43 -0
- package/dist/ProfileOrganizations-0b76e38f.js +1 -0
- package/dist/ProfileOrganizations-32ab1e30.mjs +211 -0
- package/dist/ProfileOrganizations-3f305f4e.mjs +210 -0
- package/dist/ProfileOrganizations-50fce34e.js +1 -0
- package/dist/Publics-3f277c17.js +1 -0
- package/dist/Publics-49dbeafc.js +1 -0
- package/dist/Publics-9ebffff1.mjs +122 -0
- package/dist/Publics-b0fad2b0.mjs +1926 -0
- package/dist/Tab-58cd105f.mjs +46 -0
- package/dist/Tab-6f0a4909.js +1 -0
- package/dist/UploadImage-441e8526.js +1 -0
- package/dist/UploadImage-d1dbc280.mjs +99 -0
- package/dist/UploadImage-ff8f9a0c.mjs +83 -0
- package/dist/auth-35ef1791.mjs +1502 -0
- package/dist/auth.client.cjs +2 -2
- package/dist/auth.client.js +61 -41
- package/dist/auth.validation-29113f37.mjs +20 -0
- package/dist/categories-d669f3af.mjs +225 -0
- package/dist/community.client.cjs +1 -9
- package/dist/community.client.js +369 -741
- package/dist/community.server.js +16 -4
- package/dist/community.server.mjs +16 -4
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +433 -331
- package/dist/events.server.js +19 -2
- package/dist/events.server.mjs +19 -2
- package/dist/inputs.validation-24ae76b9.js +1 -0
- package/dist/modules/constructor/components/elements/Bullets.vue.d.ts +15 -0
- package/dist/modules/constructor/components/elements/Caption.vue.d.ts +15 -0
- package/dist/modules/constructor/components/elements/H2.vue.d.ts +16 -0
- package/dist/modules/constructor/components/elements/Image.vue.d.ts +8 -0
- package/dist/modules/constructor/components/elements/ImageUpload.vue.d.ts +9 -0
- package/dist/modules/constructor/components/elements/Textarea.vue.d.ts +12 -0
- package/dist/modules/constructor/components/sections/Constructor.vue.d.ts +7 -0
- package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -0
- package/dist/modules/icons/entities/IconCommunity.vue.d.ts +2 -0
- package/dist/organizations-1b4c84ee.mjs +121 -0
- package/dist/organizations-af43bda4.js +1 -0
- package/dist/organizations.client-253c8068.mjs +3179 -0
- package/dist/organizations.client-c60d7659.js +3 -0
- package/dist/organizations.client.cjs +1 -3
- package/dist/organizations.client.js +50 -3026
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +245 -208
- package/package.json +1 -1
- package/src/modules/auth/router/auth.js +28 -7
- package/src/modules/community/community.client.js +1 -12
- package/src/modules/community/components/pages/BlogPost.vue +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -151
- package/src/modules/community/middlewares/server/verifyBlogpost.js +24 -11
- package/src/modules/{community → constructor}/components/elements/Textarea.vue +3 -11
- package/src/modules/constructor/components/sections/Constructor.vue +167 -0
- package/src/modules/events/components/blocks/CardEvent.vue +14 -6
- package/src/modules/events/components/pages/EditEvent.vue +228 -133
- package/src/modules/events/components/sections/Feed.vue +7 -1
- package/src/modules/events/controllers/events.controller.js +9 -0
- package/src/modules/events/controllers/tickets.controller.js +2 -1
- package/src/modules/events/models/event.model.js +10 -0
- package/src/modules/events/store/events.js +15 -19
- package/src/modules/icons/entities/IconCommunity.vue +8 -0
- package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -5
- package/src/modules/organizations/components/sections/Publics.vue +3 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/organizations.client.js +0 -2
- package/src/modules/users/components/pages/Profile.vue +15 -4
- package/src/modules/users/components/pages/ProfileEvents.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganizationSocial.vue +0 -46
- /package/src/modules/{community → constructor}/components/elements/Bullets.vue +0 -0
- /package/src/modules/{community → constructor}/components/elements/Caption.vue +0 -0
- /package/src/modules/{community → constructor}/components/elements/H2.vue +0 -0
- /package/src/modules/{community → constructor}/components/elements/Image.vue +0 -0
- /package/src/modules/{community → constructor}/components/elements/ImageUpload.vue +0 -0
package/dist/community.client.js
CHANGED
@@ -1,69 +1,70 @@
|
|
1
|
-
import { resolveComponent as
|
2
|
-
import { useRoute as
|
3
|
-
import { S as
|
4
|
-
import { s as
|
5
|
-
import { e as
|
6
|
-
import { s as
|
7
|
-
import { _ as
|
8
|
-
import { _ as
|
9
|
-
import {
|
10
|
-
import { a as
|
11
|
-
import { _ as
|
12
|
-
import {
|
13
|
-
import { useI18n as Ne } from "vue-i18n";
|
1
|
+
import { resolveComponent as Y, openBlock as i, createElementBlock as c, createElementVNode as o, createVNode as h, normalizeClass as B, unref as d, createCommentVNode as f, 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 U, renderList as D, 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 j, useRouter as A } from "vue-router";
|
3
|
+
import { S as le, _ as re } from "./Publics-9ebffff1.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-a31c43c2.mjs";
|
5
|
+
import { e as ss, f as as, g as os } from "./Feed-a31c43c2.mjs";
|
6
|
+
import { s as w, b as pe, _ as X, F as de } from "./auth-35ef1791.mjs";
|
7
|
+
import { b as me, _ as ge, a as _e } from "./Comments-c5afa4d6.mjs";
|
8
|
+
import { _ as he } from "./Popup-82fb2c8a.mjs";
|
9
|
+
import { _ as fe, S as ve, C as be } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
|
10
|
+
import { a as ye } from "./organizations-1b4c84ee.mjs";
|
11
|
+
import { _ as we } from "./EmptyState-34d85f10.mjs";
|
12
|
+
import { useI18n as xe } from "vue-i18n";
|
14
13
|
import "./globals-96ba60e4.mjs";
|
15
|
-
import "./
|
16
|
-
import "./
|
17
|
-
import "./
|
18
|
-
|
14
|
+
import "./CardOrganization-f70bd169.mjs";
|
15
|
+
import "./ButtonFollow-728aab73.mjs";
|
16
|
+
import "./CardHeader-ce5a1a75.mjs";
|
17
|
+
import "./PlaceholderUserpic-995da0fc.mjs";
|
18
|
+
import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
19
|
+
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: "bg-grey pd-medium radius-big mn-semi flex-nowrap flex" }, Se = { class: "" }, Be = {
|
19
20
|
__name: "Community",
|
20
|
-
setup(
|
21
|
-
const
|
22
|
-
return (e,
|
23
|
-
const
|
24
|
-
return
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
setup(u) {
|
22
|
+
const n = j(), s = A();
|
23
|
+
return (e, a) => {
|
24
|
+
const m = Y("router-view");
|
25
|
+
return i(), c("div", $e, [
|
26
|
+
o("header", ke, [
|
27
|
+
o("h2", Pe, [
|
28
|
+
Ce,
|
29
|
+
h(le, {
|
29
30
|
options: ["today", "week", "month", "year"],
|
30
|
-
select:
|
31
|
-
"onUpdate:select":
|
31
|
+
select: M.filter.period,
|
32
|
+
"onUpdate:select": a[0] || (a[0] = (t) => M.filter.period = t),
|
32
33
|
placeholder: "Select type",
|
33
34
|
class: "w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"
|
34
35
|
}, null, 8, ["select"])
|
35
36
|
])
|
36
37
|
]),
|
37
|
-
|
38
|
-
|
39
|
-
class:
|
40
|
-
onClick:
|
38
|
+
o("ul", Te, [
|
39
|
+
o("li", {
|
40
|
+
class: B([{ "t-white bg-black": d(n).params.category === "featured" }, "mn-r-small t-medium pd-small radius-small"]),
|
41
|
+
onClick: a[1] || (a[1] = (t) => d(s).push({ name: "Blog" }))
|
41
42
|
}, "👑 Featured", 2),
|
42
|
-
|
43
|
-
class:
|
44
|
-
onClick:
|
43
|
+
o("li", {
|
44
|
+
class: B([{ "t-white bg-black": d(n).params.category === "popular" }, "mn-r-small t-medium pd-small radius-small"]),
|
45
|
+
onClick: a[2] || (a[2] = (t) => d(s).push({ name: "Blog", params: { category: "popular" } }))
|
45
46
|
}, "🔥 Popular", 2),
|
46
|
-
|
47
|
-
class:
|
48
|
-
onClick:
|
47
|
+
o("li", {
|
48
|
+
class: B([{ "t-white bg-black": d(n).params.category === "new" }, "mn-r-small t-medium pd-small radius-small"]),
|
49
|
+
onClick: a[3] || (a[3] = (t) => d(s).push({ name: "Blog", params: { category: "new" } }))
|
49
50
|
}, "🆕 New", 2),
|
50
|
-
|
51
|
+
w.user._id ? (i(), c("li", {
|
51
52
|
key: 0,
|
52
|
-
class:
|
53
|
-
onClick:
|
54
|
-
}, "👥 Following", 2)) :
|
53
|
+
class: B([{ "t-white bg-black": d(n).params.category === "following" }, "t-medium pd-small radius-small"]),
|
54
|
+
onClick: a[4] || (a[4] = (t) => d(s).push({ name: "Blog", params: { category: "following" } }))
|
55
|
+
}, "👥 Following", 2)) : f("", !0)
|
55
56
|
]),
|
56
|
-
|
57
|
-
|
58
|
-
default:
|
59
|
-
|
57
|
+
o("section", Se, [
|
58
|
+
h(m, null, {
|
59
|
+
default: k(({ Component: t, route: _ }) => [
|
60
|
+
h(G, {
|
60
61
|
name: "scaleIn",
|
61
62
|
mode: "out-in"
|
62
63
|
}, {
|
63
|
-
default:
|
64
|
-
(
|
64
|
+
default: k(() => [
|
65
|
+
(i(), I(Q(t), {
|
65
66
|
ref: "page",
|
66
|
-
key:
|
67
|
+
key: _.query
|
67
68
|
}))
|
68
69
|
]),
|
69
70
|
_: 2
|
@@ -75,515 +76,148 @@ const Ee = { class: "min-h-100vh pd-thin" }, Le = { class: "mn-thin flex-v-cente
|
|
75
76
|
]);
|
76
77
|
};
|
77
78
|
}
|
78
|
-
}
|
79
|
-
const Ke = ["placeholder"], ae = {
|
80
|
-
__name: "Textarea",
|
81
|
-
props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref", "setFocus"],
|
82
|
-
emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
|
83
|
-
setup(o, { emit: a }) {
|
84
|
-
const t = o;
|
85
|
-
g(t);
|
86
|
-
const e = g(null);
|
87
|
-
g(0);
|
88
|
-
function s(l) {
|
89
|
-
let c = l.target.value.split(/\n+/);
|
90
|
-
if (c.length > 1) {
|
91
|
-
t.prop[t.content] = c[0], M(() => {
|
92
|
-
i();
|
93
|
-
});
|
94
|
-
let h = c.slice(1).map((b) => ({ __name: "Textarea", content: b }));
|
95
|
-
a("addBlock", "Textarea", "", t.index, { blocks: h, ref: e });
|
96
|
-
} else
|
97
|
-
l.target.value.trim() === "" && l.target.value.includes(`
|
98
|
-
|
99
|
-
`) && (console.log("We are adding new block:" + t.index + newBlocks + e), a("addBlock", "Textarea", "", t.index, { blocks: newBlocks, ref: e })), i();
|
100
|
-
}
|
101
|
-
function p(l) {
|
102
|
-
(l.keyCode === 8 || l.keyCode === 46) && t.prop[t.content].trim() === "" && a("deleteBlock", t.prop);
|
103
|
-
}
|
104
|
-
function n() {
|
105
|
-
M(() => {
|
106
|
-
e.value.focus(), a("updateBlock", t.prop, { setFocus: !1 });
|
107
|
-
});
|
108
|
-
}
|
109
|
-
function i() {
|
110
|
-
e.value.style.height = "1rem", e.value.style.height = e.value.scrollHeight + "px";
|
111
|
-
}
|
112
|
-
return R(() => {
|
113
|
-
t.setFocus && M(() => {
|
114
|
-
n();
|
115
|
-
}), i();
|
116
|
-
}), S(() => {
|
117
|
-
t.setFocus && M(() => {
|
118
|
-
n();
|
119
|
-
}), i();
|
120
|
-
}), E(() => t.prop[t.content], (l) => {
|
121
|
-
}), (l, c) => (u(), m("div", null, [
|
122
|
-
q(r("textarea", {
|
123
|
-
"onUpdate:modelValue": c[0] || (c[0] = (h) => o.prop[o.content] = h),
|
124
|
-
placeholder: o.placeholder ? o.placeholder : "Enter text",
|
125
|
-
onInput: s,
|
126
|
-
onFocus: c[1] || (c[1] = (h) => a("focus", e.value)),
|
127
|
-
onKeyup: p,
|
128
|
-
ref_key: "textarea",
|
129
|
-
ref: e,
|
130
|
-
class: "text-area mn-thin"
|
131
|
-
}, `
|
132
|
-
`, 40, Ke), [
|
133
|
-
[J, o.prop[o.content]]
|
134
|
-
])
|
135
|
-
]));
|
136
|
-
}
|
137
|
-
};
|
138
|
-
const We = ["placeholder"], Ge = {
|
139
|
-
__name: "H2",
|
140
|
-
props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref", "setFocus"],
|
141
|
-
emits: ["deleteBlock", "updateBlock", "addBlock", "focus"],
|
142
|
-
setup(o, { emit: a }) {
|
143
|
-
const t = o;
|
144
|
-
g(t);
|
145
|
-
const e = g(null);
|
146
|
-
g(0);
|
147
|
-
function s(l) {
|
148
|
-
let c = l.target.value.split(/\n+/);
|
149
|
-
if (c.length > 1) {
|
150
|
-
t.prop[t.content] = c[0], M(() => {
|
151
|
-
i();
|
152
|
-
});
|
153
|
-
let h = c.slice(1).map((b) => ({ type: "Textarea", content: b }));
|
154
|
-
a("addBlock", "Textarea", "", t.index, { blocks: h, ref: e });
|
155
|
-
} else
|
156
|
-
l.target.value.trim() === "" && l.target.value.includes(`
|
157
|
-
|
158
|
-
`) && (console.log("We are adding new block:" + t.index + newBlocks + e), a("addBlock", "Textarea", "", t.index, { blocks: newBlocks, ref: e })), i();
|
159
|
-
}
|
160
|
-
function p(l) {
|
161
|
-
(l.keyCode === 8 || l.keyCode === 46) && t.prop[t.content].trim() === "" && a("deleteBlock", t.prop);
|
162
|
-
}
|
163
|
-
function n() {
|
164
|
-
M(() => {
|
165
|
-
e.value.focus(), a("updateBlock", t.prop, { setFocus: !1 });
|
166
|
-
});
|
167
|
-
}
|
168
|
-
function i() {
|
169
|
-
e.value.style.height = "1rem", e.value.style.height = e.value.scrollHeight + "px";
|
170
|
-
}
|
171
|
-
return R(() => {
|
172
|
-
t.setFocus && M(() => {
|
173
|
-
n();
|
174
|
-
}), i();
|
175
|
-
}), S(() => {
|
176
|
-
t.setFocus && M(() => {
|
177
|
-
n();
|
178
|
-
}), i();
|
179
|
-
}), E(() => t.prop[t.content], (l) => {
|
180
|
-
}), (l, c) => (u(), m("div", null, [
|
181
|
-
q(r("textarea", {
|
182
|
-
"onUpdate:modelValue": c[0] || (c[0] = (h) => o.prop[o.content] = h),
|
183
|
-
placeholder: o.placeholder ? o.placeholder : "Enter text",
|
184
|
-
onInput: s,
|
185
|
-
onFocus: c[1] || (c[1] = (h) => a("focus", e.value)),
|
186
|
-
onKeyup: p,
|
187
|
-
ref_key: "textarea",
|
188
|
-
ref: e,
|
189
|
-
class: "h3 text-area mn-thin"
|
190
|
-
}, `
|
191
|
-
`, 40, We), [
|
192
|
-
[J, o.prop[o.content]]
|
193
|
-
])
|
194
|
-
]));
|
195
|
-
}
|
196
|
-
}, Qe = ["placeholder"], Xe = {
|
197
|
-
__name: "Caption",
|
198
|
-
props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref"],
|
199
|
-
emits: ["deleteBlock", "addBlock", "focus"],
|
200
|
-
setup(o, { emit: a }) {
|
201
|
-
const t = o;
|
202
|
-
g(t);
|
203
|
-
const e = g(null);
|
204
|
-
function s(n) {
|
205
|
-
const i = /^\s*[-*]\s+(.*)/;
|
206
|
-
let c = n.target.value.split(/\n+/).map((h) => {
|
207
|
-
const b = i.exec(h);
|
208
|
-
return b ? b[1] : null;
|
209
|
-
}).filter((h) => h !== null);
|
210
|
-
c.length > 0 ? (t.prop[t.content] = c, p()) : n.target.value.trim() === "" && (t.prop[t.content] = [], p());
|
211
|
-
}
|
212
|
-
function p() {
|
213
|
-
e.value.style.height = "1rem", e.value.style.height = e.value.scrollHeight + "px";
|
214
|
-
}
|
215
|
-
return R(() => {
|
216
|
-
p();
|
217
|
-
}), S(() => {
|
218
|
-
p();
|
219
|
-
}), E(() => t.prop[t.content], (n) => {
|
220
|
-
(!n || n.length === 0) && a("deleteBlock", t.prop);
|
221
|
-
}), (n, i) => (u(), m("div", null, [
|
222
|
-
q(r("textarea", {
|
223
|
-
"onUpdate:modelValue": i[0] || (i[0] = (l) => o.prop[o.content] = l),
|
224
|
-
placeholder: o.placeholder ? o.placeholder : "Enter text",
|
225
|
-
onInput: s,
|
226
|
-
onFocus: i[1] || (i[1] = (l) => a("focus", e.value)),
|
227
|
-
ref_key: "textarea",
|
228
|
-
ref: e,
|
229
|
-
class: "br-l br-solid br-main pd-l-small text-area mn-small"
|
230
|
-
}, `
|
231
|
-
`, 40, Qe), [
|
232
|
-
[J, o.prop[o.content]]
|
233
|
-
])
|
234
|
-
]));
|
235
|
-
}
|
236
|
-
}, Ye = ["placeholder"], Ze = {
|
237
|
-
__name: "Bullets",
|
238
|
-
props: ["obj", "label", "prop", "value", "content", "textarea", "placeholder", "index", "ref"],
|
239
|
-
emits: ["deleteBlock", "addBlock", "focus"],
|
240
|
-
setup(o, { emit: a }) {
|
241
|
-
const t = o;
|
242
|
-
g(t);
|
243
|
-
const e = g(null);
|
244
|
-
function s(n) {
|
245
|
-
const i = /^\s*[-*]\s+(.*)/;
|
246
|
-
let c = n.target.value.split(/\n+/).map((h) => {
|
247
|
-
const b = i.exec(h);
|
248
|
-
return b ? b[1] : null;
|
249
|
-
}).filter((h) => h !== null);
|
250
|
-
c.length > 0 ? (t.prop[t.content] = c, p()) : n.target.value.trim() === "" && (t.prop[t.content] = [], p());
|
251
|
-
}
|
252
|
-
function p() {
|
253
|
-
e.value.style.height = "1rem", e.value.style.height = e.value.scrollHeight + "px";
|
254
|
-
}
|
255
|
-
return R(() => {
|
256
|
-
p();
|
257
|
-
}), S(() => {
|
258
|
-
p();
|
259
|
-
}), E(() => t.prop[t.content], (n) => {
|
260
|
-
(!n || n.length === 0) && a("deleteBlock", t.prop);
|
261
|
-
}), (n, i) => (u(), m("div", null, [
|
262
|
-
F(H(o.prop[o.content]) + " ", 1),
|
263
|
-
q(r("textarea", {
|
264
|
-
"onUpdate:modelValue": i[0] || (i[0] = (l) => o.prop[o.content] = l),
|
265
|
-
placeholder: o.placeholder ? o.placeholder : "Enter text",
|
266
|
-
onInput: s,
|
267
|
-
onFocus: i[1] || (i[1] = (l) => a("focus", e.value)),
|
268
|
-
ref_key: "textarea",
|
269
|
-
ref: e,
|
270
|
-
class: "text-area mn-small"
|
271
|
-
}, `
|
272
|
-
`, 40, Ye), [
|
273
|
-
[J, o.prop[o.content]]
|
274
|
-
])
|
275
|
-
]));
|
276
|
-
}
|
277
|
-
}, et = ["src"], tt = {
|
278
|
-
key: 1,
|
279
|
-
class: "t-transp pd-extra"
|
280
|
-
}, nt = {
|
281
|
-
__name: "ImageUpload",
|
282
|
-
props: [
|
283
|
-
"label",
|
284
|
-
"value",
|
285
|
-
"prop"
|
286
|
-
],
|
287
|
-
emits: ["input", "updateBlock"],
|
288
|
-
setup(o, { emit: a }) {
|
289
|
-
const t = o, e = g(null), s = g(null);
|
290
|
-
function p() {
|
291
|
-
s.value.click();
|
292
|
-
}
|
293
|
-
async function n(l) {
|
294
|
-
let c = l.target.files[0];
|
295
|
-
console.log(c);
|
296
|
-
let h = new FormData(), b = "unsorted";
|
297
|
-
h.append("file", c), console.log(h.has("file"));
|
298
|
-
try {
|
299
|
-
let j = await Te.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(b)}`, h, {
|
300
|
-
headers: {
|
301
|
-
"Content-Type": "multipart/form-data"
|
302
|
-
}
|
303
|
-
});
|
304
|
-
e.value = j.data.filepath, console.log(e.value), a("input", e.value), a("updateBlock", t.prop, { content: e.value });
|
305
|
-
} catch (I) {
|
306
|
-
console.error(I);
|
307
|
-
}
|
308
|
-
}
|
309
|
-
function i(l) {
|
310
|
-
l.preventDefault(), n({
|
311
|
-
target: {
|
312
|
-
files: l.dataTransfer.files
|
313
|
-
}
|
314
|
-
});
|
315
|
-
}
|
316
|
-
return (l, c) => (u(), m("div", {
|
317
|
-
onClick: p,
|
318
|
-
onDrop: i,
|
319
|
-
onDragover: c[0] || (c[0] = re(() => {
|
320
|
-
}, ["prevent"])),
|
321
|
-
class: "w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"
|
322
|
-
}, [
|
323
|
-
o.prop.content ? (u(), m("img", {
|
324
|
-
key: 0,
|
325
|
-
src: o.prop.content,
|
326
|
-
alt: "Uploaded image",
|
327
|
-
class: "w-100 h-30r object-fit-contain"
|
328
|
-
}, null, 8, et)) : (u(), m("span", tt, "Click or drag-and-drop your image")),
|
329
|
-
r("input", {
|
330
|
-
type: "file",
|
331
|
-
ref_key: "fileInput",
|
332
|
-
ref: s,
|
333
|
-
onChange: n,
|
334
|
-
style: { display: "none" }
|
335
|
-
}, null, 544)
|
336
|
-
], 32));
|
337
|
-
}
|
338
|
-
}, lt = { class: "pd-thin" }, ot = {
|
79
|
+
}, Ie = { class: "pd-thin" }, Me = {
|
339
80
|
key: 0,
|
340
81
|
class: "h-100 w-100 bg-grey pd-big radius-big"
|
341
|
-
},
|
342
|
-
key: 0,
|
343
|
-
class: "z-index-5 radius-thin mn-small relative left-0 mt-2 w-max bg-white shadow-lg rounded"
|
344
|
-
}, it = ["onClick"], ct = ["onClick"], ut = ["onClick"], pt = {
|
82
|
+
}, Fe = { class: "w-full h-full" }, Ne = {
|
345
83
|
key: 1,
|
346
84
|
class: "pd-thin pos-fixed pos-l-0 pos-b-0 w-100"
|
347
|
-
},
|
85
|
+
}, je = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, ze = { class: "w-m-66r t-left pd-big bg-white radius-big" }, Oe = /* @__PURE__ */ o("h3", { class: "mn-small" }, "Final Touches", -1), Ue = /* @__PURE__ */ o("h5", { class: "mn-thin" }, "Add to public:", -1), De = {
|
348
86
|
key: 0,
|
349
87
|
class: "mn-thin"
|
350
|
-
},
|
88
|
+
}, Ae = {
|
351
89
|
key: 1,
|
352
90
|
class: "mn-medium br-grey br-2px br-solid pd-small radius-big"
|
353
|
-
},
|
91
|
+
}, Le = {
|
354
92
|
__name: "CreateBlogPost",
|
355
|
-
setup(
|
356
|
-
const
|
357
|
-
let e = g(null),
|
358
|
-
const
|
359
|
-
|
360
|
-
if (
|
361
|
-
const
|
362
|
-
e.value =
|
93
|
+
setup(u) {
|
94
|
+
const n = j(), s = A();
|
95
|
+
let e = g(null), a = g(null);
|
96
|
+
const m = g([]), t = g(null);
|
97
|
+
F(async () => {
|
98
|
+
if (n.params.url) {
|
99
|
+
const p = await L({ user: w.user._id, url: n.params.url });
|
100
|
+
e.value = p.pop();
|
363
101
|
} else
|
364
|
-
|
102
|
+
ie(), e.value = M.current;
|
365
103
|
e.value.owner || (e.value.owner = {
|
366
|
-
target:
|
104
|
+
target: w.user._id,
|
367
105
|
type: "user"
|
368
106
|
}), e.value.creator || (e.value.creator = {
|
369
|
-
target:
|
107
|
+
target: w.user._id,
|
370
108
|
type: "user",
|
371
109
|
hidden: !1
|
372
|
-
}), e.value.owner.type === "organization" && (
|
110
|
+
}), e.value.owner.type === "organization" && (t.value = {
|
373
111
|
_id: e.value.owner.target._id,
|
374
112
|
name: e.value.owner.target.profile.name,
|
375
113
|
photo: e.value.owner.target.profile.photo
|
376
114
|
});
|
377
|
-
const
|
378
|
-
user:
|
379
|
-
postable:
|
115
|
+
const r = await ye.read({
|
116
|
+
user: w.user._id,
|
117
|
+
postable: w.user._id
|
380
118
|
});
|
381
|
-
console.log(
|
382
|
-
name:
|
383
|
-
_id:
|
384
|
-
photo:
|
119
|
+
console.log(r), a.value = r.map((p) => ({
|
120
|
+
name: p.profile.name,
|
121
|
+
_id: p._id,
|
122
|
+
photo: p.profile.photo
|
385
123
|
}));
|
386
124
|
});
|
387
|
-
const
|
125
|
+
const _ = g(""), l = g([
|
388
126
|
{ text: "story" },
|
389
127
|
{ text: "news" },
|
390
128
|
{ text: "guide" },
|
391
129
|
{ text: "discussion" },
|
392
130
|
{ text: "photos" }
|
393
131
|
]);
|
394
|
-
|
395
|
-
const
|
396
|
-
function
|
397
|
-
|
398
|
-
}
|
399
|
-
function
|
400
|
-
|
401
|
-
}
|
402
|
-
function
|
403
|
-
|
404
|
-
|
405
|
-
}).catch((
|
406
|
-
console.log(
|
407
|
-
}) :
|
408
|
-
|
409
|
-
}).catch((
|
410
|
-
console.log(
|
132
|
+
V(() => l.value.filter((r) => r.text.toLowerCase().includes(_.value.toLowerCase()))), V(() => l.value.filter((r) => !m.value.some((p) => p.text === r.text)));
|
133
|
+
const v = g(!1);
|
134
|
+
function P() {
|
135
|
+
v.value = !0;
|
136
|
+
}
|
137
|
+
function $() {
|
138
|
+
v.value = !1;
|
139
|
+
}
|
140
|
+
function S() {
|
141
|
+
m.value.length > 0 && m.value.map((r) => r.text), e.value.status = "draft", n.params.url ? q(e.value).then((r) => {
|
142
|
+
s.push({ name: "BlogPost", params: { url: r.url } });
|
143
|
+
}).catch((r) => {
|
144
|
+
console.log(r);
|
145
|
+
}) : R(e.value).then((r) => {
|
146
|
+
s.push({ name: "BlogPost", params: { url: r.url } });
|
147
|
+
}).catch((r) => {
|
148
|
+
console.log(r);
|
411
149
|
});
|
412
150
|
}
|
413
|
-
function
|
414
|
-
|
415
|
-
target:
|
151
|
+
function z() {
|
152
|
+
t.value && (e.value.owner = {
|
153
|
+
target: t.value._id,
|
416
154
|
type: "organization"
|
417
|
-
}),
|
418
|
-
|
419
|
-
}).catch((
|
420
|
-
console.log(
|
421
|
-
}) :
|
422
|
-
|
423
|
-
}).catch((
|
424
|
-
console.log(
|
155
|
+
}), 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 ? q(e.value).then((r) => {
|
156
|
+
s.push({ name: "BlogPost", params: { url: r.url } });
|
157
|
+
}).catch((r) => {
|
158
|
+
console.log(r);
|
159
|
+
}) : R(e.value).then((r) => {
|
160
|
+
s.push({ name: "BlogPost", params: { url: r.url } });
|
161
|
+
}).catch((r) => {
|
162
|
+
console.log(r);
|
425
163
|
});
|
426
164
|
}
|
427
|
-
function
|
428
|
-
confirm("Are you sure you want to delete this post?") &&
|
429
|
-
|
430
|
-
}).catch((
|
431
|
-
console.log(
|
165
|
+
function O() {
|
166
|
+
confirm("Are you sure you want to delete this post?") && ue(e.value._id).then((r) => {
|
167
|
+
s.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
|
168
|
+
}).catch((r) => {
|
169
|
+
console.log(r);
|
432
170
|
});
|
433
171
|
}
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
ImageUpload: nt
|
440
|
-
};
|
441
|
-
function z(d = "Textarea", f = "", v, k) {
|
442
|
-
console.log("We are adding new block (functuin HandleAddBlock):" + d + f + v + k);
|
443
|
-
let C = {
|
444
|
-
order: e.value.content.length + 1,
|
445
|
-
type: d,
|
446
|
-
style: "",
|
447
|
-
class: "",
|
448
|
-
content: f,
|
449
|
-
blocks: [],
|
450
|
-
setFocus: !0
|
451
|
-
};
|
452
|
-
if (k && k.blocks && Array.isArray(k.blocks)) {
|
453
|
-
let Q = k.blocks.map((he) => ({
|
454
|
-
...C,
|
455
|
-
content: he.content
|
456
|
-
})), ge = [(k.index || v) + 1, 0].concat(Q);
|
457
|
-
e.value.content.splice.apply(e.value.content, ge);
|
458
|
-
const fe = Q[Q.length - 1];
|
459
|
-
console.log("New block is" + fe);
|
460
|
-
} else
|
461
|
-
v !== void 0 ? (e.value.content.splice(v + 1, 0, C), console.log("Latest block is" + C)) : (console.log("Another block is" + C), e.value.content.push(C));
|
462
|
-
$.value = null;
|
463
|
-
}
|
464
|
-
function G(d, f) {
|
465
|
-
const v = e.value.content.findIndex((k) => k === d);
|
466
|
-
v !== -1 && (e.value.content[v] = { ...e.value.content[v], ...f });
|
467
|
-
}
|
468
|
-
function A(d) {
|
469
|
-
let f = e.value.content.findIndex((v) => v === d);
|
470
|
-
f !== -1 && e.value.content.splice(f, 1), e.value.content[f - 1].setFocus = !0;
|
471
|
-
}
|
472
|
-
const $ = g(null), w = g(!1), B = g(!1);
|
473
|
-
function de() {
|
474
|
-
w.value = !0;
|
475
|
-
}
|
476
|
-
function me() {
|
477
|
-
w.value = !1;
|
478
|
-
}
|
479
|
-
return ie(() => {
|
480
|
-
e.value && e.value.content.length === 0 && z("Textarea", "");
|
481
|
-
}), (d, f) => (u(), m("article", lt, [
|
482
|
-
_(e) ? (u(), m("section", ot, [
|
483
|
-
r("div", at, [
|
484
|
-
x(ae, {
|
485
|
-
prop: _(e),
|
172
|
+
return (r, p) => (i(), c("article", Ie, [
|
173
|
+
d(e) ? (i(), c("section", Me, [
|
174
|
+
o("div", Fe, [
|
175
|
+
h(me, {
|
176
|
+
prop: d(e),
|
486
177
|
content: "name",
|
487
178
|
placeholder: "Enter post title",
|
488
179
|
class: "h2"
|
489
180
|
}, null, 8, ["prop"])
|
490
181
|
]),
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
(u(!0), m(V, null, O(_(e).content, (v, k) => (u(), m("div", {
|
500
|
-
key: k,
|
501
|
-
class: "relative"
|
502
|
-
}, [
|
503
|
-
r("div", {
|
504
|
-
onMouseover: (C) => ($.value = k, B.value = !1),
|
505
|
-
class: "w-full h-full"
|
506
|
-
}, [
|
507
|
-
(u(), U(Y(L[v.type]), {
|
508
|
-
index: k,
|
509
|
-
component: v,
|
510
|
-
prop: v,
|
511
|
-
class: D(v.class),
|
512
|
-
setFocus: v.setFocus,
|
513
|
-
content: "content",
|
514
|
-
onDeleteBlock: A,
|
515
|
-
onAddBlock: z,
|
516
|
-
onUpdateBlock: G
|
517
|
-
}, null, 40, ["index", "component", "prop", "class", "setFocus"]))
|
518
|
-
], 40, st),
|
519
|
-
x(X, { name: "fade" }, {
|
520
|
-
default: T(() => [
|
521
|
-
$.value === k ? (u(), m("div", {
|
522
|
-
key: 0,
|
523
|
-
class: "pos-absolute pos-r-100 pos-t-0 z-index-4 i-semi",
|
524
|
-
onMousedown: f[1] || (f[1] = re((C) => w.value = !0, ["prevent"]))
|
525
|
-
}, [
|
526
|
-
r("button", {
|
527
|
-
onClick: f[0] || (f[0] = (C) => B.value = !B.value),
|
528
|
-
class: "mn-small w-100 i-semi bg-white radius-thin"
|
529
|
-
}, H(v.content ? "..." : "+"), 1),
|
530
|
-
B.value ? (u(), m("div", rt, [
|
531
|
-
r("button", {
|
532
|
-
onClick: (C) => A(v),
|
533
|
-
class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
|
534
|
-
}, "Удалить", 8, it),
|
535
|
-
r("button", {
|
536
|
-
onClick: (C) => z("ImageUpload", "", k),
|
537
|
-
class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
|
538
|
-
}, "Добавить изображение", 8, ct),
|
539
|
-
r("button", {
|
540
|
-
onClick: (C) => z("H2", "", k),
|
541
|
-
class: "block w-max text-left px-4 py-2 hover:bg-gray-200"
|
542
|
-
}, "Добавить заголовок", 8, ut)
|
543
|
-
])) : y("", !0)
|
544
|
-
], 32)) : y("", !0)
|
545
|
-
]),
|
546
|
-
_: 2
|
547
|
-
}, 1024)
|
548
|
-
]))), 128))
|
549
|
-
]),
|
550
|
-
_: 1
|
551
|
-
}, 8, ["list"])) : y("", !0)
|
552
|
-
])) : y("", !0),
|
553
|
-
_(e) ? (u(), m("section", pt, [
|
554
|
-
r("div", dt, [
|
555
|
-
_(a).params.url ? (u(), m("a", {
|
182
|
+
h(ge, {
|
183
|
+
content: d(e).content,
|
184
|
+
onUpdate: p[0] || (p[0] = (b) => d(e).content = b)
|
185
|
+
}, null, 8, ["content"])
|
186
|
+
])) : f("", !0),
|
187
|
+
d(e) ? (i(), c("section", Ne, [
|
188
|
+
o("div", je, [
|
189
|
+
d(n).params.url ? (i(), c("a", {
|
556
190
|
key: 0,
|
557
|
-
onClick:
|
191
|
+
onClick: p[1] || (p[1] = (b) => O()),
|
558
192
|
class: "mn-r-auto bg-red t-white t-black button"
|
559
|
-
}, "Delete")) :
|
560
|
-
|
561
|
-
onClick:
|
193
|
+
}, "Delete")) : f("", !0),
|
194
|
+
o("a", {
|
195
|
+
onClick: p[2] || (p[2] = (b) => S()),
|
562
196
|
class: "mn-l-auto bg-white t-black button"
|
563
197
|
}, "To Drafts"),
|
564
|
-
|
565
|
-
onClick:
|
198
|
+
o("a", {
|
199
|
+
onClick: p[3] || (p[3] = (b) => P()),
|
566
200
|
class: "mn-l-thin bg-black t-white button"
|
567
201
|
}, "Publish")
|
568
202
|
])
|
569
|
-
])) :
|
570
|
-
|
203
|
+
])) : f("", !0),
|
204
|
+
h(he, {
|
571
205
|
title: "Добавить участника",
|
572
|
-
onClosePopup:
|
573
|
-
isPopupOpen:
|
206
|
+
onClosePopup: $,
|
207
|
+
isPopupOpen: v.value
|
574
208
|
}, {
|
575
|
-
default:
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
onTagsChanged:
|
580
|
-
tags:
|
209
|
+
default: k(() => [
|
210
|
+
o("div", ze, [
|
211
|
+
Oe,
|
212
|
+
h(fe, {
|
213
|
+
onTagsChanged: p[4] || (p[4] = (b) => d(e).tags = b),
|
214
|
+
tags: d(e).tags
|
581
215
|
}, null, 8, ["tags"]),
|
582
|
-
|
583
|
-
|
584
|
-
modelValue:
|
585
|
-
"onUpdate:modelValue":
|
586
|
-
options:
|
216
|
+
Ue,
|
217
|
+
h(ve, {
|
218
|
+
modelValue: t.value,
|
219
|
+
"onUpdate:modelValue": p[5] || (p[5] = (b) => t.value = b),
|
220
|
+
options: d(a),
|
587
221
|
multiple: !1,
|
588
222
|
taggable: !1,
|
589
223
|
placeholder: "Type to search or add tag",
|
@@ -591,23 +225,23 @@ const We = ["placeholder"], Ge = {
|
|
591
225
|
"track-by": "_id",
|
592
226
|
class: "mn-medium bg-grey radius-medium pd-small"
|
593
227
|
}, null, 8, ["modelValue", "options"]),
|
594
|
-
|
595
|
-
|
596
|
-
|
228
|
+
t.value ? (i(), c("h5", De, "Options:")) : f("", !0),
|
229
|
+
t.value ? (i(), c("div", Ae, [
|
230
|
+
h(be, {
|
597
231
|
label: "Hide Author",
|
598
|
-
radio:
|
599
|
-
"onUpdate:radio":
|
232
|
+
radio: d(e).creator.hidden,
|
233
|
+
"onUpdate:radio": p[6] || (p[6] = (b) => d(e).creator.hidden = b),
|
600
234
|
name: "prices",
|
601
235
|
class: "w-100"
|
602
236
|
}, null, 8, ["radio"])
|
603
|
-
])) :
|
604
|
-
|
605
|
-
submit:
|
606
|
-
callback:
|
237
|
+
])) : f("", !0),
|
238
|
+
h(pe, {
|
239
|
+
submit: z,
|
240
|
+
callback: r.redirectTo,
|
607
241
|
class: "w-100 bg-black t-white"
|
608
242
|
}, {
|
609
|
-
default:
|
610
|
-
|
243
|
+
default: k(() => [
|
244
|
+
T("Publish")
|
611
245
|
]),
|
612
246
|
_: 1
|
613
247
|
}, 8, ["callback"])
|
@@ -617,199 +251,199 @@ const We = ["placeholder"], Ge = {
|
|
617
251
|
}, 8, ["isPopupOpen"])
|
618
252
|
]));
|
619
253
|
}
|
620
|
-
},
|
254
|
+
}, J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
621
255
|
__proto__: null,
|
622
|
-
default:
|
623
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
256
|
+
default: Le
|
257
|
+
}, Symbol.toStringTag, { value: "Module" })), Ee = {}, Ve = {
|
624
258
|
width: "100%",
|
625
259
|
height: "20rem",
|
626
260
|
xmlns: "http://www.w3.org/2000/svg"
|
627
|
-
},
|
628
|
-
|
261
|
+
}, He = /* @__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), qe = [
|
262
|
+
He
|
629
263
|
];
|
630
|
-
function
|
631
|
-
return
|
264
|
+
function Re(u, n) {
|
265
|
+
return i(), c("svg", Ve, qe);
|
632
266
|
}
|
633
|
-
const
|
267
|
+
const Je = /* @__PURE__ */ X(Ee, [["render", Re]]), Ge = { class: "w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small" }, Qe = ["src"], We = {
|
634
268
|
__name: "Image",
|
635
269
|
props: [
|
636
270
|
"label",
|
637
271
|
"value",
|
638
272
|
"prop"
|
639
273
|
],
|
640
|
-
setup(
|
641
|
-
return g(null), (
|
642
|
-
|
274
|
+
setup(u) {
|
275
|
+
return g(null), (n, s) => (i(), c("div", Ge, [
|
276
|
+
u.prop.content ? (i(), c("img", {
|
643
277
|
key: 0,
|
644
|
-
src:
|
278
|
+
src: u.prop.content,
|
645
279
|
alt: "Uploaded image",
|
646
280
|
class: "w-100 h-30r object-fit-contain"
|
647
|
-
}, null, 8,
|
281
|
+
}, null, 8, Qe)) : f("", !0)
|
648
282
|
]));
|
649
283
|
}
|
650
|
-
},
|
284
|
+
}, Ke = { class: "pd-thin" }, Xe = {
|
651
285
|
__name: "BlogPost",
|
652
|
-
setup(
|
653
|
-
const
|
654
|
-
|
286
|
+
setup(u) {
|
287
|
+
const n = j(), s = g(null), e = g(!0);
|
288
|
+
F(async () => {
|
655
289
|
e.value = !0;
|
656
|
-
const
|
657
|
-
|
290
|
+
const t = await L({ user: w.user._id, url: n.params.url });
|
291
|
+
s.value = t[0], e.value = !1;
|
658
292
|
});
|
659
|
-
const
|
293
|
+
const a = {
|
660
294
|
Textarea: "p",
|
661
295
|
H2: "h2",
|
662
296
|
Bullets: "p",
|
663
297
|
Caption: "p",
|
664
|
-
ImageUpload:
|
298
|
+
ImageUpload: We
|
665
299
|
};
|
666
|
-
function
|
667
|
-
return
|
300
|
+
function m(t) {
|
301
|
+
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 } : {};
|
668
302
|
}
|
669
|
-
return (
|
670
|
-
|
303
|
+
return (t, _) => (i(), c("section", Ke, [
|
304
|
+
h(H, {
|
671
305
|
tag: "ul",
|
672
306
|
name: "fade",
|
673
307
|
class: "o-hidden bg-grey radius-big"
|
674
308
|
}, {
|
675
|
-
default:
|
676
|
-
e.value ? (
|
309
|
+
default: k(() => [
|
310
|
+
e.value ? (i(), c(U, { key: 0 }, D(3, (l) => h(Je, { key: l })), 64)) : f("", !0)
|
677
311
|
]),
|
678
312
|
_: 1
|
679
313
|
}),
|
680
|
-
|
681
|
-
default:
|
682
|
-
!e.value && !
|
314
|
+
h(G, { name: "fade" }, {
|
315
|
+
default: k(() => [
|
316
|
+
!e.value && !s.value ? (i(), I(we, {
|
683
317
|
key: 0,
|
684
318
|
title: "No Blogpost Found",
|
685
319
|
description: "Currently, there are no blogposts available. Please check back later.",
|
686
320
|
class: "pd-medium mn-thin bg-grey radius-big"
|
687
|
-
})) :
|
321
|
+
})) : f("", !0)
|
688
322
|
]),
|
689
323
|
_: 1
|
690
324
|
}),
|
691
|
-
|
325
|
+
h(H, {
|
692
326
|
tag: "ul",
|
693
327
|
name: "fade",
|
694
328
|
class: "container"
|
695
329
|
}, {
|
696
|
-
default:
|
697
|
-
!e.value &&
|
330
|
+
default: k(() => [
|
331
|
+
!e.value && s.value ? (i(), I(K, {
|
698
332
|
key: 0,
|
699
|
-
onClick:
|
700
|
-
blogpost:
|
701
|
-
user:
|
333
|
+
onClick: _[0] || (_[0] = (l) => t.$router.push({ name: "Blogpost", params: { url: s.value.url } })),
|
334
|
+
blogpost: s.value,
|
335
|
+
user: w.user._id,
|
702
336
|
type: "blogpostPage",
|
703
|
-
class:
|
704
|
-
"br-b br-solid br-black-transp-10":
|
337
|
+
class: B(["mn-medium", {
|
338
|
+
"br-b br-solid br-black-transp-10": t.index !== s.value.length - 1
|
705
339
|
}])
|
706
340
|
}, {
|
707
|
-
default:
|
708
|
-
|
709
|
-
|
710
|
-
key:
|
711
|
-
index:
|
341
|
+
default: k(() => [
|
342
|
+
o("section", null, [
|
343
|
+
s.value && s.value.content ? (i(!0), c(U, { key: 0 }, D(s.value.content, (l, v) => (i(), I(Q(a[l.type]), ee({
|
344
|
+
key: v,
|
345
|
+
index: v,
|
712
346
|
component: l,
|
713
347
|
prop: l,
|
714
348
|
class: l.class,
|
715
349
|
content: "content"
|
716
|
-
},
|
350
|
+
}, m(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : f("", !0)
|
717
351
|
])
|
718
352
|
]),
|
719
353
|
_: 1
|
720
|
-
}, 8, ["blogpost", "user", "class"])) :
|
721
|
-
|
722
|
-
!e.value &&
|
354
|
+
}, 8, ["blogpost", "user", "class"])) : f("", !0),
|
355
|
+
h(re, { class: "mn-small" }),
|
356
|
+
!e.value && s.value ? (i(), I(_e, {
|
723
357
|
key: 1,
|
724
358
|
type: "blogpost",
|
725
|
-
target:
|
726
|
-
owner:
|
727
|
-
}, null, 8, ["target", "owner"])) :
|
359
|
+
target: s.value._id,
|
360
|
+
owner: w.user._id
|
361
|
+
}, null, 8, ["target", "owner"])) : f("", !0)
|
728
362
|
]),
|
729
363
|
_: 1
|
730
364
|
})
|
731
365
|
]));
|
732
366
|
}
|
733
|
-
},
|
367
|
+
}, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
734
368
|
__proto__: null,
|
735
|
-
default:
|
736
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
369
|
+
default: Xe
|
370
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = {
|
737
371
|
__name: "Blog",
|
738
|
-
setup(
|
739
|
-
const
|
740
|
-
return
|
741
|
-
if (
|
742
|
-
const e =
|
372
|
+
setup(u) {
|
373
|
+
const n = j(), s = A();
|
374
|
+
return n.params.category || (n.params.category = "featured"), F(() => {
|
375
|
+
if (n.query) {
|
376
|
+
const e = n.query, a = {
|
743
377
|
tags: e.tags ? e.tags.split(",") : [],
|
744
378
|
period: e.period ? e.period : "year"
|
745
379
|
};
|
746
|
-
|
380
|
+
M.filter = a;
|
747
381
|
}
|
748
|
-
}),
|
749
|
-
const
|
750
|
-
Object.keys(
|
751
|
-
|
382
|
+
}), te(() => M.filter, (e, a) => {
|
383
|
+
const m = { ...n.query };
|
384
|
+
Object.keys(a).forEach((_) => {
|
385
|
+
m[_] && delete m[_];
|
752
386
|
});
|
753
|
-
const
|
754
|
-
Object.entries(e).filter(([
|
387
|
+
const t = Object.fromEntries(
|
388
|
+
Object.entries(e).filter(([_, l]) => Array.isArray(l) && l.length > 0 || typeof l == "string" && l).map(([_, l]) => [_, Array.isArray(l) ? l.join(",") : l])
|
755
389
|
);
|
756
|
-
Object.assign(
|
757
|
-
}, { deep: !0 }), (e,
|
758
|
-
|
759
|
-
category:
|
760
|
-
user:
|
761
|
-
period:
|
390
|
+
Object.assign(m, t), s.push({ query: m });
|
391
|
+
}, { deep: !0 }), (e, a) => (i(), c("section", null, [
|
392
|
+
h(ce, {
|
393
|
+
category: d(n).params.category,
|
394
|
+
user: w.user._id,
|
395
|
+
period: d(n).query.period
|
762
396
|
}, null, 8, ["category", "user", "period"])
|
763
397
|
]));
|
764
398
|
}
|
765
|
-
},
|
399
|
+
}, et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
766
400
|
__proto__: null,
|
767
|
-
default:
|
768
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
401
|
+
default: Ze
|
402
|
+
}, Symbol.toStringTag, { value: "Module" })), tt = { class: "w-100 cols-4 t-left flex-nowrap flex" }, st = {
|
769
403
|
key: 0,
|
770
404
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
771
|
-
},
|
405
|
+
}, 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 = {
|
772
406
|
key: 1,
|
773
407
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
774
|
-
},
|
408
|
+
}, rt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "💬", -1), it = { class: "t-semi uppercase" }, ut = /* @__PURE__ */ o("br", null, null, -1), ct = {
|
775
409
|
key: 2,
|
776
410
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
777
|
-
},
|
411
|
+
}, pt = /* @__PURE__ */ o("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), dt = { class: "t-semi uppercase" }, mt = /* @__PURE__ */ o("br", null, null, -1), Wt = {
|
778
412
|
__name: "Activity",
|
779
413
|
props: {
|
780
414
|
likes: Number,
|
781
415
|
comments: Number,
|
782
416
|
subscriptions: Number
|
783
417
|
},
|
784
|
-
setup(
|
785
|
-
return (
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
418
|
+
setup(u) {
|
419
|
+
return (n, s) => (i(), c("section", tt, [
|
420
|
+
u.likes ? (i(), c("div", st, [
|
421
|
+
at,
|
422
|
+
o("span", ot, [
|
423
|
+
T(N(u.likes), 1),
|
424
|
+
nt,
|
425
|
+
T("likes")
|
792
426
|
])
|
793
|
-
])) :
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
427
|
+
])) : f("", !0),
|
428
|
+
u.comments ? (i(), c("div", lt, [
|
429
|
+
rt,
|
430
|
+
o("span", it, [
|
431
|
+
T(N(u.comments), 1),
|
432
|
+
ut,
|
433
|
+
T("comments")
|
800
434
|
])
|
801
|
-
])) :
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
435
|
+
])) : f("", !0),
|
436
|
+
u.subscriptions ? (i(), c("div", ct, [
|
437
|
+
pt,
|
438
|
+
o("span", dt, [
|
439
|
+
T(N(u.subscriptions), 1),
|
440
|
+
mt,
|
441
|
+
T("subscriptions")
|
808
442
|
])
|
809
|
-
])) :
|
443
|
+
])) : f("", !0)
|
810
444
|
]));
|
811
445
|
}
|
812
|
-
},
|
446
|
+
}, gt = { class: "pd-thin radius-extra flex-nowrap flex" }, _t = ["innerHTML"], ht = {
|
813
447
|
__name: "FieldBig",
|
814
448
|
props: {
|
815
449
|
input: String,
|
@@ -841,94 +475,94 @@ const $t = /* @__PURE__ */ pe(bt, [["render", kt]]), Bt = { class: "w-100 bg-whi
|
|
841
475
|
}
|
842
476
|
},
|
843
477
|
emits: ["update:input", "action"],
|
844
|
-
setup(
|
845
|
-
const
|
846
|
-
let
|
847
|
-
function j() {
|
848
|
-
a("action");
|
849
|
-
}
|
850
|
-
function W($) {
|
851
|
-
a("update:input", $), h.value = $;
|
852
|
-
}
|
853
|
-
function L() {
|
854
|
-
p.value = (p.value + 1) % t.placeholderTexts[s.value].length;
|
855
|
-
}
|
478
|
+
setup(u, { emit: n }) {
|
479
|
+
const s = u, { t: e, locale: a } = xe();
|
480
|
+
let m = g(0), t = g(s.input), _ = g(s.placeholder), l = g(s.enableTyping), v = g(null), P = g(""), $ = g(!0), S = null;
|
856
481
|
function z() {
|
857
|
-
|
482
|
+
n("action");
|
483
|
+
}
|
484
|
+
function O(x) {
|
485
|
+
n("update:input", x), P.value = x;
|
858
486
|
}
|
859
|
-
function
|
860
|
-
|
487
|
+
function r() {
|
488
|
+
m.value = (m.value + 1) % s.placeholderTexts[a.value].length;
|
861
489
|
}
|
862
|
-
function
|
863
|
-
|
864
|
-
I = setInterval(() => {
|
865
|
-
b.value = !b.value;
|
866
|
-
}, 200), c.value = setInterval(() => {
|
867
|
-
l.value && (B ? (n.value = n.value.slice(0, -1), n.value = $.substring(0, w) + (b.value && w % 2 ? "|" : ""), w--) : (n.value = $.substring(0, w) + (b.value && w % 2 ? "|" : ""), w++), w > $.length && t.loopTyping && setTimeout(() => {
|
868
|
-
B = !0, n.value = $.substring(0, w);
|
869
|
-
}, 333), w === 0 && B && (B = !1, L(), $ = t.placeholderTexts[s.value][p.value]));
|
870
|
-
}, t.typingSpeed);
|
490
|
+
function p() {
|
491
|
+
l.value = !1, clearInterval(v.value), _.value = s.placeholder, P.value || (t.value = "");
|
871
492
|
}
|
872
|
-
|
873
|
-
|
874
|
-
}
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
493
|
+
function b() {
|
494
|
+
!P.value && s.enableTyping && (l.value = !0, _.value = "", E());
|
495
|
+
}
|
496
|
+
function E() {
|
497
|
+
let x = s.placeholderTexts[a.value][m.value], y = 0, C = !1;
|
498
|
+
S = setInterval(() => {
|
499
|
+
$.value = !$.value;
|
500
|
+
}, 200), v.value = setInterval(() => {
|
501
|
+
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
|
+
C = !0, t.value = x.substring(0, y);
|
503
|
+
}, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[a.value][m.value]));
|
504
|
+
}, s.typingSpeed);
|
505
|
+
}
|
506
|
+
return F(() => {
|
507
|
+
s.enableTyping && E();
|
508
|
+
}), se(() => {
|
509
|
+
l.value || (clearInterval(v.value), clearInterval(S));
|
510
|
+
}), (x, y) => (i(), c("div", gt, [
|
511
|
+
h(de, {
|
512
|
+
field: d(t),
|
879
513
|
"onUpdate:field": [
|
880
|
-
|
881
|
-
|
514
|
+
y[0] || (y[0] = (C) => W(t) ? t.value = C : t = C),
|
515
|
+
O
|
882
516
|
],
|
883
|
-
placeholder: _
|
884
|
-
onInput:
|
885
|
-
onFocus:
|
886
|
-
onBlur:
|
517
|
+
placeholder: d(_),
|
518
|
+
onInput: r,
|
519
|
+
onFocus: p,
|
520
|
+
onBlur: b,
|
887
521
|
class: "w-100 pd-small p-big"
|
888
522
|
}, null, 8, ["field", "placeholder"]),
|
889
|
-
|
523
|
+
u.action ? (i(), c("button", {
|
890
524
|
key: 0,
|
891
|
-
onClick:
|
525
|
+
onClick: z,
|
892
526
|
class: "w-min hover_bg-white hover-t-black t-black bg-main button",
|
893
|
-
innerHTML:
|
894
|
-
}, null, 8,
|
527
|
+
innerHTML: u.action
|
528
|
+
}, null, 8, _t)) : f("", !0)
|
895
529
|
]));
|
896
530
|
}
|
897
531
|
};
|
898
|
-
const
|
899
|
-
/* @__PURE__ */
|
900
|
-
/* @__PURE__ */
|
901
|
-
], -1),
|
902
|
-
/* @__PURE__ */
|
903
|
-
], -1),
|
532
|
+
const ft = { class: "pd-thin" }, vt = { class: "o-hidden t-black bg-main pd-big radius-big" }, bt = /* @__PURE__ */ o("header", { class: "t-center z-index-1 mn-big" }, [
|
533
|
+
/* @__PURE__ */ o("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
|
534
|
+
/* @__PURE__ */ o("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
|
535
|
+
], -1), yt = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, wt = /* @__PURE__ */ o("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
|
536
|
+
/* @__PURE__ */ o("div", { class: "spiral" })
|
537
|
+
], -1), Kt = {
|
904
538
|
__name: "SubscribeNewsletter",
|
905
|
-
setup(
|
906
|
-
let
|
907
|
-
return (
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
input:
|
539
|
+
setup(u) {
|
540
|
+
let n = g("");
|
541
|
+
return (s, e) => (i(), c("section", ft, [
|
542
|
+
o("div", vt, [
|
543
|
+
bt,
|
544
|
+
o("div", yt, [
|
545
|
+
h(ht, {
|
546
|
+
input: d(n),
|
913
547
|
typingSpeed: 75,
|
914
548
|
loopTyping: !1,
|
915
549
|
enableTyping: !1,
|
916
550
|
placeholder: "Please enter your email",
|
917
551
|
action: "Subscribe",
|
918
|
-
"onUpdate:input": e[0] || (e[0] = (
|
919
|
-
onAction: e[1] || (e[1] = (
|
552
|
+
"onUpdate:input": e[0] || (e[0] = (a) => W(n) ? n.value = a : n = a),
|
553
|
+
onAction: e[1] || (e[1] = (a) => s.router.push({ name: "Product Recommmendation", query: { mood: s.mood } })),
|
920
554
|
class: "mn-l-auto mn-r-auto bg-white t-black w-50"
|
921
555
|
}, null, 8, ["input"])
|
922
556
|
]),
|
923
|
-
|
557
|
+
wt
|
924
558
|
])
|
925
559
|
]));
|
926
560
|
}
|
927
561
|
};
|
928
|
-
const
|
562
|
+
const xt = { class: "container container-joinus" }, $t = { class: "content" }, kt = { class: "h0 mn-big" }, Pt = /* @__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), Ct = /* @__PURE__ */ o("button", { class: "bg-black t-white button" }, "Join Now", -1), Xt = {
|
929
563
|
__name: "JoinUs",
|
930
|
-
setup(
|
931
|
-
const
|
564
|
+
setup(u) {
|
565
|
+
const n = g(120950), s = g([
|
932
566
|
"/assets/images/reviews/01.png",
|
933
567
|
"/assets/images/reviews/02.png",
|
934
568
|
"/assets/images/reviews/03.png",
|
@@ -937,49 +571,49 @@ const en = { class: "container container-joinus" }, tn = { class: "content" }, n
|
|
937
571
|
"/assets/images/reviews/06.png"
|
938
572
|
]), e = () => {
|
939
573
|
setInterval(() => {
|
940
|
-
|
574
|
+
n.value += Math.floor(Math.random() * 5) + 1;
|
941
575
|
}, 330);
|
942
|
-
},
|
576
|
+
}, a = {
|
943
577
|
minSize: "6rem",
|
944
578
|
maxSize: "10rem",
|
945
579
|
minDuration: 5,
|
946
580
|
maxDuration: 15,
|
947
581
|
spawnPoints: [10, 90]
|
948
582
|
};
|
949
|
-
|
950
|
-
|
583
|
+
F(() => {
|
584
|
+
m(), e();
|
951
585
|
});
|
952
|
-
const
|
953
|
-
|
586
|
+
const m = () => {
|
587
|
+
s.value.forEach((t, _) => {
|
954
588
|
let l = document.createElement("img");
|
955
|
-
l.src =
|
956
|
-
let
|
957
|
-
l.style.left = `${
|
958
|
-
const
|
959
|
-
l.style.left = `${
|
589
|
+
l.src = t, l.classList.add("floating-image");
|
590
|
+
let v = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], P = (Math.random() - 0.5) * 2 * 10;
|
591
|
+
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", () => {
|
592
|
+
const $ = a.spawnPoints[Math.floor(Math.random() * a.spawnPoints.length)], S = (Math.random() - 0.5) * 2 * 10;
|
593
|
+
l.style.left = `${$ + S}%`;
|
960
594
|
});
|
961
595
|
});
|
962
596
|
};
|
963
|
-
return (
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
597
|
+
return (t, _) => (i(), c("div", xt, [
|
598
|
+
o("div", $t, [
|
599
|
+
o("span", kt, N(n.value.toLocaleString()), 1),
|
600
|
+
Pt,
|
601
|
+
Ct
|
968
602
|
])
|
969
603
|
]));
|
970
604
|
}
|
971
605
|
};
|
972
|
-
const
|
606
|
+
const Tt = (u) => (oe("data-v-18db0d1b"), u = u(), ne(), u), St = { class: "community-feed" }, Bt = /* @__PURE__ */ Tt(() => /* @__PURE__ */ o("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), It = { class: "grid-container" }, Mt = {
|
973
607
|
__name: "HotPosts",
|
974
|
-
async setup(
|
975
|
-
let
|
976
|
-
const e = g([]),
|
977
|
-
const
|
978
|
-
console.log(
|
608
|
+
async setup(u) {
|
609
|
+
let n, s;
|
610
|
+
const e = g([]), a = async () => {
|
611
|
+
const t = await L({ skip: 0, limit: 7, period: "year" });
|
612
|
+
console.log(t), e.value = t;
|
979
613
|
};
|
980
|
-
[
|
981
|
-
const
|
982
|
-
switch (
|
614
|
+
[n, s] = ae(() => a()), await n, s();
|
615
|
+
const m = (t) => {
|
616
|
+
switch (t) {
|
983
617
|
case 0:
|
984
618
|
return "grid-item-2x2";
|
985
619
|
case 1:
|
@@ -995,22 +629,22 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
|
|
995
629
|
return "";
|
996
630
|
}
|
997
631
|
};
|
998
|
-
return (
|
999
|
-
|
1000
|
-
|
1001
|
-
(
|
632
|
+
return (t, _) => (i(), c("section", St, [
|
633
|
+
Bt,
|
634
|
+
o("div", It, [
|
635
|
+
(i(!0), c(U, null, D(e.value, (l, v) => (i(), I(K, {
|
1002
636
|
blogpost: l,
|
1003
|
-
owner:
|
1004
|
-
key:
|
1005
|
-
class:
|
637
|
+
owner: w.user._id,
|
638
|
+
key: v,
|
639
|
+
class: B(m(v))
|
1006
640
|
}, null, 8, ["blogpost", "owner", "class"]))), 128))
|
1007
641
|
])
|
1008
642
|
]));
|
1009
643
|
}
|
1010
|
-
},
|
644
|
+
}, Yt = /* @__PURE__ */ X(Mt, [["__scopeId", "data-v-18db0d1b"]]), Zt = [
|
1011
645
|
{
|
1012
646
|
path: "community",
|
1013
|
-
component:
|
647
|
+
component: Be,
|
1014
648
|
meta: {
|
1015
649
|
title: {
|
1016
650
|
en: "Community",
|
@@ -1020,7 +654,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
|
|
1020
654
|
children: [{
|
1021
655
|
path: ":category?",
|
1022
656
|
name: "Blog",
|
1023
|
-
component: () => Promise.resolve().then(() =>
|
657
|
+
component: () => Promise.resolve().then(() => et)
|
1024
658
|
}]
|
1025
659
|
},
|
1026
660
|
{
|
@@ -1033,7 +667,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
|
|
1033
667
|
},
|
1034
668
|
authorize: []
|
1035
669
|
},
|
1036
|
-
component: () => Promise.resolve().then(() =>
|
670
|
+
component: () => Promise.resolve().then(() => J)
|
1037
671
|
},
|
1038
672
|
{
|
1039
673
|
path: "community/posts/:url",
|
@@ -1044,7 +678,7 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
|
|
1044
678
|
ru: "Пост"
|
1045
679
|
}
|
1046
680
|
},
|
1047
|
-
component: () => Promise.resolve().then(() =>
|
681
|
+
component: () => Promise.resolve().then(() => Ye)
|
1048
682
|
},
|
1049
683
|
{
|
1050
684
|
path: "community/posts/:url/edit",
|
@@ -1056,29 +690,23 @@ const an = (o) => (xe("data-v-18db0d1b"), o = o(), we(), o), sn = { class: "comm
|
|
1056
690
|
},
|
1057
691
|
authorize: []
|
1058
692
|
},
|
1059
|
-
component: () => Promise.resolve().then(() =>
|
693
|
+
component: () => Promise.resolve().then(() => J)
|
1060
694
|
}
|
1061
695
|
];
|
1062
696
|
export {
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
In as JoinUs,
|
1079
|
-
Tn as SubscribeNewsletter,
|
1080
|
-
ae as Textarea,
|
1081
|
-
Fn as blogpostsRoutes,
|
1082
|
-
zn as blogpostsStore,
|
1083
|
-
Hn as reactionsStore
|
697
|
+
Wt as Activity,
|
698
|
+
Ze as Blog,
|
699
|
+
Xe as BlogPost,
|
700
|
+
K as CardBlogpost,
|
701
|
+
_e as Comments,
|
702
|
+
Be as Community,
|
703
|
+
Le as CreateBlogPost,
|
704
|
+
ce as Feed,
|
705
|
+
ss as FooterBlogpost,
|
706
|
+
Yt as HotPosts,
|
707
|
+
Xt as JoinUs,
|
708
|
+
Kt as SubscribeNewsletter,
|
709
|
+
Zt as blogpostsRoutes,
|
710
|
+
as as blogpostsStore,
|
711
|
+
os as reactionsStore
|
1084
712
|
};
|