@ozdao/prometheus-framework 0.2.203 → 0.2.204
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +24 -15
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +24 -15
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +51 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +37 -22
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +9 -8
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +9 -8
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +9 -8
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +9 -8
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +7 -6
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +7 -6
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.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/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +4 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +4 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +27 -27
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +28 -28
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +109 -102
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +110 -103
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs +85 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +85 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
- 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/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +5 -6
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +89 -95
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +90 -96
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +73 -26
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +82 -35
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +8 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +8 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.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 +1 -1
- package/dist/prometheus-framework.cjs.js +14 -14
- package/dist/prometheus-framework.es.js +2830 -2823
- package/dist/style.css +68 -0
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +23 -10
- package/src/components/Tab/Tab.vue +10 -7
- package/src/modules/auth/views/components/pages/ResetPassword.vue +5 -4
- package/src/modules/auth/views/components/pages/SignIn.vue +5 -3
- package/src/modules/auth/views/components/pages/SignUp.vue +3 -2
- package/src/modules/globals/globals.client.js +5 -2
- package/src/modules/globals/views/components/layouts/Client.vue +99 -19
- package/src/modules/globals/views/components/partials/Header.vue +18 -29
- package/src/modules/globals/views/components/partials/Sidebar.vue +0 -2
- package/src/modules/marketplace/components/layouts/Marketplace.vue +16 -9
- package/src/modules/orders/components/partials/ShopCart.vue +3 -3
- package/src/modules/organizations/components/pages/Organization.vue +9 -6
- package/src/modules/organizations/components/sections/DetailsTab.vue +132 -133
- package/src/modules/products/components/pages/Products.vue +89 -10
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/SectionProduct.vue +4 -0
@@ -7,8 +7,10 @@
|
|
7
7
|
<DetailsTab
|
8
8
|
:organization="organization.state.current"
|
9
9
|
:user="auth.state.user"
|
10
|
-
class="mn-b-
|
11
|
-
|
10
|
+
class="mn-b-thin"
|
11
|
+
>
|
12
|
+
|
13
|
+
</DetailsTab>
|
12
14
|
|
13
15
|
<Tab
|
14
16
|
v-model:selected="tabOrganization"
|
@@ -18,7 +20,7 @@
|
|
18
20
|
{ name: 'Events', value: 'events' },
|
19
21
|
{ name: 'Spots', value: 'spots' }
|
20
22
|
]"
|
21
|
-
class="mn-b-
|
23
|
+
class="mn-b-thin o-hidden h5 radius-small bg-light"
|
22
24
|
/>
|
23
25
|
|
24
26
|
<div class="pos-relative">
|
@@ -205,6 +207,8 @@
|
|
205
207
|
let tab = route.query.tab ? route.query.tab : 'products';
|
206
208
|
|
207
209
|
const organizationData = ref(null)
|
210
|
+
const tabOrganization = ref(tab)
|
211
|
+
// route.query.tab = tabOrganization.value
|
208
212
|
|
209
213
|
onMounted(async () => {
|
210
214
|
|
@@ -216,12 +220,11 @@
|
|
216
220
|
await memberships.actions.read({target: route.params._id})
|
217
221
|
})
|
218
222
|
|
219
|
-
const tabOrganization = ref(tab)
|
220
223
|
|
221
|
-
|
224
|
+
|
222
225
|
|
223
226
|
// watch(tabOrganization, (newValue) => {
|
224
|
-
// router.
|
227
|
+
// router.query.tab = newValue
|
225
228
|
// });
|
226
229
|
</script>
|
227
230
|
|
@@ -1,140 +1,139 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
<section class="flex-center flex flex-column t-center pd-medium radius-big bg-light">
|
3
|
+
|
4
|
+
<Dropdown
|
5
|
+
v-if="user._id !== organization.owner"
|
6
|
+
:label="{ component: IconEllipsis, class: 'i-regular t-transp' }"
|
7
|
+
:align="'right'"
|
8
|
+
class="cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra "
|
9
|
+
>
|
10
|
+
<section
|
11
|
+
class="bg-black pd-thin radius-small"
|
10
12
|
>
|
11
|
-
<
|
12
|
-
|
13
|
+
<FormReport
|
14
|
+
:user="user._id"
|
15
|
+
:type="'organization'"
|
16
|
+
:target="organization._id"
|
17
|
+
:text="'Report'"
|
18
|
+
class="w-100"
|
13
19
|
>
|
14
|
-
<
|
15
|
-
|
16
|
-
:type="'organization'"
|
17
|
-
:target="organization._id"
|
18
|
-
:text="'Report'"
|
19
|
-
class="w-100"
|
20
|
+
<button
|
21
|
+
class="w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"
|
20
22
|
>
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
</transition>
|
23
|
+
Report
|
24
|
+
</button>
|
25
|
+
</FormReport>
|
26
|
+
|
27
|
+
<ButtonToggleMembership
|
28
|
+
v-if="user._id && user._id !== organization.owner"
|
29
|
+
:user="user._id"
|
30
|
+
:type="'organization'"
|
31
|
+
:role="'blocked'"
|
32
|
+
:target="organization._id"
|
33
|
+
:status="organization.isBlocked"
|
34
|
+
:text="{create: 'Block', remove: 'Unblock'}"
|
35
|
+
@updateMembership="event => handleMembershipUpdate(event, 'isBlocked')"
|
36
|
+
class="t-white w-100 mn-t-thin bg-red"
|
37
|
+
/>
|
38
|
+
</section>
|
39
|
+
</Dropdown>
|
40
|
+
|
41
|
+
<IconEdit
|
42
|
+
v-if="user._id === organization.owner"
|
43
|
+
@click="$router.push({
|
44
|
+
name: 'Organization Edit',
|
45
|
+
params: {
|
46
|
+
_id: organization._id
|
47
|
+
}
|
48
|
+
})"
|
49
|
+
class="pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"
|
50
|
+
/>
|
51
|
+
|
52
|
+
<img loading="lazy"
|
53
|
+
v-if="organization.profile.photo"
|
54
|
+
:src="(FILE_SERVER_URL || '') + organization.profile.photo"
|
55
|
+
class="radius-big bg-light flex-center flex mn-b-small w-8r"
|
56
|
+
/>
|
57
|
+
|
58
|
+
<PlaceholderOrganizationPic
|
59
|
+
v-else
|
60
|
+
class="radius-medium mn-b-small i-extra"
|
61
|
+
/>
|
62
|
+
|
63
|
+
<h1
|
64
|
+
class="mn-b-thin"
|
65
|
+
>
|
66
|
+
{{ organization.profile.name }}
|
67
|
+
</h1>
|
68
|
+
|
69
|
+
<div class="flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max">
|
70
|
+
<IconFollowing class="i-medium mn-r-micro t-transp"/>
|
71
|
+
|
72
|
+
<p class="mn-t-thin p-medium t-medium uppercase mn-b-thin">{{organization.numberOfSubscribers}} followers</p>
|
73
|
+
|
74
|
+
<ButtonToggleMembership
|
75
|
+
v-if="
|
76
|
+
user._id
|
77
|
+
&& route.params._id
|
78
|
+
&& route.params._id !== user._id
|
79
|
+
&& organization.owner !== user._id
|
80
|
+
"
|
81
|
+
:user="user._id"
|
82
|
+
:type="'organization'"
|
83
|
+
:role="'subscriber'"
|
84
|
+
:target="organization._id"
|
85
|
+
:status="organization.isSubscriber"
|
86
|
+
:text="{create: '+', remove: '-'}"
|
87
|
+
@updateMembership="event => handleMembershipUpdate(event, 'isSubscriber', 'numberOfSubscribers')"
|
88
|
+
class=" mn-l-thin p-medium t-medium radius-extra i-semi"
|
89
|
+
/>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<p class="w-max-50r mn-t-regular mn-b-medium p-big">
|
93
|
+
<Text :text="organization.profile.description || ''" :showToggleText="true" :maxLen="320" />
|
94
|
+
</p>
|
95
|
+
|
96
|
+
<Chips
|
97
|
+
v-if="organization.profile?.tags?.length > 0"
|
98
|
+
:chips="organization.profile.tags"
|
99
|
+
class="p-medium"
|
100
|
+
/>
|
101
|
+
|
102
|
+
|
103
|
+
<h4
|
104
|
+
v-if="Object.values(organization.socials).some(value => value)"
|
105
|
+
class="mn-t-small mn-b-thin"
|
106
|
+
>
|
107
|
+
Find us in socials
|
108
|
+
</h4>
|
109
|
+
|
110
|
+
<Socials
|
111
|
+
:telegram="organization.socials.telegram"
|
112
|
+
:facebook="organization.socials.facebook"
|
113
|
+
:instagram="organization.socials.instagram"
|
114
|
+
:twitter="organization.socials.twitter"
|
115
|
+
:youtube="organization.socials.youtube"
|
116
|
+
/>
|
117
|
+
<slot></slot>
|
118
|
+
</section>
|
119
|
+
|
120
|
+
<!-- <h3 class="mn-b-small">Rating</h3>
|
121
|
+
<Rating
|
122
|
+
:rating="organization.rating.median"
|
123
|
+
:amount="organization.rating.amount"
|
124
|
+
class="pd-medium mn-b-thin radius-big bg-light"
|
125
|
+
/>
|
126
|
+
|
127
|
+
<h3 class="mn-b-small">Contacts</h3>
|
128
|
+
<Contacts
|
129
|
+
:website="organization.contacts.website"
|
130
|
+
:phone="organization.contacts.phone"
|
131
|
+
:email="organization.contacts.email"
|
132
|
+
:address="organization.contacts.address"
|
133
|
+
class="w-100 pd-medium radius-big bg-light"
|
134
|
+
/> -->
|
135
|
+
|
136
|
+
|
138
137
|
</template>
|
139
138
|
|
140
139
|
<script setup>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div
|
2
|
+
<div>
|
3
3
|
<header
|
4
4
|
v-if="route.name !== 'Organization'"
|
5
5
|
class="mn-b-medium flex-v-center flex-nowrap flex"
|
@@ -28,17 +28,22 @@
|
|
28
28
|
|
29
29
|
<div class="cols-2-1_3 bg-light pd-thin radius-big gap-thin">
|
30
30
|
|
31
|
-
<
|
31
|
+
<BlockFilter
|
32
|
+
v-model:filter="marketplace.state.filter"
|
33
|
+
:options="marketplace.state.filter.options"
|
34
|
+
class="h-100 w-100 desktop-only"
|
35
|
+
/>
|
32
36
|
|
33
|
-
/>
|
34
37
|
|
35
|
-
<div>
|
36
|
-
<BlockSearch
|
38
|
+
<div class="rows-1">
|
39
|
+
<!-- <BlockSearch
|
37
40
|
@search="updateSearch"
|
38
41
|
placeholder="Enter product name"
|
39
42
|
class="bg-white mn-b-thin"
|
40
|
-
/>
|
43
|
+
/> -->
|
41
44
|
<Feed
|
45
|
+
v-model:filter="marketplace.state.filter"
|
46
|
+
:search="true"
|
42
47
|
:states="{
|
43
48
|
empty: {
|
44
49
|
title: 'No Products Found',
|
@@ -55,7 +60,7 @@
|
|
55
60
|
categories: route.query.categories,
|
56
61
|
prices: route.query.prices,
|
57
62
|
delivery: route.query.delivery,
|
58
|
-
search: route.query.search,
|
63
|
+
// search: route.query.search,
|
59
64
|
...(tabProducts !== 'all' && { status: tabProducts })
|
60
65
|
// user: user
|
61
66
|
}"
|
@@ -96,12 +101,15 @@
|
|
96
101
|
|
97
102
|
import FilterProducts from '@pf/src/modules/products/components/sections/FilterProducts.vue'
|
98
103
|
import BlockSearch from '@pf/src/modules/globals/views/components/blocks/BlockSearch.vue'
|
104
|
+
import BlockFilter from '@pf/src/modules/globals/views/components/blocks/BlockFilter.vue'
|
99
105
|
|
100
106
|
import CardProduct from '@pf/src/modules/products/components/blocks/CardProduct.vue'
|
101
107
|
|
102
108
|
// Accessing router and store
|
103
109
|
import * as auth from '@pf/src/modules/auth/views/store/auth';
|
104
110
|
import * as products from '@pf/src/modules/products/store/products';
|
111
|
+
import * as marketplace from '@pf/src/modules/marketplace/store/marketplace';
|
112
|
+
import * as categories from '@pf/src/modules/products/store/categories';
|
105
113
|
|
106
114
|
const route = useRoute()
|
107
115
|
const router = useRouter()
|
@@ -109,18 +117,89 @@
|
|
109
117
|
// Tab logic
|
110
118
|
const tabProducts = ref(route.query.tabProducts ? route.query.tabProducts : 'all')
|
111
119
|
|
112
|
-
route.query.tabProducts = tabProducts.value
|
120
|
+
if (route.name !== 'Organization') route.query.tabProducts = tabProducts.value
|
121
|
+
|
122
|
+
if (route.query) {
|
123
|
+
const query = route.query;
|
124
|
+
|
125
|
+
marketplace.state.filter.selected.categories = query.categories ? query.categories.split(',') : [];
|
126
|
+
marketplace.state.filter.selected.prices = query.prices ? query.prices.split(',') : [];
|
127
|
+
marketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(',') : [];
|
128
|
+
}
|
129
|
+
|
113
130
|
|
114
131
|
watch(tabProducts, (newValue) => {
|
115
|
-
router.replace({ query: { ...route.query, tabProducts: newValue } });
|
132
|
+
if (route.name !== 'Organization') router.replace({ query: { ...route.query, tabProducts: newValue } });
|
116
133
|
});
|
134
|
+
|
135
|
+
onMounted(async () => {
|
136
|
+
let categoriesFilter = await categories.actions.fetchCategories();
|
137
|
+
|
138
|
+
categoriesFilter = categoriesFilter.map(category => ({
|
139
|
+
value: category.url,
|
140
|
+
label: category.name
|
141
|
+
}));
|
142
|
+
|
143
|
+
const index = marketplace.state.filter.options.findIndex(option => option.value === 'categories');
|
144
|
+
|
145
|
+
const categoryOption = {
|
146
|
+
title: 'Categories',
|
147
|
+
value: 'categories',
|
148
|
+
options: categoriesFilter
|
149
|
+
};
|
150
|
+
|
151
|
+
if (index !== -1) {
|
152
|
+
marketplace.state.filter.options[index] = categoryOption;
|
153
|
+
} else {
|
154
|
+
marketplace.state.filter.options.unshift(categoryOption);
|
155
|
+
}
|
156
|
+
})
|
157
|
+
|
158
|
+
watch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {
|
159
|
+
let query = { ...route.query}
|
160
|
+
|
161
|
+
query.sortParam = newSortValue.param
|
162
|
+
query.sortOrder = newSortValue.order
|
163
|
+
|
164
|
+
// replace the current route
|
165
|
+
router.replace({ query });
|
166
|
+
}, { deep: true });
|
167
|
+
|
168
|
+
|
169
|
+
watch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
|
170
|
+
// Переводим фильтр в формат query
|
171
|
+
const query = { ...route.query };
|
172
|
+
|
173
|
+
// Удаляем старые значения фильтра из query
|
174
|
+
Object.keys(oldFilterValue).forEach(key => {
|
175
|
+
if (query[key]) {
|
176
|
+
delete query[key];
|
177
|
+
}
|
178
|
+
});
|
179
|
+
|
180
|
+
// Добавляем новые значения фильтра в query
|
181
|
+
const newQueryValues = Object.fromEntries(
|
182
|
+
Object.entries(newFilterValue)
|
183
|
+
.filter(([key, value]) => Array.isArray(value) && value.length > 0)
|
184
|
+
.map(([key, value]) => [key, value.join(',')])
|
185
|
+
);
|
186
|
+
|
187
|
+
delete query.options;
|
188
|
+
Object.assign(query, newQueryValues);
|
189
|
+
|
190
|
+
// Обновляем маршрут с новым query
|
191
|
+
router.replace({ query });
|
192
|
+
}, { deep: true })
|
193
|
+
|
194
|
+
|
195
|
+
|
117
196
|
|
118
197
|
function updateSearch(search) {
|
119
198
|
let query = { ...route.query}
|
120
199
|
|
121
200
|
query.search = search
|
122
201
|
|
123
|
-
router.
|
202
|
+
router.replace({ query });
|
124
203
|
}
|
125
204
|
</script>
|
126
205
|
|
@@ -144,7 +144,7 @@ watch(() => marketplace.state.filter, (newFilterValue, oldFilterValue) => {
|
|
144
144
|
Object.assign(query, newQueryValues);
|
145
145
|
|
146
146
|
// Обновляем маршрут с новым query
|
147
|
-
router.
|
147
|
+
router.repalce({ query });
|
148
148
|
}, { deep: true })
|
149
149
|
|
150
150
|
onMounted(async () => {
|
@@ -85,6 +85,7 @@
|
|
85
85
|
<!-- Actions -->
|
86
86
|
<div class="max-w-33rem mobile-w-100 t-white gap-small cols-2">
|
87
87
|
<Button
|
88
|
+
v-if="product.quantity > 0"
|
88
89
|
:submit="a => addToCart(product)"
|
89
90
|
:disabled="validateToCard(product)"
|
90
91
|
:text="{
|
@@ -95,6 +96,9 @@
|
|
95
96
|
>
|
96
97
|
{{ t('addtoorder') }}
|
97
98
|
</Button>
|
99
|
+
<div v-else class="flex-center flex uppercase radius-big t-black w-max pd-small t-medium bg-grey h-3r w-100 mn-r-smallbutton">
|
100
|
+
Out of Stock
|
101
|
+
</div>
|
98
102
|
</div>
|
99
103
|
</div>
|
100
104
|
</div>
|