@ozdao/prometheus-framework 0.1.13 → 0.1.15
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-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-2c6df98d.mjs +838 -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/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 +539 -542
- package/dist/auth.validation-1b60cef5.mjs +20 -0
- package/dist/community.client.js +10 -10
- 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.js +10 -10
- package/dist/users.client.js +9 -9
- package/package.json +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +59 -40
@@ -0,0 +1,20 @@
|
|
1
|
+
import { useRouter as i } from "vue-router";
|
2
|
+
import { s } from "./auth-962e3b73.mjs";
|
3
|
+
i();
|
4
|
+
function n(r, o, e) {
|
5
|
+
e(), s.user.phone = "", s.user.email = "", s.user.password = "", s.user.passwordRepeat = "";
|
6
|
+
}
|
7
|
+
function f(r, o, e) {
|
8
|
+
console.log(s.user), s.user.phone === "" && s.user.email === "" ? e("/auth/signin") : e();
|
9
|
+
}
|
10
|
+
i();
|
11
|
+
function c(r, o, e) {
|
12
|
+
if (s.access.status)
|
13
|
+
return e("/profile/" + s.user._id);
|
14
|
+
e();
|
15
|
+
}
|
16
|
+
export {
|
17
|
+
n as a,
|
18
|
+
f as c,
|
19
|
+
c as r
|
20
|
+
};
|
package/dist/community.client.js
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
import { resolveComponent as Y, openBlock as i, createElementBlock as p, createElementVNode as o, createVNode as h, normalizeClass as B, unref as c, createCommentVNode as v, withCtx as k, Transition as G, createBlock as I, resolveDynamicComponent as Q, ref as g, onMounted as F, computed as V, createTextVNode as T, createStaticVNode as Z, TransitionGroup as H, Fragment as D, renderList as U, mergeProps as ee, watch as te, toDisplayString as N, watchEffect as se, isRef as W, withAsyncContext as ae, pushScopeId as oe, popScopeId as ne } from "vue";
|
2
2
|
import { useRoute as z, useRouter as A } from "vue-router";
|
3
|
-
import { S as le, _ as re } from "./Publics-
|
4
|
-
import { s as M, r as L, c as ie, u as q, a as R, b as ue, d as K, _ as ce } from "./Feed-
|
5
|
-
import { e as ts, f as ss, g as as } from "./Feed-
|
6
|
-
import { s as w, _ as pe, F as de } from "./auth-
|
7
|
-
import { _ as me, a as ge, b as _e, c as he } from "./Image-
|
8
|
-
import { _ as fe } from "./Popup-
|
9
|
-
import { _ as ve, S as be, C as ye } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-
|
10
|
-
import { a as we } from "./organizations-
|
3
|
+
import { S as le, _ as re } from "./Publics-bed70f0c.mjs";
|
4
|
+
import { s as M, r as L, c as ie, u as q, a as R, b as ue, d as K, _ as ce } from "./Feed-f3b2bd74.mjs";
|
5
|
+
import { e as ts, f as ss, g as as } from "./Feed-f3b2bd74.mjs";
|
6
|
+
import { s as w, _ as pe, F as de } from "./auth-962e3b73.mjs";
|
7
|
+
import { _ as me, a as ge, b as _e, c as he } from "./Image-58efaf35.mjs";
|
8
|
+
import { _ as fe } from "./Popup-709634dc.mjs";
|
9
|
+
import { _ as ve, S as be, C as ye } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-e60b6b7d.mjs";
|
10
|
+
import { a as we } from "./organizations-8408770b.mjs";
|
11
11
|
import { _ as xe } from "./EmptyState-34d85f10.mjs";
|
12
12
|
import { _ as X } from "./_plugin-vue_export-helper-dad06003.mjs";
|
13
13
|
import { useI18n as $e } from "vue-i18n";
|
14
14
|
import "./globals-96ba60e4.mjs";
|
15
|
-
import "./CardOrganization-
|
16
|
-
import "./ButtonFollow-
|
15
|
+
import "./CardOrganization-522845c7.mjs";
|
16
|
+
import "./ButtonFollow-f0cefb85.mjs";
|
17
17
|
import "./Chips-03ff0c34.mjs";
|
18
18
|
import "./IconEdit-eacf3856.mjs";
|
19
19
|
import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
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
|
+
};
|