@ozdao/prometheus-framework 0.1.37 → 0.1.39
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/CardBlogpost-ae3b4d23.js +1 -0
- package/dist/CardBlogpost-d6f49156.mjs +246 -0
- package/dist/Chips-3a07f374.js +1 -0
- package/dist/Chips-a8681edd.mjs +213 -0
- package/dist/Community-72dbb933.js +1 -0
- package/dist/Community-b4d10da6.mjs +130 -0
- package/dist/Dashboard-73b50724.js +1 -0
- package/dist/Dashboard-bc81b5f6.mjs +151 -0
- package/dist/Dropdown-ef2df9a9.mjs +169 -0
- package/dist/Dropdown-f2564c92.js +1 -0
- package/dist/Events-0c6e3ef4.mjs +134 -0
- package/dist/Events-4742f070.js +1 -0
- package/dist/Feed-09b0790d.js +1 -0
- package/dist/Feed-12b12380.js +1 -0
- package/dist/Feed-585d5821.mjs +124 -0
- package/dist/Feed-807d265b.mjs +156 -0
- package/dist/Feed-90f74d6c.mjs +361 -0
- package/dist/Feed-a47977d3.js +1 -0
- package/dist/Image-268e2a1b.js +9 -0
- package/dist/Image-5423e8ce.mjs +480 -0
- package/dist/Members-9b013515.js +1 -0
- package/dist/Members-d64149f3.mjs +109 -0
- package/dist/Menu-93d34d9f.js +1 -0
- package/dist/Menu-eaf6b44c.mjs +13 -0
- package/dist/MenuItem-4a5881bd.mjs +85 -0
- package/dist/MenuItem-f35cad93.js +1 -0
- package/dist/Organizations-0fd5bc8b.mjs +72 -0
- package/dist/Organizations-d360c360.js +1 -0
- package/dist/Popup-0d8e1392.mjs +96 -0
- package/dist/Popup-eb11fa82.js +1 -0
- package/dist/Product-e43dd2f1.js +7 -0
- package/dist/Product-e4e583f0.mjs +652 -0
- package/dist/ProfileBlogposts-8f6191d6.js +1 -0
- package/dist/ProfileBlogposts-aa839fcb.mjs +77 -0
- package/dist/ProfileEvents-6b3fb52e.mjs +68 -0
- package/dist/ProfileEvents-893285bb.js +1 -0
- package/dist/ProfileOrganizations-738f444a.js +1 -0
- package/dist/ProfileOrganizations-c4fb03a1.mjs +72 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +5 -5
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +202 -195
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +14 -17
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +64 -40
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +4 -5
- package/dist/organizations.client-63b476ff.mjs +2996 -0
- package/dist/organizations.client-696eacbb.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +45 -50
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +267 -215
- package/package.json +119 -2
@@ -0,0 +1,130 @@
|
|
1
|
+
import q, { withAsyncContext as R, ref as B, computed as C, openBlock as w, createElementBlock as S, createElementVNode as f, unref as M, Fragment as U, renderList as G, createBlock as H, withCtx as J, pushScopeId as K, popScopeId as Q } from "vue";
|
2
|
+
import { r as W, s as E, _ as X, a as Y } from "./CardBlogpost-d6f49156.mjs";
|
3
|
+
import { s as Z } from "./auth-ec618cb3.mjs";
|
4
|
+
import { useRouter as ee } from "vue-router";
|
5
|
+
import { _ as te } from "./_plugin-vue_export-helper-dad06003.mjs";
|
6
|
+
import "./index-a661083c.mjs";
|
7
|
+
import "./globals-96ba60e4.mjs";
|
8
|
+
import "vue-i18n";
|
9
|
+
import "./Chips-a8681edd.mjs";
|
10
|
+
import "./Dropdown-ef2df9a9.mjs";
|
11
|
+
import "./Popup-0d8e1392.mjs";
|
12
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./Button-9e1a9284.mjs";
|
14
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import "./Select-11ddabf5.mjs";
|
16
|
+
import "./reports-79cd9459.mjs";
|
17
|
+
import "./click-outside-6101836c.mjs";
|
18
|
+
import "./memberships-12210953.mjs";
|
19
|
+
import "./IconEdit-9edfd74d.mjs";
|
20
|
+
var le = {};
|
21
|
+
(function(r) {
|
22
|
+
Object.defineProperties(r, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } });
|
23
|
+
var e = q;
|
24
|
+
const g = { class: "flex-nowrap flex-v-center flex pd-medium bg-white" }, k = { key: 0, class: "t-left mn-r-small w-33" }, y = { class: "w-100" }, h = ["value", "placeholder"], v = e.defineComponent({ __name: "Field", props: { label: { default: "Label" }, placeholder: { default: "Enter something here" }, field: { default: null }, validation: { type: Boolean, default: !1 } }, emits: ["update:modelValue"], setup(t, { emit: a }) {
|
25
|
+
const l = t, n = e.ref(l.field);
|
26
|
+
return (d, u) => (e.openBlock(), e.createElementBlock("div", g, [t.label ? (e.openBlock(), e.createElementBlock("div", k, [e.createElementVNode("label", null, e.toDisplayString(t.label), 1)])) : e.createCommentVNode("", !0), e.createElementVNode("div", y, [e.createElementVNode("input", { onInput: u[0] || (u[0] = (b) => {
|
27
|
+
var i;
|
28
|
+
return n.value = a("update:modelValue", (i = b.target) == null ? void 0 : i.value);
|
29
|
+
}), type: "text", class: "w-100", value: t.field, placeholder: t.placeholder }, null, 40, h)])]));
|
30
|
+
} }), o = { class: "input-wrapper" }, p = { class: "t-transp p-small" }, c = { key: 0, class: "flex-nojustify flex-v-center flex-nowrap flex w-100" }, _ = { key: 1, class: "w-100" }, T = ["onClick"], V = { __name: "Select", props: ["obj", "label", "prop", "value", "options", "content", "textarea", "placeholder", "size"], setup(t) {
|
31
|
+
const a = t, l = e.ref(null), n = e.ref(!1);
|
32
|
+
e.ref("Please select an item");
|
33
|
+
let d = e.computed(() => {
|
34
|
+
if (a.prop[a.content]) {
|
35
|
+
var i = a.options.indexOf(a.prop[a.content]), m = a.options.map((s) => s);
|
36
|
+
return i != -1 && m.splice(i, 1), m;
|
37
|
+
} else
|
38
|
+
return a.options;
|
39
|
+
});
|
40
|
+
a.prop[a.content] && (l.value = a.prop[a.content]);
|
41
|
+
function u() {
|
42
|
+
n.value = !n.value;
|
43
|
+
}
|
44
|
+
function b(i, m, s) {
|
45
|
+
var N = s;
|
46
|
+
l.value = N, n.value = !n.value, i[m] = N;
|
47
|
+
}
|
48
|
+
return (i, m) => (e.openBlock(), e.createElementBlock("div", o, [e.createElementVNode("span", p, e.toDisplayString(t.label), 1), e.createElementVNode("li", { onClick: m[0] || (m[0] = e.withModifiers((s) => u(), ["stop"])), class: e.normalizeClass([{ "input-small": t.size === "small" }, "pd-small flex-center flex-nowrap flex bg-grey input-select input"]) }, [l.value ? (e.openBlock(), e.createElementBlock("span", c, [e.createElementVNode("span", null, e.toDisplayString(l.value.name ? l.value.name : l.value), 1)])) : (e.openBlock(), e.createElementBlock("span", _, e.toDisplayString(t.placeholder ? t.placeholder : "Please select"), 1))], 2), n.value ? (e.openBlock(), e.createElementBlock("ul", { key: 0, class: e.normalizeClass([{ "dropdown-small": t.size === "small" }, "bg-grey dropdown-menu"]) }, [(e.openBlock(!0), e.createElementBlock(e.Fragment, null, e.renderList(e.unref(d), (s) => (e.openBlock(), e.createElementBlock("li", { class: e.normalizeClass([{ "input-small": t.size === "small" }, "pd-small bg-grey input-select input"]) }, [s ? (e.openBlock(), e.createElementBlock("span", { key: 0, onClick: (N) => b(t.prop, t.content, s), class: "flex-nojustify flex-v-center flex-nowrap flex w-100" }, [e.createElementVNode("span", null, e.toDisplayString(s.name ? s.name : s), 1)], 8, T)) : e.createCommentVNode("", !0)], 2))), 256))], 2)) : e.createCommentVNode("", !0)]));
|
49
|
+
} }, I = ["disabled"], L = { key: 0 }, $ = { key: 0, class: "loading" }, z = e.createElementVNode("span", null, [e.createElementVNode("svg", { class: "i-default", width: "135", height: "140", viewBox: "0 0 135 140", xmlns: "http://www.w3.org/2000/svg", fill: "#fff" }, [e.createElementVNode("rect", { y: "10", width: "15", height: "120", rx: "6" }, [e.createElementVNode("animate", { attributeName: "height", begin: "0.5s", dur: "1s", values: "120;110;100;90;80;70;60;50;40;140;120", calcMode: "linear", repeatCount: "indefinite" }), e.createTextVNode(), e.createElementVNode("animate", { attributeName: "y", begin: "0.5s", dur: "1s", values: "10;15;20;25;30;35;40;45;50;0;10", calcMode: "linear", repeatCount: "indefinite" })]), e.createElementVNode("rect", { x: "30", y: "10", width: "15", height: "120", rx: "6" }, [e.createElementVNode("animate", { attributeName: "height", begin: "0.25s", dur: "1s", values: "120;110;100;90;80;70;60;50;40;140;120", calcMode: "linear", repeatCount: "indefinite" }), e.createTextVNode(), e.createElementVNode("animate", { attributeName: "y", begin: "0.25s", dur: "1s", values: "10;15;20;25;30;35;40;45;50;0;10", calcMode: "linear", repeatCount: "indefinite" })]), e.createElementVNode("rect", { x: "60", width: "15", height: "140", rx: "6" }, [e.createElementVNode("animate", { attributeName: "height", begin: "0s", dur: "1s", values: "120;110;100;90;80;70;60;50;40;140;120", calcMode: "linear", repeatCount: "indefinite" }), e.createTextVNode(), e.createElementVNode("animate", { attributeName: "y", begin: "0s", dur: "1s", values: "10;15;20;25;30;35;40;45;50;0;10", calcMode: "linear", repeatCount: "indefinite" })]), e.createElementVNode("rect", { x: "90", y: "10", width: "15", height: "120", rx: "6" }, [e.createElementVNode("animate", { attributeName: "height", begin: "0.25s", dur: "1s", values: "120;110;100;90;80;70;60;50;40;140;120", calcMode: "linear", repeatCount: "indefinite" }), e.createTextVNode(), e.createElementVNode("animate", { attributeName: "y", begin: "0.25s", dur: "1s", values: "10;15;20;25;30;35;40;45;50;0;10", calcMode: "linear", repeatCount: "indefinite" })]), e.createElementVNode("rect", { x: "120", y: "10", width: "15", height: "120", rx: "6" }, [e.createElementVNode("animate", { attributeName: "height", begin: "0.5s", dur: "1s", values: "120;110;100;90;80;70;60;50;40;140;120", calcMode: "linear", repeatCount: "indefinite" }), e.createTextVNode(), e.createElementVNode("animate", { attributeName: "y", begin: "0.5s", dur: "1s", values: "10;15;20;25;30;35;40;45;50;0;10", calcMode: "linear", repeatCount: "indefinite" })])])], -1), F = [z], D = { key: 0, class: "h4 loading" }, P = e.createElementVNode("span", { class: "t-white" }, "✔", -1), j = [P], A = { key: 0, class: "error" }, x = e.defineComponent({ __name: "Button", props: { submit: { type: Function, default: async () => {
|
50
|
+
console.log("Button click.");
|
51
|
+
} }, callback: { type: Function, default: async () => {
|
52
|
+
console.log("Button callback.");
|
53
|
+
} }, validation: { type: Boolean, default: !1 } }, setup(t) {
|
54
|
+
const a = t, l = e.ref(null), n = e.ref(null), d = e.ref(!1), u = e.ref(!1);
|
55
|
+
async function b() {
|
56
|
+
l.value.style["pointer-events"] = "none", n.value = null, d.value = !0;
|
57
|
+
try {
|
58
|
+
await a.submit(), l.value.classList.add("bg-light-blue"), l.value.classList.remove("bg-blue"), d.value = !1, u.value = !0, setTimeout(() => a.callback(), 750);
|
59
|
+
} catch {
|
60
|
+
l.value.classList.add("bg-light-red"), l.value.classList.remove("bg-blue"), n.value = "❌", setTimeout(() => {
|
61
|
+
l.value.classList.add("bg-blue"), l.value.classList.remove("bg-light-red"), l.value.style.pointerEvents = "auto", d.value = !1, u.value = !1, n.value = null;
|
62
|
+
}, 1e3);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
return (i, m) => (e.openBlock(), e.createElementBlock("button", { onClick: b, disabled: t.validation, ref_key: "button", ref: l, class: "w-100 t-white bg-blue button" }, [e.createVNode(e.Transition, { mode: "out-in", name: "fadeIn" }, { default: e.withCtx(() => [!d.value && !n.value && !u.value ? (e.openBlock(), e.createElementBlock("span", L, [e.renderSlot(i.$slots, "default")])) : e.createCommentVNode("", !0)]), _: 3 }), e.createVNode(e.Transition, { mode: "out-in", name: "fadeIn" }, { default: e.withCtx(() => [d.value && !n.value ? (e.openBlock(), e.createElementBlock("div", $, F)) : e.createCommentVNode("", !0)]), _: 1 }), e.createVNode(e.Transition, { mode: "out-in", name: "fadeIn" }, { default: e.withCtx(() => [u.value ? (e.openBlock(), e.createElementBlock("div", D, j)) : e.createCommentVNode("", !0)]), _: 1 }), e.createVNode(e.Transition, { mode: "out-in", name: "fadeIn" }, { default: e.withCtx(() => [n.value ? (e.openBlock(), e.createElementBlock("div", A, [e.createElementVNode("span", null, e.toDisplayString(n.value), 1)])) : e.createCommentVNode("", !0)]), _: 1 })], 8, I));
|
66
|
+
} });
|
67
|
+
var O = { install: (t) => {
|
68
|
+
t.component("Field", v), t.component("Button", x), t.component("Select", V);
|
69
|
+
} };
|
70
|
+
r.Button = x, r.Field = v, r.Select = V, r.default = O;
|
71
|
+
})(le);
|
72
|
+
const ae = (r) => (K("data-v-faeb0fe0"), r = r(), Q(), r), ne = { class: "flex-v-center flex-nowrap flex mn-medium" }, oe = /* @__PURE__ */ ae(() => /* @__PURE__ */ f("h3", { class: "mn-r-medium" }, "Blog", -1)), re = { class: "" }, ie = { class: "flex-nowrap flex pd-t-zero pd-b-zero pd-big" }, se = ["onClick"], ce = ["onClick"], ue = {
|
73
|
+
__name: "Community",
|
74
|
+
async setup(r) {
|
75
|
+
let e, g;
|
76
|
+
const k = ee();
|
77
|
+
[e, g] = R(() => W()), await e, g(), console.log(E), B({
|
78
|
+
title: "",
|
79
|
+
content: "",
|
80
|
+
categories: []
|
81
|
+
});
|
82
|
+
const y = async (o) => {
|
83
|
+
window.confirm("Are you sure you want to delete this post?") && (console.log(o), await Y(o));
|
84
|
+
};
|
85
|
+
let h = B("all");
|
86
|
+
const v = C(() => h.value === "all" ? E.all : E.all.filter((o) => o.categories.includes(h.value)));
|
87
|
+
return C(() => {
|
88
|
+
for (let o of v.value)
|
89
|
+
if (o.blocks && o.blocks.length > 0) {
|
90
|
+
const p = o.blocks.find((c) => c.type.name === "ImageUpload");
|
91
|
+
if (p)
|
92
|
+
return p.content;
|
93
|
+
}
|
94
|
+
return null;
|
95
|
+
}), (o, p) => (w(), S("div", null, [
|
96
|
+
f("div", ne, [
|
97
|
+
oe,
|
98
|
+
f("button", {
|
99
|
+
onClick: p[0] || (p[0] = (c) => M(k).push({ name: "Create BlogPost" })),
|
100
|
+
class: "t-white bg-second button-small button"
|
101
|
+
}, "+")
|
102
|
+
]),
|
103
|
+
f("div", re, [
|
104
|
+
(w(!0), S(U, null, G(M(v), (c) => (w(), H(X, {
|
105
|
+
key: c._id,
|
106
|
+
blogpost: c,
|
107
|
+
owner: Z.user._id,
|
108
|
+
class: "mn-medium"
|
109
|
+
}, {
|
110
|
+
default: J(() => [
|
111
|
+
f("div", ie, [
|
112
|
+
f("button", {
|
113
|
+
class: "mn-r-thin button-small w-100 button",
|
114
|
+
onClick: (_) => o.$router.push({ path: "/community/posts/" + c.url + "/edit" })
|
115
|
+
}, "Edit", 8, se),
|
116
|
+
f("button", {
|
117
|
+
class: "button-small w-100 button",
|
118
|
+
onClick: (_) => y(c._id)
|
119
|
+
}, "Delete", 8, ce)
|
120
|
+
])
|
121
|
+
]),
|
122
|
+
_: 2
|
123
|
+
}, 1032, ["blogpost", "owner"]))), 128))
|
124
|
+
])
|
125
|
+
]));
|
126
|
+
}
|
127
|
+
}, Me = /* @__PURE__ */ te(ue, [["__scopeId", "data-v-faeb0fe0"]]);
|
128
|
+
export {
|
129
|
+
Me as default
|
130
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./Menu-93d34d9f.js"),r=require("./MenuItem-f35cad93.js"),o=require("vue-router");require("./_plugin-vue_export-helper-f246444f.js");const u={class:""},c=e.createElementVNode("h1",{class:"mn-small"},"Your Backoffice",-1),l=e.createElementVNode("span",null," Organizations ",-1),d=e.createElementVNode("span",null," Events ",-1),f=e.createElementVNode("span",null," Community ",-1),m=e.createElementVNode("span",null," Products ",-1),_=e.createElementVNode("span",null," Leftovers ",-1),p=e.createElementVNode("span",null," Orders ",-1),k=e.createElementVNode("span",null," Payments ",-1),C=e.createElementVNode("span",null," Gallery ",-1),N=e.createElementVNode("span",null," Reports ",-1),V={__name:"Dashboard",props:{favorites:Array},setup(v){const s=o.useRoute(),n=o.useRouter();return(h,t)=>(e.openBlock(),e.createElementBlock("div",u,[c,e.createVNode(i._sfc_main,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r._sfc_main,{onClick:t[0]||(t[0]=a=>e.unref(n).push({name:"Backoffice Organizations",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[l]),_:1}),e.createVNode(r._sfc_main,{onClick:t[1]||(t[1]=a=>e.unref(n).push({name:"Backoffice Events",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r._sfc_main,{onClick:t[2]||(t[2]=a=>e.unref(n).push({name:"Backoffice Community",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[f]),_:1}),e.createVNode(r._sfc_main,{onClick:t[3]||(t[3]=a=>e.unref(n).push({name:"Backoffice Products",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1}),e.createVNode(r._sfc_main,{onClick:t[4]||(t[4]=a=>e.unref(n).push({name:"Backoffice Leftovers",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(r._sfc_main,{onClick:t[5]||(t[5]=a=>e.unref(n).push({name:"Backoffice Orders",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[p]),_:1}),e.createVNode(r._sfc_main,{onClick:t[6]||(t[6]=a=>e.unref(n).push({name:"Backoffice Payments",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(r._sfc_main,{onClick:t[7]||(t[7]=a=>e.unref(n).push({name:"Backoffice Gallery",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(r._sfc_main,{onClick:t[8]||(t[8]=a=>e.unref(n).push({name:"Backoffice Reports",params:{_id:e.unref(s).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1})]),_:1})]))}};exports.default=V;
|
@@ -0,0 +1,151 @@
|
|
1
|
+
import { openBlock as p, createElementBlock as u, createVNode as a, withCtx as e, unref as o, createElementVNode as t } from "vue";
|
2
|
+
import { _ as m } from "./Menu-eaf6b44c.mjs";
|
3
|
+
import { _ as i } from "./MenuItem-4a5881bd.mjs";
|
4
|
+
import { useRoute as d, useRouter as _ } from "vue-router";
|
5
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
6
|
+
const f = { class: "" }, c = /* @__PURE__ */ t("h1", { class: "mn-small" }, "Your Backoffice", -1), k = /* @__PURE__ */ t("span", null, " Organizations ", -1), v = /* @__PURE__ */ t("span", null, " Events ", -1), B = /* @__PURE__ */ t("span", null, " Community ", -1), C = /* @__PURE__ */ t("span", null, " Products ", -1), $ = /* @__PURE__ */ t("span", null, " Leftovers ", -1), y = /* @__PURE__ */ t("span", null, " Orders ", -1), h = /* @__PURE__ */ t("span", null, " Payments ", -1), g = /* @__PURE__ */ t("span", null, " Gallery ", -1), E = /* @__PURE__ */ t("span", null, " Reports ", -1), L = {
|
7
|
+
__name: "Dashboard",
|
8
|
+
props: {
|
9
|
+
favorites: Array
|
10
|
+
},
|
11
|
+
setup(O) {
|
12
|
+
const n = d(), r = _();
|
13
|
+
return (P, s) => (p(), u("div", f, [
|
14
|
+
c,
|
15
|
+
a(m, { class: "bg-grey" }, {
|
16
|
+
default: e(() => [
|
17
|
+
a(i, {
|
18
|
+
onClick: s[0] || (s[0] = (l) => o(r).push({
|
19
|
+
name: "Backoffice Organizations",
|
20
|
+
params: {
|
21
|
+
_id: o(n).params._id
|
22
|
+
}
|
23
|
+
})),
|
24
|
+
class: "cursor-pointer"
|
25
|
+
}, {
|
26
|
+
default: e(() => [
|
27
|
+
k
|
28
|
+
]),
|
29
|
+
_: 1
|
30
|
+
}),
|
31
|
+
a(i, {
|
32
|
+
onClick: s[1] || (s[1] = (l) => o(r).push({
|
33
|
+
name: "Backoffice Events",
|
34
|
+
params: {
|
35
|
+
_id: o(n).params._id
|
36
|
+
}
|
37
|
+
})),
|
38
|
+
class: "cursor-pointer"
|
39
|
+
}, {
|
40
|
+
default: e(() => [
|
41
|
+
v
|
42
|
+
]),
|
43
|
+
_: 1
|
44
|
+
}),
|
45
|
+
a(i, {
|
46
|
+
onClick: s[2] || (s[2] = (l) => o(r).push({
|
47
|
+
name: "Backoffice Community",
|
48
|
+
params: {
|
49
|
+
_id: o(n).params._id
|
50
|
+
}
|
51
|
+
})),
|
52
|
+
class: "cursor-pointer"
|
53
|
+
}, {
|
54
|
+
default: e(() => [
|
55
|
+
B
|
56
|
+
]),
|
57
|
+
_: 1
|
58
|
+
}),
|
59
|
+
a(i, {
|
60
|
+
onClick: s[3] || (s[3] = (l) => o(r).push({
|
61
|
+
name: "Backoffice Products",
|
62
|
+
params: {
|
63
|
+
_id: o(n).params._id
|
64
|
+
}
|
65
|
+
})),
|
66
|
+
class: "cursor-pointer"
|
67
|
+
}, {
|
68
|
+
default: e(() => [
|
69
|
+
C
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
}),
|
73
|
+
a(i, {
|
74
|
+
onClick: s[4] || (s[4] = (l) => o(r).push({
|
75
|
+
name: "Backoffice Leftovers",
|
76
|
+
params: {
|
77
|
+
_id: o(n).params._id
|
78
|
+
}
|
79
|
+
})),
|
80
|
+
class: "cursor-pointer"
|
81
|
+
}, {
|
82
|
+
default: e(() => [
|
83
|
+
$
|
84
|
+
]),
|
85
|
+
_: 1
|
86
|
+
}),
|
87
|
+
a(i, {
|
88
|
+
onClick: s[5] || (s[5] = (l) => o(r).push({
|
89
|
+
name: "Backoffice Orders",
|
90
|
+
params: {
|
91
|
+
_id: o(n).params._id
|
92
|
+
}
|
93
|
+
})),
|
94
|
+
class: "cursor-pointer"
|
95
|
+
}, {
|
96
|
+
default: e(() => [
|
97
|
+
y
|
98
|
+
]),
|
99
|
+
_: 1
|
100
|
+
}),
|
101
|
+
a(i, {
|
102
|
+
onClick: s[6] || (s[6] = (l) => o(r).push({
|
103
|
+
name: "Backoffice Payments",
|
104
|
+
params: {
|
105
|
+
_id: o(n).params._id
|
106
|
+
}
|
107
|
+
})),
|
108
|
+
class: "cursor-pointer"
|
109
|
+
}, {
|
110
|
+
default: e(() => [
|
111
|
+
h
|
112
|
+
]),
|
113
|
+
_: 1
|
114
|
+
}),
|
115
|
+
a(i, {
|
116
|
+
onClick: s[7] || (s[7] = (l) => o(r).push({
|
117
|
+
name: "Backoffice Gallery",
|
118
|
+
params: {
|
119
|
+
_id: o(n).params._id
|
120
|
+
}
|
121
|
+
})),
|
122
|
+
class: "cursor-pointer"
|
123
|
+
}, {
|
124
|
+
default: e(() => [
|
125
|
+
g
|
126
|
+
]),
|
127
|
+
_: 1
|
128
|
+
}),
|
129
|
+
a(i, {
|
130
|
+
onClick: s[8] || (s[8] = (l) => o(r).push({
|
131
|
+
name: "Backoffice Reports",
|
132
|
+
params: {
|
133
|
+
_id: o(n).params._id
|
134
|
+
}
|
135
|
+
})),
|
136
|
+
class: "cursor-pointer"
|
137
|
+
}, {
|
138
|
+
default: e(() => [
|
139
|
+
E
|
140
|
+
]),
|
141
|
+
_: 1
|
142
|
+
})
|
143
|
+
]),
|
144
|
+
_: 1
|
145
|
+
})
|
146
|
+
]));
|
147
|
+
}
|
148
|
+
};
|
149
|
+
export {
|
150
|
+
L as default
|
151
|
+
};
|
@@ -0,0 +1,169 @@
|
|
1
|
+
import { openBlock as c, createElementBlock as d, createElementVNode as o, reactive as y, ref as _, Fragment as b, renderSlot as g, createVNode as a, withCtx as u, createTextVNode as v, withDirectives as f, withModifiers as C, toDisplayString as S, Transition as k, normalizeStyle as x, vShow as $, unref as O } from "vue";
|
2
|
+
import { _ as h } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
import { _ as P } from "./Popup-0d8e1392.mjs";
|
4
|
+
import { _ as D } from "./Button-9e1a9284.mjs";
|
5
|
+
import { S as R } from "./Select-11ddabf5.mjs";
|
6
|
+
import { a as q } from "./reports-79cd9459.mjs";
|
7
|
+
import { c as T } from "./click-outside-6101836c.mjs";
|
8
|
+
const B = {}, M = {
|
9
|
+
viewBox: "0 0 42 42",
|
10
|
+
fill: "none",
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
12
|
+
}, N = /* @__PURE__ */ o("circle", {
|
13
|
+
fill: "rgb(var(--main))",
|
14
|
+
cx: "21",
|
15
|
+
cy: "21",
|
16
|
+
r: "21"
|
17
|
+
}, null, -1), V = /* @__PURE__ */ o("path", {
|
18
|
+
fill: "#242424",
|
19
|
+
"fill-opacity": "0.1",
|
20
|
+
"fill-rule": "evenodd",
|
21
|
+
"clip-rule": "evenodd",
|
22
|
+
d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
|
23
|
+
}, null, -1), E = [
|
24
|
+
N,
|
25
|
+
V
|
26
|
+
];
|
27
|
+
function F(s, t) {
|
28
|
+
return c(), d("svg", M, E);
|
29
|
+
}
|
30
|
+
const K = /* @__PURE__ */ h(B, [["render", F]]), I = /* @__PURE__ */ o("h3", { class: "mn-small" }, " Report Content ", -1), U = /* @__PURE__ */ o("p", { class: "p-medium mn-small" }, " We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ", -1), Z = /* @__PURE__ */ o("p", { class: "p-medium mn-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), L = {
|
31
|
+
__name: "FormReport",
|
32
|
+
props: {
|
33
|
+
user: {
|
34
|
+
type: String,
|
35
|
+
required: !1
|
36
|
+
},
|
37
|
+
type: {
|
38
|
+
type: String,
|
39
|
+
required: !1
|
40
|
+
},
|
41
|
+
reason: {
|
42
|
+
type: String,
|
43
|
+
required: !1
|
44
|
+
},
|
45
|
+
target: {
|
46
|
+
type: String,
|
47
|
+
required: !0
|
48
|
+
},
|
49
|
+
text: {
|
50
|
+
type: String,
|
51
|
+
default: "!"
|
52
|
+
},
|
53
|
+
status: {
|
54
|
+
type: String,
|
55
|
+
default: "new"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
setup(s) {
|
59
|
+
const t = s, e = y({
|
60
|
+
user: t.user,
|
61
|
+
type: t.type,
|
62
|
+
reason: t.reason,
|
63
|
+
target: t.target,
|
64
|
+
status: t.status
|
65
|
+
});
|
66
|
+
function l() {
|
67
|
+
e.user === null && delete e.user, q.create(e);
|
68
|
+
}
|
69
|
+
const r = _(!1);
|
70
|
+
function n() {
|
71
|
+
r.value = !0;
|
72
|
+
}
|
73
|
+
function p() {
|
74
|
+
r.value = !1;
|
75
|
+
}
|
76
|
+
return (w, i) => (c(), d(b, null, [
|
77
|
+
o("div", {
|
78
|
+
onClick: i[0] || (i[0] = (m) => n())
|
79
|
+
}, [
|
80
|
+
g(w.$slots, "default")
|
81
|
+
]),
|
82
|
+
a(P, {
|
83
|
+
onClosePopup: p,
|
84
|
+
isPopupOpen: r.value,
|
85
|
+
class: "w-m-33r t-left pd-big bg-white radius-big"
|
86
|
+
}, {
|
87
|
+
default: u(() => [
|
88
|
+
I,
|
89
|
+
U,
|
90
|
+
a(R, {
|
91
|
+
select: e.reason,
|
92
|
+
"onUpdate:select": i[1] || (i[1] = (m) => e.reason = m),
|
93
|
+
options: [
|
94
|
+
"harassment",
|
95
|
+
"spam",
|
96
|
+
"inappropriate",
|
97
|
+
"misinformation",
|
98
|
+
"copyright",
|
99
|
+
"other"
|
100
|
+
],
|
101
|
+
placeholder: "Select reason",
|
102
|
+
class: "mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"
|
103
|
+
}, null, 8, ["select"]),
|
104
|
+
Z,
|
105
|
+
a(D, {
|
106
|
+
submit: l,
|
107
|
+
callback: p,
|
108
|
+
class: "w-100 bg-black t-white"
|
109
|
+
}, {
|
110
|
+
default: u(() => [
|
111
|
+
v(" Report ")
|
112
|
+
]),
|
113
|
+
_: 1
|
114
|
+
})
|
115
|
+
]),
|
116
|
+
_: 1
|
117
|
+
}, 8, ["isPopupOpen"])
|
118
|
+
], 64));
|
119
|
+
}
|
120
|
+
};
|
121
|
+
const z = {
|
122
|
+
__name: "Dropdown",
|
123
|
+
props: {
|
124
|
+
label: {
|
125
|
+
type: String,
|
126
|
+
default: "Open"
|
127
|
+
},
|
128
|
+
align: {
|
129
|
+
type: String,
|
130
|
+
default: "left"
|
131
|
+
}
|
132
|
+
},
|
133
|
+
setup(s) {
|
134
|
+
let t = T;
|
135
|
+
const e = _(!1);
|
136
|
+
function l() {
|
137
|
+
e.value = !1;
|
138
|
+
}
|
139
|
+
return (r, n) => f((c(), d("div", {
|
140
|
+
class: "dropdown pos-relative",
|
141
|
+
onClick: n[0] || (n[0] = C((p) => e.value = !e.value, ["stop"]))
|
142
|
+
}, [
|
143
|
+
v(S(s.label) + " ", 1),
|
144
|
+
a(k, {
|
145
|
+
name: "TransitionTranslateY",
|
146
|
+
mode: "out-in"
|
147
|
+
}, {
|
148
|
+
default: u(() => [
|
149
|
+
f(o("div", {
|
150
|
+
style: x({ left: s.align === "left" ? "0" : "auto", right: s.align === "right" ? "0" : "auto" }),
|
151
|
+
class: "dropdown-content w-15r radius-big"
|
152
|
+
}, [
|
153
|
+
g(r.$slots, "default", {}, void 0, !0)
|
154
|
+
], 4), [
|
155
|
+
[$, e.value]
|
156
|
+
])
|
157
|
+
]),
|
158
|
+
_: 3
|
159
|
+
})
|
160
|
+
])), [
|
161
|
+
[O(t), l]
|
162
|
+
]);
|
163
|
+
}
|
164
|
+
}, Q = /* @__PURE__ */ h(z, [["__scopeId", "data-v-5646d77f"]]);
|
165
|
+
export {
|
166
|
+
Q as D,
|
167
|
+
K as P,
|
168
|
+
L as _
|
169
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),u=require("./_plugin-vue_export-helper-f246444f.js"),d=require("./Popup-eb11fa82.js"),f=require("./Button-7643c9aa.js"),m=require("./Select-3ca5ab39.js"),_=require("./reports-270f69df.js"),g=require("./click-outside-0b0727d1.js"),v={},h={viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),y=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),b=[w,y];function C(o,r){return e.openBlock(),e.createElementBlock("svg",h,b)}const k=u._export_sfc(v,[["render",C]]),S=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),x=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),V=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),N={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(o){const r=o,t=e.reactive({user:r.user,type:r.type,reason:r.reason,target:r.target,status:r.status});function l(){t.user===null&&delete t.user,_.actions.create(t)}const n=e.ref(!1);function s(){n.value=!0}function a(){n.value=!1}return(p,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:i[0]||(i[0]=c=>s())},[e.renderSlot(p.$slots,"default")]),e.createVNode(d._sfc_main,{onClosePopup:a,isPopupOpen:n.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[S,x,e.createVNode(m.Select,{select:t.reason,"onUpdate:select":i[1]||(i[1]=c=>t.reason=c),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),V,e.createVNode(f._sfc_main,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};const q={__name:"Dropdown",props:{label:{type:String,default:"Open"},align:{type:String,default:"left"}},setup(o){let r=g.clickOutside;const t=e.ref(!1);function l(){t.value=!1}return(n,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"dropdown pos-relative",onClick:s[0]||(s[0]=e.withModifiers(a=>t.value=!t.value,["stop"]))},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{style:e.normalizeStyle({left:o.align==="left"?"0":"auto",right:o.align==="right"?"0":"auto"}),class:"dropdown-content w-15r radius-big"},[e.renderSlot(n.$slots,"default",{},void 0,!0)],4),[[e.vShow,t.value]])]),_:3})])),[[e.unref(r),l]])}},$=u._export_sfc(q,[["__scopeId","data-v-5646d77f"]]);exports.Dropdown=$;exports.PlaceholderUserpic=k;exports._sfc_main=N;
|
@@ -0,0 +1,134 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as s, createStaticVNode as k, ref as l, onMounted as w, createVNode as i, TransitionGroup as m, withCtx as u, Fragment as g, renderList as f, createBlock as d, createCommentVNode as _, Transition as x, normalizeClass as S, unref as y } from "vue";
|
2
|
+
import { useRoute as $, useRouter as E } from "vue-router";
|
3
|
+
import "vue-i18n";
|
4
|
+
import "./globals-96ba60e4.mjs";
|
5
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
6
|
+
import { r as C, a as N, _ as z, s as L } from "./Feed-90f74d6c.mjs";
|
7
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
8
|
+
import { _ as T } from "./EmptyState-e404b05d.mjs";
|
9
|
+
import { _ as B } from "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import { s as h } from "./auth-ec618cb3.mjs";
|
11
|
+
const O = {}, V = {
|
12
|
+
width: "100%",
|
13
|
+
height: "50",
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
15
|
+
}, j = /* @__PURE__ */ k('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 7), D = [
|
16
|
+
j
|
17
|
+
];
|
18
|
+
function M(o, e) {
|
19
|
+
return t(), s("svg", V, D);
|
20
|
+
}
|
21
|
+
const P = /* @__PURE__ */ B(O, [["render", M]]);
|
22
|
+
const R = { class: "today-events" }, q = {
|
23
|
+
__name: "List",
|
24
|
+
props: {
|
25
|
+
category: {
|
26
|
+
type: String,
|
27
|
+
default: null
|
28
|
+
},
|
29
|
+
organization: {
|
30
|
+
type: String,
|
31
|
+
default: null
|
32
|
+
},
|
33
|
+
owner: {
|
34
|
+
type: String,
|
35
|
+
default: null
|
36
|
+
},
|
37
|
+
user: {
|
38
|
+
type: [String, Number],
|
39
|
+
default: null
|
40
|
+
},
|
41
|
+
period: {
|
42
|
+
type: String,
|
43
|
+
default: null
|
44
|
+
},
|
45
|
+
phase: {
|
46
|
+
type: String,
|
47
|
+
default: null
|
48
|
+
}
|
49
|
+
},
|
50
|
+
setup(o) {
|
51
|
+
const e = o, r = l([]), a = l(!0), v = l(0), p = l(5);
|
52
|
+
return w(async () => {
|
53
|
+
const c = await C({
|
54
|
+
skip: v.value,
|
55
|
+
limit: p.value,
|
56
|
+
sortOrder: "desc",
|
57
|
+
category: e.category,
|
58
|
+
user: e.user,
|
59
|
+
owner: e.owner,
|
60
|
+
organization: e.organization,
|
61
|
+
period: e.period,
|
62
|
+
phase: e.phase
|
63
|
+
});
|
64
|
+
r.value = c, a.value = !1;
|
65
|
+
}), (c, G) => (t(), s("section", R, [
|
66
|
+
i(m, {
|
67
|
+
tag: "ul",
|
68
|
+
name: "fade",
|
69
|
+
class: "o-hidden bg-grey radius-big"
|
70
|
+
}, {
|
71
|
+
default: u(() => [
|
72
|
+
a.value ? (t(!0), s(g, { key: 0 }, f(p.value, (n) => (t(), d(P, { key: n }))), 128)) : _("", !0)
|
73
|
+
]),
|
74
|
+
_: 1
|
75
|
+
}),
|
76
|
+
i(x, { name: "fade" }, {
|
77
|
+
default: u(() => [
|
78
|
+
!a.value && r.value.length < 1 ? (t(), d(T, {
|
79
|
+
key: 0,
|
80
|
+
title: "No Events Today",
|
81
|
+
description: "Today, are no events available. Please check back later.",
|
82
|
+
class: "pd-medium mn-thin bg-grey radius-big"
|
83
|
+
})) : _("", !0)
|
84
|
+
]),
|
85
|
+
_: 1
|
86
|
+
}),
|
87
|
+
i(m, {
|
88
|
+
tag: "ul",
|
89
|
+
name: "fade",
|
90
|
+
class: "container"
|
91
|
+
}, {
|
92
|
+
default: u(() => [
|
93
|
+
!a.value && r.value.length > 0 ? (t(!0), s(g, { key: 0 }, f(r.value, (n, b) => (t(), d(N, {
|
94
|
+
onClick: (A) => c.$router.push({ name: "Event", params: { url: n.url } }),
|
95
|
+
key: n._id,
|
96
|
+
event: n,
|
97
|
+
owner: o.user,
|
98
|
+
type: "short",
|
99
|
+
class: S(["pd-medium", {
|
100
|
+
"br-b br-solid br-black-transp-10": b !== r.value.length - 1
|
101
|
+
}])
|
102
|
+
}, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : _("", !0)
|
103
|
+
]),
|
104
|
+
_: 1
|
105
|
+
})
|
106
|
+
]));
|
107
|
+
}
|
108
|
+
}, F = {
|
109
|
+
__name: "Events",
|
110
|
+
setup(o) {
|
111
|
+
const e = $();
|
112
|
+
return E(), (r, a) => (t(), s("section", null, [
|
113
|
+
i(q, {
|
114
|
+
user: h.user._id,
|
115
|
+
class: "bg-grey mn-thin radius-big",
|
116
|
+
phase: "week"
|
117
|
+
}, null, 8, ["user"]),
|
118
|
+
i(z, {
|
119
|
+
category: y(e).params.category,
|
120
|
+
user: h.user._id,
|
121
|
+
period: y(e).query.period,
|
122
|
+
selectedDate: L.filter.date
|
123
|
+
}, null, 8, ["category", "user", "period", "selectedDate"])
|
124
|
+
]));
|
125
|
+
}
|
126
|
+
}, ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
127
|
+
__proto__: null,
|
128
|
+
default: F
|
129
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
130
|
+
export {
|
131
|
+
ee as E,
|
132
|
+
q as _,
|
133
|
+
F as a
|
134
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),s=require("vue-router");require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const o=require("./Feed-a47977d3.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const f=require("./EmptyState-d65bab5b.js"),m=require("./_plugin-vue_export-helper-f246444f.js"),u=require("./auth-06d35b82.js"),y={},h={width:"100%",height:"50",xmlns:"http://www.w3.org/2000/svg"},k=e.createStaticVNode('<rect x="0" y="0" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="3" ry="3" width="40" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="65" y="15" rx="3" ry="3" width="150" height="20" fill="rgba(var(--black),0.05)"></rect><circle cx="250" cy="25" r="10" fill="rgba(var(--black),0.1)"></circle><circle cx="265" cy="25" r="10" fill="rgba(var(--black),0.05)"></circle><circle cx="280" cy="25" r="10" fill="rgba(var(--black),0.025)"></circle><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>',7),v=[k];function b(c,t){return e.openBlock(),e.createElementBlock("svg",h,v)}const w=m._export_sfc(y,[["render",b]]);const x={class:"today-events"},d={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(c){const t=c,r=e.ref([]),a=e.ref(!0),p=e.ref(0),i=e.ref(5);return e.onMounted(async()=>{const l=await o.read({skip:p.value,limit:i.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=l,a.value=!1}),(l,q)=>(e.openBlock(),e.createElementBlock("section",x,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[a.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.value,n=>(e.openBlock(),e.createBlock(w,{key:n}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!a.value&&r.value.length<1?(e.openBlock(),e.createBlock(f._sfc_main,{key:0,title:"No Events Today",description:"Today, are no events 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(()=>[!a.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(n,g)=>(e.openBlock(),e.createBlock(o._sfc_main$1,{onClick:E=>l.$router.push({name:"Event",params:{url:n.url}}),key:n._id,event:n,owner:c.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":g!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}},_={__name:"Events",setup(c){const t=s.useRoute();return s.useRouter(),(r,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(d,{user:u.state.user._id,class:"bg-grey mn-thin radius-big",phase:"week"},null,8,["user"]),e.createVNode(o._sfc_main,{category:e.unref(t).params.category,user:u.state.user._id,period:e.unref(t).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}},B=Object.freeze(Object.defineProperty({__proto__:null,default:_},Symbol.toStringTag,{value:"Module"}));exports.Events=B;exports._sfc_main=d;exports._sfc_main$1=_;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./Loader-21f016da.js"),m=require("./EmptyState-d65bab5b.js"),i=require("./CardBlogpost-ae3b4d23.js"),f={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,l=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const a=await i.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});a.length===0&&(r.value=!1),l.value=[...l.value,...a]}};return e.onMounted(async()=>{const a=await i.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});a.length===0?r.value=!1:r.value=!0,l.value=a,o.value=!1}),(a,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.Loader,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&l.value.length<1?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>(e.openBlock(),e.createBlock(i._sfc_main,{key:c._id,blogpost:c,user:u.user,class:"mn-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&l.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports._sfc_main=f;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const m=require("./EmptyState-d65bab5b.js"),f=require("./CardOrganization-d93c9bdb.js"),p=require("./_plugin-vue_export-helper-f246444f.js"),u=require("./organizations-4d18a2e2.js"),y={},b={width:"100%",height:"20rem",xmlns:"http://www.w3.org/2000/svg"},h=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),k=[h];function v(s,t){return e.openBlock(),e.createElementBlock("svg",b,k)}const _=p._export_sfc(y,[["render",v]]),w={class:"feed"},x={__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(s){const t=s,r=e.ref([]),n=e.ref(!1),i=e.ref(!0),c=e.ref(0),o=e.ref(20),d=async()=>{if(n.value){c.value+=o.value;const a=await u.actions.read({skip:c.value,limit:o.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});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{i.value=!0,console.log(t.selectedDate);const a=await u.actions.read({skip:c.value,limit:o.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});a.length===0?n.value=!1:n.value=!0,r.value=a,i.value=!1}),(a,B)=>(e.openBlock(),e.createElementBlock("section",w,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[i.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.value,l=>(e.openBlock(),e.createBlock(_,{key:l}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!i.value&&r.value.length<1?(e.openBlock(),e.createBlock(m._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(()=>[!i.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(l,g)=>(e.openBlock(),e.createBlock(f._sfc_main,{onClick:z=>a.$router.push({name:"Organization",params:{_id:l._id}}),key:l._id,organization:l,user:s.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":g!==r.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports._sfc_main=x;
|