@ozdao/prometheus-framework 0.1.38 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/ButtonToggleMembership-738720bd.js +1 -0
  2. package/dist/ButtonToggleMembership-e337e704.mjs +90 -0
  3. package/dist/CardBlogpost-ae3b4d23.js +1 -0
  4. package/dist/CardBlogpost-c7adb0a7.mjs +246 -0
  5. package/dist/CardBlogpost-d6f49156.mjs +246 -0
  6. package/dist/CardBlogpost-f308ff64.js +1 -0
  7. package/dist/CardOrganization-22beb83d.js +1 -0
  8. package/dist/CardOrganization-ae384e54.mjs +234 -0
  9. package/dist/Chips-3a07f374.js +1 -0
  10. package/dist/Chips-a8681edd.mjs +213 -0
  11. package/dist/Chips-edf2b573.js +1 -0
  12. package/dist/Chips-f06ec38f.mjs +213 -0
  13. package/dist/Community-04b25965.mjs +130 -0
  14. package/dist/Community-2f6fee0f.js +1 -0
  15. package/dist/Community-72dbb933.js +1 -0
  16. package/dist/Community-b4d10da6.mjs +130 -0
  17. package/dist/Dashboard-73b50724.js +1 -0
  18. package/dist/Dashboard-bc81b5f6.mjs +151 -0
  19. package/dist/Dropdown-ef2df9a9.mjs +169 -0
  20. package/dist/Dropdown-f2564c92.js +1 -0
  21. package/dist/Events-0c6e3ef4.mjs +134 -0
  22. package/dist/Events-41d71b0e.js +1 -0
  23. package/dist/Events-4742f070.js +1 -0
  24. package/dist/Events-af7170ed.mjs +134 -0
  25. package/dist/Feed-04fe1f7a.mjs +361 -0
  26. package/dist/Feed-09b0790d.js +1 -0
  27. package/dist/Feed-12b12380.js +1 -0
  28. package/dist/Feed-23758089.mjs +124 -0
  29. package/dist/Feed-36e83be3.mjs +156 -0
  30. package/dist/Feed-5653cf8b.js +1 -0
  31. package/dist/Feed-585d5821.mjs +124 -0
  32. package/dist/Feed-5a359bb7.js +1 -0
  33. package/dist/Feed-6ca0541a.js +1 -0
  34. package/dist/Feed-807d265b.mjs +156 -0
  35. package/dist/Feed-90f74d6c.mjs +361 -0
  36. package/dist/Feed-a47977d3.js +1 -0
  37. package/dist/Image-268e2a1b.js +9 -0
  38. package/dist/Image-39955d9d.mjs +480 -0
  39. package/dist/Image-5423e8ce.mjs +480 -0
  40. package/dist/Image-c2d190d8.js +9 -0
  41. package/dist/LeftoverAdd-21311275.js +1 -0
  42. package/dist/LeftoverAdd-ccf4595f.mjs +228 -0
  43. package/dist/Members-7251dd52.mjs +109 -0
  44. package/dist/Members-9b013515.js +1 -0
  45. package/dist/Members-d35ab7e8.js +1 -0
  46. package/dist/Members-d64149f3.mjs +109 -0
  47. package/dist/Menu-93d34d9f.js +1 -0
  48. package/dist/Menu-eaf6b44c.mjs +13 -0
  49. package/dist/MenuItem-4a5881bd.mjs +85 -0
  50. package/dist/MenuItem-f35cad93.js +1 -0
  51. package/dist/Organizations-0fd5bc8b.mjs +72 -0
  52. package/dist/Organizations-a964d4b6.mjs +72 -0
  53. package/dist/Organizations-d360c360.js +1 -0
  54. package/dist/Organizations-ed6d36d6.js +1 -0
  55. package/dist/Popup-0d8e1392.mjs +96 -0
  56. package/dist/Popup-eb11fa82.js +1 -0
  57. package/dist/Product-299070ad.mjs +652 -0
  58. package/dist/Product-aacb05f3.js +7 -0
  59. package/dist/Product-e43dd2f1.js +7 -0
  60. package/dist/Product-e4e583f0.mjs +652 -0
  61. package/dist/ProductEdit-70bed802.mjs +296 -0
  62. package/dist/ProductEdit-e5a2e0f6.js +1 -0
  63. package/dist/ProductsBackoffice-3c182d6a.mjs +86 -0
  64. package/dist/ProductsBackoffice-b684913d.js +1 -0
  65. package/dist/ProfileBlogposts-6bf526fb.js +1 -0
  66. package/dist/ProfileBlogposts-8f6191d6.js +1 -0
  67. package/dist/ProfileBlogposts-aa839fcb.mjs +77 -0
  68. package/dist/ProfileBlogposts-d4b17535.mjs +77 -0
  69. package/dist/ProfileEvents-3eeb4320.mjs +68 -0
  70. package/dist/ProfileEvents-6b3fb52e.mjs +68 -0
  71. package/dist/ProfileEvents-893285bb.js +1 -0
  72. package/dist/ProfileEvents-90e09978.js +1 -0
  73. package/dist/ProfileOrganizations-738f444a.js +1 -0
  74. package/dist/ProfileOrganizations-c4fb03a1.mjs +72 -0
  75. package/dist/ProfileOrganizations-e838925f.js +1 -0
  76. package/dist/ProfileOrganizations-edf657ca.mjs +72 -0
  77. package/dist/Publics-a31d7fe7.js +1 -0
  78. package/dist/Publics-a8f31413.mjs +45 -0
  79. package/dist/Wallet-2043b611.mjs +24682 -0
  80. package/dist/Wallet-8fa7386a.js +55 -0
  81. package/dist/auth-076a83d0.mjs +625 -0
  82. package/dist/auth-df5a20c6.js +7 -0
  83. package/dist/auth.client.cjs +1 -1
  84. package/dist/auth.client.js +4 -4
  85. package/dist/auth.validation-80b133df.js +1 -0
  86. package/dist/auth.validation-fd9ae66f.mjs +24 -0
  87. package/dist/backoffice.client.cjs +1 -1
  88. package/dist/backoffice.client.js +12 -12
  89. package/dist/categories-4327a81c.js +1 -0
  90. package/dist/categories-52a561a4.mjs +122 -0
  91. package/dist/community.client.cjs +1 -1
  92. package/dist/community.client.js +205 -198
  93. package/dist/events.client.cjs +2 -2
  94. package/dist/events.client.js +17 -20
  95. package/dist/landing.client.cjs +1 -1
  96. package/dist/landing.client.js +64 -40
  97. package/dist/legal.client.cjs +1 -1
  98. package/dist/legal.client.js +5 -6
  99. package/dist/main.css +1 -1
  100. package/dist/modules/gallery/components/pages/Gallery.vue.d.ts +2 -0
  101. package/dist/modules/gallery/components/sections/GalleryWithCategories.vue.d.ts +2 -0
  102. package/dist/modules/globals/components/sections/Title.vue.d.ts +6 -0
  103. package/dist/organizations-966e1cd2.mjs +122 -0
  104. package/dist/organizations-d12c42b6.js +1 -0
  105. package/dist/organizations.client-63b476ff.mjs +2996 -0
  106. package/dist/organizations.client-696eacbb.js +3 -0
  107. package/dist/organizations.client-8f263e28.js +3 -0
  108. package/dist/organizations.client-9ffc023f.mjs +2996 -0
  109. package/dist/organizations.client.cjs +1 -1
  110. package/dist/organizations.client.js +49 -54
  111. package/dist/products-7e4253eb.js +1 -0
  112. package/dist/products-aabe5c02.mjs +108 -0
  113. package/dist/prometheus-framework.cjs.js +1 -1
  114. package/dist/prometheus-framework.es.js +2 -2
  115. package/dist/states.validation-4594b33c.mjs +13 -0
  116. package/dist/states.validation-69003e66.js +1 -0
  117. package/dist/style.css +1 -1
  118. package/dist/users.client.cjs +1 -1
  119. package/dist/users.client.js +286 -202
  120. package/package.json +1 -5
  121. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  122. package/src/components/LocationSelection/LocationSelection.vue +1 -1
  123. package/src/components/Navigation/Navigation.vue +12 -1
  124. package/src/modules/auth/store/auth.js +7 -4
  125. package/src/modules/files/middlewares/server/md.js +1 -0
  126. package/src/modules/gallery/components/pages/Gallery.vue +21 -0
  127. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +408 -0
  128. package/src/modules/gallery/gallery.client.js +11 -14
  129. package/src/modules/gallery/router/gallery.router.js +10 -0
  130. package/src/modules/globals/components/sections/Title.vue +22 -0
  131. package/src/modules/marketplace/router/marketplace.js +4 -3
  132. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  133. package/src/modules/products/components/pages/ProductRecommmendation.vue +5 -3
  134. package/src/modules/products/components/sections/SectionProduct.vue +17 -5
  135. package/src/modules/products/controllers/products.controller.js +83 -0
  136. package/src/modules/products/routes/products.routes.js +5 -5
  137. package/src/modules/spots/components/layouts/Spots.vue +16 -11
  138. package/src/modules/spots/components/pages/Map.vue +9 -7
  139. package/src/modules/users/components/pages/Profile.vue +15 -5
  140. package/src/modules/users/router/users.js +10 -0
  141. package/src/modules/wallet/components/pages/Wallet.vue +104 -23
