@ozdao/prometheus-framework 0.2.189 → 0.2.190
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 +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationSelection/LocationSelection.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationSelection/LocationSelection.vue.js +96 -0
- package/dist/prometheus-framework/src/components/Sidebar/Sidebar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Sidebar/Sidebar.vue.js +74 -0
- package/dist/prometheus-framework/src/components/Status/Status.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Status/Status.vue.js +29 -0
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.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/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/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.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/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.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 +3 -3
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +21 -18
- 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/App.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +68 -42
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +197 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/pages/401.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/pages/401.vue.js +10 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/pages/404.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/pages/404.vue.js +10 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigation.vue.js +157 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Navigation.vue.js +95 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/Walkthrough.vue.js +126 -0
- 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/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- 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/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.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 +4 -4
- 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/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/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.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 +4 -4
- 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/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 +2 -2
- 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 +1 -1
- 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/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/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.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/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +4 -4
- 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/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 +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +5 -6
- package/src/modules/globals/globals.client.js +9 -4
- package/src/modules/globals/views/components/layouts/App.vue +21 -0
- package/src/modules/globals/views/components/layouts/Client.vue +25 -47
- package/src/modules/globals/views/components/partials/BottomNavigation.vue +0 -2
- package/src/modules/globals/views/components/partials/Header.vue +14 -10
- package/src/modules/globals/views/components/partials/Navigation.vue +4 -4
- package/src/modules/globals/views/components/sections/Walkthrough.vue +1 -1
@@ -21,38 +21,18 @@
|
|
21
21
|
</section>
|
22
22
|
</transition>
|
23
23
|
|
24
|
-
<transition name="moveFromTop" mode="out-in" appear>
|
25
|
-
<Header
|
26
|
-
v-if="!MOBILE_APP"
|
27
|
-
ref="header"
|
28
|
-
class="transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0"
|
29
|
-
:theme="headerTheme"
|
30
|
-
:class="{
|
31
|
-
'pos-l-70': store.globals.state.isOpenSidebar,
|
32
|
-
'pos-l-0': !store.globals.state.isOpenSidebar,
|
33
|
-
}"
|
34
|
-
/>
|
35
|
-
</transition>
|
36
|
-
|
37
|
-
<transition name="moveFromTop" mode="out-in" appear>
|
38
|
-
<NavigationBar
|
39
|
-
v-if="MOBILE_APP"
|
40
|
-
:style="MOBILE_APP === 'ios' ?'padding-top: 6rem;':''"
|
41
|
-
/>
|
42
|
-
</transition>
|
43
|
-
|
44
24
|
<transition name="moveFromTop" mode="out-in" appear>
|
45
25
|
<Sidebar
|
46
|
-
v-if="show &&
|
47
|
-
:stateSidebar="
|
26
|
+
v-if="show && globals.state.isOpenSidebar"
|
27
|
+
:stateSidebar="globals.state.isOpenSidebar"
|
48
28
|
@closeSidebar="() => {
|
49
|
-
|
29
|
+
globals.state.isOpenSidebar = !globals.state.isOpenSidebar
|
50
30
|
}"
|
51
31
|
|
52
32
|
class="transition-ease-in-out pos-absolute w-70 z-index-0 bg-light"
|
53
33
|
:class="{
|
54
|
-
'pos-l-70-negative': !
|
55
|
-
'pos-l-0':
|
34
|
+
'pos-l-70-negative': !globals.state.isOpenSidebar,
|
35
|
+
'pos-l-0': globals.state.isOpenSidebar
|
56
36
|
}"
|
57
37
|
>
|
58
38
|
<Navigation class="h3 pd-big cols-1" />
|
@@ -61,7 +41,7 @@
|
|
61
41
|
|
62
42
|
<Popup
|
63
43
|
@close-popup="closeLocationPopup"
|
64
|
-
:isPopupOpen="
|
44
|
+
:isPopupOpen="globals.state.isOpenLocationPopup"
|
65
45
|
class="bg-white pd-semi w-m-33r radius-big"
|
66
46
|
>
|
67
47
|
<LocationSelection />
|
@@ -72,22 +52,22 @@
|
|
72
52
|
id="screen"
|
73
53
|
ref="screen"
|
74
54
|
@scroll="handleScroll"
|
75
|
-
@click="
|
55
|
+
@click="globals.state.isOpenSidebar
|
76
56
|
?
|
77
|
-
a =>
|
57
|
+
a => globals.state.isOpenSidebar = false
|
78
58
|
:
|
79
59
|
a => {console.log('not succes')}"
|
80
60
|
class="transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll"
|
81
61
|
:class="{
|
82
|
-
'pos-l-70':
|
83
|
-
'pos-l-0': !
|
62
|
+
'pos-l-70': globals.state.isOpenSidebar,
|
63
|
+
'pos-l-0': !globals.state.isOpenSidebar
|
84
64
|
}"
|
85
65
|
>
|
86
66
|
<ShopCart />
|
87
67
|
|
88
68
|
<Status
|
89
|
-
v-if="
|
90
|
-
:data="
|
69
|
+
v-if="globals.state.error.show"
|
70
|
+
:data="globals.state.error"
|
91
71
|
class="z-index-7"
|
92
72
|
/>
|
93
73
|
|
@@ -125,7 +105,7 @@
|
|
125
105
|
// Router
|
126
106
|
import { useRoute, useRouter } from 'vue-router'
|
127
107
|
// Store
|
128
|
-
import
|
108
|
+
import * as globals from '@pf/src/modules/globals/views/store/globals'
|
129
109
|
// Partials
|
130
110
|
import Loader from '@pf/src/components/Loader/Loader.vue'
|
131
111
|
import Status from '@pf/src/components/Status/Status.vue'
|
@@ -134,10 +114,8 @@
|
|
134
114
|
import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'
|
135
115
|
import LocationSelection from '@pf/src/components/LocationSelection/LocationSelection.vue'
|
136
116
|
|
137
|
-
import Header from '@pf/src/modules/globals/views/components/partials/Header.vue'
|
138
117
|
import Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'
|
139
118
|
import Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'
|
140
|
-
import NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue';
|
141
119
|
import BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue';
|
142
120
|
|
143
121
|
import ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'
|
@@ -171,7 +149,6 @@
|
|
171
149
|
/////////////////////////////
|
172
150
|
const route = useRoute()
|
173
151
|
const router = useRouter()
|
174
|
-
const store = useStore();
|
175
152
|
// State
|
176
153
|
let show = ref(false)
|
177
154
|
// Preloader
|
@@ -179,6 +156,16 @@
|
|
179
156
|
const screen = ref(null)
|
180
157
|
// Ref Code
|
181
158
|
const referalCode = ref(route.query.referalCode);
|
159
|
+
|
160
|
+
/////////////////////////////
|
161
|
+
// Methods
|
162
|
+
/////////////////////////////
|
163
|
+
function closeLocationPopup() {
|
164
|
+
globals.state.isOpenLocationPopup = false;
|
165
|
+
}
|
166
|
+
function scrollTop(){
|
167
|
+
document.getElementById('app').scrollIntoView();
|
168
|
+
}
|
182
169
|
// Scrolling header
|
183
170
|
const scrollOffset = ref(0)
|
184
171
|
let isScrolled = false
|
@@ -191,15 +178,6 @@
|
|
191
178
|
return route.meta.header_theme || 'light'
|
192
179
|
}
|
193
180
|
})
|
194
|
-
/////////////////////////////
|
195
|
-
// Methods
|
196
|
-
/////////////////////////////
|
197
|
-
function closeLocationPopup() {
|
198
|
-
store.globals.state.isOpenLocationPopup = false;
|
199
|
-
}
|
200
|
-
function scrollTop(){
|
201
|
-
document.getElementById('app').scrollIntoView();
|
202
|
-
}
|
203
181
|
const handleScroll = () => {
|
204
182
|
scrollOffset.value = event.target.scrollTop
|
205
183
|
|
@@ -259,9 +237,9 @@
|
|
259
237
|
const savedPosition = localStorage.getItem('position');
|
260
238
|
|
261
239
|
if (savedPosition) {
|
262
|
-
|
240
|
+
globals.state.position = JSON.parse(savedPosition);
|
263
241
|
} else {
|
264
|
-
|
242
|
+
globals.state.isOpenLocationPopup = true;
|
265
243
|
}
|
266
244
|
|
267
245
|
if (referalCode.value) {
|
@@ -63,12 +63,10 @@
|
|
63
63
|
/////////////////////////////
|
64
64
|
import { ref,computed } from 'vue';
|
65
65
|
import { useRouter, useRoute } from 'vue-router';
|
66
|
-
import { useStore } from '@/store';
|
67
66
|
|
68
67
|
/////////////////////////////
|
69
68
|
// CREATED
|
70
69
|
/////////////////////////////
|
71
|
-
const store = useStore();
|
72
70
|
const router = useRouter();
|
73
71
|
const route = useRoute();
|
74
72
|
const navRef = ref(null);
|
@@ -12,7 +12,6 @@
|
|
12
12
|
import Select from '@pf/src/components/Select/Select.vue'
|
13
13
|
import Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'
|
14
14
|
// Icons module
|
15
|
-
import Logotype from '@pf/src/modules/icons/logos/Logotype.vue'
|
16
15
|
import IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'
|
17
16
|
import IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'
|
18
17
|
|
@@ -21,7 +20,10 @@
|
|
21
20
|
theme: {
|
22
21
|
type: String,
|
23
22
|
default: "light"
|
24
|
-
}
|
23
|
+
},
|
24
|
+
logotype: {
|
25
|
+
type: Object
|
26
|
+
}
|
25
27
|
});
|
26
28
|
// Accessing state
|
27
29
|
const router = useRouter()
|
@@ -82,14 +84,16 @@
|
|
82
84
|
</button>
|
83
85
|
|
84
86
|
<!-- LOGO -->
|
85
|
-
<
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
87
|
+
<component
|
88
|
+
v-if="props.logotype"
|
89
|
+
:is="props.logotype"
|
90
|
+
@click="router.push({ path: '/' })"
|
91
|
+
:theme="theme"
|
92
|
+
class="
|
93
|
+
h-2r
|
94
|
+
w-auto
|
95
|
+
cursor-pointer
|
96
|
+
"
|
93
97
|
/>
|
94
98
|
|
95
99
|
<button
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<ul class="t-semi gap-small flex-nowrap flex-center flex">
|
3
3
|
<li>
|
4
4
|
<router-link
|
5
|
-
:to="getMarketplaceLink(null,
|
5
|
+
:to="getMarketplaceLink(null,globals.state.position?.country,globals.state.position?.state,globals.state.position?.city)"
|
6
6
|
class="font-second"
|
7
7
|
>
|
8
8
|
{{ t('HEADER.MENU.MARKETPLACE') }}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<li>
|
12
12
|
<router-link
|
13
13
|
class="font-second"
|
14
|
-
:to="getSpotsLink(
|
14
|
+
:to="getSpotsLink(globals.state.position?.country,globals.state.position?.state,globals.state.position?.city)"
|
15
15
|
>
|
16
16
|
{{ t('HEADER.MENU.DISPENSARIES') }}
|
17
17
|
</router-link>
|
@@ -61,7 +61,8 @@
|
|
61
61
|
import { computed, } from 'vue';
|
62
62
|
import { useRoute,useRouter } from 'vue-router'
|
63
63
|
import { useI18n } from 'vue-i18n'
|
64
|
-
|
64
|
+
|
65
|
+
import * as globals from '@pf/src/modules/globals/views/store/globals'
|
65
66
|
|
66
67
|
/////////////////////////////
|
67
68
|
// HELPERS
|
@@ -71,7 +72,6 @@ import { useStore } from '@/store';
|
|
71
72
|
// CREATED
|
72
73
|
/////////////////////////////
|
73
74
|
const route = useRoute()
|
74
|
-
const store = useStore()
|
75
75
|
// Compoted Vars
|
76
76
|
const text = {
|
77
77
|
messages: {
|