@ozdao/prometheus-framework 0.2.102 โ 0.2.104
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-CXObXjv-.js +92 -0
- package/dist/main-DPsHxX0l.mjs +13633 -0
- package/dist/main-DfD5hLQo.mjs +13633 -0
- package/dist/main-DwyUYWFX.js +92 -0
- package/dist/orders.server.js +16 -0
- package/dist/orders.server.mjs +16 -0
- package/dist/organizations.server.js +14 -3
- package/dist/organizations.server.mjs +14 -3
- package/dist/products.server.js +7 -1
- package/dist/products.server.mjs +7 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +43 -41
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -36
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +21 -21
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +87 -67
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +30 -31
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +120 -88
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-BNKN7kk3.mjs +54 -0
- package/dist/web-C0sFgeYh.mjs +54 -0
- package/dist/web-Douq6xn6.js +1 -0
- package/dist/web-kg3KgbAF.js +1 -0
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +11 -10
- package/src/modules/orders/controllers/orders.controller.js +20 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/controllers/memberships.controller.js +22 -10
- package/src/modules/products/components/blocks/CardPosition.vue +32 -7
- package/src/modules/products/components/pages/EditLeftover.vue +0 -3
- package/src/modules/products/components/pages/ProductEdit.vue +51 -15
- package/src/modules/products/controllers/products.controller.js +1 -2
- package/src/modules/products/models/product.model.js +6 -0
- package/src/modules/products/routes/products.routes.js +1 -10
@@ -1,83 +1,85 @@
|
|
1
|
-
import { ref as U, onMounted as
|
2
|
-
import { useRoute as
|
1
|
+
import { ref as U, onMounted as B, openBlock as n, createElementBlock as s, createVNode as a, withCtx as l, createElementVNode as m, toDisplayString as E, unref as p, createBlock as b, createTextVNode as $, createCommentVNode as z, Fragment as f, renderList as _ } from "vue";
|
2
|
+
import { useRoute as F, useRouter as R } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
6
|
import d from "../../../../components/Block/Block.vue.js";
|
7
7
|
import "../../../../components/Tab/Tab.vue.js";
|
8
|
-
import
|
8
|
+
import v from "../../../../components/Field/Field.vue2.js";
|
9
9
|
import S from "../../../../components/Checkbox/Checkbox.vue.js";
|
10
|
-
import
|
11
|
-
import T from "../../../../components/Popup/Popup.
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import D from "
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import
|
18
|
-
import { actions as
|
10
|
+
import N from "../../../../components/Button/Button.vue2.js";
|
11
|
+
import T from "../../../../components/Popup/Popup.vue2.js";
|
12
|
+
import A from "../../../../components/Feed/Feed.vue.js";
|
13
|
+
import L from "../../../../components/EditImages/EditImages.vue.js";
|
14
|
+
import D from "../../../icons/navigation/IconDelete.vue.js";
|
15
|
+
import q from "../blocks/CardPosition.vue.js";
|
16
|
+
import M from "../../../orders/components/blocks/CardOrderItem.vue.js";
|
17
|
+
import j from "../sections/EditProductInfo.vue.js";
|
18
|
+
import { actions as w } from "../../../globals/store/globals.js";
|
19
|
+
import { state as e, mutations as G, actions as c } from "../../store/products.js";
|
20
|
+
import { actions as H, state as J } from "../../store/categories.js";
|
19
21
|
import "./ProductEdit.vue2.js";
|
20
|
-
const
|
22
|
+
const K = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class: "mn-r-auto" }, W = { class: "cols-2 gap-thin" }, X = {
|
21
23
|
key: 0,
|
22
24
|
class: "cols-1 gap-thin"
|
23
|
-
},
|
25
|
+
}, Y = { class: "bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, Z = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, ee = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, ke = {
|
24
26
|
__name: "ProductEdit",
|
25
|
-
setup(
|
26
|
-
const
|
27
|
-
function O(
|
28
|
-
|
27
|
+
setup(te) {
|
28
|
+
const o = F(), k = R(), P = U(e.all), y = U(!1);
|
29
|
+
function O(g) {
|
30
|
+
y.value = !0;
|
29
31
|
}
|
30
|
-
function
|
31
|
-
|
32
|
+
function u() {
|
33
|
+
y.value = !1;
|
32
34
|
}
|
33
|
-
|
34
|
-
|
35
|
+
B(async () => {
|
36
|
+
G.resetProduct(), o.params.product && await c.read({ _id: o.params.product }), e.current.ingredients || (e.current.ingredients = []), await H.fetchCategories();
|
35
37
|
try {
|
36
|
-
const
|
37
|
-
organization:
|
38
|
+
const g = await c.read({
|
39
|
+
organization: o.params._id,
|
38
40
|
limit: 100
|
39
41
|
});
|
40
|
-
|
42
|
+
P.value = g;
|
41
43
|
} catch {
|
42
44
|
console.error("error");
|
43
45
|
}
|
44
46
|
});
|
45
47
|
function I() {
|
46
|
-
|
48
|
+
o.params.product ? c.update(o.params.product, e.current) : c.create(o.params._id, e.current);
|
47
49
|
}
|
48
50
|
function V() {
|
49
|
-
|
51
|
+
c.deleteProduct(e.current._id);
|
50
52
|
}
|
51
|
-
function
|
53
|
+
function C() {
|
52
54
|
k.push({
|
53
55
|
name: "Organization",
|
54
56
|
params: {
|
55
|
-
_id:
|
57
|
+
_id: o.params._id
|
56
58
|
}
|
57
59
|
});
|
58
60
|
}
|
59
|
-
return (
|
61
|
+
return (g, h) => (n(), s("div", K, [
|
60
62
|
a(d, { class: "flex-nowrap flex-v-center flex" }, {
|
61
63
|
default: l(() => [
|
62
|
-
|
63
|
-
|
64
|
+
m("h1", Q, E(p(o).params.product ? e.current.name : "Create Product"), 1),
|
65
|
+
p(o).params.product ? (n(), b(N, {
|
64
66
|
key: 0,
|
65
67
|
submit: V,
|
66
|
-
callback:
|
68
|
+
callback: C,
|
67
69
|
class: "bg-red mn-r-thin"
|
68
70
|
}, {
|
69
71
|
default: l(() => [
|
70
|
-
|
72
|
+
$(" Delete ")
|
71
73
|
]),
|
72
74
|
_: 1
|
73
|
-
})) :
|
74
|
-
a(
|
75
|
+
})) : z("", !0),
|
76
|
+
a(N, {
|
75
77
|
submit: I,
|
76
|
-
callback:
|
78
|
+
callback: C,
|
77
79
|
class: "bg-main"
|
78
80
|
}, {
|
79
81
|
default: l(() => [
|
80
|
-
|
82
|
+
$(" Save ")
|
81
83
|
]),
|
82
84
|
_: 1
|
83
85
|
})
|
@@ -89,20 +91,20 @@ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class
|
|
89
91
|
class: "h-min"
|
90
92
|
}, {
|
91
93
|
default: l(() => [
|
92
|
-
a(
|
94
|
+
a(L, {
|
93
95
|
images: e.current.images,
|
94
96
|
uploadPath: "photos",
|
95
|
-
"onUpdate:images":
|
97
|
+
"onUpdate:images": h[0] || (h[0] = (t) => {
|
96
98
|
e.current.images = t;
|
97
99
|
})
|
98
100
|
}, null, 8, ["images"])
|
99
101
|
]),
|
100
102
|
_: 1
|
101
103
|
}),
|
102
|
-
|
104
|
+
m("div", W, [
|
103
105
|
a(d, { title: "Profile" }, {
|
104
106
|
default: l(() => [
|
105
|
-
a(
|
107
|
+
a(j, {
|
106
108
|
product: e.current
|
107
109
|
}, null, 8, ["product"])
|
108
110
|
]),
|
@@ -117,41 +119,89 @@ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class
|
|
117
119
|
}]
|
118
120
|
}, {
|
119
121
|
default: l(() => [
|
120
|
-
e.current.ingredients.length > 0 ? (n(), s("div",
|
121
|
-
(n(!0), s(
|
122
|
+
e.current.ingredients.length > 0 ? (n(), s("div", X, [
|
123
|
+
(n(!0), s(f, null, _(e.current.ingredients, (t, i) => (n(), b(q, {
|
122
124
|
key: t._id,
|
123
125
|
product: t,
|
124
126
|
array: e.current.ingredients,
|
125
|
-
products:
|
126
|
-
|
127
|
-
|
127
|
+
products: P.value,
|
128
|
+
showPrice: !1,
|
129
|
+
onAdd: h[1] || (h[1] = (r) => {
|
130
|
+
w.add(e.current.ingredients, r), u();
|
128
131
|
}),
|
129
132
|
onUpdate: (r) => {
|
130
|
-
|
133
|
+
w.update(e.current.ingredients, r, i), u();
|
131
134
|
},
|
132
135
|
onDelete: (r) => {
|
133
|
-
|
136
|
+
w.delete(e.current.ingredients, r, i), u();
|
134
137
|
}
|
135
138
|
}, null, 8, ["product", "array", "products", "onUpdate", "onDelete"]))), 128))
|
136
|
-
])) :
|
139
|
+
])) : z("", !0)
|
137
140
|
]),
|
138
141
|
_: 1
|
139
|
-
}, 8, ["actions"])
|
142
|
+
}, 8, ["actions"]),
|
143
|
+
a(T, {
|
144
|
+
title: "Add ingredient",
|
145
|
+
onClosePopup: u,
|
146
|
+
isPopupOpen: y.value,
|
147
|
+
class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
|
148
|
+
}, {
|
149
|
+
default: l(() => [
|
150
|
+
m("div", Y, [
|
151
|
+
a(A, {
|
152
|
+
search: {
|
153
|
+
class: "bg-white mn-b-thin"
|
154
|
+
},
|
155
|
+
states: {
|
156
|
+
empty: {
|
157
|
+
title: "No Products Found",
|
158
|
+
description: "Currently, there are no such products available."
|
159
|
+
}
|
160
|
+
},
|
161
|
+
store: {
|
162
|
+
read: (t) => c.read(t),
|
163
|
+
state: null
|
164
|
+
},
|
165
|
+
options: {
|
166
|
+
organization: p(o).params._id
|
167
|
+
},
|
168
|
+
class: ""
|
169
|
+
}, {
|
170
|
+
default: l(({
|
171
|
+
items: t
|
172
|
+
}) => [
|
173
|
+
(n(!0), s(f, null, _(t, (i, r) => (n(), b(M, {
|
174
|
+
key: i._id,
|
175
|
+
editable: !1,
|
176
|
+
product: i,
|
177
|
+
onClick: () => {
|
178
|
+
let x = { ...i };
|
179
|
+
x.quantity = 1, x.type = "pcs", w.add(e.current.ingredients, x), u();
|
180
|
+
},
|
181
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
|
182
|
+
}, null, 8, ["product", "onClick"]))), 128))
|
183
|
+
]),
|
184
|
+
_: 1
|
185
|
+
}, 8, ["store", "options"])
|
186
|
+
])
|
187
|
+
]),
|
188
|
+
_: 1
|
189
|
+
}, 8, ["isPopupOpen"])
|
140
190
|
]),
|
141
191
|
a(d, {
|
142
192
|
title: "Categories",
|
143
193
|
actions: [{
|
144
194
|
label: "+",
|
145
|
-
function: () =>
|
195
|
+
function: () => p(k).push({
|
146
196
|
name: "Categories Organization",
|
147
197
|
params: {
|
148
|
-
_id:
|
198
|
+
_id: p(o).params._id
|
149
199
|
}
|
150
200
|
})
|
151
201
|
}]
|
152
202
|
}, {
|
153
203
|
default: l(() => [
|
154
|
-
(n(!0), s(
|
204
|
+
(n(!0), s(f, null, _(J.all, (t, i) => (n(), b(S, {
|
155
205
|
label: t.name,
|
156
206
|
name: "categories",
|
157
207
|
value: t.url,
|
@@ -172,25 +222,25 @@ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class
|
|
172
222
|
class: "cols-1 gap-thin"
|
173
223
|
}, {
|
174
224
|
default: l(() => [
|
175
|
-
(n(!0), s(
|
225
|
+
(n(!0), s(f, null, _(e.current.information, (t, i) => (n(), s("div", {
|
176
226
|
class: "gap-thin flex-nowrap flex",
|
177
|
-
key:
|
227
|
+
key: i
|
178
228
|
}, [
|
179
|
-
a(
|
229
|
+
a(v, {
|
180
230
|
field: t.name,
|
181
231
|
"onUpdate:field": (r) => t.name = r,
|
182
232
|
placeholder: "ะะฐะทะฒะฐะฝะธะต ะฟะฐัะฐะผะตััะฐ",
|
183
233
|
class: "w-100 bg-white radius-small pd-medium"
|
184
234
|
}, null, 8, ["field", "onUpdate:field"]),
|
185
|
-
a(
|
235
|
+
a(v, {
|
186
236
|
field: t.value,
|
187
237
|
"onUpdate:field": (r) => t.value = r,
|
188
238
|
placeholder: "ะะฝะฐัะตะฝะธะต ะฟะฐัะฐะผะตััะฐ",
|
189
239
|
class: "w-100 bg-white radius-small pd-medium"
|
190
240
|
}, null, 8, ["field", "onUpdate:field"]),
|
191
|
-
|
192
|
-
a(
|
193
|
-
onClick: () => e.current.information.splice(
|
241
|
+
m("div", Z, [
|
242
|
+
a(D, {
|
243
|
+
onClick: () => e.current.information.splice(i, 1),
|
194
244
|
class: "i-medium"
|
195
245
|
}, null, 8, ["onClick"])
|
196
246
|
])
|
@@ -207,53 +257,35 @@ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class
|
|
207
257
|
}]
|
208
258
|
}, {
|
209
259
|
default: l(() => [
|
210
|
-
(n(!0), s(
|
260
|
+
(n(!0), s(f, null, _(e.current.localization, (t, i) => (n(), s("div", {
|
211
261
|
class: "gap-thin mn-b-thin flex-nowrap flex",
|
212
|
-
key:
|
262
|
+
key: i
|
213
263
|
}, [
|
214
|
-
a(
|
264
|
+
a(v, {
|
215
265
|
field: t.name,
|
216
266
|
"onUpdate:field": (r) => t.name = r,
|
217
267
|
placeholder: "ะะฐะทะฒะฐะฝะธะต ะฟะฐัะฐะผะตััะฐ",
|
218
268
|
class: "w-100 bg-white radius-small pd-medium"
|
219
269
|
}, null, 8, ["field", "onUpdate:field"]),
|
220
|
-
a(
|
270
|
+
a(v, {
|
221
271
|
field: t.value,
|
222
272
|
"onUpdate:field": (r) => t.value = r,
|
223
273
|
placeholder: "ะะฝะฐัะตะฝะธะต ะฟะฐัะฐะผะตััะฐ",
|
224
274
|
class: "w-100 bg-white radius-small pd-medium"
|
225
275
|
}, null, 8, ["field", "onUpdate:field"]),
|
226
|
-
|
227
|
-
a(
|
228
|
-
onClick: () => e.current.localization.splice(
|
276
|
+
m("div", ee, [
|
277
|
+
a(D, {
|
278
|
+
onClick: () => e.current.localization.splice(i, 1),
|
229
279
|
class: "i-medium"
|
230
280
|
}, null, 8, ["onClick"])
|
231
281
|
])
|
232
282
|
]))), 128))
|
233
283
|
]),
|
234
284
|
_: 1
|
235
|
-
}, 8, ["actions"])
|
236
|
-
a(T, {
|
237
|
-
title: "Add ingredient",
|
238
|
-
onClosePopup: p,
|
239
|
-
isPopupOpen: x.value,
|
240
|
-
class: "bg-white pd-big radius-big"
|
241
|
-
}, {
|
242
|
-
default: l(() => [
|
243
|
-
a(D, {
|
244
|
-
onAdd: c[2] || (c[2] = (t) => v.add(
|
245
|
-
e.current.ingredients,
|
246
|
-
t
|
247
|
-
)),
|
248
|
-
products: w.value,
|
249
|
-
class: "flex-column"
|
250
|
-
}, null, 8, ["products"])
|
251
|
-
]),
|
252
|
-
_: 1
|
253
|
-
}, 8, ["isPopupOpen"])
|
285
|
+
}, 8, ["actions"])
|
254
286
|
]));
|
255
287
|
}
|
256
288
|
};
|
257
289
|
export {
|
258
|
-
|
290
|
+
ke as default
|
259
291
|
};
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const r=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const r=require("../../../../components/Field/Field.vue2.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,t)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":t[0]||(t[0]=l=>e.product.status=l),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":t[1]||(t[1]=l=>e.product.name=l),label:"Name",placeholder:"Enter product name",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":t[3]||(t[3]=l=>e.product.price=l),label:"Price",placeholder:"Enter product price",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":t[2]||(t[2]=l=>e.product.price.currency=l),placeholder:"เธฟ",options:["เธฟ"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":t[4]||(t[4]=l=>e.product.description=l),label:"Description",placeholder:"Enter product description",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js
CHANGED
@@ -2,7 +2,7 @@ import { openBlock as u, createElementBlock as a, Fragment as o, createVNode as
|
|
2
2
|
import "../../../../components/Loader/Loader.vue.js";
|
3
3
|
import "../../../../components/Button/Button.vue.js";
|
4
4
|
import r from "../../../../components/Field/Field.vue2.js";
|
5
|
-
import i from "../../../../components/Select/Select.
|
5
|
+
import i from "../../../../components/Select/Select.vue2.js";
|
6
6
|
const w = {
|
7
7
|
__name: "EditProductInfo",
|
8
8
|
props: {
|
package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../components/Spoiler/Spoiler.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),b=require("../../../../components/Checkbox/Checkbox.vue.cjs"),q=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-white-transp-50 radius-big"},F={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small t-transp"},null,-1),B={class:"cursor-pointer mn-r-auto t-medium p-big"},C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300เธฟ",value:"<300"},{label:"300เธฟ to 600เธฟ",value:"300-600"},{label:"600เธฟ to 1200เธฟ",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();let _={status:"published"};[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories(_)),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const k=h,w=()=>{k("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"ะะฐัะตะณะพัะธั",categories:[],filters:{title:"ะคะธะปัััั",price:{title:"ะฆะตะฝะฐ",from:"ะั",to:"ะะพ"},filters:[],reset:"ะกะฑัะพัะธัั ัะธะปัััั"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=q.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",B,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),e.createElementVNode("button",{onClick:w,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
|
package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { withAsyncContext as P, ref as T, watch as V, onMounted as B, openBlock as a, createElementBlock as p, createVNode as h, withCtx as n, createElementVNode as c, toDisplayString as d, unref as f, Fragment as v, renderList as _, createBlock as w } from "vue";
|
2
|
-
import x from "../../../../components/Spoiler/Spoiler.
|
2
|
+
import x from "../../../../components/Spoiler/Spoiler.vue2.js";
|
3
3
|
import F from "../../../../components/Checkbox/Checkbox.vue.js";
|
4
4
|
import { useI18n as R } from "vue-i18n";
|
5
5
|
import { useRoute as U, useRouter as $ } from "vue-router";
|
package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-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-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__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(i){const t=i,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function l(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:o[1]||(o[1]=n=>u())},[e.renderSlot(p.$slots,"default"),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[b,g,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[0]||(o[0]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-b-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(d.default,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])]))}};exports.default=h;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { reactive as d, ref as f, openBlock as b, createElementBlock as g, renderSlot as h, createVNode as s, withCtx as l, createTextVNode as y, createElementVNode as a } from "vue";
|
2
|
-
import _ from "../../../../components/Popup/Popup.
|
2
|
+
import _ from "../../../../components/Popup/Popup.vue2.js";
|
3
3
|
import v from "../../../../components/Button/Button.vue2.js";
|
4
|
-
import w from "../../../../components/Select/Select.
|
4
|
+
import w from "../../../../components/Select/Select.vue2.js";
|
5
5
|
import { actions as S } from "../../store/reports.js";
|
6
6
|
const k = /* @__PURE__ */ a("h3", { class: "mn-b-small" }, " Report Content ", -1), P = /* @__PURE__ */ a("p", { class: "p-medium mn-b-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), R = /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), O = {
|
7
7
|
__name: "FormReport",
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const g=require("../../../../components/Dropdown/Dropdown.vue.cjs"),h=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const g=require("../../../../components/Dropdown/Dropdown.vue.cjs"),h=require("../../../../components/Completion/Completion.vue.cjs"),d=require("../../../mobile/components/Menu/Menu.vue2.cjs"),l=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),p=require("../../../organizations/components/elements/ButtonToggleMembership.vue.cjs"),B=require("../../../reports/components/sections/FormReport.vue.cjs"),N=require("../../../organizations/components/blocks/Socials.vue.cjs"),V=require("../../../icons/entities/IconEvents.vue.cjs"),f=require("../../../icons/entities/IconGroups.vue.cjs"),w=require("../../../icons/entities/IconCommunity.vue.cjs"),y=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),_=require("vue-router"),o=require("../../../auth/store/auth.cjs"),t=require("../../store/users.cjs"),E=require("../../../organizations/store/memberships.cjs");require("./Profile.vue2.cjs");const v={key:0,class:"for-transition w-100"},x={key:0,class:"flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"},q={key:1,_id:"dash",class:"pd-b-extra pd-thin w-100"},S={class:"flex-center pos-relative flex flex-column t-center w-100 mn-b-semi radius-medium pd-medium bg-grey"},U={class:"bg-black pd-thin radius-small"},M=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),P=["src"],R={class:"mn-b-thin"},$={key:4,class:"mn-b-thin t-main t-semi"},D={class:"mn-b-small p-medium"},I={class:"mn-b-medium flex-center flex-nowrap flex"},F={class:"t-semi mn-b-small"},O={key:6,class:"mn-t-small mn-b-thin"},L=e.createElementVNode("span",null,"Events",-1),j=e.createElementVNode("span",null,"Groups",-1),A=e.createElementVNode("span",null,"Posts",-1),W=e.createElementVNode("span",null,"Wallet",-1),z=e.createElementVNode("span",null," Settings ",-1),G=e.createElementVNode("span",{class:"t-red"}," Logout ",-1),T={__name:"Profile",setup(H){const a=_.useRoute(),n=_.useRouter(),u=e.ref(!1);e.onMounted(async()=>{await t.actions.read({_id:a.params._id,user:o.state.user._id}),u.value=!0});const m=({membership:i,status:r,target:s},c,k)=>{E.mutations.handleMembershipUpdate(t.state.current,i,r,s,c,k)};function b(){o.actions.logout(),n.push({name:"Sign In"})}return(i,r)=>u.value?(e.openBlock(),e.createElementBlock("div",v,[t.state.current.status==="removed"?(e.openBlock(),e.createElementBlock("div",x," Sorry, user has been removed. ")):(e.openBlock(),e.createElementBlock("div",q,[e.unref(a).params._id===o.state.user._id&&u.value?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,target:t.state.current,cta:!0,text_cta:"Fill Profile",text:"Profile completed at",class:"mn-b-medium"},null,8,["user","target"])):e.createCommentVNode("",!0),e.createElementVNode("section",S,[e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[e.createVNode(B.default,{user:o.state.user._id,type:"user",target:t.state.current._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[M]),_:1},8,["user","target"]),o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:0,user:o.state.user._id,type:"user",role:"blocked",target:t.state.current._id,status:t.state.current.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:r[0]||(r[0]=s=>m(s,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1})):e.createCommentVNode("",!0),e.unref(a).params._id===o.state.user._id?(e.openBlock(),e.createBlock(y.default,{key:1,onClick:r[1]||(r[1]=s=>i.$router.push({name:"User Edit Profile",params:{_id:o.state.user._id}})),class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.state.current.profile.photo&&t.state.current.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.state.current.profile.photo,class:"radius-extra bg-white mn-b-small object-fit-cover i-extra"},null,8,P)):(e.openBlock(),e.createBlock(C.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h3",R,e.toDisplayString(t.state.current.profile.name?t.state.current.profile.name:"Anonymous"),1),t.state.current.username?(e.openBlock(),e.createElementBlock("p",$," @"+e.toDisplayString(t.state.current.username?t.state.current.username:"Not specified"),1)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.state.current.profile.description?t.state.current.profile.description:"Bio not specified"),1),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.roles,(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-white",{"mn-r-thin":c!==t.state.current.roles.length-1}])},e.toDisplayString(s.icon)+" "+e.toDisplayString(s.name),3))),256))]),e.createElementVNode("p",F," ๐จโ๐จโ๐งโ๐ง "+e.toDisplayString(t.state.current.numberOfSubscribers)+" followers ",1),o.state.user._id&&e.unref(a).params._id&&e.unref(a).params._id!==o.state.user._id?(e.openBlock(),e.createBlock(p.default,{key:5,user:o.state.user._id,type:"user",role:"subscriber",target:t.state.current._id,status:t.state.current.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:r[2]||(r[2]=s=>m(s,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.state.current.socials).some(s=>s)?(e.openBlock(),e.createElementBlock("h4",O," Find Me in Socials ")):e.createCommentVNode("",!0),e.createVNode(N.default,{telegram:t.state.current.socials.telegram,facebook:t.state.current.socials.facebook,instagram:t.state.current.socials.instagram,twitter:t.state.current.socials.twitter,class:"mn-r-auto mn-l-auto"},null,8,["telegram","facebook","instagram","twitter"])]),e.createVNode(d.default,{class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[3]||(r[3]=s=>e.unref(n).push({name:"User Events",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(V.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),L]),_:1}),e.createVNode(l.default,{onClick:r[4]||(r[4]=s=>e.unref(n).push({name:"User Organizations",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),j]),_:1}),e.createVNode(l.default,{onClick:r[5]||(r[5]=s=>e.unref(n).push({name:"User Blogposts",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(w.default,{class:"i-semi",icon:!0}),A]),_:1})]),_:1}),i.APP_NAME==="Weeder"?(e.openBlock(),e.createBlock(d.default,{key:1,class:"mn-b-regular bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[6]||(r[6]=s=>e.unref(n).push({name:"User Wallet",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0}),W]),_:1})]),_:1})):e.createCommentVNode("",!0),o.state.user._id===e.unref(a).params._id?(e.openBlock(),e.createBlock(d.default,{key:2,class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(l.default,{onClick:r[7]||(r[7]=s=>e.unref(n).push({name:"User Edit Profile",params:{_id:e.unref(a).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[z]),_:1}),e.createVNode(l.default,{class:"cursor-pointer",onClick:r[8]||(r[8]=s=>b())},{default:e.withCtx(()=>[G]),_:1})]),_:1})):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}};exports.default=T;
|
@@ -4,7 +4,7 @@ import "../../../../components/Loader/Loader.vue.js";
|
|
4
4
|
import "../../../../components/Button/Button.vue.js";
|
5
5
|
import B from "../../../../components/Dropdown/Dropdown.vue.js";
|
6
6
|
import M from "../../../../components/Completion/Completion.vue.js";
|
7
|
-
import k from "../../../mobile/components/Menu/Menu.
|
7
|
+
import k from "../../../mobile/components/Menu/Menu.vue2.js";
|
8
8
|
import f from "../../../mobile/components/Menu/MenuItem.vue.js";
|
9
9
|
import v from "../../../organizations/components/elements/ButtonToggleMembership.vue.js";
|
10
10
|
import R from "../../../reports/components/sections/FormReport.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../store/wallet.store.cjs"),s=require("../../../../../../../node_modules/web3/lib/esm/web3.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_config.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_request_manager.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_subscriptions.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_context.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_batch_request.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/data_format_types.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/eth_types.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/web3_base_provider.cjs");require("../../../../../../../node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../../../node_modules/web3-eth-iban/lib/esm/iban.cjs");require("../../../../../../../node_modules/web3-validator/lib/esm/formats.cjs");require("../../../../../../../node_modules/web3-validator/lib/esm/default_validator.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_promi_event.cjs");require("../../../../../../../node_modules/setimmediate/setImmediate.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/web3_eth.cjs");require("../../../../../../../node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/schemas.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/constants.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../../../../../node_modules/web3-eth-contract/lib/esm/contract.cjs");require("../../../../../../../node_modules/web3-eth-personal/lib/esm/personal.cjs");require("../../../../../../../node_modules/web3-net/lib/esm/net.cjs");require("../../../../../../../node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../../node_modules/web3-providers-http/lib/esm/index.cjs");require("../../../../../../../node_modules/isomorphic-ws/browser.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/wallet.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/account.cjs");require("../../../../../../../node_modules/crc-32/crc32.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/common/types.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../../../../node_modules/@ethereumjs/rlp/dist/index.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../../../../node_modules/web3-eth-ens/lib/esm/ens.cjs");require("../../../../../../../node_modules/web3/lib/esm/web3_eip6963.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");require("vue-router");require("vue-i18n");require("../../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../store/wallet.store.cjs"),s=require("../../../../../../../node_modules/web3/lib/esm/web3.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_config.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_request_manager.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_subscriptions.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_context.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_batch_request.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/data_format_types.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/eth_types.cjs");require("../../../../../../../node_modules/web3-types/lib/esm/web3_base_provider.cjs");require("../../../../../../../node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../../../node_modules/web3-eth-iban/lib/esm/iban.cjs");require("../../../../../../../node_modules/web3-validator/lib/esm/formats.cjs");require("../../../../../../../node_modules/web3-validator/lib/esm/default_validator.cjs");require("../../../../../../../node_modules/web3-core/lib/esm/web3_promi_event.cjs");require("../../../../../../../node_modules/setimmediate/setImmediate.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/web3_eth.cjs");require("../../../../../../../node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/schemas.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/constants.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../../../../../node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../../../../../node_modules/web3-eth-contract/lib/esm/contract.cjs");require("../../../../../../../node_modules/web3-eth-personal/lib/esm/personal.cjs");require("../../../../../../../node_modules/web3-net/lib/esm/net.cjs");require("../../../../../../../node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs");require("../../../../../../../node_modules/web3-providers-http/lib/esm/index.cjs");require("../../../../../../../node_modules/isomorphic-ws/browser.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/wallet.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/account.cjs");require("../../../../../../../node_modules/crc-32/crc32.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/common/types.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../../../../node_modules/@ethereumjs/rlp/dist/index.cjs");require("../../../../../../../node_modules/web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../../../../node_modules/web3-eth-ens/lib/esm/ens.cjs");require("../../../../../../../node_modules/web3/lib/esm/web3_eip6963.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");require("vue-router");require("vue-i18n");require("../../../../../components/Popup/Popup.vue.cjs");require("../../../../../components/Loader/Loader.vue.cjs");require("../../../../../components/Button/Button.vue.cjs");require("../../../../../components/Select/Select.vue.cjs");require("../../../../reports/store/reports.cjs");require("../../../../../components/Tooltip/Tooltip.vue2.cjs");require("../../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../auth/store/auth.cjs");require("../../../../organizations/store/memberships.cjs");require("../../../../community/store/reactions.cjs");require("../../../../../components/Chips/Chips.vue2.cjs");const a={class:"pd-thin"},l={class:"bg-black t-white mn-b-thin radius-big pd-big"},i=e.createElementVNode("h1",{class:"mn-b-medium"},"Your Wallet",-1),c=e.createElementVNode("p",{class:"mn-b-semi t-transp p-big"}," Earn Weeder Tokens by purchasing our weed or contributing to the community. ",-1),u={key:0,class:"gap-thin flex-nowrap bg-black radius-extra t-white br-solid br-white-transp-10 br-1px flex-v-center flex pd-medium"},d={class:"flex-v-center flex-nowrap flex mn-r-auto"},m=e.createElementVNode("button",{class:"w-max bg-main t-medium button"},"Get More",-1),p={key:0,class:"mn-b-semi cols-2 gap-thin"},b=e.createElementVNode("div",{class:"w-100 pd-medium radius-medium t-center bg-grey"},[e.createElementVNode("h3",{class:"mn-b-small"},"Make first order and start earning Weeder Token"),e.createElementVNode("button",{class:"mn-l-auto mn-r-auto bg-main button"},"Explore marketplace")],-1),q={class:"w-100 pd-medium flex-center flex flex-column radius-medium t-center bg-grey"},_={key:0,class:"mn-b-small"},h={key:1,class:"w-100 mn-b-semi flex-column flex pd-big radius-big bg-main t-black"},k=e.createElementVNode("p",{class:"t-transp t-medium mn-b-thin"},"You own:",-1),f={class:"h1 mn-b-small"},g=e.createElementVNode("p",{class:"t-white p-big t-medium mn-b-semi"},"of all shares",-1),E={class:"flex-v-center mn-b-small flex-nowrap flex pd-small bg-black-transp-5 radius-extra"},w={key:0,class:"t-transp t-medium"},N=e.createElementVNode("span",{class:"uppercase p-small t-medium t-transp"},"Connected Metamask",-1),V=e.createElementVNode("br",null,null,-1),x={key:2,class:"mn-b-small"},y={class:"cols-3 gap-thin"},B={class:"radius-medium bg-grey"},v={class:"flex-nowrap br-b br-black-transp-10 br-solid flex pd-medium"},C={class:"t-semi mn-r-auto"},W={class:"pd-t-nano pd-b-nano pd-l-thin pd-r-thin bg-main flex flex-center radius-extra t-semi p-small"},D={class:"pd-medium"},S={class:"t-regular mn-b-thin"},M={__name:"Wallet",setup(R){return window.ethereum.on("accountsChanged",o=>{o.length<1&&(t.state.account=null)}),t.state.web3=new s.Web3(window.ethereum||"http://localhost:8080"),e.onMounted(()=>{t.actions.listRewards(),t.actions.tryReconnectWallet()}),(o,n)=>(e.openBlock(),e.createElementBlock("section",a,[e.createElementVNode("section",l,[i,c,e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",d,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(t.state).tokenBalance)+" WDT",1)]),m,e.createElementVNode("button",{class:"w-max bg-white t-black t-medium button",onClick:n[0]||(n[0]=(...r)=>e.unref(t.actions).collectRewards&&e.unref(t.actions).collectRewards(...r))},"Withdraw")])):e.createCommentVNode("",!0)]),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",p,[b,e.createElementVNode("div",q,[e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",_," Connect Metamask to withdrawal your earnings. ")),e.unref(t.state).account?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[1]||(n[1]=(...r)=>e.unref(t.actions).connectWallet&&e.unref(t.actions).connectWallet(...r)),class:"br-solid br-2px br-black-transp-10 t-black button"}," Connect Wallet "))])])),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("div",h,[k,e.createElementVNode("p",f,e.toDisplayString(e.unref(t.state).share)+"%",1),g,e.createElementVNode("div",E,[e.unref(t.state).account?(e.openBlock(),e.createElementBlock("p",w,[N,V,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.state).account),1)])):e.createCommentVNode("",!0),e.unref(t.state).account?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[2]||(n[2]=(...r)=>e.unref(t.actions).disconnectWallet&&e.unref(t.actions).disconnectWallet(...r)),class:"mn-l-auto bg-red button"}," Disconnect Wallet ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.unref(t.state).rewards.length>0?(e.openBlock(),e.createElementBlock("h2",x,"Latest Rewards ")):e.createCommentVNode("",!0),e.createElementVNode("section",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.state).rewards,r=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",v,[e.createElementVNode("p",C,e.toDisplayString(r.amount)+" WDT",1),e.createElementVNode("span",W,e.toDisplayString(r.type==="blogpost"?"Community Reward":r.type),1)]),e.createElementVNode("div",D,[e.createElementVNode("h4",S,e.toDisplayString(r.name),1)])]))),256))])]))}};exports.default=M;
|
@@ -46,12 +46,12 @@ import "../../../../../../../node_modules/web3-rpc-methods/lib/esm/net_rpc_metho
|
|
46
46
|
import "../../../../../../../node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
47
47
|
import "vue-router";
|
48
48
|
import "vue-i18n";
|
49
|
-
import "../../../../../components/Popup/Popup.
|
49
|
+
import "../../../../../components/Popup/Popup.vue.js";
|
50
50
|
import "../../../../../components/Loader/Loader.vue.js";
|
51
51
|
import "../../../../../components/Button/Button.vue.js";
|
52
|
-
import "../../../../../components/Select/Select.
|
52
|
+
import "../../../../../components/Select/Select.vue.js";
|
53
53
|
import "../../../../reports/store/reports.js";
|
54
|
-
import "../../../../../components/Tooltip/Tooltip.
|
54
|
+
import "../../../../../components/Tooltip/Tooltip.vue2.js";
|
55
55
|
import "../../../../../components/Dropdown/Dropdown.vue2.js";
|
56
56
|
import "../../../../auth/store/auth.js";
|
57
57
|
import "../../../../organizations/store/memberships.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./main-CXObXjv-.js");exports.Address=e.Address;exports.Breadcrumbs=e._sfc_main$9;exports.Button=e._sfc_main;exports.Checkbox=e.Checkbox;exports.Chips=e.Chips;exports.Countdown=e._sfc_main$10;exports.DatePicker=e._sfc_main$11;exports.Dropdown=e.Dropdown;exports.EmptyState=e._sfc_main$12;exports.Error=e._sfc_main$1;exports.Feed=e._sfc_main$13;exports.Field=e.Field;exports.FieldBig=e._sfc_main$14;exports.FieldPhone=e.FieldPhone;exports.FieldTags=e.FieldTags;exports.Loader=e.Loader;exports.LocationMarker=e.LocationMarker;exports.Magnifier=e.Magnifier;exports.Map=e.Map;exports.Popup=e._sfc_main$2;exports.Radio=e._sfc_main$3;exports.Select=e.Select;exports.SelectMulti=e.SelectMulti;exports.Shader=e.Shader;exports.Sidebar=e._sfc_main$15;exports.Slider=e._sfc_main$16;exports.Spoiler=e._sfc_main$4;exports.Status=e._sfc_main$17;exports.Tab=e._sfc_main$5;exports.Text=e._sfc_main$6;exports.Tooltip=e.Tooltip;exports.Upload=e.Upload;exports.UploadImage=e._sfc_main$7;exports.UploadImageMultiple=e._sfc_main$8;exports.default=e.main;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { A as e, k as o, _ as d, C as r, l as t, n as i, o as l, D as p, p as u, a as S, q as n, F as c, r as g, b as m, s as F, t as M, L as b, u as h, M as T, c as f, d as k, S as x, e as C, v as U, w, x as B, f as D, y as L, g as P, h as y, T as A, U as E, i as I, j, m as q } from "./main-
|
1
|
+
import { A as e, k as o, _ as d, C as r, l as t, n as i, o as l, D as p, p as u, a as S, q as n, F as c, r as g, b as m, s as F, t as M, L as b, u as h, M as T, c as f, d as k, S as x, e as C, v as U, w, x as B, f as D, y as L, g as P, h as y, T as A, U as E, i as I, j, m as q } from "./main-DPsHxX0l.mjs";
|
2
2
|
export {
|
3
3
|
e as Address,
|
4
4
|
o as Breadcrumbs,
|