@ozdao/prometheus-framework 0.1.20 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-08d96af1.mjs +305 -0
- package/dist/BackofficeGallery-2e695fed.js +1 -0
- package/dist/BackofficeGallery-7ae8fbba.mjs +307 -0
- package/dist/BackofficeGallery-fe39cff3.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8660f9cb.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-bd3889ee.mjs +1945 -0
- package/dist/ButtonFollow-81508d85.mjs +132 -0
- package/dist/ButtonFollow-df6317f0.js +1 -0
- package/dist/CardOrganization-d8f209ee.js +1 -0
- package/dist/CardOrganization-de8ec36e.mjs +230 -0
- package/dist/Feed-a75d053e.js +1 -0
- package/dist/Feed-c4084664.mjs +368 -0
- package/dist/Feed-fea84ce7.mjs +439 -0
- package/dist/Feed-ff3b96b2.js +1 -0
- package/dist/Image-1281bc48.mjs +477 -0
- package/dist/Image-8e67dd2d.js +9 -0
- package/dist/Popup-b7609baa.js +1 -0
- package/dist/Popup-d5c4cb46.mjs +76 -0
- package/dist/Product-3c7b2921.mjs +841 -0
- package/dist/Product-6df77924.js +7 -0
- package/dist/ProductEdit-737e2a5a.mjs +302 -0
- package/dist/ProductEdit-c99ab559.js +1 -0
- package/dist/ProfileBlogposts-4293a1e3.js +1 -0
- package/dist/ProfileBlogposts-4c326fed.mjs +65 -0
- package/dist/ProfileComments-03f88b54.mjs +44 -0
- package/dist/ProfileComments-761ce00e.js +1 -0
- package/dist/ProfileEvents-0bdd36e4.mjs +57 -0
- package/dist/ProfileEvents-a9b96fec.js +1 -0
- package/dist/ProfileLikes-3edf6fb8.mjs +44 -0
- package/dist/ProfileLikes-51729962.js +1 -0
- package/dist/ProfileOrganizations-8961aaee.mjs +213 -0
- package/dist/ProfileOrganizations-f52e62e1.js +1 -0
- package/dist/Publics-70a0ca9c.mjs +45 -0
- package/dist/Publics-bbab7a79.js +1 -0
- package/dist/Select-90d4b7c8.mjs +81 -0
- package/dist/Select-b9299fb6.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +1 -0
- package/dist/UploadImage-c9711af2.js +1 -0
- package/dist/UploadImage-ec3714e8.mjs +83 -0
- package/dist/UploadImageMultiple-b4c8d627.js +1 -0
- package/dist/UploadImageMultiple-ebcc51e6.mjs +58 -0
- package/dist/auth-78d9392a.mjs +612 -0
- package/dist/auth-96449d96.js +7 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +8 -8
- package/dist/auth.validation-9e493d2f.mjs +20 -0
- package/dist/auth.validation-d4795c25.js +1 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +41 -48
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +44 -42
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +25 -24
- package/dist/index-2a0269fc.js +2 -0
- package/dist/index-9128ade5.mjs +1228 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/organizations-0fb56927.mjs +122 -0
- package/dist/organizations-195ec134.js +1 -0
- package/dist/organizations.client-b39db194.js +3 -0
- package/dist/organizations.client-df5e8a6f.mjs +3020 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +46 -44
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +23 -23
- package/package.json +1 -1
- package/src/modules/backoffice/components/layouts/Backoffice.vue +0 -13
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +13 -12
package/dist/users.client.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { openBlock as d, createElementBlock as _, renderSlot as R, createElementVNode as n, defineComponent as B, h as x, ref as U, resolveComponent as z, toDisplayString as $, createBlock as w, withCtx as C, createTextVNode as S, createCommentVNode as y, reactive as A, onMounted as F, unref as c, Fragment as T, renderList as j, normalizeClass as D, createVNode as l, withAsyncContext as G } from "vue";
|
2
|
-
import {
|
2
|
+
import { a as Y, F as b, _ as Z } from "./index-9128ade5.mjs";
|
3
3
|
import { _ as H } from "./_plugin-vue_export-helper-dad06003.mjs";
|
4
|
-
import { B as
|
5
|
-
import { _ as
|
6
|
-
import { I as
|
7
|
-
import { useRoute as
|
8
|
-
import { a as
|
4
|
+
import { B as q, m as J } from "./ButtonFollow-81508d85.mjs";
|
5
|
+
import { _ as K } from "./Socials-8193477c.mjs";
|
6
|
+
import { I as Q, P as W } from "./IconEdit-eacf3856.mjs";
|
7
|
+
import { useRoute as L, useRouter as N } from "vue-router";
|
8
|
+
import { s as p, a as I } from "./auth-78d9392a.mjs";
|
9
9
|
import "./inputs.validation-14e8e01f.mjs";
|
10
|
-
import { _ as X } from "./UploadImage-
|
11
|
-
import "./auth.validation-
|
10
|
+
import { _ as X } from "./UploadImage-ec3714e8.mjs";
|
11
|
+
import "./auth.validation-9e493d2f.mjs";
|
12
12
|
import "./globals-96ba60e4.mjs";
|
13
13
|
import "vue-i18n";
|
14
14
|
const ee = { class: "mobile-menu-section mn-semi pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, E = {
|
@@ -190,7 +190,7 @@ const ge = /* @__PURE__ */ H(pe, [["render", Ce]]), ve = {}, be = {
|
|
190
190
|
function Pe(s, e) {
|
191
191
|
return d(), _("svg", be, xe);
|
192
192
|
}
|
193
|
-
const Me = /* @__PURE__ */ H(ve, [["render", Pe]]), V =
|
193
|
+
const Me = /* @__PURE__ */ H(ve, [["render", Pe]]), V = Y.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = A({
|
194
194
|
all: [],
|
195
195
|
current: {
|
196
196
|
_id: "",
|
@@ -282,15 +282,15 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
282
282
|
}, Be = /* @__PURE__ */ n("span", null, " Backoffice ", -1), ze = /* @__PURE__ */ n("span", null, "Events", -1), Ae = /* @__PURE__ */ n("span", null, "Groups", -1), Fe = /* @__PURE__ */ n("span", null, "Posts", -1), Te = /* @__PURE__ */ n("span", null, " Settings ", -1), je = /* @__PURE__ */ n("span", { class: "t-red" }, " Logout ", -1), De = {
|
283
283
|
__name: "Profile",
|
284
284
|
setup(s) {
|
285
|
-
const e =
|
285
|
+
const e = L(), m = N(), f = U(!1);
|
286
286
|
F(async () => {
|
287
287
|
await M.read({ _id: e.params._id, user: p.user._id }), f.value = !0;
|
288
288
|
});
|
289
289
|
const g = ({ membership: v, isMember: o, targetId: u }) => {
|
290
|
-
|
290
|
+
J.handleMembershipUpdate(r.current, v, o, u);
|
291
291
|
};
|
292
292
|
function t() {
|
293
|
-
|
293
|
+
I.logout(), m.push({ name: "Sign In" });
|
294
294
|
}
|
295
295
|
return (v, o) => (d(), _("div", Ve, [
|
296
296
|
r.current.status === "removed" ? (d(), _("div", Ue, " Sorry, user has been removed. ")) : (d(), _("div", He, [
|
@@ -301,7 +301,7 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
301
301
|
cta: !0
|
302
302
|
}, null, 8, ["user", "target"])) : y("", !0),
|
303
303
|
n("section", Ee, [
|
304
|
-
c(e).params._id === p.user._id ? (d(), w(
|
304
|
+
c(e).params._id === p.user._id ? (d(), w(Q, {
|
305
305
|
key: 0,
|
306
306
|
onClick: o[0] || (o[0] = (u) => v.$router.push({
|
307
307
|
name: "User Edit Profile",
|
@@ -315,7 +315,7 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
315
315
|
key: 1,
|
316
316
|
src: (v.FILE_SERVER_URL || "") + r.current.profile.photo,
|
317
317
|
class: "radius-extra bg-white mn-small object-fit-cover i-extra"
|
318
|
-
}, null, 8, Se)) : (d(), w(
|
318
|
+
}, null, 8, Se)) : (d(), w(W, {
|
319
319
|
key: 2,
|
320
320
|
class: "radius-medium mn-small i-extra"
|
321
321
|
})),
|
@@ -328,7 +328,7 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
328
328
|
}, $(u.icon) + " " + $(u.name), 3))), 256))
|
329
329
|
]),
|
330
330
|
n("p", Oe, " 👨👨👧👧 " + $(r.current.numberOfMemberships) + " followers ", 1),
|
331
|
-
p.user._id && c(e).params._id && c(e).params._id !== p.user._id ? (d(), w(
|
331
|
+
p.user._id && c(e).params._id && c(e).params._id !== p.user._id ? (d(), w(q, {
|
332
332
|
key: 3,
|
333
333
|
type: "user",
|
334
334
|
isMember: r.current.isMember,
|
@@ -338,7 +338,7 @@ const Ve = { class: "for-transition w-100" }, Ue = {
|
|
338
338
|
onUpdateMembership: g
|
339
339
|
}, null, 8, ["isMember", "targetId", "userId"])) : y("", !0),
|
340
340
|
Object.values(r.current.socials).some((u) => u) ? (d(), _("h4", Re, " Find Me in Socials ")) : y("", !0),
|
341
|
-
l(
|
341
|
+
l(K, {
|
342
342
|
telegram: r.current.socials.telegram,
|
343
343
|
facebook: r.current.socials.facebook,
|
344
344
|
instagram: r.current.socials.instagram,
|
@@ -456,14 +456,14 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
456
456
|
async setup(s) {
|
457
457
|
let e, m;
|
458
458
|
U(null);
|
459
|
-
const f =
|
459
|
+
const f = L(), g = N();
|
460
460
|
[e, m] = G(() => M.read({ _id: p.user._id })), await e, m();
|
461
461
|
const t = U(r.current);
|
462
462
|
async function v() {
|
463
463
|
await M.update(r.current);
|
464
464
|
}
|
465
465
|
async function o() {
|
466
|
-
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (r.current.status = "removed", await M.update(r.current),
|
466
|
+
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (r.current.status = "removed", await M.update(r.current), I.logout());
|
467
467
|
}
|
468
468
|
function u() {
|
469
469
|
g.replace({ name: "User Profile", params: { _id: r.current._id } });
|
@@ -610,7 +610,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
610
610
|
},
|
611
611
|
component: () => import(
|
612
612
|
/* webpackChunkName: "profile" */
|
613
|
-
"./ProfileBlogposts-
|
613
|
+
"./ProfileBlogposts-4c326fed.mjs"
|
614
614
|
)
|
615
615
|
}, {
|
616
616
|
path: "profile/:_id/comments",
|
@@ -623,7 +623,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
623
623
|
},
|
624
624
|
component: () => import(
|
625
625
|
/* webpackChunkName: "profile" */
|
626
|
-
"./ProfileComments-
|
626
|
+
"./ProfileComments-03f88b54.mjs"
|
627
627
|
)
|
628
628
|
}, {
|
629
629
|
path: "profile/:_id/edit",
|
@@ -646,7 +646,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
646
646
|
},
|
647
647
|
component: () => import(
|
648
648
|
/* webpackChunkName: "profile" */
|
649
|
-
"./ProfileEvents-
|
649
|
+
"./ProfileEvents-0bdd36e4.mjs"
|
650
650
|
)
|
651
651
|
}, {
|
652
652
|
path: "profile/:_id/likes",
|
@@ -659,7 +659,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
659
659
|
},
|
660
660
|
component: () => import(
|
661
661
|
/* webpackChunkName: "profile" */
|
662
|
-
"./ProfileLikes-
|
662
|
+
"./ProfileLikes-3edf6fb8.mjs"
|
663
663
|
)
|
664
664
|
}, {
|
665
665
|
path: "profile/:_id/organizations",
|
@@ -672,7 +672,7 @@ const Ye = { class: "pd-medium for-transition w-100" }, qe = /* @__PURE__ */ n("
|
|
672
672
|
},
|
673
673
|
component: () => import(
|
674
674
|
/* webpackChunkName: "profile" */
|
675
|
-
"./ProfileOrganizations-
|
675
|
+
"./ProfileOrganizations-8961aaee.mjs"
|
676
676
|
)
|
677
677
|
}];
|
678
678
|
export {
|
package/package.json
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
<!-- ---------------------------------------------------------------- -->
|
6
6
|
<div class="pd-medium menu-tabs">
|
7
7
|
<button
|
8
|
-
v-if="store.auth.state.access.roles.includes('ROLE_ADMIN')"
|
9
8
|
@click="$router.push('/account/community')"
|
10
9
|
:class="{'product-tab-active': $route.path === '/account/community'}"
|
11
10
|
class="mn-small product-tab"
|
@@ -14,7 +13,6 @@
|
|
14
13
|
</button>
|
15
14
|
|
16
15
|
<button
|
17
|
-
v-if="store.auth.state.access.roles.includes('ROLE_ADMIN')"
|
18
16
|
@click="$router.push('/account/gallery')"
|
19
17
|
:class="{'product-tab-active': $route.path === '/account/gallery'}" class="product-tab"
|
20
18
|
>
|
@@ -35,17 +33,6 @@
|
|
35
33
|
|
36
34
|
|
37
35
|
<script setup>
|
38
|
-
import { computed, onMounted,reactive,toRefs } from 'vue'
|
39
|
-
|
40
|
-
import { useRoute,useRouter } from 'vue-router'
|
41
|
-
|
42
|
-
const route = useRoute()
|
43
|
-
const router = useRouter()
|
44
|
-
|
45
|
-
let data = reactive({currentTab: 'user'})
|
46
|
-
let reactiveData = toRefs(data)
|
47
|
-
function changeTab (tab) {data.currentTab = tab; console.log(data.currentTab) }
|
48
|
-
|
49
36
|
|
50
37
|
|
51
38
|
|
@@ -126,14 +126,15 @@
|
|
126
126
|
|
127
127
|
<script setup>
|
128
128
|
import { ref, onMounted, reactive, computed } from 'vue'
|
129
|
-
import { Button, Field, Select, Upload } from '@ozdao/prometheus-framework'
|
130
|
-
import { state, actions } from '@pf/src/modules/gallery/store/gallery';
|
131
129
|
|
132
|
-
import
|
130
|
+
import Field from '@pf/src/components/Field/Field.vue'
|
131
|
+
import Button from '@pf/src/components/Button/Button.vue'
|
132
|
+
import Select from '@pf/src/components/Select/Select.vue'
|
133
|
+
|
134
|
+
import * as gallery from '@pf/src/modules/gallery/store/gallery';
|
133
135
|
|
134
|
-
import
|
136
|
+
import EditImages from '@pf/src/components/EditImages/EditImages.vue';
|
135
137
|
|
136
|
-
const route = useRoute()
|
137
138
|
|
138
139
|
const isEditablePath = ref(true)
|
139
140
|
|
@@ -157,15 +158,15 @@ const onUpdatedImages = (newImages) => {
|
|
157
158
|
|
158
159
|
const filteredGallery = computed(() => {
|
159
160
|
if (selectedCategory.value === 'all') {
|
160
|
-
return state.gallery
|
161
|
+
return gallery.state.gallery
|
161
162
|
} else {
|
162
|
-
return state.gallery.filter(item => item.categories.includes(selectedCategory.value))
|
163
|
+
return gallery.state.gallery.filter(item => item.categories.includes(selectedCategory.value))
|
163
164
|
}
|
164
165
|
})
|
165
166
|
|
166
167
|
const loadMore = async () => {
|
167
168
|
loading.value = true
|
168
|
-
await actions.fetchGallery(page, limit)
|
169
|
+
await gallery.actions.fetchGallery(page, limit)
|
169
170
|
loading.value = false
|
170
171
|
}
|
171
172
|
|
@@ -234,7 +235,7 @@ const sizeOptions = [
|
|
234
235
|
|
235
236
|
|
236
237
|
const deletePhoto = async (id) => {
|
237
|
-
await actions.deletePhoto(id);
|
238
|
+
await gallery.actions.deletePhoto(id);
|
238
239
|
};
|
239
240
|
|
240
241
|
const editPhoto = (photo) => {
|
@@ -242,7 +243,7 @@ const editPhoto = (photo) => {
|
|
242
243
|
};
|
243
244
|
|
244
245
|
const updatePhoto = async () => {
|
245
|
-
await actions.updatePhoto(selectedImage.value)
|
246
|
+
await gallery.actions.updatePhoto(selectedImage.value)
|
246
247
|
closeModal()
|
247
248
|
}
|
248
249
|
|
@@ -270,7 +271,7 @@ const createPhoto = async (e) => {
|
|
270
271
|
return
|
271
272
|
}
|
272
273
|
|
273
|
-
await actions.createPhoto({
|
274
|
+
await gallery.actions.createPhoto({
|
274
275
|
images: uploadedImages.value,
|
275
276
|
size: selectedImage.value.size,
|
276
277
|
categories: typeof selectedImage.value.categories === 'string' ? selectedImage.value.categories.split(',').map(item => item.trim()) : selectedImage.value.categories
|
@@ -287,7 +288,7 @@ const filter = (category) => {
|
|
287
288
|
}
|
288
289
|
|
289
290
|
onMounted(async () => {
|
290
|
-
await actions.fetchGallery(page, limit)
|
291
|
+
await gallery.actions.fetchGallery(page, limit)
|
291
292
|
|
292
293
|
if (typeof window !== 'undefined') {
|
293
294
|
const observer = new IntersectionObserver(entries => {
|