@@ -0,0 +1,122 @@
1
+ import { a as i } from "./index-a661083c.mjs";
2
+ import { C as m } from "./auth-076a83d0.mjs";
3
+ import { reactive as u, watch as d } from "vue";
4
+ import { s as c } from "./globals-96ba60e4.mjs";
5
+ const t = i.create({ baseURL: process.env.API_URL, withCredentials: !0 }), s = u({
6
+ all: [],
7
+ current: {
8
+ _id: null,
9
+ profile: {
10
+ tags: [],
11
+ photo: "",
12
+ name: "",
13
+ description: ""
14
+ },
15
+ structure: [],
16
+ owner: null,
17
+ types: "",
18
+ contacts: {
19
+ email: "",
20
+ website: "",
21
+ phone: "",
22
+ address: ""
23
+ },
24
+ socials: {
25
+ telegram: "",
26
+ line: "",
27
+ facebook: "",
28
+ instagram: ""
29
+ },
30
+ rating: {
31
+ popularity: 0,
32
+ median: 0,
33
+ amount: 0
34
+ }
35
+ }
36
+ }), g = {
37
+ // Create
38
+ async create(a, e) {
39
+ a.owner = e;
40
+ try {
41
+ const r = await t.post("/api/organizations/create", a);
42
+ return console.log("Organization created successfully"), s.current = r.data, r.data;
43
+ } catch (r) {
44
+ throw console.log("Organization creation failed"), c(r), r;
45
+ }
46
+ },
47
+ // Read
48
+ async read(a = {}) {
49
+ console.log(a), a.params = a.params || {}, a.location && (a.params.location = a.location), a.country && (a.params.country = a.country), a.state && (a.params.state = a.state), a.city && (a.params.city = a.city), a.categories && (a.params.categories = a.categories), a.prices && (a.params.prices = a.prices), a.delivery && (a.params.delivery = a.delivery), a._id && (a.params = a.params || {}, a.params._id = a._id), a.types && (a.params = a.params || [], a.params.types = a.types), a.owner && (a.params = a.params || {}, a.params.owner = a.owner), a.user && (a.params = a.params || {}, a.params.user = a.user), a.member && (a.params = a.params || {}, a.params.member = a.member), a.subscriber && (a.params = a.params || {}, a.params.subscriber = a.subscriber), a.postable && (a.params = a.params || {}, a.params.postable = a.postable), a.params = a.params || {}, a.params.skip = a.skip || 0, a.params.limit = a.limit || 9, a.params.sortParam = a.sort;
50
+ try {
51
+ console.log("Request params:" + a.params);
52
+ const e = await t.get("/api/organizations", { params: a.params });
53
+ return a._id ? (Object.assign(s.current || {}, e.data[0]), console.log(s.current)) : console.log(e.data), Promise.resolve(e.data);
54
+ } catch (e) {
55
+ return c(e), Promise.reject(e);
56
+ }
57
+ },
58
+ // Update
59
+ async update(a, e) {
60
+ return console.log(a, e), await t.post(`/api/organizations/${a}/update`, e).then(
61
+ (r) => (console.log("Organization updated successfully"), Promise.resolve(r.data)),
62
+ (r) => (console.log("Updating organization failed"), Promise.reject(r))
63
+ );
64
+ },
65
+ // Remove
66
+ async remove(a) {
67
+ await t.delete(`/api/organizations/${a}/delete`).then(
68
+ (e) => {
69
+ s.error = null;
70
+ let r = m.get("user"), l = JSON.parse(r);
71
+ return l.organization = null, m.set("user", JSON.stringify(l), { expires: 7, domain: ".osi.plus", sameSite: "none", secure: !0 }), Promise.resolve(e.data);
72
+ },
73
+ (e) => (c(e), Promise.reject(e))
74
+ ).catch((e) => {
75
+ c(e);
76
+ });
77
+ },
78
+ // Reset
79
+ async reset() {
80
+ s.current = {
81
+ _id: null,
82
+ profile: {
83
+ categories: [],
84
+ photo: "",
85
+ name: "",
86
+ description: ""
87
+ },
88
+ structure: [],
89
+ owner: null,
90
+ types: "",
91
+ contacts: {
92
+ email: "",
93
+ website: "",
94
+ phone: "",
95
+ address: ""
96
+ },
97
+ socials: {
98
+ telegram: "",
99
+ line: "",
100
+ facebook: "",
101
+ instagram: ""
102
+ },
103
+ rating: {
104
+ popularity: 0,
105
+ median: 0,
106
+ amount: 0
107
+ }
108
+ };
109
+ }
110
+ };
111
+ d(s, (a, e) => {
112
+ });
113
+ const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
114
+ __proto__: null,
115
+ actions: g,
116
+ state: s
117
+ }, Symbol.toStringTag, { value: "Module" }));
118
+ export {
119
+ g as a,
120
+ p as o,
121
+ s
122
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./index-b41aac19.js"),m=require("./auth-df5a20c6.js"),i=require("vue"),t=require("./globals-928eb13c.js"),c=n.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),s=i.reactive({all:[],current:{_id:null,profile:{tags:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:""},rating:{popularity:0,median:0,amount:0}}}),u={async create(e,a){e.owner=a;try{const r=await c.post("/api/organizations/create",e);return console.log("Organization created successfully"),s.current=r.data,r.data}catch(r){throw console.log("Organization creation failed"),t.setError(r),r}},async read(e={}){console.log(e),e.params=e.params||{},e.location&&(e.params.location=e.location),e.country&&(e.params.country=e.country),e.state&&(e.params.state=e.state),e.city&&(e.params.city=e.city),e.categories&&(e.params.categories=e.categories),e.prices&&(e.params.prices=e.prices),e.delivery&&(e.params.delivery=e.delivery),e._id&&(e.params=e.params||{},e.params._id=e._id),e.types&&(e.params=e.params||[],e.params.types=e.types),e.owner&&(e.params=e.params||{},e.params.owner=e.owner),e.user&&(e.params=e.params||{},e.params.user=e.user),e.member&&(e.params=e.params||{},e.params.member=e.member),e.subscriber&&(e.params=e.params||{},e.params.subscriber=e.subscriber),e.postable&&(e.params=e.params||{},e.params.postable=e.postable),e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||9,e.params.sortParam=e.sort;try{console.log("Request params:"+e.params);const a=await c.get("/api/organizations",{params:e.params});return e._id?(Object.assign(s.current||{},a.data[0]),console.log(s.current)):console.log(a.data),Promise.resolve(a.data)}catch(a){return t.setError(a),Promise.reject(a)}},async update(e,a){return console.log(e,a),await c.post(`/api/organizations/${e}/update`,a).then(r=>(console.log("Organization updated successfully"),Promise.resolve(r.data)),r=>(console.log("Updating organization failed"),Promise.reject(r)))},async remove(e){await c.delete(`/api/organizations/${e}/delete`).then(a=>{s.error=null;let r=m.Cookies.get("user"),l=JSON.parse(r);return l.organization=null,m.Cookies.set("user",JSON.stringify(l),{expires:7,domain:".osi.plus",sameSite:"none",secure:!0}),Promise.resolve(a.data)},a=>(t.setError(a),Promise.reject(a))).catch(a=>{t.setError(a)})},async reset(){s.current={_id:null,profile:{categories:[],photo:"",name:"",description:""},structure:[],owner:null,types:"",contacts:{email:"",website:"",phone:"",address:""},socials:{telegram:"",line:"",facebook:"",instagram:""},rating:{popularity:0,median:0,amount:0}}}};i.watch(s,(e,a)=>{});const d=Object.freeze(Object.defineProperty({__proto__:null,actions:u,state:s},Symbol.toStringTag,{value:"Module"}));exports.actions=u;exports.organization=d;exports.state=s;