@ozdao/prometheus-framework 0.0.94 → 0.0.96
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-6f807eb5.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs +1945 -0
- package/dist/ButtonFollow-4049a57e.js +1 -0
- package/dist/ButtonFollow-6765c266.mjs +131 -0
- package/dist/CardOrganization-1b0da77c.mjs +230 -0
- package/dist/CardOrganization-43e80590.js +1 -0
- package/dist/CardOrganization-b2098e42.js +1 -0
- package/dist/CardOrganization-c2e7e903.mjs +229 -0
- package/dist/Chips-4316f652.mjs +110 -0
- package/dist/Chips-92ccc11f.js +1 -0
- package/dist/Feed-13499a3a.mjs +428 -0
- package/dist/Feed-345d8513.mjs +355 -0
- package/dist/Feed-361761f5.mjs +366 -0
- package/dist/Feed-8acc6844.js +1 -0
- package/dist/Feed-8f6eb29d.mjs +439 -0
- package/dist/Feed-c6b67df4.js +1 -0
- package/dist/Feed-c8dc4359.js +1 -0
- package/dist/Feed-f0a40b33.js +1 -0
- package/dist/IconEdit-4cfe2115.js +1 -0
- package/dist/IconEdit-eacf3856.mjs +44 -0
- package/dist/Image-661e2fbc.mjs +477 -0
- package/dist/Image-b2131fa0.mjs +477 -0
- package/dist/Image-d01026cf.js +9 -0
- package/dist/Image-f66dbbf4.js +9 -0
- package/dist/Popup-0b38b537.js +1 -0
- package/dist/Popup-e6685f31.mjs +76 -0
- package/dist/Product-3c2ae338.js +7 -0
- package/dist/Product-601a9d5b.mjs +838 -0
- package/dist/Product-dccb371a.mjs +838 -0
- package/dist/Product-f017e6cd.js +7 -0
- package/dist/ProductEdit-777bb9e2.mjs +350 -0
- package/dist/ProductEdit-d5dec3cf.js +1 -0
- package/dist/ProductEdit-dae66a53.js +1 -0
- package/dist/ProductEdit-fa0117b6.mjs +350 -0
- package/dist/ProfileBlogposts-39c20b79.mjs +64 -0
- package/dist/ProfileBlogposts-69beaa14.js +1 -0
- package/dist/ProfileBlogposts-6c715a38.js +1 -0
- package/dist/ProfileBlogposts-92c4addb.mjs +64 -0
- package/dist/ProfileComments-1525663e.mjs +44 -0
- package/dist/ProfileComments-1cbf5c45.js +1 -0
- package/dist/ProfileComments-bae499e9.js +1 -0
- package/dist/ProfileComments-cdaccefe.mjs +44 -0
- package/dist/ProfileEvents-3089a526.mjs +56 -0
- package/dist/ProfileEvents-48c70286.mjs +56 -0
- package/dist/ProfileEvents-a28a4ee5.js +1 -0
- package/dist/ProfileEvents-e62e76cf.js +1 -0
- package/dist/ProfileLikes-6cf19687.js +1 -0
- package/dist/ProfileLikes-75215d15.mjs +44 -0
- package/dist/ProfileLikes-ca197731.mjs +44 -0
- package/dist/ProfileLikes-e31f28dc.js +1 -0
- package/dist/ProfileOrganizations-55914b43.js +1 -0
- package/dist/ProfileOrganizations-600d310d.js +1 -0
- package/dist/ProfileOrganizations-774c6508.mjs +212 -0
- package/dist/ProfileOrganizations-ec908108.mjs +212 -0
- package/dist/Publics-4db36606.js +1 -0
- package/dist/Publics-6b7c97bd.js +1 -0
- package/dist/Publics-abbe2e0c.mjs +123 -0
- package/dist/Publics-cbb8eaaa.mjs +123 -0
- package/dist/Socials-8193477c.mjs +189 -0
- package/dist/Socials-821bd677.js +1 -0
- package/dist/UploadImage-1b4c2a5e.mjs +83 -0
- package/dist/UploadImage-39d42048.js +1 -0
- package/dist/UploadImage-739cab04.js +1 -0
- package/dist/UploadImage-8835be69.mjs +83 -0
- package/dist/auth-b61483ce.js +8 -0
- package/dist/auth-cfeacd61.mjs +1839 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +3 -3
- package/dist/auth.validation-2f00457e.js +1 -0
- package/dist/auth.validation-3fd4cc7c.mjs +20 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +12 -12
- package/dist/components/Text/Text.vue.d.ts +1 -0
- package/dist/components/Text/Text.vue.d.ts.map +1 -1
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +12 -12
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +38 -38
- package/dist/main.css +1 -1
- package/dist/organizations-49a10611.js +1 -0
- package/dist/organizations-8ffdf84d.mjs +121 -0
- package/dist/organizations.client-0071acee.js +3 -0
- package/dist/organizations.client-8aa34e80.mjs +3017 -0
- package/dist/organizations.client-b0878617.js +3 -0
- package/dist/organizations.client-fa3b0839.mjs +3017 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +13 -13
- package/dist/prometheus-framework.cjs.js +2 -2
- package/dist/prometheus-framework.es.js +4 -3
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +48 -48
- package/package.json +2 -1
- package/src/components/CardHeader/CardHeader.vue +2 -2
- package/src/components/Magnifier/Magnifier.vue +1 -1
- package/src/components/Text/Text.vue +4 -3
- package/src/components/UploadImage/UploadImage.vue +8 -1
- package/src/modules/auth/store/auth.js +23 -3
- package/src/modules/backoffice/components/pages/Organizations.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +16 -1
- package/src/modules/constructor/components/elements/Image.vue +1 -1
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +18 -6
- package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
- package/src/modules/landing/components/sections/MobileApp.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/blocks/Positions.vue +2 -2
- package/src/modules/organizations/components/blocks/CardOrganization.vue +5 -5
- package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
- package/src/modules/organizations/components/blocks/User.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/products/components/blocks/Images360.vue +1 -1
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
- package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
- package/src/modules/products/components/blocks/ProductCard.vue +1 -1
- package/src/modules/products/components/sections/EditProductImages.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/SectionProduct.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +3 -3
- package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
- package/src/styles/base/all.scss +1 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as a, createElementBlock as c, createElementVNode as d, unref as s, createCommentVNode as o, createVNode as b, createBlock as l } from "vue";
|
2
|
+
import { useRoute as h, useRouter as y } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-a243605d.mjs";
|
4
|
+
import { _ as p } from "./Feed-345d8513.mjs";
|
5
|
+
import { s as i } from "./auth-cfeacd61.mjs";
|
6
|
+
import "./inputs.validation-14e8e01f.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./EmptyState-34d85f10.mjs";
|
10
|
+
import "./Chips-f0b7ce36.mjs";
|
11
|
+
import "./PlaceholderUserpic-14c6ea7e.mjs";
|
12
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
13
|
+
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), j = {
|
14
|
+
__name: "ProfileEvents",
|
15
|
+
setup(x) {
|
16
|
+
const e = h(), n = y();
|
17
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
18
|
+
const t = f(_);
|
19
|
+
return e.query.tab = t.value, v(t, (u) => {
|
20
|
+
n.push({ query: { ...e.query, tab: u } });
|
21
|
+
}), (u, r) => (a(), c("div", g, [
|
22
|
+
d("header", w, [
|
23
|
+
q,
|
24
|
+
i.user._id === s(e).params._id ? (a(), c("button", {
|
25
|
+
key: 0,
|
26
|
+
onClick: r[0] || (r[0] = (m) => s(n).push({ name: "Create Event" })),
|
27
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
28
|
+
}, " + ")) : o("", !0)
|
29
|
+
]),
|
30
|
+
b(k, {
|
31
|
+
selected: t.value,
|
32
|
+
"onUpdate:selected": r[1] || (r[1] = (m) => t.value = m),
|
33
|
+
tabs: [
|
34
|
+
{ name: "My", value: "owner" },
|
35
|
+
{ name: "Participant", value: "participant" }
|
36
|
+
],
|
37
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
38
|
+
}, null, 8, ["selected"]),
|
39
|
+
t.value === "owner" ? (a(), l(p, {
|
40
|
+
key: 0,
|
41
|
+
user: i.user._id,
|
42
|
+
creator: s(e).params._id,
|
43
|
+
sortOrder: "asc"
|
44
|
+
}, null, 8, ["user", "creator"])) : o("", !0),
|
45
|
+
t.value === "participant" ? (a(), l(p, {
|
46
|
+
key: 1,
|
47
|
+
user: i.user._id,
|
48
|
+
participant: s(e).params._id,
|
49
|
+
sortOrder: "desc"
|
50
|
+
}, null, 8, ["user", "participant"])) : o("", !0)
|
51
|
+
]));
|
52
|
+
}
|
53
|
+
};
|
54
|
+
export {
|
55
|
+
j as default
|
56
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("vue-router"),d=require("./Tab-6f0a4909.js"),i=require("./Feed-c6b67df4.js"),n=require("./auth-b61483ce.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./Chips-2a0d9bfe.js");require("./PlaceholderUserpic-20d58460.js");require("./_plugin-vue_export-helper-f246444f.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),q={__name:"ProfileEvents",setup(v){const r=c.useRoute(),s=c.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,u=>{s.push({query:{...r.query,tab:u}})}),(u,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,n.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(s).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":a[1]||(a[1]=o=>t.value=o),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="owner"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:n.state.user._id,creator:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="participant"?(e.openBlock(),e.createBlock(i._sfc_main,{key:1,user:n.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=q;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("vue-router"),d=require("./Tab-6f0a4909.js"),i=require("./Feed-c8dc4359.js"),n=require("./auth-b61483ce.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./EmptyState-7658d7d6.js");require("./Chips-92ccc11f.js");require("./IconEdit-4cfe2115.js");require("./_plugin-vue_export-helper-f246444f.js");const m={class:"pd-thin"},p={class:"mn-medium flex-v-center flex-nowrap flex"},_=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),q={__name:"ProfileEvents",setup(v){const r=c.useRoute(),s=c.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,u=>{s.push({query:{...r.query,tab:u}})}),(u,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",p,[_,n.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=o=>e.unref(s).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":a[1]||(a[1]=o=>t.value=o),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="owner"?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,user:n.state.user._id,creator:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="participant"?(e.openBlock(),e.createBlock(i._sfc_main,{key:1,user:n.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):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-6f0a4909.js"),c=require("./Feed-8acc6844.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-92ccc11f.js");require("./IconEdit-4cfe2115.js");require("./auth-b61483ce.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.push({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-8f6eb29d.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-4316f652.mjs";
|
11
|
+
import "./IconEdit-eacf3856.mjs";
|
12
|
+
import "./auth-cfeacd61.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.push({ 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,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-13499a3a.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-f0b7ce36.mjs";
|
11
|
+
import "./PlaceholderUserpic-14c6ea7e.mjs";
|
12
|
+
import "./auth-cfeacd61.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.push({ 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-6f0a4909.js"),c=require("./Feed-f0a40b33.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-2a0d9bfe.js");require("./PlaceholderUserpic-20d58460.js");require("./auth-b61483ce.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.push({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"),m=require("vue-router"),f=require("./Tab-6f0a4909.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-43e80590.js"),k=require("./_plugin-vue_export-helper-f246444f.js"),g=require("./organizations-49a10611.js"),d=require("./auth-b61483ce.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./ButtonFollow-4049a57e.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:E=>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})]))}},z={class:"pd-thin"},q={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.push({query:{...t.query,tab:l}})}),(l,n)=>(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("header",q,[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-6f0a4909.js"),y=require("./EmptyState-7658d7d6.js"),h=require("./CardOrganization-b2098e42.js"),k=require("./_plugin-vue_export-helper-f246444f.js"),g=require("./organizations-49a10611.js"),d=require("./auth-b61483ce.js");require("./inputs.validation-24ae76b9.js");require("./globals-928eb13c.js");require("vue-i18n");require("./ButtonFollow-4049a57e.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:E=>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})]))}},z={class:"pd-thin"},q={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.push({query:{...t.query,tab:l}})}),(l,n)=>(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("header",q,[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,212 @@
|
|
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-c2e7e903.mjs";
|
6
|
+
import { _ as B } from "./_plugin-vue_export-helper-dad06003.mjs";
|
7
|
+
import { a as x } from "./organizations-8ffdf84d.mjs";
|
8
|
+
import { s as _ } from "./auth-cfeacd61.mjs";
|
9
|
+
import "./inputs.validation-14e8e01f.mjs";
|
10
|
+
import "./globals-96ba60e4.mjs";
|
11
|
+
import "vue-i18n";
|
12
|
+
import "./ButtonFollow-6765c266.mjs";
|
13
|
+
const E = {}, G = {
|
14
|
+
width: "100%",
|
15
|
+
height: "20rem",
|
16
|
+
xmlns: "http://www.w3.org/2000/svg"
|
17
|
+
}, 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 = [
|
18
|
+
P
|
19
|
+
];
|
20
|
+
function T(b, e) {
|
21
|
+
return r(), o("svg", G, R);
|
22
|
+
}
|
23
|
+
const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
|
24
|
+
__name: "Feed",
|
25
|
+
props: {
|
26
|
+
category: {
|
27
|
+
type: String,
|
28
|
+
default: null
|
29
|
+
},
|
30
|
+
selectedDate: {
|
31
|
+
type: String,
|
32
|
+
default: null
|
33
|
+
},
|
34
|
+
organization: {
|
35
|
+
type: String,
|
36
|
+
default: null
|
37
|
+
},
|
38
|
+
owner: {
|
39
|
+
type: String,
|
40
|
+
default: null
|
41
|
+
},
|
42
|
+
user: {
|
43
|
+
type: [String, Number],
|
44
|
+
default: null
|
45
|
+
},
|
46
|
+
member: {
|
47
|
+
type: [String, Number],
|
48
|
+
default: null
|
49
|
+
},
|
50
|
+
subscriber: {
|
51
|
+
type: [String, Number],
|
52
|
+
default: null
|
53
|
+
},
|
54
|
+
sortOrder: {
|
55
|
+
type: String,
|
56
|
+
default: "desc"
|
57
|
+
},
|
58
|
+
participant: {
|
59
|
+
type: String,
|
60
|
+
default: null
|
61
|
+
},
|
62
|
+
period: {
|
63
|
+
type: String,
|
64
|
+
default: null
|
65
|
+
},
|
66
|
+
status: {
|
67
|
+
type: String,
|
68
|
+
default: null
|
69
|
+
}
|
70
|
+
},
|
71
|
+
setup(b) {
|
72
|
+
const e = b, a = c([]), n = c(!1), t = c(!0), i = c(0), s = c(20), p = async () => {
|
73
|
+
if (n.value) {
|
74
|
+
i.value += s.value;
|
75
|
+
const l = await x.read({
|
76
|
+
skip: i.value,
|
77
|
+
limit: s.value,
|
78
|
+
category: e.category,
|
79
|
+
sortOrder: e.sortOrder,
|
80
|
+
member: e.member,
|
81
|
+
subscriber: e.subscriber,
|
82
|
+
onlyuser: e.onlyuser,
|
83
|
+
user: e.user,
|
84
|
+
date: e.selectedDate,
|
85
|
+
owner: e.owner,
|
86
|
+
organization: e.organization,
|
87
|
+
period: e.period,
|
88
|
+
status: e.status
|
89
|
+
});
|
90
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = [...a.value, ...l];
|
91
|
+
}
|
92
|
+
};
|
93
|
+
return C(async () => {
|
94
|
+
t.value = !0, console.log(e.selectedDate);
|
95
|
+
const l = await x.read({
|
96
|
+
skip: i.value,
|
97
|
+
limit: s.value,
|
98
|
+
category: e.category,
|
99
|
+
member: e.member,
|
100
|
+
subscriber: e.subscriber,
|
101
|
+
onlyuser: e.onlyuser,
|
102
|
+
sortOrder: e.sortOrder,
|
103
|
+
user: e.user,
|
104
|
+
owner: e.owner,
|
105
|
+
date: e.selectedDate,
|
106
|
+
organization: e.organization,
|
107
|
+
period: e.period,
|
108
|
+
status: e.status
|
109
|
+
});
|
110
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = l, t.value = !1;
|
111
|
+
}), (l, J) => (r(), o("section", j, [
|
112
|
+
d(v, {
|
113
|
+
tag: "ul",
|
114
|
+
name: "fade",
|
115
|
+
class: "o-hidden bg-grey radius-big"
|
116
|
+
}, {
|
117
|
+
default: g(() => [
|
118
|
+
t.value ? (r(!0), o(k, { key: 0 }, w(s.value, (m) => (r(), f(U, { key: m }))), 128)) : u("", !0)
|
119
|
+
]),
|
120
|
+
_: 1
|
121
|
+
}),
|
122
|
+
d(h, { name: "fade" }, {
|
123
|
+
default: g(() => [
|
124
|
+
!t.value && a.value.length < 1 ? (r(), f(L, {
|
125
|
+
key: 0,
|
126
|
+
title: "No Organizations Found",
|
127
|
+
description: "Currently, there are no organizations available. Please check back later.",
|
128
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
129
|
+
})) : u("", !0)
|
130
|
+
]),
|
131
|
+
_: 1
|
132
|
+
}),
|
133
|
+
d(v, {
|
134
|
+
tag: "ul",
|
135
|
+
name: "fade",
|
136
|
+
class: "container"
|
137
|
+
}, {
|
138
|
+
default: g(() => [
|
139
|
+
!t.value && a.value.length > 0 ? (r(!0), o(k, { key: 0 }, w(a.value, (m, S) => (r(), f(V, {
|
140
|
+
onClick: (K) => l.$router.push({ name: "Organization", params: { _id: m._id } }),
|
141
|
+
key: m._id,
|
142
|
+
organization: m,
|
143
|
+
user: b.user,
|
144
|
+
type: "normal",
|
145
|
+
class: N(["w-100 radius-big mn-medium", {
|
146
|
+
"br-b br-solid br-black-transp-10": S !== a.value.length - 1
|
147
|
+
}])
|
148
|
+
}, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
|
149
|
+
n.value && a.value.length > 0 ? (r(), o("button", {
|
150
|
+
key: 1,
|
151
|
+
onClick: p,
|
152
|
+
class: "w-100 bg-main button"
|
153
|
+
}, "Load more")) : u("", !0)
|
154
|
+
]),
|
155
|
+
_: 1
|
156
|
+
})
|
157
|
+
]));
|
158
|
+
}
|
159
|
+
}, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), le = {
|
160
|
+
__name: "ProfileOrganizations",
|
161
|
+
setup(b) {
|
162
|
+
const e = M(), a = D();
|
163
|
+
let n = e.query.tab ? e.query.tab : "member";
|
164
|
+
const t = c(n);
|
165
|
+
return e.query.tab = t.value, q(t, (i) => {
|
166
|
+
a.push({ query: { ...e.query, tab: i } });
|
167
|
+
}), (i, s) => (r(), o("div", A, [
|
168
|
+
O("header", H, [
|
169
|
+
I,
|
170
|
+
_.user._id === y(e).params._id ? (r(), o("button", {
|
171
|
+
key: 0,
|
172
|
+
onClick: s[0] || (s[0] = (p) => i.$router.push({
|
173
|
+
name: "Create Organization"
|
174
|
+
})),
|
175
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
176
|
+
}, " + ")) : u("", !0)
|
177
|
+
]),
|
178
|
+
d(F, {
|
179
|
+
selected: t.value,
|
180
|
+
"onUpdate:selected": s[1] || (s[1] = (p) => t.value = p),
|
181
|
+
tabs: [
|
182
|
+
{ name: "Member", value: "member" },
|
183
|
+
{ name: "Follower", value: "follower" }
|
184
|
+
],
|
185
|
+
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
186
|
+
}, null, 8, ["selected"]),
|
187
|
+
d(h, { name: "slide-fade" }, {
|
188
|
+
default: g(() => [
|
189
|
+
t.value === "member" ? (r(), f(z, {
|
190
|
+
key: 0,
|
191
|
+
user: _.user._id,
|
192
|
+
owner: y(e).params._id
|
193
|
+
}, null, 8, ["user", "owner"])) : u("", !0)
|
194
|
+
]),
|
195
|
+
_: 1
|
196
|
+
}),
|
197
|
+
d(h, { name: "slide-fade" }, {
|
198
|
+
default: g(() => [
|
199
|
+
t.value === "follower" ? (r(), f(z, {
|
200
|
+
key: 0,
|
201
|
+
user: _.user._id,
|
202
|
+
subscriber: y(e).params._id
|
203
|
+
}, null, 8, ["user", "subscriber"])) : u("", !0)
|
204
|
+
]),
|
205
|
+
_: 1
|
206
|
+
})
|
207
|
+
]));
|
208
|
+
}
|
209
|
+
};
|
210
|
+
export {
|
211
|
+
le as default
|
212
|
+
};
|
@@ -0,0 +1,212 @@
|
|
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-1b0da77c.mjs";
|
6
|
+
import { _ as B } from "./_plugin-vue_export-helper-dad06003.mjs";
|
7
|
+
import { a as x } from "./organizations-8ffdf84d.mjs";
|
8
|
+
import { s as _ } from "./auth-cfeacd61.mjs";
|
9
|
+
import "./inputs.validation-14e8e01f.mjs";
|
10
|
+
import "./globals-96ba60e4.mjs";
|
11
|
+
import "vue-i18n";
|
12
|
+
import "./ButtonFollow-6765c266.mjs";
|
13
|
+
const E = {}, G = {
|
14
|
+
width: "100%",
|
15
|
+
height: "20rem",
|
16
|
+
xmlns: "http://www.w3.org/2000/svg"
|
17
|
+
}, 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 = [
|
18
|
+
P
|
19
|
+
];
|
20
|
+
function T(b, e) {
|
21
|
+
return r(), o("svg", G, R);
|
22
|
+
}
|
23
|
+
const U = /* @__PURE__ */ B(E, [["render", T]]), j = { class: "feed" }, z = {
|
24
|
+
__name: "Feed",
|
25
|
+
props: {
|
26
|
+
category: {
|
27
|
+
type: String,
|
28
|
+
default: null
|
29
|
+
},
|
30
|
+
selectedDate: {
|
31
|
+
type: String,
|
32
|
+
default: null
|
33
|
+
},
|
34
|
+
organization: {
|
35
|
+
type: String,
|
36
|
+
default: null
|
37
|
+
},
|
38
|
+
owner: {
|
39
|
+
type: String,
|
40
|
+
default: null
|
41
|
+
},
|
42
|
+
user: {
|
43
|
+
type: [String, Number],
|
44
|
+
default: null
|
45
|
+
},
|
46
|
+
member: {
|
47
|
+
type: [String, Number],
|
48
|
+
default: null
|
49
|
+
},
|
50
|
+
subscriber: {
|
51
|
+
type: [String, Number],
|
52
|
+
default: null
|
53
|
+
},
|
54
|
+
sortOrder: {
|
55
|
+
type: String,
|
56
|
+
default: "desc"
|
57
|
+
},
|
58
|
+
participant: {
|
59
|
+
type: String,
|
60
|
+
default: null
|
61
|
+
},
|
62
|
+
period: {
|
63
|
+
type: String,
|
64
|
+
default: null
|
65
|
+
},
|
66
|
+
status: {
|
67
|
+
type: String,
|
68
|
+
default: null
|
69
|
+
}
|
70
|
+
},
|
71
|
+
setup(b) {
|
72
|
+
const e = b, a = c([]), n = c(!1), t = c(!0), i = c(0), s = c(20), p = async () => {
|
73
|
+
if (n.value) {
|
74
|
+
i.value += s.value;
|
75
|
+
const l = await x.read({
|
76
|
+
skip: i.value,
|
77
|
+
limit: s.value,
|
78
|
+
category: e.category,
|
79
|
+
sortOrder: e.sortOrder,
|
80
|
+
member: e.member,
|
81
|
+
subscriber: e.subscriber,
|
82
|
+
onlyuser: e.onlyuser,
|
83
|
+
user: e.user,
|
84
|
+
date: e.selectedDate,
|
85
|
+
owner: e.owner,
|
86
|
+
organization: e.organization,
|
87
|
+
period: e.period,
|
88
|
+
status: e.status
|
89
|
+
});
|
90
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = [...a.value, ...l];
|
91
|
+
}
|
92
|
+
};
|
93
|
+
return C(async () => {
|
94
|
+
t.value = !0, console.log(e.selectedDate);
|
95
|
+
const l = await x.read({
|
96
|
+
skip: i.value,
|
97
|
+
limit: s.value,
|
98
|
+
category: e.category,
|
99
|
+
member: e.member,
|
100
|
+
subscriber: e.subscriber,
|
101
|
+
onlyuser: e.onlyuser,
|
102
|
+
sortOrder: e.sortOrder,
|
103
|
+
user: e.user,
|
104
|
+
owner: e.owner,
|
105
|
+
date: e.selectedDate,
|
106
|
+
organization: e.organization,
|
107
|
+
period: e.period,
|
108
|
+
status: e.status
|
109
|
+
});
|
110
|
+
l.length === 0 ? n.value = !1 : n.value = !0, a.value = l, t.value = !1;
|
111
|
+
}), (l, J) => (r(), o("section", j, [
|
112
|
+
d(v, {
|
113
|
+
tag: "ul",
|
114
|
+
name: "fade",
|
115
|
+
class: "o-hidden bg-grey radius-big"
|
116
|
+
}, {
|
117
|
+
default: g(() => [
|
118
|
+
t.value ? (r(!0), o(k, { key: 0 }, w(s.value, (m) => (r(), f(U, { key: m }))), 128)) : u("", !0)
|
119
|
+
]),
|
120
|
+
_: 1
|
121
|
+
}),
|
122
|
+
d(h, { name: "fade" }, {
|
123
|
+
default: g(() => [
|
124
|
+
!t.value && a.value.length < 1 ? (r(), f(L, {
|
125
|
+
key: 0,
|
126
|
+
title: "No Organizations Found",
|
127
|
+
description: "Currently, there are no organizations available. Please check back later.",
|
128
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
129
|
+
})) : u("", !0)
|
130
|
+
]),
|
131
|
+
_: 1
|
132
|
+
}),
|
133
|
+
d(v, {
|
134
|
+
tag: "ul",
|
135
|
+
name: "fade",
|
136
|
+
class: "container"
|
137
|
+
}, {
|
138
|
+
default: g(() => [
|
139
|
+
!t.value && a.value.length > 0 ? (r(!0), o(k, { key: 0 }, w(a.value, (m, S) => (r(), f(V, {
|
140
|
+
onClick: (K) => l.$router.push({ name: "Organization", params: { _id: m._id } }),
|
141
|
+
key: m._id,
|
142
|
+
organization: m,
|
143
|
+
user: b.user,
|
144
|
+
type: "normal",
|
145
|
+
class: N(["w-100 radius-big mn-medium", {
|
146
|
+
"br-b br-solid br-black-transp-10": S !== a.value.length - 1
|
147
|
+
}])
|
148
|
+
}, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : u("", !0),
|
149
|
+
n.value && a.value.length > 0 ? (r(), o("button", {
|
150
|
+
key: 1,
|
151
|
+
onClick: p,
|
152
|
+
class: "w-100 bg-main button"
|
153
|
+
}, "Load more")) : u("", !0)
|
154
|
+
]),
|
155
|
+
_: 1
|
156
|
+
})
|
157
|
+
]));
|
158
|
+
}
|
159
|
+
}, A = { class: "pd-thin" }, H = { class: "mn-medium flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ O("h2", { class: "mn-r-medium" }, "Groups", -1), le = {
|
160
|
+
__name: "ProfileOrganizations",
|
161
|
+
setup(b) {
|
162
|
+
const e = M(), a = D();
|
163
|
+
let n = e.query.tab ? e.query.tab : "member";
|
164
|
+
const t = c(n);
|
165
|
+
return e.query.tab = t.value, q(t, (i) => {
|
166
|
+
a.push({ query: { ...e.query, tab: i } });
|
167
|
+
}), (i, s) => (r(), o("div", A, [
|
168
|
+
O("header", H, [
|
169
|
+
I,
|
170
|
+
_.user._id === y(e).params._id ? (r(), o("button", {
|
171
|
+
key: 0,
|
172
|
+
onClick: s[0] || (s[0] = (p) => i.$router.push({
|
173
|
+
name: "Create Organization"
|
174
|
+
})),
|
175
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
176
|
+
}, " + ")) : u("", !0)
|
177
|
+
]),
|
178
|
+
d(F, {
|
179
|
+
selected: t.value,
|
180
|
+
"onUpdate:selected": s[1] || (s[1] = (p) => t.value = p),
|
181
|
+
tabs: [
|
182
|
+
{ name: "Member", value: "member" },
|
183
|
+
{ name: "Follower", value: "follower" }
|
184
|
+
],
|
185
|
+
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
186
|
+
}, null, 8, ["selected"]),
|
187
|
+
d(h, { name: "slide-fade" }, {
|
188
|
+
default: g(() => [
|
189
|
+
t.value === "member" ? (r(), f(z, {
|
190
|
+
key: 0,
|
191
|
+
user: _.user._id,
|
192
|
+
owner: y(e).params._id
|
193
|
+
}, null, 8, ["user", "owner"])) : u("", !0)
|
194
|
+
]),
|
195
|
+
_: 1
|
196
|
+
}),
|
197
|
+
d(h, { name: "slide-fade" }, {
|
198
|
+
default: g(() => [
|
199
|
+
t.value === "follower" ? (r(), f(z, {
|
200
|
+
key: 0,
|
201
|
+
user: _.user._id,
|
202
|
+
subscriber: y(e).params._id
|
203
|
+
}, null, 8, ["user", "subscriber"])) : u("", !0)
|
204
|
+
]),
|
205
|
+
_: 1
|
206
|
+
})
|
207
|
+
]));
|
208
|
+
}
|
209
|
+
};
|
210
|
+
export {
|
211
|
+
le as default
|
212
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js");const p=require("./_plugin-vue_export-helper-f246444f.js"),f=require("./CardOrganization-b2098e42.js"),k=require("./EmptyState-7658d7d6.js"),d=require("./auth-b61483ce.js"),_=require("./organizations-49a10611.js"),h=require("./ButtonFollow-4049a57e.js"),y={key:0,class:"t-transp mn-r-small"},B=["onClick"],g=["onClick"],v={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(a,{emit:t}){const n=a,l=e.ref(n.select),s=e.ref(!1);e.watch(()=>n.select,o=>{l.value=o});const c=e.computed(()=>n.select?n.options.filter(o=>o!==n.select):n.options),i=()=>{s.value=!s.value,t(s.value?"focus":"blur")},m=o=>{l.value=o,i(),t("update:select",l.value)};return(o,V)=>{var u;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([o.$attrs.class,"flex-nowrap flex"])},[a.label?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",null,e.toDisplayString(a.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",{onClick:e.withModifiers(i,["stop"]),class:"w-100"},[e.createElementVNode("span",null,e.toDisplayString(((u=l.value)==null?void 0:u.name)||l.value||a.placeholder),1)],8,B),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([o.$attrs.class,"pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),r=>(e.openBlock(),e.createElementBlock("li",null,[r?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:N=>m(r),class:"w-100"},e.toDisplayString(r.name||r),9,g)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0)]),_:1})],2),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[a.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(a.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},w=p._export_sfc(b,[["__scopeId","data-v-a78dbba1"]]);const E={class:"w-100 o-scroll"},x={key:1,class:"w-max gap-thin flex-nowrap flex"},C={__name:"Publics",setup(a){let t=e.ref(null);e.onMounted(async()=>{t.value=await _.actions.read({user:d.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const n=({membership:l,isMember:s,targetId:c})=>{h.mutations.handleMembershipUpdate(t.value,l,s,c)};return(l,s)=>(e.openBlock(),e.createElementBlock("div",E,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",x,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(c,i)=>(e.openBlock(),e.createBlock(f._sfc_main,{key:c._id,organization:c,user:d.state.user,onUpdateMembership:n,class:"flex-child-1 flex-child w-100"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.Select=w;exports._sfc_main=C;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js");const p=require("./_plugin-vue_export-helper-f246444f.js"),f=require("./CardOrganization-43e80590.js"),k=require("./EmptyState-7658d7d6.js"),d=require("./auth-b61483ce.js"),_=require("./organizations-49a10611.js"),h=require("./ButtonFollow-4049a57e.js"),y={key:0,class:"t-transp mn-r-small"},B=["onClick"],g=["onClick"],v={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(a,{emit:t}){const n=a,l=e.ref(n.select),s=e.ref(!1);e.watch(()=>n.select,o=>{l.value=o});const c=e.computed(()=>n.select?n.options.filter(o=>o!==n.select):n.options),i=()=>{s.value=!s.value,t(s.value?"focus":"blur")},m=o=>{l.value=o,i(),t("update:select",l.value)};return(o,V)=>{var u;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([o.$attrs.class,"flex-nowrap flex"])},[a.label?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",null,e.toDisplayString(a.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",{onClick:e.withModifiers(i,["stop"]),class:"w-100"},[e.createElementVNode("span",null,e.toDisplayString(((u=l.value)==null?void 0:u.name)||l.value||a.placeholder),1)],8,B),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([o.$attrs.class,"pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),r=>(e.openBlock(),e.createElementBlock("li",null,[r?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:N=>m(r),class:"w-100"},e.toDisplayString(r.name||r),9,g)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0)]),_:1})],2),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[a.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(a.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},w=p._export_sfc(b,[["__scopeId","data-v-a78dbba1"]]);const E={class:"w-100 o-scroll"},x={key:1,class:"w-max gap-thin flex-nowrap flex"},C={__name:"Publics",setup(a){let t=e.ref(null);e.onMounted(async()=>{t.value=await _.actions.read({user:d.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const n=({membership:l,isMember:s,targetId:c})=>{h.mutations.handleMembershipUpdate(t.value,l,s,c)};return(l,s)=>(e.openBlock(),e.createElementBlock("div",E,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",x,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(c,i)=>(e.openBlock(),e.createBlock(f._sfc_main,{key:c._id,organization:c,user:d.state.user,onUpdateMembership:n,class:"flex-child-1 flex-child w-25r"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.Select=w;exports._sfc_main=C;
|