@ozdao/prometheus-framework 0.1.39 → 0.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/dist/ButtonToggleMembership-738720bd.js +1 -0
  2. package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
  3. package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
  4. package/dist/CardBlogpost-f308ff64.js +1 -0
  5. package/dist/CardOrganization-22beb83d.js +1 -0
  6. package/dist/CardOrganization-ae384e54.mjs +234 -0
  7. package/dist/Chips-edf2b573.js +1 -0
  8. package/dist/Chips-f06ec38f.mjs +213 -0
  9. package/dist/Community-04b25965.mjs +130 -0
  10. package/dist/Community-2f6fee0f.js +1 -0
  11. package/dist/Events-41d71b0e.js +1 -0
  12. package/dist/Events-af7170ed.mjs +134 -0
  13. package/dist/Feed-04fe1f7a.mjs +361 -0
  14. package/dist/Feed-23758089.mjs +124 -0
  15. package/dist/Feed-36e83be3.mjs +156 -0
  16. package/dist/Feed-5653cf8b.js +1 -0
  17. package/dist/Feed-5a359bb7.js +1 -0
  18. package/dist/Feed-6ca0541a.js +1 -0
  19. package/dist/Image-39955d9d.mjs +480 -0
  20. package/dist/Image-c2d190d8.js +9 -0
  21. package/dist/LeftoverAdd-21311275.js +1 -0
  22. package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
  23. package/dist/Members-7251dd52.mjs +109 -0
  24. package/dist/Members-d35ab7e8.js +1 -0
  25. package/dist/Organizations-a964d4b6.mjs +72 -0
  26. package/dist/Organizations-ed6d36d6.js +1 -0
  27. package/dist/Product-299070ad.mjs +652 -0
  28. package/dist/Product-aacb05f3.js +7 -0
  29. package/dist/ProductEdit-70bed802.mjs +296 -0
  30. package/dist/ProductEdit-e5a2e0f6.js +1 -0
  31. package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
  32. package/dist/ProductsBackoffice-b684913d.js +1 -0
  33. package/dist/ProfileBlogposts-6bf526fb.js +1 -0
  34. package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
  35. package/dist/ProfileEvents-3eeb4320.mjs +68 -0
  36. package/dist/ProfileEvents-90e09978.js +1 -0
  37. package/dist/ProfileOrganizations-e838925f.js +1 -0
  38. package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
  39. package/dist/Publics-a31d7fe7.js +1 -0
  40. package/dist/Publics-a8f31413.mjs +45 -0
  41. package/dist/Wallet-2043b611.mjs +24682 -0
  42. package/dist/Wallet-8fa7386a.js +55 -0
  43. package/dist/auth-076a83d0.mjs +625 -0
  44. package/dist/auth-df5a20c6.js +7 -0
  45. package/dist/auth.client.cjs +1 -1
  46. package/dist/auth.client.js +4 -4
  47. package/dist/auth.validation-80b133df.js +1 -0
  48. package/dist/auth.validation-fd9ae66f.mjs +24 -0
  49. package/dist/backoffice.client.cjs +1 -1
  50. package/dist/backoffice.client.js +11 -11
  51. package/dist/categories-4327a81c.js +1 -0
  52. package/dist/categories-52a561a4.mjs +122 -0
  53. package/dist/community.client.cjs +1 -1
  54. package/dist/community.client.js +10 -10
  55. package/dist/events.client.cjs +2 -2
  56. package/dist/events.client.js +9 -9
  57. package/dist/legal.client.cjs +1 -1
  58. package/dist/legal.client.js +1 -1
  59. package/dist/main.css +1 -1
  60. package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
  61. package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
  62. package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
  63. package/dist/organizations-966e1cd2.mjs +122 -0
  64. package/dist/organizations-d12c42b6.js +1 -0
  65. package/dist/organizations.client-8f263e28.js +3 -0
  66. package/dist/organizations.client-9ffc023f.mjs +2996 -0
  67. package/dist/organizations.client.cjs +1 -1
  68. package/dist/organizations.client.js +15 -15
  69. package/dist/products-7e4253eb.js +1 -0
  70. package/dist/products-aabe5c02.mjs +108 -0
  71. package/dist/prometheus-framework.cjs.js +1 -1
  72. package/dist/prometheus-framework.es.js +2 -2
  73. package/dist/states.validation-4594b33c.mjs +13 -0
  74. package/dist/states.validation-69003e66.js +1 -0
  75. package/dist/style.css +1 -1
  76. package/dist/users.client.cjs +1 -1
  77. package/dist/users.client.js +198 -166
  78. package/package.json +1 -1
  79. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  80. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  81. package/src/components/Navigation/Navigation.vue +12 -1
  82. package/src/components/Sidebar/Sidebar.vue +8 -10
  83. package/src/modules/auth/store/auth.js +7 -4
  84. package/src/modules/backoffice/components/admin/ProductEdit.vue +0 -2
  85. package/src/modules/files/middlewares/server/md.js +1 -0
  86. package/src/modules/gallery/components/pages/Gallery.vue +21 -0
  87. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
  88. package/src/modules/gallery/gallery.client.js +11 -14
  89. package/src/modules/gallery/router/gallery.router.js +10 -0
  90. package/src/modules/globals/components/sections/Title.vue +22 -0
  91. package/src/modules/marketplace/router/marketplace.js +4 -3
  92. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  93. package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
  94. package/src/modules/products/components/sections/FilterProducts.vue +2 -0
  95. package/src/modules/products/components/sections/SectionProduct.vue +17 -5
  96. package/src/modules/products/components/sections/SortProducts.vue +0 -2
  97. package/src/modules/products/controllers/products.controller.js +83 -0
  98. package/src/modules/products/routes/products.routes.js +5 -5
  99. package/src/modules/products/store/categories.js +9 -9
  100. package/src/modules/products/store/leftovers.js +9 -6
  101. package/src/modules/products/store/products.js +0 -2
  102. package/src/modules/spots/components/layouts/Spots.vue +16 -11
  103. package/src/modules/spots/components/pages/Map.vue +9 -7
  104. package/src/modules/users/components/pages/Profile.vue +15 -5
  105. package/src/modules/users/router/users.js +10 -0
  106. package/src/modules/wallet/components/pages/Wallet.vue +104 -23
