@ozdao/prometheus-framework 0.1.12 → 0.1.14
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-e60b6b7d.mjs +1945 -0
- package/dist/ButtonFollow-f0cefb85.mjs +131 -0
- package/dist/CardOrganization-522845c7.mjs +230 -0
- package/dist/Feed-3a187776.js +1 -0
- package/dist/Feed-406e3b66.mjs +368 -0
- package/dist/Feed-a7a6bd2e.mjs +368 -0
- package/dist/Feed-f3b2bd74.mjs +439 -0
- package/dist/Image-58efaf35.mjs +477 -0
- package/dist/Popup-709634dc.mjs +76 -0
- package/dist/Product-0095681c.mjs +838 -0
- package/dist/Product-2c6df98d.mjs +838 -0
- package/dist/Product-a9efa410.js +7 -0
- package/dist/ProductEdit-70ddae4d.js +1 -0
- package/dist/ProductEdit-82658f2f.mjs +350 -0
- package/dist/ProductEdit-ab5d71ce.mjs +350 -0
- package/dist/ProfileBlogposts-3aea0091.mjs +64 -0
- package/dist/ProfileComments-9398be62.mjs +44 -0
- package/dist/ProfileEvents-82517a3b.mjs +56 -0
- package/dist/ProfileEvents-980b0281.mjs +56 -0
- package/dist/ProfileEvents-bff6e071.js +1 -0
- package/dist/ProfileLikes-0c8a7255.mjs +44 -0
- package/dist/ProfileOrganizations-5b5480d5.mjs +212 -0
- package/dist/Publics-bed70f0c.mjs +123 -0
- package/dist/UploadImage-86fda95d.mjs +83 -0
- package/dist/auth-962e3b73.mjs +1836 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +410 -408
- package/dist/auth.validation-1b60cef5.mjs +20 -0
- package/dist/community.client.js +10 -10
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +8 -8
- package/dist/organizations-8408770b.mjs +121 -0
- package/dist/organizations.client-6f1f8b73.mjs +3017 -0
- package/dist/organizations.client-9e480f60.js +3 -0
- package/dist/organizations.client-bae43c7c.mjs +3017 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +10 -10
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +9 -9
- package/package.json +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +25 -27
- package/src/modules/events/components/sections/Feed.vue +3 -3
package/dist/events.client.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { r as Tr, a as Cn, s as Ut, c as yl, u as qr, b as zr, d as gl, S as wl, _ as bl } from "./Feed-
|
2
|
-
import { e as Lc } from "./Feed-
|
1
|
+
import { r as Tr, a as Cn, s as Ut, c as yl, u as qr, b as zr, d as gl, S as wl, _ as bl } from "./Feed-a7a6bd2e.mjs";
|
2
|
+
import { e as Lc } from "./Feed-a7a6bd2e.mjs";
|
3
3
|
import { openBlock as D, createElementBlock as L, createStaticVNode as _l, ref as G, onMounted as Ke, createVNode as _e, TransitionGroup as Oa, withCtx as ve, Fragment as ye, renderList as Oe, createBlock as fe, createCommentVNode as F, Transition as Dt, normalizeClass as ke, createElementVNode as le, unref as p, toDisplayString as Le, watch as kt, resolveComponent as kl, resolveDynamicComponent as pa, reactive as ea, defineComponent as ze, useSlots as Vt, toRef as Aa, nextTick as St, computed as K, onUnmounted as xr, mergeProps as Be, isRef as Gr, createSlots as Je, renderSlot as ne, normalizeProps as Ve, guardReactiveProps as Xe, Teleport as Dl, h as Tl, render as Kr, withKeys as he, withModifiers as Ae, normalizeStyle as dt, createTextVNode as mt, onBeforeUpdate as xl, withDirectives as Ca, vShow as Pa, getCurrentScope as Ml, onScopeDispose as Cl } from "vue";
|
4
4
|
import { _ as Pn } from "./EmptyState-34d85f10.mjs";
|
5
5
|
import { _ as $n } from "./_plugin-vue_export-helper-dad06003.mjs";
|
6
6
|
import { useRoute as Ra, useRouter as Mr } from "vue-router";
|
7
|
-
import { _ as Pl, S as $l, C as Ol } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-
|
8
|
-
import { a as Al, b as Sl, c as Yl } from "./Image-
|
9
|
-
import { _ as Nl } from "./Popup-
|
10
|
-
import { s as rt, F as Qr, _ as On, a as El } from "./auth-
|
11
|
-
import { _ as Ul } from "./UploadImage-
|
12
|
-
import { a as Il } from "./organizations-
|
7
|
+
import { _ as Pl, S as $l, C as Ol } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-e60b6b7d.mjs";
|
8
|
+
import { a as Al, b as Sl, c as Yl } from "./Image-58efaf35.mjs";
|
9
|
+
import { _ as Nl } from "./Popup-709634dc.mjs";
|
10
|
+
import { s as rt, F as Qr, _ as On, a as El } from "./auth-962e3b73.mjs";
|
11
|
+
import { _ as Ul } from "./UploadImage-86fda95d.mjs";
|
12
|
+
import { a as Il } from "./organizations-8408770b.mjs";
|
13
13
|
import { s as ka } from "./globals-96ba60e4.mjs";
|
14
14
|
import "vue-i18n";
|
15
15
|
import "./Chips-03ff0c34.mjs";
|
@@ -0,0 +1,121 @@
|
|
1
|
+
import { a as i, C as m } from "./auth-962e3b73.mjs";
|
2
|
+
import { reactive as u, watch as d } from "vue";
|
3
|
+
import { s as c } from "./globals-96ba60e4.mjs";
|
4
|
+
const t = i.create({ baseURL: process.env.API_URL, withCredentials: !0 }), s = u({
|
5
|
+
all: [],
|
6
|
+
current: {
|
7
|
+
_id: null,
|
8
|
+
profile: {
|
9
|
+
tags: [],
|
10
|
+
photo: "",
|
11
|
+
name: "",
|
12
|
+
description: ""
|
13
|
+
},
|
14
|
+
structure: [],
|
15
|
+
owner: null,
|
16
|
+
types: "",
|
17
|
+
contacts: {
|
18
|
+
email: "",
|
19
|
+
website: "",
|
20
|
+
phone: "",
|
21
|
+
address: ""
|
22
|
+
},
|
23
|
+
socials: {
|
24
|
+
telegram: "",
|
25
|
+
line: "",
|
26
|
+
facebook: "",
|
27
|
+
instagram: ""
|
28
|
+
},
|
29
|
+
rating: {
|
30
|
+
popularity: 0,
|
31
|
+
median: 0,
|
32
|
+
amount: 0
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}), g = {
|
36
|
+
// Create
|
37
|
+
async create(a, e) {
|
38
|
+
a.owner = e;
|
39
|
+
try {
|
40
|
+
const r = await t.post("/api/organizations/create", a);
|
41
|
+
return console.log("Organization created successfully"), s.current = r.data, r.data;
|
42
|
+
} catch (r) {
|
43
|
+
throw console.log("Organization creation failed"), c(r), r;
|
44
|
+
}
|
45
|
+
},
|
46
|
+
// Read
|
47
|
+
async read(a = {}) {
|
48
|
+
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;
|
49
|
+
try {
|
50
|
+
console.log("Request params:" + a.params);
|
51
|
+
const e = await t.get("/api/organizations", { params: a.params });
|
52
|
+
return a._id ? (console.log(e.data), Object.assign(s.current || {}, e.data[0]), console.log(s.current)) : console.log(e.data), Promise.resolve(e.data);
|
53
|
+
} catch (e) {
|
54
|
+
return c(e), Promise.reject(e);
|
55
|
+
}
|
56
|
+
},
|
57
|
+
// Update
|
58
|
+
async update(a, e) {
|
59
|
+
return console.log(a, e), await t.post(`/api/organizations/${a}/update`, e).then(
|
60
|
+
(r) => (console.log("Organization updated successfully"), Promise.resolve(r.data)),
|
61
|
+
(r) => (console.log("Updating organization failed"), Promise.reject(r))
|
62
|
+
);
|
63
|
+
},
|
64
|
+
// Remove
|
65
|
+
async remove(a) {
|
66
|
+
await t.delete(`/api/organizations/${a}/delete`).then(
|
67
|
+
(e) => {
|
68
|
+
s.error = null;
|
69
|
+
let r = m.get("user"), l = JSON.parse(r);
|
70
|
+
return l.organization = null, m.set("user", JSON.stringify(l), { expires: 7, domain: ".osi.plus", sameSite: "none", secure: !0 }), Promise.resolve(e.data);
|
71
|
+
},
|
72
|
+
(e) => (c(e), Promise.reject(e))
|
73
|
+
).catch((e) => {
|
74
|
+
c(e);
|
75
|
+
});
|
76
|
+
},
|
77
|
+
// Reset
|
78
|
+
async reset() {
|
79
|
+
s.current = {
|
80
|
+
_id: null,
|
81
|
+
profile: {
|
82
|
+
categories: [],
|
83
|
+
photo: "",
|
84
|
+
name: "",
|
85
|
+
description: ""
|
86
|
+
},
|
87
|
+
structure: [],
|
88
|
+
owner: null,
|
89
|
+
types: "",
|
90
|
+
contacts: {
|
91
|
+
email: "",
|
92
|
+
website: "",
|
93
|
+
phone: "",
|
94
|
+
address: ""
|
95
|
+
},
|
96
|
+
socials: {
|
97
|
+
telegram: "",
|
98
|
+
line: "",
|
99
|
+
facebook: "",
|
100
|
+
instagram: ""
|
101
|
+
},
|
102
|
+
rating: {
|
103
|
+
popularity: 0,
|
104
|
+
median: 0,
|
105
|
+
amount: 0
|
106
|
+
}
|
107
|
+
};
|
108
|
+
}
|
109
|
+
};
|
110
|
+
d(s, (a, e) => {
|
111
|
+
});
|
112
|
+
const b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
113
|
+
__proto__: null,
|
114
|
+
actions: g,
|
115
|
+
state: s
|
116
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
117
|
+
export {
|
118
|
+
g as a,
|
119
|
+
b as o,
|
120
|
+
s
|
121
|
+
};
|