@ozdao/prometheus-framework 0.1.16 → 0.1.18
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-2426cb6f.mjs +1945 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-579e2c7a.mjs +1945 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6aba800.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cab2bcd2.js +1 -0
- package/dist/ButtonFollow-23c4d9fc.mjs +132 -0
- package/dist/ButtonFollow-351486b0.js +1 -0
- package/dist/ButtonFollow-3a05d29f.mjs +132 -0
- package/dist/ButtonFollow-bf5e6d42.js +1 -0
- package/dist/CardOrganization-4d22037e.js +1 -0
- package/dist/CardOrganization-63dcc83b.js +1 -0
- package/dist/CardOrganization-8c5b582b.mjs +230 -0
- package/dist/CardOrganization-e530c9d5.mjs +230 -0
- package/dist/Chips-3dac276c.js +1 -0
- package/dist/Feed-416d84b0.mjs +439 -0
- package/dist/Feed-44beaa4c.mjs +368 -0
- package/dist/Feed-4d9001aa.mjs +368 -0
- package/dist/Feed-51eef23f.js +1 -0
- package/dist/Feed-8a151970.js +1 -0
- package/dist/Feed-c9e6190e.js +1 -0
- package/dist/Feed-d78d4b91.mjs +439 -0
- package/dist/Feed-f4e9769e.js +1 -0
- package/dist/Gallery-1f82841a.mjs +357 -0
- package/dist/Gallery-9305f294.mjs +357 -0
- package/dist/Gallery-dd29c7f6.js +1 -0
- package/dist/Gallery-dea27e94.js +1 -0
- package/dist/Image-22e17cef.js +9 -0
- package/dist/Image-a2c2ab9c.js +9 -0
- package/dist/Image-ad6d4f0f.mjs +477 -0
- package/dist/Image-c0ae2c5f.mjs +477 -0
- package/dist/Popup-383abb2e.js +1 -0
- package/dist/Popup-ad5f59d0.js +1 -0
- package/dist/Popup-e7c9a43e.mjs +76 -0
- package/dist/Popup-f7a5e86b.mjs +76 -0
- package/dist/Product-2d05acc8.mjs +839 -0
- package/dist/Product-b32fb0e1.js +7 -0
- package/dist/Product-d01e3a0d.mjs +839 -0
- package/dist/Product-d9c3b9b9.js +7 -0
- package/dist/ProductEdit-2b4d1d88.js +1 -0
- package/dist/ProductEdit-5e479343.mjs +300 -0
- package/dist/ProductEdit-ab0530e8.js +1 -0
- package/dist/ProductEdit-aca44ef7.mjs +300 -0
- package/dist/ProfileBlogposts-070cb7e9.mjs +65 -0
- package/dist/ProfileBlogposts-2063c511.mjs +65 -0
- package/dist/ProfileBlogposts-b6bf0c42.js +1 -0
- package/dist/ProfileBlogposts-eaecd267.js +1 -0
- package/dist/ProfileComments-1ae70859.js +1 -0
- package/dist/ProfileComments-78231e6a.mjs +44 -0
- package/dist/ProfileComments-8a0c489c.mjs +44 -0
- package/dist/ProfileComments-f0000ea6.js +1 -0
- package/dist/ProfileEvents-4a2fa422.mjs +57 -0
- package/dist/ProfileEvents-8b88287a.js +1 -0
- package/dist/ProfileEvents-90448f97.js +1 -0
- package/dist/ProfileEvents-d978617d.mjs +57 -0
- package/dist/ProfileLikes-74c78a16.mjs +44 -0
- package/dist/ProfileLikes-b48ce0ef.js +1 -0
- package/dist/ProfileLikes-d5f9f058.js +1 -0
- package/dist/ProfileLikes-f5ad4497.mjs +44 -0
- package/dist/ProfileOrganizations-422d1fa5.js +1 -0
- package/dist/ProfileOrganizations-43710687.js +1 -0
- package/dist/ProfileOrganizations-6b1bc5b2.mjs +213 -0
- package/dist/ProfileOrganizations-cf8a12f5.mjs +213 -0
- package/dist/Publics-5472f70c.mjs +123 -0
- package/dist/Publics-640d32fc.mjs +123 -0
- package/dist/Publics-71b9efbe.js +1 -0
- package/dist/Publics-8595ab7e.js +1 -0
- package/dist/Socials-43293869.js +1 -0
- package/dist/Tab-dcd62005.js +1 -0
- package/dist/UploadImage-0f488170.js +1 -0
- package/dist/UploadImage-3c627d89.mjs +83 -0
- package/dist/UploadImage-dfb36cdb.js +1 -0
- package/dist/UploadImage-e4418b43.mjs +83 -0
- package/dist/UploadImageMultiple-c9a7b54f.js +1 -0
- package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
- package/dist/UploadImageMultiple-d2d48f39.mjs +58 -0
- package/dist/UploadImageMultiple-eddaac87.js +1 -0
- package/dist/auth-4415a97a.js +7 -0
- package/dist/auth-45a454f2.js +7 -0
- package/dist/auth-5cd34aae.mjs +905 -0
- package/dist/auth-afa25b86.mjs +905 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +16 -15
- package/dist/auth.validation-3e93dc23.mjs +20 -0
- package/dist/auth.validation-4b016fa5.js +1 -0
- package/dist/auth.validation-a17cd085.js +1 -0
- package/dist/auth.validation-a52304cf.mjs +20 -0
- package/dist/backoffice.client.cjs +1 -0
- package/dist/backoffice.client.js +69 -0
- package/dist/carousel.es-cdfb392c.js +5 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +23 -22
- package/dist/components/EditImages/EditImages.vue.d.ts +7 -0
- package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
- package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +17 -16
- package/dist/files.server.js +149 -112
- package/dist/files.server.mjs +149 -112
- package/dist/gallery.server.js +148 -0
- package/dist/gallery.server.mjs +149 -0
- package/dist/index-2059e444.js +2 -0
- package/dist/index-4e469a71.mjs +941 -0
- package/dist/index-a661083c.mjs +934 -0
- package/dist/index-b41aac19.js +2 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/modules/gallery/components/sections/Gallery.vue.d.ts +2 -0
- package/dist/modules/icons/navigation/IconChevronRight.vue.d.ts +13 -1
- package/dist/modules/mobile/components/Menu/MenuItem.vue.d.ts +14 -2
- package/dist/organizations-65937ba4.js +1 -0
- package/dist/organizations-81e762e7.mjs +122 -0
- package/dist/organizations-af965fcf.mjs +122 -0
- package/dist/organizations-cf1ab766.js +1 -0
- package/dist/organizations.client-1e9361ec.js +3 -0
- package/dist/organizations.client-43816e25.mjs +3018 -0
- package/dist/organizations.client-b692a78a.mjs +3018 -0
- package/dist/organizations.client-bdc9b044.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +44 -43
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +224 -184
- package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
- package/dist/vuex.esm-bundler-685cf29f.js +5 -0
- package/package.json +10 -1
- package/src/components/EditImages/EditImages.vue +55 -0
- package/src/configurator/components/layouts/layoutConfigurator.vue +0 -40
- package/src/modules/backoffice/backoffice.client.js +15 -0
- package/src/modules/backoffice/components/layouts/Account.vue +48 -58
- package/src/modules/backoffice/router/backoffice.js +20 -0
- package/src/modules/files/controllers/files.controller.js +27 -131
- package/src/modules/files/middlewares/server/index.js +10 -0
- package/src/modules/files/middlewares/server/md.js +151 -0
- package/src/modules/files/middlewares/server/middlewareMulter.js +121 -0
- package/src/modules/files/routes/files.routes.js +20 -6
- package/src/modules/gallery/components/sections/Gallery.vue +414 -0
- package/src/modules/gallery/controllers/gallery.controller.js +87 -73
- package/src/modules/gallery/gallery.client.js +17 -0
- package/src/modules/gallery/gallery.server.js +13 -0
- package/src/modules/gallery/models/photo.model.js +20 -14
- package/src/modules/gallery/routes/gallery.routes.js +18 -9
- package/src/modules/gallery/store/gallery.js +25 -19
- package/src/modules/icons/navigation/IconChevronRight.vue +14 -2
- package/src/modules/mobile/components/Menu/Menu.vue +1 -1
- package/src/modules/mobile/components/Menu/MenuItem.vue +8 -2
- package/src/modules/users/components/pages/Profile.vue +22 -1
- package/src/modules/backoffice/components/pages/Profile.vue +0 -109
- package/src/modules/backoffice/components/pages/profile/ProfileEdit.vue +0 -132
@@ -0,0 +1,57 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as a, createElementBlock as c, createElementVNode as d, unref as o, createCommentVNode as s, createVNode as b, createBlock as l } from "vue";
|
2
|
+
import { useRoute as y, useRouter as h } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as p } from "./Feed-4d9001aa.mjs";
|
5
|
+
import { s as i } from "./auth-5cd34aae.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./Chips-03ff0c34.mjs";
|
11
|
+
import "./IconEdit-eacf3856.mjs";
|
12
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
13
|
+
import "./index-4e469a71.mjs";
|
14
|
+
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), A = {
|
15
|
+
__name: "ProfileEvents",
|
16
|
+
setup(x) {
|
17
|
+
const e = y(), n = h();
|
18
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
19
|
+
const r = f(_);
|
20
|
+
return e.query.tab = r.value, v(r, (u) => {
|
21
|
+
n.replace({ query: { ...e.query, tab: u } });
|
22
|
+
}), (u, t) => (a(), c("div", g, [
|
23
|
+
d("header", w, [
|
24
|
+
q,
|
25
|
+
i.user._id === o(e).params._id ? (a(), c("button", {
|
26
|
+
key: 0,
|
27
|
+
onClick: t[0] || (t[0] = (m) => o(n).push({ name: "Create Event" })),
|
28
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
29
|
+
}, " + ")) : s("", !0)
|
30
|
+
]),
|
31
|
+
b(k, {
|
32
|
+
selected: r.value,
|
33
|
+
"onUpdate:selected": t[1] || (t[1] = (m) => r.value = m),
|
34
|
+
tabs: [
|
35
|
+
{ name: "My", value: "owner" },
|
36
|
+
{ name: "Participant", value: "participant" }
|
37
|
+
],
|
38
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
39
|
+
}, null, 8, ["selected"]),
|
40
|
+
r.value === "owner" ? (a(), l(p, {
|
41
|
+
key: 0,
|
42
|
+
user: i.user._id,
|
43
|
+
creator: o(e).params._id,
|
44
|
+
sortOrder: "asc"
|
45
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
46
|
+
r.value === "participant" ? (a(), l(p, {
|
47
|
+
key: 1,
|
48
|
+
user: i.user._id,
|
49
|
+
participant: o(e).params._id,
|
50
|
+
sortOrder: "desc"
|
51
|
+
}, null, 8, ["user", "participant"])) : s("", !0)
|
52
|
+
]));
|
53
|
+
}
|
54
|
+
};
|
55
|
+
export {
|
56
|
+
A as default
|
57
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
|
2
|
+
import { useRoute as b, useRouter as h } from "vue-router";
|
3
|
+
import { _ as v } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as y } from "./Feed-416d84b0.mjs";
|
5
|
+
import "./inputs.validation-14e8e01f.mjs";
|
6
|
+
import "./globals-96ba60e4.mjs";
|
7
|
+
import "vue-i18n";
|
8
|
+
import "./EmptyState-34d85f10.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./Chips-03ff0c34.mjs";
|
11
|
+
import "./IconEdit-eacf3856.mjs";
|
12
|
+
import "./index-a661083c.mjs";
|
13
|
+
const k = { class: "pd-thin" }, g = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
|
14
|
+
/* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Likes")
|
15
|
+
], -1), M = {
|
16
|
+
__name: "ProfileLikes",
|
17
|
+
setup(q) {
|
18
|
+
const e = b(), n = h();
|
19
|
+
let i = e.query.tab ? e.query.tab : "posts";
|
20
|
+
const t = l(i);
|
21
|
+
return e.query.tab = t.value, p(t, (r) => {
|
22
|
+
n.replace({ query: { ...e.query, tab: r } });
|
23
|
+
}), (r, o) => (s(), c("div", k, [
|
24
|
+
g,
|
25
|
+
d(v, {
|
26
|
+
selected: t.value,
|
27
|
+
"onUpdate:selected": o[0] || (o[0] = (u) => t.value = u),
|
28
|
+
tabs: [
|
29
|
+
{ name: "My posts", value: "posts" },
|
30
|
+
{ name: "Following", value: "hubs" }
|
31
|
+
],
|
32
|
+
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
33
|
+
}, null, 8, ["selected"]),
|
34
|
+
t.value === "posts" ? (s(), _(y, {
|
35
|
+
key: 0,
|
36
|
+
user: a(e).params._id,
|
37
|
+
owner: a(e).params._id
|
38
|
+
}, null, 8, ["user", "owner"])) : f("", !0)
|
39
|
+
]));
|
40
|
+
}
|
41
|
+
};
|
42
|
+
export {
|
43
|
+
M as default
|
44
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),l=require("./Tab-dcd62005.js"),c=require("./Feed-c9e6190e.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Chips-3dac276c.js");require("./IconEdit-4cfe2115.js");require("./index-b41aac19.js");const d={class:"pd-thin"},m=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Likes")],-1),q={__name:"ProfileLikes",setup(p){const r=o.useRoute(),a=o.useRouter();let n=r.query.tab?r.query.tab:"posts";const t=e.ref(n);return r.query.tab=t.value,e.watch(t,u=>{a.replace({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",d,[m,e.createVNode(l._sfc_main,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=i=>t.value=i),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=q;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),l=require("./Tab-dcd62005.js"),c=require("./Feed-51eef23f.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Chips-3dac276c.js");require("./IconEdit-4cfe2115.js");require("./index-2059e444.js");const d={class:"pd-thin"},m=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Likes")],-1),q={__name:"ProfileLikes",setup(p){const r=o.useRoute(),a=o.useRouter();let n=r.query.tab?r.query.tab:"posts";const t=e.ref(n);return r.query.tab=t.value,e.watch(t,u=>{a.replace({query:{...r.query,tab:u}})}),(u,s)=>(e.openBlock(),e.createElementBlock("div",d,[m,e.createVNode(l._sfc_main,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=i=>t.value=i),tabs:[{name:"My posts",value:"posts"},{name:"Following",value:"hubs"}],class:"mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="posts"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:e.unref(r).params._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]))}};exports.default=q;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ref as l, watch as p, openBlock as s, createElementBlock as c, createVNode as d, createBlock as _, unref as a, createCommentVNode as f, createElementVNode as m } from "vue";
|
2
|
+
import { useRoute as b, useRouter as h } from "vue-router";
|
3
|
+
import { _ as v } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as y } from "./Feed-d78d4b91.mjs";
|
5
|
+
import "./inputs.validation-14e8e01f.mjs";
|
6
|
+
import "./globals-96ba60e4.mjs";
|
7
|
+
import "vue-i18n";
|
8
|
+
import "./EmptyState-34d85f10.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./Chips-03ff0c34.mjs";
|
11
|
+
import "./IconEdit-eacf3856.mjs";
|
12
|
+
import "./index-4e469a71.mjs";
|
13
|
+
const k = { class: "pd-thin" }, g = /* @__PURE__ */ m("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
|
14
|
+
/* @__PURE__ */ m("h2", { class: "mn-r-medium" }, "Likes")
|
15
|
+
], -1), M = {
|
16
|
+
__name: "ProfileLikes",
|
17
|
+
setup(q) {
|
18
|
+
const e = b(), n = h();
|
19
|
+
let i = e.query.tab ? e.query.tab : "posts";
|
20
|
+
const t = l(i);
|
21
|
+
return e.query.tab = t.value, p(t, (r) => {
|
22
|
+
n.replace({ query: { ...e.query, tab: r } });
|
23
|
+
}), (r, o) => (s(), c("div", k, [
|
24
|
+
g,
|
25
|
+
d(v, {
|
26
|
+
selected: t.value,
|
27
|
+
"onUpdate:selected": o[0] || (o[0] = (u) => t.value = u),
|
28
|
+
tabs: [
|
29
|
+
{ name: "My posts", value: "posts" },
|
30
|
+
{ name: "Following", value: "hubs" }
|
31
|
+
],
|
32
|
+
class: "mn-r-medium o-hidden h5 radius-big bg-grey"
|
33
|
+
}, null, 8, ["selected"]),
|
34
|
+
t.value === "posts" ? (s(), _(y, {
|
35
|
+
key: 0,
|
36
|
+
user: a(e).params._id,
|
37
|
+
owner: a(e).params._id
|
38
|
+
}, null, 8, ["user", "owner"])) : f("", !0)
|
39
|
+
]));
|
40
|
+
}
|
41
|
+
};
|
42
|
+
export {
|
43
|
+
M as default
|
44
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("vue-router"),f=require("./Tab-dcd62005.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-63dcc83b.js"),k=require("./_plugin-vue_export-helper-f246444f.js"),g=require("./organizations-cf1ab766.js"),d=require("./auth-45a454f2.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./ButtonFollow-bf5e6d42.js");require("./index-2059e444.js");const _={},v={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},w=e.createStaticVNode('<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),x=[w];function B(u,t){return e.openBlock(),e.createElementBlock("svg",v,x)}const C=k._export_sfc(_,[["render",B]]),N={class:"feed"},p={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),o=e.ref(!1),r=e.ref(!0),l=e.ref(0),n=e.ref(20),c=async()=>{if(o.value){l.value+=n.value;const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=[...a.value,...i]}};return e.onMounted(async()=>{r.value=!0,console.log(t.selectedDate);const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=i,r.value=!1}),(i,O)=>(e.openBlock(),e.createElementBlock("section",N,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[r.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,s=>(e.openBlock(),e.createBlock(C,{key:s}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!r.value&&a.value.length<1?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!r.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(s,b)=>(e.openBlock(),e.createBlock(h._sfc_main,{onClick:$=>i.$router.push({name:"Organization",params:{_id:s._id}}),key:s._id,organization:s,user:u.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":b!==a.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),o.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}},q={class:"pd-thin"},z={class:"mn-medium flex-v-center flex-nowrap flex"},V=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),S={__name:"ProfileOrganizations",setup(u){const t=m.useRoute(),a=m.useRouter();let o=t.query.tab?t.query.tab:"member";const r=e.ref(o);return t.query.tab=r.value,e.watch(r,l=>{a.replace({query:{...t.query,tab:l}})}),(l,n)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("header",z,[V,d.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=c=>l.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(f._sfc_main,{selected:r.value,"onUpdate:selected":n[1]||(n[1]=c=>r.value=c),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(p,{key:0,user:d.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(p,{key:0,user:d.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=S;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("vue-router"),f=require("./Tab-dcd62005.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-4d22037e.js"),k=require("./_plugin-vue_export-helper-f246444f.js"),g=require("./organizations-65937ba4.js"),d=require("./auth-4415a97a.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./ButtonFollow-351486b0.js");require("./index-b41aac19.js");const _={},v={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},w=e.createStaticVNode('<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),x=[w];function B(u,t){return e.openBlock(),e.createElementBlock("svg",v,x)}const C=k._export_sfc(_,[["render",B]]),N={class:"feed"},p={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(u){const t=u,a=e.ref([]),o=e.ref(!1),r=e.ref(!0),l=e.ref(0),n=e.ref(20),c=async()=>{if(o.value){l.value+=n.value;const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=[...a.value,...i]}};return e.onMounted(async()=>{r.value=!0,console.log(t.selectedDate);const i=await g.actions.read({skip:l.value,limit:n.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});i.length===0?o.value=!1:o.value=!0,a.value=i,r.value=!1}),(i,O)=>(e.openBlock(),e.createElementBlock("section",N,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[r.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,s=>(e.openBlock(),e.createBlock(C,{key:s}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!r.value&&a.value.length<1?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!r.value&&a.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(s,b)=>(e.openBlock(),e.createBlock(h._sfc_main,{onClick:$=>i.$router.push({name:"Organization",params:{_id:s._id}}),key:s._id,organization:s,user:u.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":b!==a.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),o.value&&a.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}},q={class:"pd-thin"},z={class:"mn-medium flex-v-center flex-nowrap flex"},V=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),S={__name:"ProfileOrganizations",setup(u){const t=m.useRoute(),a=m.useRouter();let o=t.query.tab?t.query.tab:"member";const r=e.ref(o);return t.query.tab=r.value,e.watch(r,l=>{a.replace({query:{...t.query,tab:l}})}),(l,n)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("header",z,[V,d.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=c=>l.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(f._sfc_main,{selected:r.value,"onUpdate:selected":n[1]||(n[1]=c=>r.value=c),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(p,{key:0,user:d.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(p,{key:0,user:d.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=S;
|
@@ -0,0 +1,213 @@
|
|
1
|
+
import { openBlock as r, createElementBlock as o, createStaticVNode as $, ref as c, onMounted as C, createVNode as d, TransitionGroup as v, withCtx as g, Fragment as k, renderList as w, createBlock as f, createCommentVNode as u, Transition as h, normalizeClass as N, watch as q, createElementVNode as O, unref as y } from "vue";
|
2
|
+
import { useRoute as M, useRouter as D } from "vue-router";
|
3
|
+
import { _ as F } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as L } from "./EmptyState-34d85f10.mjs";
|
5
|
+
import { _ as V } from "./CardOrganization-e530c9d5.mjs";
|
6
|
+
import { _ as B } from "./_plugin-vue_export-helper-dad06003.mjs";
|
7
|
+
import { a as x } from "./organizations-81e762e7.mjs";
|
8
|
+
import { s as _ } from "./auth-5cd34aae.mjs";
|
9
|
+
import "./inputs.validation-14e8e01f.mjs";
|
10
|
+
import "./globals-96ba60e4.mjs";
|
11
|
+
import "vue-i18n";
|
12
|
+
import "./ButtonFollow-23c4d9fc.mjs";
|
13
|
+
import "./index-4e469a71.mjs";
|
14
|
+
const E = {}, G = {
|
15
|
+
width: "100%",
|
16
|
+
height: "20rem",
|
17
|
+
xmlns: "http://www.w3.org/2000/svg"
|
18
|
+
}, P = /* @__PURE__ */ $('<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), R = [
|
19
|
+
P
|
20
|
+
];
|
21
|
+
function T(p, e) {
|
22
|
+
return r(), o("svg", G, R);
|
23
|
+
}
|
24
|
+
const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
|
25
|
+
__name: "Feed",
|
26
|
+
props: {
|
27
|
+
category: {
|
28
|
+
type: String,
|
29
|
+
default: null
|
30
|
+
},
|
31
|
+
selectedDate: {
|
32
|
+
type: String,
|
33
|
+
default: null
|
34
|
+
},
|
35
|
+
organization: {
|
36
|
+
type: String,
|
37
|
+
default: null
|
38
|
+
},
|
39
|
+
owner: {
|
40
|
+
type: String,
|
41
|
+
default: null
|
42
|
+
},
|
43
|
+
user: {
|
44
|
+
type: [String, Number],
|
45
|
+
default: null
|
46
|
+
},
|
47
|
+
member: {
|
48
|
+
type: [String, Number],
|
49
|
+
default: null
|
50
|
+
},
|
51
|
+
subscriber: {
|
52
|
+
type: [String, Number],
|
53
|
+
default: null
|
54
|
+
},
|
55
|
+
sortOrder: {
|
56
|
+
type: String,
|
57
|
+
default: "desc"
|
58
|
+
},
|
59
|
+
participant: {
|
60
|
+
type: String,
|
61
|
+
default: null
|
62
|
+
},
|
63
|
+
period: {
|
64
|
+
type: String,
|
65
|
+
default: null
|
66
|
+
},
|
67
|
+
status: {
|
68
|
+
type: String,
|
69
|
+
default: null
|
70
|
+
}
|
71
|
+
},
|
72
|
+
setup(p) {
|
73
|
+
const e = p, a = c([]), n = c(!1), t = c(!0), i = c(0), s = c(20), b = async () => {
|
74
|
+
if (n.value) {
|
75
|
+
i.value += s.value;
|
76
|
+
const l = await x.read({
|
77
|
+
skip: i.value,
|
78
|
+
limit: s.value,
|
79
|
+
category: e.category,
|
80
|
+
sortOrder: e.sortOrder,
|
81
|
+
member: e.member,
|
82
|
+
subscriber: e.subscriber,
|
83
|
+
onlyuser: e.onlyuser,
|
84
|
+
user: e.user,
|
85
|
+
date: e.selectedDate,
|
86
|
+
owner: e.owner,
|
87
|
+
organization: e.organization,
|
88
|
+
period: e.period,
|
89
|
+
status: e.status
|
90
|
+
});
|
91
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = [...a.value, ...l];
|
92
|
+
}
|
93
|
+
};
|
94
|
+
return C(async () => {
|
95
|
+
t.value = !0, console.log(e.selectedDate);
|
96
|
+
const l = await x.read({
|
97
|
+
skip: i.value,
|
98
|
+
limit: s.value,
|
99
|
+
category: e.category,
|
100
|
+
member: e.member,
|
101
|
+
subscriber: e.subscriber,
|
102
|
+
onlyuser: e.onlyuser,
|
103
|
+
sortOrder: e.sortOrder,
|
104
|
+
user: e.user,
|
105
|
+
owner: e.owner,
|
106
|
+
date: e.selectedDate,
|
107
|
+
organization: e.organization,
|
108
|
+
period: e.period,
|
109
|
+
status: e.status
|
110
|
+
});
|
111
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = l, t.value = !1;
|
112
|
+
}), (l, J) => (r(), o("section", j, [
|
113
|
+
d(v, {
|
114
|
+
tag: "ul",
|
115
|
+
name: "fade",
|
116
|
+
class: "o-hidden bg-grey radius-big"
|
117
|
+
}, {
|
118
|
+
default: g(() => [
|
119
|
+
t.value ? (r(!0), o(k, { key: 0 }, w(s.value, (m) => (r(), f(U, { key: m }))), 128)) : u("", !0)
|
120
|
+
]),
|
121
|
+
_: 1
|
122
|
+
}),
|
123
|
+
d(h, { name: "fade" }, {
|
124
|
+
default: g(() => [
|
125
|
+
!t.value && a.value.length < 1 ? (r(), f(L, {
|
126
|
+
key: 0,
|
127
|
+
title: "No Organizations Found",
|
128
|
+
description: "Currently, there are no organizations available. Please check back later.",
|
129
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
130
|
+
})) : u("", !0)
|
131
|
+
]),
|
132
|
+
_: 1
|
133
|
+
}),
|
134
|
+
d(v, {
|
135
|
+
tag: "ul",
|
136
|
+
name: "fade",
|
137
|
+
class: "container"
|
138
|
+
}, {
|
139
|
+
default: g(() => [
|
140
|
+
!t.value && a.value.length > 0 ? (r(!0), o(k, { key: 0 }, w(a.value, (m, S) => (r(), f(V, {
|
141
|
+
onClick: (K) => l.$router.push({ name: "Organization", params: { _id: m._id } }),
|
142
|
+
key: m._id,
|
143
|
+
organization: m,
|
144
|
+
user: p.user,
|
145
|
+
type: "normal",
|
146
|
+
class: N(["w-100 radius-big mn-medium", {
|
147
|
+
"br-b br-solid br-black-transp-10": S !== a.value.length - 1
|
148
|
+
}])
|
149
|
+
}, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
|
150
|
+
n.value && a.value.length > 0 ? (r(), o("button", {
|
151
|
+
key: 1,
|
152
|
+
onClick: b,
|
153
|
+
class: "w-100 bg-main button"
|
154
|
+
}, "Load more")) : u("", !0)
|
155
|
+
]),
|
156
|
+
_: 1
|
157
|
+
})
|
158
|
+
]));
|
159
|
+
}
|
160
|
+
}, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), oe = {
|
161
|
+
__name: "ProfileOrganizations",
|
162
|
+
setup(p) {
|
163
|
+
const e = M(), a = D();
|
164
|
+
let n = e.query.tab ? e.query.tab : "member";
|
165
|
+
const t = c(n);
|
166
|
+
return e.query.tab = t.value, q(t, (i) => {
|
167
|
+
a.replace({ query: { ...e.query, tab: i } });
|
168
|
+
}), (i, s) => (r(), o("div", A, [
|
169
|
+
O("header", H, [
|
170
|
+
I,
|
171
|
+
_.user._id === y(e).params._id ? (r(), o("button", {
|
172
|
+
key: 0,
|
173
|
+
onClick: s[0] || (s[0] = (b) => i.$router.push({
|
174
|
+
name: "Create Organization"
|
175
|
+
})),
|
176
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
177
|
+
}, " + ")) : u("", !0)
|
178
|
+
]),
|
179
|
+
d(F, {
|
180
|
+
selected: t.value,
|
181
|
+
"onUpdate:selected": s[1] || (s[1] = (b) => t.value = b),
|
182
|
+
tabs: [
|
183
|
+
{ name: "Member", value: "member" },
|
184
|
+
{ name: "Follower", value: "follower" }
|
185
|
+
],
|
186
|
+
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
187
|
+
}, null, 8, ["selected"]),
|
188
|
+
d(h, { name: "slide-fade" }, {
|
189
|
+
default: g(() => [
|
190
|
+
t.value === "member" ? (r(), f(z, {
|
191
|
+
key: 0,
|
192
|
+
user: _.user._id,
|
193
|
+
owner: y(e).params._id
|
194
|
+
}, null, 8, ["user", "owner"])) : u("", !0)
|
195
|
+
]),
|
196
|
+
_: 1
|
197
|
+
}),
|
198
|
+
d(h, { name: "slide-fade" }, {
|
199
|
+
default: g(() => [
|
200
|
+
t.value === "follower" ? (r(), f(z, {
|
201
|
+
key: 0,
|
202
|
+
user: _.user._id,
|
203
|
+
subscriber: y(e).params._id
|
204
|
+
}, null, 8, ["user", "subscriber"])) : u("", !0)
|
205
|
+
]),
|
206
|
+
_: 1
|
207
|
+
})
|
208
|
+
]));
|
209
|
+
}
|
210
|
+
};
|
211
|
+
export {
|
212
|
+
oe as default
|
213
|
+
};
|
@@ -0,0 +1,213 @@
|
|
1
|
+
import { openBlock as r, createElementBlock as o, createStaticVNode as $, ref as c, onMounted as C, createVNode as d, TransitionGroup as v, withCtx as g, Fragment as k, renderList as w, createBlock as f, createCommentVNode as u, Transition as h, normalizeClass as N, watch as q, createElementVNode as O, unref as y } from "vue";
|
2
|
+
import { useRoute as M, useRouter as D } from "vue-router";
|
3
|
+
import { _ as F } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as L } from "./EmptyState-34d85f10.mjs";
|
5
|
+
import { _ as V } from "./CardOrganization-8c5b582b.mjs";
|
6
|
+
import { _ as B } from "./_plugin-vue_export-helper-dad06003.mjs";
|
7
|
+
import { a as x } from "./organizations-af965fcf.mjs";
|
8
|
+
import { s as _ } from "./auth-afa25b86.mjs";
|
9
|
+
import "./inputs.validation-14e8e01f.mjs";
|
10
|
+
import "./globals-96ba60e4.mjs";
|
11
|
+
import "vue-i18n";
|
12
|
+
import "./ButtonFollow-3a05d29f.mjs";
|
13
|
+
import "./index-a661083c.mjs";
|
14
|
+
const E = {}, G = {
|
15
|
+
width: "100%",
|
16
|
+
height: "20rem",
|
17
|
+
xmlns: "http://www.w3.org/2000/svg"
|
18
|
+
}, P = /* @__PURE__ */ $('<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), R = [
|
19
|
+
P
|
20
|
+
];
|
21
|
+
function T(p, e) {
|
22
|
+
return r(), o("svg", G, R);
|
23
|
+
}
|
24
|
+
const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
|
25
|
+
__name: "Feed",
|
26
|
+
props: {
|
27
|
+
category: {
|
28
|
+
type: String,
|
29
|
+
default: null
|
30
|
+
},
|
31
|
+
selectedDate: {
|
32
|
+
type: String,
|
33
|
+
default: null
|
34
|
+
},
|
35
|
+
organization: {
|
36
|
+
type: String,
|
37
|
+
default: null
|
38
|
+
},
|
39
|
+
owner: {
|
40
|
+
type: String,
|
41
|
+
default: null
|
42
|
+
},
|
43
|
+
user: {
|
44
|
+
type: [String, Number],
|
45
|
+
default: null
|
46
|
+
},
|
47
|
+
member: {
|
48
|
+
type: [String, Number],
|
49
|
+
default: null
|
50
|
+
},
|
51
|
+
subscriber: {
|
52
|
+
type: [String, Number],
|
53
|
+
default: null
|
54
|
+
},
|
55
|
+
sortOrder: {
|
56
|
+
type: String,
|
57
|
+
default: "desc"
|
58
|
+
},
|
59
|
+
participant: {
|
60
|
+
type: String,
|
61
|
+
default: null
|
62
|
+
},
|
63
|
+
period: {
|
64
|
+
type: String,
|
65
|
+
default: null
|
66
|
+
},
|
67
|
+
status: {
|
68
|
+
type: String,
|
69
|
+
default: null
|
70
|
+
}
|
71
|
+
},
|
72
|
+
setup(p) {
|
73
|
+
const e = p, a = c([]), n = c(!1), t = c(!0), i = c(0), s = c(20), b = async () => {
|
74
|
+
if (n.value) {
|
75
|
+
i.value += s.value;
|
76
|
+
const l = await x.read({
|
77
|
+
skip: i.value,
|
78
|
+
limit: s.value,
|
79
|
+
category: e.category,
|
80
|
+
sortOrder: e.sortOrder,
|
81
|
+
member: e.member,
|
82
|
+
subscriber: e.subscriber,
|
83
|
+
onlyuser: e.onlyuser,
|
84
|
+
user: e.user,
|
85
|
+
date: e.selectedDate,
|
86
|
+
owner: e.owner,
|
87
|
+
organization: e.organization,
|
88
|
+
period: e.period,
|
89
|
+
status: e.status
|
90
|
+
});
|
91
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = [...a.value, ...l];
|
92
|
+
}
|
93
|
+
};
|
94
|
+
return C(async () => {
|
95
|
+
t.value = !0, console.log(e.selectedDate);
|
96
|
+
const l = await x.read({
|
97
|
+
skip: i.value,
|
98
|
+
limit: s.value,
|
99
|
+
category: e.category,
|
100
|
+
member: e.member,
|
101
|
+
subscriber: e.subscriber,
|
102
|
+
onlyuser: e.onlyuser,
|
103
|
+
sortOrder: e.sortOrder,
|
104
|
+
user: e.user,
|
105
|
+
owner: e.owner,
|
106
|
+
date: e.selectedDate,
|
107
|
+
organization: e.organization,
|
108
|
+
period: e.period,
|
109
|
+
status: e.status
|
110
|
+
});
|
111
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = l, t.value = !1;
|
112
|
+
}), (l, J) => (r(), o("section", j, [
|
113
|
+
d(v, {
|
114
|
+
tag: "ul",
|
115
|
+
name: "fade",
|
116
|
+
class: "o-hidden bg-grey radius-big"
|
117
|
+
}, {
|
118
|
+
default: g(() => [
|
119
|
+
t.value ? (r(!0), o(k, { key: 0 }, w(s.value, (m) => (r(), f(U, { key: m }))), 128)) : u("", !0)
|
120
|
+
]),
|
121
|
+
_: 1
|
122
|
+
}),
|
123
|
+
d(h, { name: "fade" }, {
|
124
|
+
default: g(() => [
|
125
|
+
!t.value && a.value.length < 1 ? (r(), f(L, {
|
126
|
+
key: 0,
|
127
|
+
title: "No Organizations Found",
|
128
|
+
description: "Currently, there are no organizations available. Please check back later.",
|
129
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
130
|
+
})) : u("", !0)
|
131
|
+
]),
|
132
|
+
_: 1
|
133
|
+
}),
|
134
|
+
d(v, {
|
135
|
+
tag: "ul",
|
136
|
+
name: "fade",
|
137
|
+
class: "container"
|
138
|
+
}, {
|
139
|
+
default: g(() => [
|
140
|
+
!t.value && a.value.length > 0 ? (r(!0), o(k, { key: 0 }, w(a.value, (m, S) => (r(), f(V, {
|
141
|
+
onClick: (K) => l.$router.push({ name: "Organization", params: { _id: m._id } }),
|
142
|
+
key: m._id,
|
143
|
+
organization: m,
|
144
|
+
user: p.user,
|
145
|
+
type: "normal",
|
146
|
+
class: N(["w-100 radius-big mn-medium", {
|
147
|
+
"br-b br-solid br-black-transp-10": S !== a.value.length - 1
|
148
|
+
}])
|
149
|
+
}, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
|
150
|
+
n.value && a.value.length > 0 ? (r(), o("button", {
|
151
|
+
key: 1,
|
152
|
+
onClick: b,
|
153
|
+
class: "w-100 bg-main button"
|
154
|
+
}, "Load more")) : u("", !0)
|
155
|
+
]),
|
156
|
+
_: 1
|
157
|
+
})
|
158
|
+
]));
|
159
|
+
}
|
160
|
+
}, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), oe = {
|
161
|
+
__name: "ProfileOrganizations",
|
162
|
+
setup(p) {
|
163
|
+
const e = M(), a = D();
|
164
|
+
let n = e.query.tab ? e.query.tab : "member";
|
165
|
+
const t = c(n);
|
166
|
+
return e.query.tab = t.value, q(t, (i) => {
|
167
|
+
a.replace({ query: { ...e.query, tab: i } });
|
168
|
+
}), (i, s) => (r(), o("div", A, [
|
169
|
+
O("header", H, [
|
170
|
+
I,
|
171
|
+
_.user._id === y(e).params._id ? (r(), o("button", {
|
172
|
+
key: 0,
|
173
|
+
onClick: s[0] || (s[0] = (b) => i.$router.push({
|
174
|
+
name: "Create Organization"
|
175
|
+
})),
|
176
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
177
|
+
}, " + ")) : u("", !0)
|
178
|
+
]),
|
179
|
+
d(F, {
|
180
|
+
selected: t.value,
|
181
|
+
"onUpdate:selected": s[1] || (s[1] = (b) => t.value = b),
|
182
|
+
tabs: [
|
183
|
+
{ name: "Member", value: "member" },
|
184
|
+
{ name: "Follower", value: "follower" }
|
185
|
+
],
|
186
|
+
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
187
|
+
}, null, 8, ["selected"]),
|
188
|
+
d(h, { name: "slide-fade" }, {
|
189
|
+
default: g(() => [
|
190
|
+
t.value === "member" ? (r(), f(z, {
|
191
|
+
key: 0,
|
192
|
+
user: _.user._id,
|
193
|
+
owner: y(e).params._id
|
194
|
+
}, null, 8, ["user", "owner"])) : u("", !0)
|
195
|
+
]),
|
196
|
+
_: 1
|
197
|
+
}),
|
198
|
+
d(h, { name: "slide-fade" }, {
|
199
|
+
default: g(() => [
|
200
|
+
t.value === "follower" ? (r(), f(z, {
|
201
|
+
key: 0,
|
202
|
+
user: _.user._id,
|
203
|
+
subscriber: y(e).params._id
|
204
|
+
}, null, 8, ["user", "subscriber"])) : u("", !0)
|
205
|
+
]),
|
206
|
+
_: 1
|
207
|
+
})
|
208
|
+
]));
|
209
|
+
}
|
210
|
+
};
|
211
|
+
export {
|
212
|
+
oe as default
|
213
|
+
};
|