@@ -0,0 +1,72 @@
1
+ import { ref as h, watch as w, openBlock as o, createElementBlock as l, createElementVNode as f, unref as s, createCommentVNode as i, createVNode as m, Transition as d, withCtx as p, createBlock as c } from "vue";
2
+ import { useRoute as y, useRouter as g } from "vue-router";
3
+ import { _ as k } from "./Tab-054b61f7.mjs";
4
+ import { _ } from "./Feed-36e83be3.mjs";
5
+ import { s as u } from "./auth-076a83d0.mjs";
6
+ import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
7
+ import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
8
+ import "./EmptyState-e404b05d.mjs";
9
+ import "./CardOrganization-ae384e54.mjs";
10
+ import "./ButtonToggleMembership-e337e704.mjs";
11
+ import "./Button-9e1a9284.mjs";
12
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
13
+ import "./memberships-12210953.mjs";
14
+ import "./index-a661083c.mjs";
15
+ import "./globals-96ba60e4.mjs";
16
+ import "vue-i18n";
17
+ import "./_plugin-vue_export-helper-dad06003.mjs";
18
+ import "./organizations-966e1cd2.mjs";
19
+ const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ f("h2", { class: "mn-r-medium" }, "Groups", -1), J = {
20
+ __name: "ProfileOrganizations",
21
+ setup($) {
22
+ const e = y(), b = g();
23
+ let v = e.query.tab ? e.query.tab : "member";
24
+ const r = h(v);
25
+ return e.query.tab = r.value, w(r, (a) => {
26
+ b.replace({ query: { ...e.query, tab: a } });
27
+ }), (a, t) => (o(), l("div", q, [
28
+ f("header", x, [
29
+ C,
30
+ u.user._id === s(e).params._id ? (o(), l("button", {
31
+ key: 0,
32
+ onClick: t[0] || (t[0] = (n) => a.$router.push({
33
+ name: "Create Organization"
34
+ })),
35
+ class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
36
+ }, " + ")) : i("", !0)
37
+ ]),
38
+ m(k, {
39
+ selected: r.value,
40
+ "onUpdate:selected": t[1] || (t[1] = (n) => r.value = n),
41
+ tabs: [
42
+ { name: "Member", value: "member" },
43
+ { name: "Follower", value: "follower" }
44
+ ],
45
+ class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
46
+ }, null, 8, ["selected"]),
47
+ m(d, { name: "slide-fade" }, {
48
+ default: p(() => [
49
+ r.value === "member" ? (o(), c(_, {
50
+ key: 0,
51
+ user: u.user._id,
52
+ owner: s(e).params._id
53
+ }, null, 8, ["user", "owner"])) : i("", !0)
54
+ ]),
55
+ _: 1
56
+ }),
57
+ m(d, { name: "slide-fade" }, {
58
+ default: p(() => [
59
+ r.value === "follower" ? (o(), c(_, {
60
+ key: 0,
61
+ user: u.user._id,
62
+ subscriber: s(e).params._id
63
+ }, null, 8, ["user", "subscriber"])) : i("", !0)
64
+ ]),
65
+ _: 1
66
+ })
67
+ ]));
68
+ }
69
+ };
70
+ export {
71
+ J as default
72
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),l=require("./CardOrganization-22beb83d.js"),u=require("./EmptyState-d65bab5b.js"),o=require("./auth-df5a20c6.js"),d=require("./organizations-d12c42b6.js"),m=require("./memberships-393765d8.js");const _={class:"w-100 o-scroll"},p={key:1,class:"w-max gap-thin flex-nowrap flex"},f={__name:"Publics",setup(h){let t=e.ref(null);e.onMounted(async()=>{t.value=await d.actions.read({user:o.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const a=({membership:r,status:s,target:n},i,c)=>{m.mutations.handleMembershipUpdate(organizations.state.current,r,s,n,i,c)};return(r,s)=>(e.openBlock(),e.createElementBlock("div",_,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(u._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",p,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,i)=>(e.openBlock(),e.createBlock(l._sfc_main,{key:n._id,organization:n,user:o.state.user,onUpdateMembership:a,class:"flex-child-1 flex-child w-25r"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports._sfc_main=f;
@@ -0,0 +1,45 @@
1
+ import { ref as d, onMounted as _, openBlock as t, createElementBlock as n, unref as s, createBlock as l, Fragment as p, renderList as f, createCommentVNode as h } from "vue";
2
+ import { _ as y } from "./CardOrganization-ae384e54.mjs";
3
+ import { _ as b } from "./EmptyState-e404b05d.mjs";
4
+ import { s as c } from "./auth-076a83d0.mjs";
5
+ import { a as g } from "./organizations-966e1cd2.mjs";
6
+ import { m as x } from "./memberships-12210953.mjs";
7
+ const k = { class: "w-100 o-scroll" }, w = {
8
+ key: 1,
9
+ class: "w-max gap-thin flex-nowrap flex"
10
+ }, $ = {
11
+ __name: "Publics",
12
+ setup(v) {
13
+ let e = d(null);
14
+ _(async () => {
15
+ e.value = await g.read({
16
+ user: c.user._id,
17
+ sort: "numberOfMemberships",
18
+ limit: 10,
19
+ types: ["public"]
20
+ });
21
+ });
22
+ const m = ({ membership: o, status: i, target: r }, a, u) => {
23
+ x.handleMembershipUpdate(organizations.state.current, o, i, r, a, u);
24
+ };
25
+ return (o, i) => (t(), n("div", k, [
26
+ !s(e) || s(e).length < 1 ? (t(), l(b, {
27
+ key: 0,
28
+ title: "Unfortunately, we couldn't find any recommendations for you",
29
+ description: "Explore and find a community or organization that suits your interests.",
30
+ class: "radius-big bg-grey pd-medium"
31
+ })) : (t(), n("div", w, [
32
+ s(e) ? (t(!0), n(p, { key: 0 }, f(s(e), (r, a) => (t(), l(y, {
33
+ key: r._id,
34
+ organization: r,
35
+ user: c.user,
36
+ onUpdateMembership: m,
37
+ class: "flex-child-1 flex-child w-25r"
38
+ }, null, 8, ["organization", "user"]))), 128)) : h("", !0)
39
+ ]))
40
+ ]));
41
+ }
42
+ };
43
+ export {
44
+ $ as _
45
+ };