@ozdao/prometheus-framework 0.1.38 → 0.1.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ButtonToggleMembership-738720bd.js +1 -0
- package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
- package/dist/CardBlogpost-ae3b4d23.js +1 -0
- package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
- package/dist/CardBlogpost-d6f49156.mjs +246 -0
- package/dist/CardBlogpost-f308ff64.js +1 -0
- package/dist/CardOrganization-22beb83d.js +1 -0
- package/dist/CardOrganization-ae384e54.mjs +234 -0
- package/dist/Chips-3a07f374.js +1 -0
- package/dist/Chips-a8681edd.mjs +213 -0
- package/dist/Chips-edf2b573.js +1 -0
- package/dist/Chips-f06ec38f.mjs +213 -0
- package/dist/Community-04b25965.mjs +130 -0
- package/dist/Community-2f6fee0f.js +1 -0
- package/dist/Community-72dbb933.js +1 -0
- package/dist/Community-b4d10da6.mjs +130 -0
- package/dist/Dashboard-73b50724.js +1 -0
- package/dist/Dashboard-bc81b5f6.mjs +151 -0
- package/dist/Dropdown-ef2df9a9.mjs +169 -0
- package/dist/Dropdown-f2564c92.js +1 -0
- package/dist/Events-0c6e3ef4.mjs +134 -0
- package/dist/Events-41d71b0e.js +1 -0
- package/dist/Events-4742f070.js +1 -0
- package/dist/Events-af7170ed.mjs +134 -0
- package/dist/Feed-04fe1f7a.mjs +361 -0
- package/dist/Feed-09b0790d.js +1 -0
- package/dist/Feed-12b12380.js +1 -0
- package/dist/Feed-23758089.mjs +124 -0
- package/dist/Feed-36e83be3.mjs +156 -0
- package/dist/Feed-5653cf8b.js +1 -0
- package/dist/Feed-585d5821.mjs +124 -0
- package/dist/Feed-5a359bb7.js +1 -0
- package/dist/Feed-6ca0541a.js +1 -0
- package/dist/Feed-807d265b.mjs +156 -0
- package/dist/Feed-90f74d6c.mjs +361 -0
- package/dist/Feed-a47977d3.js +1 -0
- package/dist/Image-268e2a1b.js +9 -0
- package/dist/Image-39955d9d.mjs +480 -0
- package/dist/Image-5423e8ce.mjs +480 -0
- package/dist/Image-c2d190d8.js +9 -0
- package/dist/LeftoverAdd-21311275.js +1 -0
- package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
- package/dist/Members-7251dd52.mjs +109 -0
- package/dist/Members-9b013515.js +1 -0
- package/dist/Members-d35ab7e8.js +1 -0
- package/dist/Members-d64149f3.mjs +109 -0
- package/dist/Menu-93d34d9f.js +1 -0
- package/dist/Menu-eaf6b44c.mjs +13 -0
- package/dist/MenuItem-4a5881bd.mjs +85 -0
- package/dist/MenuItem-f35cad93.js +1 -0
- package/dist/Organizations-0fd5bc8b.mjs +72 -0
- package/dist/Organizations-a964d4b6.mjs +72 -0
- package/dist/Organizations-d360c360.js +1 -0
- package/dist/Organizations-ed6d36d6.js +1 -0
- package/dist/Popup-0d8e1392.mjs +96 -0
- package/dist/Popup-eb11fa82.js +1 -0
- package/dist/Product-299070ad.mjs +652 -0
- package/dist/Product-aacb05f3.js +7 -0
- package/dist/Product-e43dd2f1.js +7 -0
- package/dist/Product-e4e583f0.mjs +652 -0
- package/dist/ProductEdit-70bed802.mjs +296 -0
- package/dist/ProductEdit-e5a2e0f6.js +1 -0
- package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
- package/dist/ProductsBackoffice-b684913d.js +1 -0
- package/dist/ProfileBlogposts-6bf526fb.js +1 -0
- package/dist/ProfileBlogposts-8f6191d6.js +1 -0
- package/dist/ProfileBlogposts-aa839fcb.mjs +77 -0
- package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
- package/dist/ProfileEvents-3eeb4320.mjs +68 -0
- package/dist/ProfileEvents-6b3fb52e.mjs +68 -0
- package/dist/ProfileEvents-893285bb.js +1 -0
- package/dist/ProfileEvents-90e09978.js +1 -0
- package/dist/ProfileOrganizations-738f444a.js +1 -0
- package/dist/ProfileOrganizations-c4fb03a1.mjs +72 -0
- package/dist/ProfileOrganizations-e838925f.js +1 -0
- package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
- package/dist/Publics-a31d7fe7.js +1 -0
- package/dist/Publics-a8f31413.mjs +45 -0
- package/dist/Wallet-2043b611.mjs +24682 -0
- package/dist/Wallet-8fa7386a.js +55 -0
- package/dist/auth-076a83d0.mjs +625 -0
- package/dist/auth-df5a20c6.js +7 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +4 -4
- package/dist/auth.validation-80b133df.js +1 -0
- package/dist/auth.validation-fd9ae66f.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +12 -12
- package/dist/categories-4327a81c.js +1 -0
- package/dist/categories-52a561a4.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +205 -198
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +17 -20
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +64 -40
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +5 -6
- package/dist/main.css +1 -1
- package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
- package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
- package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
- package/dist/organizations-966e1cd2.mjs +122 -0
- package/dist/organizations-d12c42b6.js +1 -0
- package/dist/organizations.client-63b476ff.mjs +2996 -0
- package/dist/organizations.client-696eacbb.js +3 -0
- package/dist/organizations.client-8f263e28.js +3 -0
- package/dist/organizations.client-9ffc023f.mjs +2996 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +49 -54
- package/dist/products-7e4253eb.js +1 -0
- package/dist/products-aabe5c02.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +2 -2
- package/dist/states.validation-4594b33c.mjs +13 -0
- package/dist/states.validation-69003e66.js +1 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +286 -202
- package/package.json +1 -5
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +1 -1
- package/src/components/Navigation/Navigation.vue +12 -1
- package/src/modules/auth/store/auth.js +7 -4
- package/src/modules/files/middlewares/server/md.js +1 -0
- package/src/modules/gallery/components/pages/Gallery.vue +21 -0
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
- package/src/modules/gallery/gallery.client.js +11 -14
- package/src/modules/gallery/router/gallery.router.js +10 -0
- package/src/modules/globals/components/sections/Title.vue +22 -0
- package/src/modules/marketplace/router/marketplace.js +4 -3
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
- package/src/modules/products/components/sections/SectionProduct.vue +17 -5
- package/src/modules/products/controllers/products.controller.js +83 -0
- package/src/modules/products/routes/products.routes.js +5 -5
- package/src/modules/spots/components/layouts/Spots.vue +16 -11
- package/src/modules/spots/components/pages/Map.vue +9 -7
- package/src/modules/users/components/pages/Profile.vue +15 -5
- package/src/modules/users/router/users.js +10 -0
- package/src/modules/wallet/components/pages/Wallet.vue +104 -23
@@ -0,0 +1,296 @@
|
|
1
|
+
import { toRefs as I, openBlock as n, createElementBlock as d, createTextVNode as C, toDisplayString as w, unref as e, createVNode as r, createElementVNode as t, createCommentVNode as k, createBlock as U, withCtx as z, Fragment as N, renderList as P, withAsyncContext as E } from "vue";
|
2
|
+
import { useRoute as B, useRouter as V } from "vue-router";
|
3
|
+
import { a as R, _ as D, s as j } from "./categories-52a561a4.mjs";
|
4
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
5
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
6
|
+
import { S as F } from "./Select-11ddabf5.mjs";
|
7
|
+
import { C as M } from "./Checkbox-5dbe7b23.mjs";
|
8
|
+
import { _ as L } from "./Button-9e1a9284.mjs";
|
9
|
+
import "vue-i18n";
|
10
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
11
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
12
|
+
import { F as h } from "./Field-e5ad88d3.mjs";
|
13
|
+
import { u as O } from "./vuex.esm-bundler-57d8b6ba.mjs";
|
14
|
+
import { V as T } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
15
|
+
import { _ as q } from "./UploadImageMultiple-cb6c7188.mjs";
|
16
|
+
import { s as l, a as $ } from "./products-aabe5c02.mjs";
|
17
|
+
import "./globals-96ba60e4.mjs";
|
18
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
19
|
+
import "./auth-076a83d0.mjs";
|
20
|
+
import "./index-a661083c.mjs";
|
21
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
22
|
+
const G = { class: "mn-big flex-column flex" }, H = {
|
23
|
+
__name: "EditProductInfo",
|
24
|
+
props: {
|
25
|
+
product: Object
|
26
|
+
},
|
27
|
+
setup(u) {
|
28
|
+
const c = u, o = O();
|
29
|
+
return I(c), (s, i) => (n(), d("div", G, [
|
30
|
+
C(w(e(o).products.current) + " ", 1),
|
31
|
+
r(F, {
|
32
|
+
options: [
|
33
|
+
"unpublished",
|
34
|
+
"published",
|
35
|
+
"archivied"
|
36
|
+
],
|
37
|
+
select: e(o).products.state.current.status,
|
38
|
+
"onUpdate:select": i[0] || (i[0] = (a) => e(o).products.state.current.status = a),
|
39
|
+
placeholder: "Display product",
|
40
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
41
|
+
}, null, 8, ["select"]),
|
42
|
+
r(h, {
|
43
|
+
field: e(o).products.state.current.name,
|
44
|
+
"onUpdate:field": i[1] || (i[1] = (a) => e(o).products.state.current.name = a),
|
45
|
+
placeholder: "Введите название",
|
46
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
47
|
+
}, null, 8, ["field"]),
|
48
|
+
r(h, {
|
49
|
+
field: e(o).products.state.current.price,
|
50
|
+
"onUpdate:field": i[2] || (i[2] = (a) => e(o).products.state.current.price = a),
|
51
|
+
placeholder: "Введите цену",
|
52
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
53
|
+
type: "number"
|
54
|
+
}, null, 8, ["field"]),
|
55
|
+
r(h, {
|
56
|
+
field: e(o).products.state.current.description,
|
57
|
+
"onUpdate:field": i[3] || (i[3] = (a) => e(o).products.state.current.description = a),
|
58
|
+
placeholder: "Введите описание",
|
59
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
60
|
+
type: "textarea"
|
61
|
+
}, null, 8, ["field"])
|
62
|
+
]));
|
63
|
+
}
|
64
|
+
}, J = { class: "mn-big" }, K = { class: "mn-small flex-nowrap flex" }, Q = { class: "mn-r-thin" }, W = { class: "flex-column flex" }, X = {
|
65
|
+
key: 0,
|
66
|
+
class: "w-100 mn-small"
|
67
|
+
}, Y = ["onClick"], Z = /* @__PURE__ */ t("svg", {
|
68
|
+
class: "i-small",
|
69
|
+
fill: "none",
|
70
|
+
height: "20",
|
71
|
+
viewBox: "0 0 20 20",
|
72
|
+
width: "20",
|
73
|
+
xmlns: "http://www.w3.org/2000/svg"
|
74
|
+
}, [
|
75
|
+
/* @__PURE__ */ t("path", {
|
76
|
+
"clip-rule": "evenodd",
|
77
|
+
d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
|
78
|
+
fill: "#8a8a8a",
|
79
|
+
"fill-rule": "evenodd"
|
80
|
+
})
|
81
|
+
], -1), ee = [
|
82
|
+
Z
|
83
|
+
], S = {
|
84
|
+
__name: "EditParameters",
|
85
|
+
props: {
|
86
|
+
items: {
|
87
|
+
type: Array,
|
88
|
+
default: () => []
|
89
|
+
},
|
90
|
+
title: String,
|
91
|
+
addButtonLabel: String,
|
92
|
+
emptyMessage: String,
|
93
|
+
keyName: String,
|
94
|
+
valueName: String
|
95
|
+
},
|
96
|
+
emits: ["add-info", "delete-info"],
|
97
|
+
setup(u, { emit: c }) {
|
98
|
+
const o = u;
|
99
|
+
function s() {
|
100
|
+
c("add-info", {});
|
101
|
+
}
|
102
|
+
function i(m) {
|
103
|
+
c("delete-info", m);
|
104
|
+
}
|
105
|
+
const { items: a, title: _, emptyMessage: f, addButtonLabel: y, keyName: g, valueName: b } = I(o);
|
106
|
+
return (m, A) => (n(), d("div", J, [
|
107
|
+
t("div", K, [
|
108
|
+
t("h5", Q, w(e(_)), 1),
|
109
|
+
t("button", {
|
110
|
+
onClick: s,
|
111
|
+
class: "i-small pd-thin button-delete button"
|
112
|
+
}, "+")
|
113
|
+
]),
|
114
|
+
t("div", W, [
|
115
|
+
e(a).length == 0 ? (n(), d("p", X, w(e(f)), 1)) : k("", !0),
|
116
|
+
e(a).length == 0 ? (n(), U(L, {
|
117
|
+
key: 1,
|
118
|
+
onClick: s,
|
119
|
+
class: "button"
|
120
|
+
}, {
|
121
|
+
default: z(() => [
|
122
|
+
C(w(e(y)), 1)
|
123
|
+
]),
|
124
|
+
_: 1
|
125
|
+
})) : k("", !0),
|
126
|
+
(n(!0), d(N, null, P(e(a), (p, x) => (n(), d("div", {
|
127
|
+
class: "mn-medium w-100 flex-nowrap flex",
|
128
|
+
key: x
|
129
|
+
}, [
|
130
|
+
r(h, {
|
131
|
+
field: p[e(g)],
|
132
|
+
"onUpdate:field": (v) => p[e(g)] = v,
|
133
|
+
placeholder: "Название параметра",
|
134
|
+
class: "w-100 mn-r-small bg-white radius-small pd-medium"
|
135
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
136
|
+
r(h, {
|
137
|
+
field: p[e(b)],
|
138
|
+
"onUpdate:field": (v) => p[e(b)] = v,
|
139
|
+
placeholder: "Значение параметра",
|
140
|
+
class: "w-100 bg-white radius-small pd-medium"
|
141
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
142
|
+
t("button", {
|
143
|
+
onClick: (v) => i(x),
|
144
|
+
class: "mn-l-small button"
|
145
|
+
}, ee, 8, Y)
|
146
|
+
]))), 128))
|
147
|
+
])
|
148
|
+
]));
|
149
|
+
}
|
150
|
+
}, te = {
|
151
|
+
key: 0,
|
152
|
+
class: "mn-big"
|
153
|
+
}, se = { class: "flex-column block" }, oe = ["src"], ae = ["onClick"], le = {
|
154
|
+
__name: "EditProductImages",
|
155
|
+
props: {
|
156
|
+
product: Object
|
157
|
+
},
|
158
|
+
setup(u) {
|
159
|
+
function c(s) {
|
160
|
+
console.log(s), console.log(l.current.images), l.current.images.push(...s);
|
161
|
+
}
|
162
|
+
function o(s) {
|
163
|
+
l.current.images.splice(s, 1);
|
164
|
+
}
|
165
|
+
return (s, i) => (n(), d("div", null, [
|
166
|
+
u.product.images.length < 1 ? (n(), d("p", te, " The product doesn't have any images yet. ")) : k("", !0),
|
167
|
+
r(e(T), {
|
168
|
+
class: "cols-4 dragArea list-group w-full",
|
169
|
+
list: u.product.images,
|
170
|
+
sort: !0,
|
171
|
+
onChange: s.log
|
172
|
+
}, {
|
173
|
+
default: z(() => [
|
174
|
+
(n(!0), d(N, null, P(u.product.images, (a, _) => (n(), d("div", se, [
|
175
|
+
t("img", {
|
176
|
+
class: "w-100 mn-small",
|
177
|
+
src: (s.FILE_SERVER_URL || "") + a
|
178
|
+
}, null, 8, oe),
|
179
|
+
t("a", {
|
180
|
+
onClick: (f) => o(_),
|
181
|
+
class: "w-100 br-grey br-solid br-1px button"
|
182
|
+
}, "Удалить", 8, ae)
|
183
|
+
]))), 256))
|
184
|
+
]),
|
185
|
+
_: 1
|
186
|
+
}, 8, ["list", "onChange"]),
|
187
|
+
r(q, {
|
188
|
+
"onUpdate:images": c,
|
189
|
+
uploadPath: "organizations/" + s.$route.params._id + "/products",
|
190
|
+
class: "mn-t-semi pd-small w-100 button bg-main"
|
191
|
+
}, null, 8, ["uploadPath"])
|
192
|
+
]));
|
193
|
+
}
|
194
|
+
};
|
195
|
+
const ne = { class: "for-transition w-100" }, re = { class: "pd-b-zero pd-t-zero pd-thin" }, ie = { class: "pd-thin" }, de = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, ce = {
|
196
|
+
key: 0,
|
197
|
+
class: "mn-r-auto"
|
198
|
+
}, ue = {
|
199
|
+
key: 1,
|
200
|
+
class: "mn-r-auto"
|
201
|
+
}, me = { class: "flex-nowrap flex pd-thin" }, pe = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, _e = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, he = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Profile", -1), fe = { class: "mn-semi" }, ge = /* @__PURE__ */ t("h5", null, "Categories", -1), be = { class: "" }, ve = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, we = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Images", -1), Oe = {
|
202
|
+
__name: "ProductEdit",
|
203
|
+
async setup(u) {
|
204
|
+
let c, o;
|
205
|
+
const s = B(), i = V();
|
206
|
+
[c, o] = E(() => R.fetchCategories()), await c, o(), s.params.product && ([c, o] = E(() => $.read({ _id: s.params.product })), await c, o());
|
207
|
+
function a() {
|
208
|
+
l.current.information.push({ name: "", value: "" });
|
209
|
+
}
|
210
|
+
function _(m) {
|
211
|
+
l.current.information.splice(m, 1);
|
212
|
+
}
|
213
|
+
function f() {
|
214
|
+
l.current.localization.push({ locale: "", text: "" });
|
215
|
+
}
|
216
|
+
function y(m) {
|
217
|
+
l.current.localization.splice(m, 1);
|
218
|
+
}
|
219
|
+
function g() {
|
220
|
+
s.params.product ? $.update(s.params.product, l.current) : $.create(s.params._id, l.current);
|
221
|
+
}
|
222
|
+
function b() {
|
223
|
+
i.push({ name: "ProductEdit", params: { _id: s.params._id, product: l.current._id } });
|
224
|
+
}
|
225
|
+
return (m, A) => (n(), d("div", ne, [
|
226
|
+
t("div", re, [
|
227
|
+
r(D, { class: "pd-medium bg-grey radius-big" })
|
228
|
+
]),
|
229
|
+
t("div", ie, [
|
230
|
+
t("header", de, [
|
231
|
+
e(s).params.product ? (n(), d("h1", ce, "Edit Product")) : (n(), d("h1", ue, "Create Product")),
|
232
|
+
t("section", me, [
|
233
|
+
r(L, {
|
234
|
+
submit: g,
|
235
|
+
callback: b
|
236
|
+
}, {
|
237
|
+
default: z(() => [
|
238
|
+
C("Save Product")
|
239
|
+
]),
|
240
|
+
_: 1
|
241
|
+
})
|
242
|
+
])
|
243
|
+
])
|
244
|
+
]),
|
245
|
+
t("div", pe, [
|
246
|
+
t("div", _e, [
|
247
|
+
he,
|
248
|
+
r(H, {
|
249
|
+
product: l.current
|
250
|
+
}, null, 8, ["product"]),
|
251
|
+
t("div", fe, [
|
252
|
+
ge,
|
253
|
+
(n(!0), d(N, null, P(j.all, (p, x) => (n(), U(M, {
|
254
|
+
label: p.name,
|
255
|
+
name: "categories",
|
256
|
+
value: p.url,
|
257
|
+
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
258
|
+
radio: l.current.category
|
259
|
+
}, null, 8, ["label", "value", "radio"]))), 256))
|
260
|
+
]),
|
261
|
+
r(S, {
|
262
|
+
items: l.current.information,
|
263
|
+
title: "Parameters",
|
264
|
+
emptyMessage: "No parameters",
|
265
|
+
addButtonLabel: "Add parameter",
|
266
|
+
keyName: "name",
|
267
|
+
valueName: "value",
|
268
|
+
onAddInfo: a,
|
269
|
+
onDeleteInfo: _
|
270
|
+
}, null, 8, ["items"]),
|
271
|
+
r(S, {
|
272
|
+
items: l.current.localization,
|
273
|
+
title: "Localization",
|
274
|
+
emptyMessage: "No localizations",
|
275
|
+
addButtonLabel: "Add localization",
|
276
|
+
keyName: "locale",
|
277
|
+
valueName: "text",
|
278
|
+
onAddInfo: f,
|
279
|
+
onDeleteInfo: y
|
280
|
+
}, null, 8, ["items"])
|
281
|
+
]),
|
282
|
+
t("div", be, [
|
283
|
+
t("div", ve, [
|
284
|
+
we,
|
285
|
+
r(le, {
|
286
|
+
product: l.current
|
287
|
+
}, null, 8, ["product"])
|
288
|
+
])
|
289
|
+
])
|
290
|
+
])
|
291
|
+
]));
|
292
|
+
}
|
293
|
+
};
|
294
|
+
export {
|
295
|
+
Oe as default
|
296
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),N=require("vue-router"),b=require("./categories-4327a81c.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");const V=require("./Select-3ca5ab39.js"),y=require("./Checkbox-76f09248.js"),v=require("./Button-7643c9aa.js");require("vue-i18n");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const u=require("./Field-e2a43424.js"),B=require("./vuex.esm-bundler-685cf29f.js"),w=require("./vue-draggable-next.esm-bundler-21a209c6.js"),x=require("./UploadImageMultiple-eddaac87.js"),n=require("./products-7e4253eb.js");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./auth-df5a20c6.js");require("./index-b41aac19.js");require("./_plugin-vue_export-helper-f246444f.js");const q={class:"mn-big flex-column flex"},C={__name:"EditProductInfo",props:{product:Object},setup(s){const a=s,o=B.useStore();return e.toRefs(a),(t,l)=>(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(e.toDisplayString(e.unref(o).products.current)+" ",1),e.createVNode(V.Select,{options:["unpublished","published","archivied"],select:e.unref(o).products.state.current.status,"onUpdate:select":l[0]||(l[0]=r=>e.unref(o).products.state.current.status=r),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.name,"onUpdate:field":l[1]||(l[1]=r=>e.unref(o).products.state.current.name=r),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.price,"onUpdate:field":l[2]||(l[2]=r=>e.unref(o).products.state.current.price=r),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.description,"onUpdate:field":l[3]||(l[3]=r=>e.unref(o).products.state.current.description=r),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},$={class:"mn-big"},S={class:"mn-small flex-nowrap flex"},z={class:"mn-r-thin"},P={class:"flex-column flex"},I={key:0,class:"w-100 mn-small"},L=["onClick"],U=e.createElementVNode("svg",{class:"i-small",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),A=[U],k={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(s,{emit:a}){const o=s;function t(){a("add-info",{})}function l(c){a("delete-info",c)}const{items:r,title:d,emptyMessage:m,addButtonLabel:h,keyName:p,valueName:f}=e.toRefs(o);return(c,E)=>(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("div",S,[e.createElementVNode("h5",z,e.toDisplayString(e.unref(d)),1),e.createElementVNode("button",{onClick:t,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",P,[e.unref(r).length==0?(e.openBlock(),e.createElementBlock("p",I,e.toDisplayString(e.unref(m)),1)):e.createCommentVNode("",!0),e.unref(r).length==0?(e.openBlock(),e.createBlock(v._sfc_main,{key:1,onClick:t,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(i,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(u.Field,{field:i[e.unref(p)],"onUpdate:field":_=>i[e.unref(p)]=_,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.Field,{field:i[e.unref(f)],"onUpdate:field":_=>i[e.unref(f)]=_,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:_=>l(g),class:"mn-l-small button"},A,8,L)]))),128))])]))}},F={key:0,class:"mn-big"},D={class:"flex-column block"},R=["src"],M=["onClick"],T={__name:"EditProductImages",props:{product:Object},setup(s){function a(t){console.log(t),console.log(n.state.current.images),n.state.current.images.push(...t)}function o(t){n.state.current.images.splice(t,1)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",null,[s.product.images.length<1?(e.openBlock(),e.createElementBlock("p",F," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(w.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:s.product.images,sort:!0,onChange:t.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.product.images,(r,d)=>(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("img",{class:"w-100 mn-small",src:(t.FILE_SERVER_URL||"")+r},null,8,R),e.createElementVNode("a",{onClick:m=>o(d),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,M)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(x._sfc_main,{"onUpdate:images":a,uploadPath:"organizations/"+t.$route.params._id+"/products",class:"mn-t-semi pd-small w-100 button bg-main"},null,8,["uploadPath"])]))}};const j={class:"for-transition w-100"},O={class:"pd-b-zero pd-t-zero pd-thin"},G={class:"pd-thin"},H={class:"flex-nowrap flex bg-grey pd-medium radius-big"},J={key:0,class:"mn-r-auto"},K={key:1,class:"mn-r-auto"},Q={class:"flex-nowrap flex pd-thin"},W={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},X={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},Y=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),Z={class:"mn-semi"},ee=e.createElementVNode("h5",null,"Categories",-1),te={class:""},oe={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},ne=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),re={__name:"ProductEdit",async setup(s){let a,o;const t=N.useRoute(),l=N.useRouter();[a,o]=e.withAsyncContext(()=>b.actions.fetchCategories()),await a,o(),t.params.product&&([a,o]=e.withAsyncContext(()=>n.actions.read({_id:t.params.product})),await a,o());function r(){n.state.current.information.push({name:"",value:""})}function d(c){n.state.current.information.splice(c,1)}function m(){n.state.current.localization.push({locale:"",text:""})}function h(c){n.state.current.localization.splice(c,1)}function p(){t.params.product?n.actions.update(t.params.product,n.state.current):n.actions.create(t.params._id,n.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:t.params._id,product:n.state.current._id}})}return(c,E)=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",O,[e.createVNode(b._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",G,[e.createElementVNode("header",H,[e.unref(t).params.product?(e.openBlock(),e.createElementBlock("h1",J,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",K,"Create Product")),e.createElementVNode("section",Q,[e.createVNode(v._sfc_main,{submit:p,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",W,[e.createElementVNode("div",X,[Y,e.createVNode(C,{product:n.state.current},null,8,["product"]),e.createElementVNode("div",Z,[ee,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.state.all,(i,g)=>(e.openBlock(),e.createBlock(y.Checkbox,{label:i.name,name:"categories",value:i.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:n.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(k,{items:n.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:r,onDeleteInfo:d},null,8,["items"]),e.createVNode(k,{items:n.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:m,onDeleteInfo:h},null,8,["items"])]),e.createElementVNode("div",te,[e.createElementVNode("div",oe,[ne,e.createVNode(T,{product:n.state.current},null,8,["product"])])])])]))}};exports.default=re;
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { ref as _, watch as f, onMounted as h, openBlock as i, createElementBlock as u, Fragment as l, createElementVNode as n, createVNode as m, unref as d, withCtx as b, renderList as v, createBlock as y } from "vue";
|
2
|
+
import { useRoute as g, useRouter as k } from "vue-router";
|
3
|
+
import { a as c, s as P } from "./products-aabe5c02.mjs";
|
4
|
+
import { _ as $ } from "./Feed-d114330c.mjs";
|
5
|
+
import { _ as q } from "./CardProduct-fca53299.mjs";
|
6
|
+
import { _ as w } from "./Tab-054b61f7.mjs";
|
7
|
+
import "./auth-076a83d0.mjs";
|
8
|
+
import "./index-a661083c.mjs";
|
9
|
+
import "./globals-96ba60e4.mjs";
|
10
|
+
import "vue-i18n";
|
11
|
+
import "./SkeletonEvent-8690422d.mjs";
|
12
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
13
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
14
|
+
import "./EmptyState-e404b05d.mjs";
|
15
|
+
import "./vuex.esm-bundler-57d8b6ba.mjs";
|
16
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
17
|
+
const C = { class: "mn-medium flex-v-center flex-nowrap flex" }, x = /* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Products", -1), K = {
|
18
|
+
__name: "ProductsBackoffice",
|
19
|
+
setup(B) {
|
20
|
+
const e = g(), p = k(), r = _(e.query.tab ? e.query.tab : "posts");
|
21
|
+
return e.query.tab = r.value, f(r, (o) => {
|
22
|
+
p.replace({ query: { ...e.query, tab: o } });
|
23
|
+
}), h(async () => {
|
24
|
+
await c.fetchProducts();
|
25
|
+
}), (o, a) => (i(), u(l, null, [
|
26
|
+
n("header", C, [
|
27
|
+
x,
|
28
|
+
n("button", {
|
29
|
+
onClick: a[0] || (a[0] = (t) => o.$router.push({
|
30
|
+
name: "AddProduct"
|
31
|
+
})),
|
32
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
33
|
+
}, " + ")
|
34
|
+
]),
|
35
|
+
m(w, {
|
36
|
+
selected: r.value,
|
37
|
+
"onUpdate:selected": a[1] || (a[1] = (t) => r.value = t),
|
38
|
+
tabs: [
|
39
|
+
{ name: "All", value: "all" },
|
40
|
+
{ name: "Published", value: "published" },
|
41
|
+
{ name: "Unpublished", value: "unpublished" },
|
42
|
+
{ name: "Archivied", value: "archivied" }
|
43
|
+
],
|
44
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
45
|
+
}, null, 8, ["selected"]),
|
46
|
+
m($, {
|
47
|
+
states: {
|
48
|
+
empty: {
|
49
|
+
title: "No Products Found",
|
50
|
+
description: "Currently, there are no products available."
|
51
|
+
}
|
52
|
+
},
|
53
|
+
store: {
|
54
|
+
read: (t) => c.read(t),
|
55
|
+
state: P
|
56
|
+
},
|
57
|
+
options: {
|
58
|
+
limit: 15,
|
59
|
+
organization: d(e).params._id,
|
60
|
+
status: r.value
|
61
|
+
// user: user
|
62
|
+
}
|
63
|
+
}, {
|
64
|
+
default: b(({
|
65
|
+
items: t
|
66
|
+
}) => [
|
67
|
+
(i(!0), u(l, null, v(t, (s) => (i(), y(q, {
|
68
|
+
key: s._id,
|
69
|
+
product: s,
|
70
|
+
onClick: (A) => o.$router.push({
|
71
|
+
name: "Product Organization",
|
72
|
+
params: {
|
73
|
+
_id: d(e).params._id,
|
74
|
+
product: s._id
|
75
|
+
}
|
76
|
+
})
|
77
|
+
}, null, 8, ["product", "onClick"]))), 128))
|
78
|
+
]),
|
79
|
+
_: 1
|
80
|
+
}, 8, ["states", "store", "options"])
|
81
|
+
], 64));
|
82
|
+
}
|
83
|
+
};
|
84
|
+
export {
|
85
|
+
K as default
|
86
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),s=require("./products-7e4253eb.js"),c=require("./Feed-98b47c6f.js"),d=require("./CardProduct-92affca1.js"),m=require("./Tab-2c1e4224.js");require("./auth-df5a20c6.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./SkeletonEvent-eb284de8.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./vuex.esm-bundler-685cf29f.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const p={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),b={__name:"ProductsBackoffice",setup(_){const r=i.useRoute(),l=i.useRouter(),u=e.ref(r.query.tab?r.query.tab:"posts");return r.query.tab=u.value,e.watch(u,a=>{l.replace({query:{...r.query,tab:a}})}),e.onMounted(async()=>{await s.actions.fetchProducts()}),(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",p,[q,e.createElementVNode("button",{onClick:o[0]||(o[0]=t=>a.$router.push({name:"AddProduct"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(m._sfc_main,{selected:u.value,"onUpdate:selected":o[1]||(o[1]=t=>u.value=t),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(c._sfc_main,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:t=>s.actions.read(t),state:s.state},options:{limit:15,organization:e.unref(r).params._id,status:u.value}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(d._sfc_main,{key:n._id,product:n,onClick:h=>a.$router.push({name:"Product Organization",params:{_id:e.unref(r).params._id,product:n._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])],64))}};exports.default=b;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),d=require("./Tab-2c1e4224.js"),a=require("./Feed-5a359bb7.js"),o=require("./auth-df5a20c6.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader-21f016da.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./_plugin-vue_export-helper-f246444f.js");require("./EmptyState-d65bab5b.js");require("./CardBlogpost-f308ff64.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./Chips-edf2b573.js");require("./Dropdown-f2564c92.js");require("./Popup-eb11fa82.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./click-outside-0b0727d1.js");require("./memberships-393765d8.js");require("./IconEdit-c0469b45.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),_={__name:"ProfileBlogposts",setup(f){const r=i.useRoute(),l=i.useRouter();let c=r.query.tab?r.query.tab:"posts";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,s=>{l.replace({query:{...r.query,tab:s}})}),(s,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[p,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=n=>s.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:t.value,"onUpdate:selected":u[1]||(u[1]=n=>t.value=n),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),t.value==="posts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,user:o.state.user._id,creator:e.unref(r).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="drafts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:2,user:o.state.user._id,creator:e.unref(r).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="following"?(e.openBlock(),e.createBlock(a._sfc_main,{key:3,user:o.state.user._id,following:e.unref(r).params._id},null,8,["user","following"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),d=require("./Tab-2c1e4224.js"),a=require("./Feed-09b0790d.js"),o=require("./auth-06d35b82.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader-21f016da.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./_plugin-vue_export-helper-f246444f.js");require("./EmptyState-d65bab5b.js");require("./CardBlogpost-ae3b4d23.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./Chips-3a07f374.js");require("./Dropdown-f2564c92.js");require("./Popup-eb11fa82.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./click-outside-0b0727d1.js");require("./memberships-393765d8.js");require("./IconEdit-c0469b45.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),_={__name:"ProfileBlogposts",setup(f){const r=i.useRoute(),l=i.useRouter();let c=r.query.tab?r.query.tab:"posts";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,s=>{l.replace({query:{...r.query,tab:s}})}),(s,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[p,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=n=>s.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:t.value,"onUpdate:selected":u[1]||(u[1]=n=>t.value=n),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),t.value==="posts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,user:o.state.user._id,creator:e.unref(r).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="drafts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:2,user:o.state.user._id,creator:e.unref(r).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="following"?(e.openBlock(),e.createBlock(a._sfc_main,{key:3,user:o.state.user._id,following:e.unref(r).params._id},null,8,["user","following"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { ref as f, watch as g, openBlock as t, createElementBlock as n, createElementVNode as d, unref as o, createCommentVNode as s, createBlock as m } from "vue";
|
2
|
+
import { useRoute as v, useRouter as b } from "vue-router";
|
3
|
+
import { _ as y } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ as l } from "./Feed-585d5821.mjs";
|
5
|
+
import { s as a } from "./auth-ec618cb3.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader-cd422786.mjs";
|
8
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./EmptyState-e404b05d.mjs";
|
11
|
+
import "./CardBlogpost-d6f49156.mjs";
|
12
|
+
import "./index-a661083c.mjs";
|
13
|
+
import "./globals-96ba60e4.mjs";
|
14
|
+
import "vue-i18n";
|
15
|
+
import "./Chips-a8681edd.mjs";
|
16
|
+
import "./Dropdown-ef2df9a9.mjs";
|
17
|
+
import "./Popup-0d8e1392.mjs";
|
18
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
19
|
+
import "./Button-9e1a9284.mjs";
|
20
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
21
|
+
import "./Select-11ddabf5.mjs";
|
22
|
+
import "./reports-79cd9459.mjs";
|
23
|
+
import "./click-outside-6101836c.mjs";
|
24
|
+
import "./memberships-12210953.mjs";
|
25
|
+
import "./IconEdit-9edfd74d.mjs";
|
26
|
+
const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), T = {
|
27
|
+
__name: "ProfileBlogposts",
|
28
|
+
setup(q) {
|
29
|
+
const e = v(), c = b();
|
30
|
+
let _ = e.query.tab ? e.query.tab : "posts";
|
31
|
+
const r = f(_);
|
32
|
+
return e.query.tab = r.value, g(r, (u) => {
|
33
|
+
c.replace({ query: { ...e.query, tab: u } });
|
34
|
+
}), (u, i) => (t(), n("div", h, [
|
35
|
+
d("header", k, [
|
36
|
+
w,
|
37
|
+
a.user._id === o(e).params._id ? (t(), n("button", {
|
38
|
+
key: 0,
|
39
|
+
onClick: i[0] || (i[0] = (p) => u.$router.push({
|
40
|
+
name: "Create BlogPost"
|
41
|
+
})),
|
42
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
43
|
+
}, " + ")) : s("", !0)
|
44
|
+
]),
|
45
|
+
a.user._id === o(e).params._id ? (t(), m(y, {
|
46
|
+
key: 0,
|
47
|
+
selected: r.value,
|
48
|
+
"onUpdate:selected": i[1] || (i[1] = (p) => r.value = p),
|
49
|
+
tabs: [
|
50
|
+
{ name: "My posts", value: "posts" },
|
51
|
+
{ name: "Drafts", value: "drafts" },
|
52
|
+
{ name: "Following", value: "following" }
|
53
|
+
],
|
54
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
55
|
+
}, null, 8, ["selected"])) : s("", !0),
|
56
|
+
r.value === "posts" ? (t(), m(l, {
|
57
|
+
key: 1,
|
58
|
+
user: a.user._id,
|
59
|
+
creator: o(e).params._id
|
60
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
61
|
+
r.value === "drafts" ? (t(), m(l, {
|
62
|
+
key: 2,
|
63
|
+
user: a.user._id,
|
64
|
+
creator: o(e).params._id,
|
65
|
+
status: "draft"
|
66
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
67
|
+
r.value === "following" ? (t(), m(l, {
|
68
|
+
key: 3,
|
69
|
+
user: a.user._id,
|
70
|
+
following: o(e).params._id
|
71
|
+
}, null, 8, ["user", "following"])) : s("", !0)
|
72
|
+
]));
|
73
|
+
}
|
74
|
+
};
|
75
|
+
export {
|
76
|
+
T as default
|
77
|
+
};
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { ref as f, watch as g, openBlock as t, createElementBlock as n, createElementVNode as d, unref as o, createCommentVNode as s, createBlock as m } from "vue";
|
2
|
+
import { useRoute as v, useRouter as b } from "vue-router";
|
3
|
+
import { _ as y } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ as l } from "./Feed-23758089.mjs";
|
5
|
+
import { s as a } from "./auth-076a83d0.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader-cd422786.mjs";
|
8
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./EmptyState-e404b05d.mjs";
|
11
|
+
import "./CardBlogpost-c7adb0a7.mjs";
|
12
|
+
import "./index-a661083c.mjs";
|
13
|
+
import "./globals-96ba60e4.mjs";
|
14
|
+
import "vue-i18n";
|
15
|
+
import "./Chips-f06ec38f.mjs";
|
16
|
+
import "./Dropdown-ef2df9a9.mjs";
|
17
|
+
import "./Popup-0d8e1392.mjs";
|
18
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
19
|
+
import "./Button-9e1a9284.mjs";
|
20
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
21
|
+
import "./Select-11ddabf5.mjs";
|
22
|
+
import "./reports-79cd9459.mjs";
|
23
|
+
import "./click-outside-6101836c.mjs";
|
24
|
+
import "./memberships-12210953.mjs";
|
25
|
+
import "./IconEdit-9edfd74d.mjs";
|
26
|
+
const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), T = {
|
27
|
+
__name: "ProfileBlogposts",
|
28
|
+
setup(q) {
|
29
|
+
const e = v(), c = b();
|
30
|
+
let _ = e.query.tab ? e.query.tab : "posts";
|
31
|
+
const r = f(_);
|
32
|
+
return e.query.tab = r.value, g(r, (u) => {
|
33
|
+
c.replace({ query: { ...e.query, tab: u } });
|
34
|
+
}), (u, i) => (t(), n("div", h, [
|
35
|
+
d("header", k, [
|
36
|
+
w,
|
37
|
+
a.user._id === o(e).params._id ? (t(), n("button", {
|
38
|
+
key: 0,
|
39
|
+
onClick: i[0] || (i[0] = (p) => u.$router.push({
|
40
|
+
name: "Create BlogPost"
|
41
|
+
})),
|
42
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
43
|
+
}, " + ")) : s("", !0)
|
44
|
+
]),
|
45
|
+
a.user._id === o(e).params._id ? (t(), m(y, {
|
46
|
+
key: 0,
|
47
|
+
selected: r.value,
|
48
|
+
"onUpdate:selected": i[1] || (i[1] = (p) => r.value = p),
|
49
|
+
tabs: [
|
50
|
+
{ name: "My posts", value: "posts" },
|
51
|
+
{ name: "Drafts", value: "drafts" },
|
52
|
+
{ name: "Following", value: "following" }
|
53
|
+
],
|
54
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
55
|
+
}, null, 8, ["selected"])) : s("", !0),
|
56
|
+
r.value === "posts" ? (t(), m(l, {
|
57
|
+
key: 1,
|
58
|
+
user: a.user._id,
|
59
|
+
creator: o(e).params._id
|
60
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
61
|
+
r.value === "drafts" ? (t(), m(l, {
|
62
|
+
key: 2,
|
63
|
+
user: a.user._id,
|
64
|
+
creator: o(e).params._id,
|
65
|
+
status: "draft"
|
66
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
67
|
+
r.value === "following" ? (t(), m(l, {
|
68
|
+
key: 3,
|
69
|
+
user: a.user._id,
|
70
|
+
following: o(e).params._id
|
71
|
+
}, null, 8, ["user", "following"])) : s("", !0)
|
72
|
+
]));
|
73
|
+
}
|
74
|
+
};
|
75
|
+
export {
|
76
|
+
T as default
|
77
|
+
};
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as o, createElementBlock as u, createElementVNode as d, unref as a, createCommentVNode as i, createVNode as b, createBlock as c } from "vue";
|
2
|
+
import { useRoute as y, useRouter as h } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ as l } from "./Feed-04fe1f7a.mjs";
|
5
|
+
import { s } from "./auth-076a83d0.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
8
|
+
import "./EmptyState-e404b05d.mjs";
|
9
|
+
import "./Chips-f06ec38f.mjs";
|
10
|
+
import "./Dropdown-ef2df9a9.mjs";
|
11
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
12
|
+
import "./Popup-0d8e1392.mjs";
|
13
|
+
import "vue-i18n";
|
14
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./Button-9e1a9284.mjs";
|
16
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
17
|
+
import "./Select-11ddabf5.mjs";
|
18
|
+
import "./reports-79cd9459.mjs";
|
19
|
+
import "./globals-96ba60e4.mjs";
|
20
|
+
import "./index-a661083c.mjs";
|
21
|
+
import "./click-outside-6101836c.mjs";
|
22
|
+
import "./memberships-12210953.mjs";
|
23
|
+
import "./IconEdit-9edfd74d.mjs";
|
24
|
+
import "./SkeletonEvent-8690422d.mjs";
|
25
|
+
const g = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, " Events ", -1), T = {
|
26
|
+
__name: "ProfileEvents",
|
27
|
+
setup(x) {
|
28
|
+
const e = y(), m = h();
|
29
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
30
|
+
const r = f(_);
|
31
|
+
return e.query.tab = r.value, v(r, (n) => {
|
32
|
+
m.replace({ query: { ...e.query, tab: n } });
|
33
|
+
}), (n, t) => (o(), u("div", g, [
|
34
|
+
d("header", w, [
|
35
|
+
q,
|
36
|
+
s.user._id === a(e).params._id ? (o(), u("button", {
|
37
|
+
key: 0,
|
38
|
+
onClick: t[0] || (t[0] = (p) => a(m).push({ name: "Create Event" })),
|
39
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
40
|
+
}, " + ")) : i("", !0)
|
41
|
+
]),
|
42
|
+
b(k, {
|
43
|
+
selected: r.value,
|
44
|
+
"onUpdate:selected": t[1] || (t[1] = (p) => r.value = p),
|
45
|
+
tabs: [
|
46
|
+
{ name: "My", value: "owner" },
|
47
|
+
{ name: "Participant", value: "participant" }
|
48
|
+
],
|
49
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
50
|
+
}, null, 8, ["selected"]),
|
51
|
+
r.value === "owner" ? (o(), c(l, {
|
52
|
+
key: 0,
|
53
|
+
user: s.user._id,
|
54
|
+
creator: a(e).params._id,
|
55
|
+
sortOrder: "asc"
|
56
|
+
}, null, 8, ["user", "creator"])) : i("", !0),
|
57
|
+
r.value === "participant" ? (o(), c(l, {
|
58
|
+
key: 1,
|
59
|
+
user: s.user._id,
|
60
|
+
participant: a(e).params._id,
|
61
|
+
sortOrder: "desc"
|
62
|
+
}, null, 8, ["user", "participant"])) : i("", !0)
|
63
|
+
]));
|
64
|
+
}
|
65
|
+
};
|
66
|
+
export {
|
67
|
+
T as default
|
68
|
+
};
|