@ozdao/prometheus-framework 0.2.190 → 0.2.191

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/dist/builder.js +1 -1
  2. package/dist/builder.mjs +1 -1
  3. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  5. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  7. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  9. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  11. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  13. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  15. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  17. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/globals/globals.client.js +1 -1
  19. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  21. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +80 -49
  23. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +94 -125
  25. package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +1 -0
  26. package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +96 -0
  27. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  31. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  35. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  39. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  41. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  45. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  49. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  53. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  57. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  67. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  73. package/dist/style.css +1 -1
  74. package/package.json +1 -1
  75. package/src/builder/webpack/webpack.config.base.js +1 -1
  76. package/src/components/index.js +0 -1
  77. package/src/main.js +0 -3
  78. package/src/modules/globals/globals.client.js +3 -3
  79. package/src/modules/globals/views/components/layouts/App.vue +44 -6
  80. package/src/modules/globals/views/components/layouts/Client.vue +2 -47
  81. package/src/modules/globals/views/components/sections/Walkthrough.vue +5 -5
  82. /package/src/{components/LocationSelection → modules/globals/views/components/partials}/LocationSelection.vue +0 -0
@@ -1,4 +1,22 @@
1
1
  <template>
2
+ <transition
3
+ name="scaleTransition"
4
+ mode="out-in"
5
+ >
6
+ <section
7
+ v-if="FirstUse"
8
+ class="w-100 h-100"
9
+ >
10
+ <router-view
11
+ name="Walkthrough"
12
+ @updateFirstUse="updateFirstUse"
13
+ :slides="[1,2,3]"
14
+ class="tab"
15
+ >
16
+ </router-view>
17
+ </section>
18
+ </transition>
19
+
2
20
  <transition name="moveFromTop" mode="out-in" appear>
3
21
  <router-view
4
22
  v-if="!MOBILE_APP"
@@ -21,10 +39,10 @@
21
39
  </template>
22
40
 
23
41
  <script setup>
42
+ import { computed, ref, onMounted, defineAsyncComponent } from 'vue'
24
43
  import { useHead } from '@unhead/vue'
25
44
  import { useI18n } from 'vue-i18n'
26
45
  import { useRoute } from 'vue-router'
27
- import { computed } from 'vue'
28
46
 
29
47
  import * as globals from '@pf/src/modules/globals/views/store/globals'
30
48
 
@@ -37,7 +55,12 @@
37
55
  type: Object
38
56
  }
39
57
  })
40
-
58
+ /////////////////////////////
59
+ // ONBOARDING
60
+ /////////////////////////////
61
+ /////////////////////////////
62
+ // META
63
+ /////////////////////////////
41
64
  const { t, locale } = useI18n({
42
65
  messages: props.messages
43
66
  })
@@ -49,11 +72,9 @@
49
72
  const languages = ['en', 'ru'];
50
73
  const base_url = 'https://weeder.delivery';
51
74
 
52
-
53
75
  function removeTrailingSlash(url) {
54
76
  return url.endsWith('/') ? url.slice(0, -1) : url;
55
77
  }
56
-
57
78
  // Используйте эту функцию, чтобы удалить слэш в конце URL
58
79
  const metadata = computed(() => {return {
59
80
  title: t('meta.title'),
@@ -83,8 +104,6 @@
83
104
  return languages.map(lang => {
84
105
  let newPath = route.path;
85
106
 
86
- console.log(route)
87
-
88
107
  if (route.params.locale) {
89
108
  newPath = newPath.replace(`/${route.params.locale}`, `/${lang}`);
90
109
  } else {
@@ -101,4 +120,23 @@
101
120
  });
102
121
 
103
122
  useHead(metadata.value)
123
+ /////////////////////////////
124
+ // FIRST USE
125
+ /////////////////////////////
126
+ const FirstUse = ref(false);
127
+
128
+ import { Preferences } from '@capacitor/preferences';
129
+
130
+ async function getFirstUse() {
131
+ const ret = await Preferences.get({ key: 'first-use' });
132
+ FirstUse.value = ret.value ? JSON.parse(ret.value) : true;
133
+ }
134
+
135
+ const updateFirstUse = (value) => {
136
+ FirstUse.value = value;
137
+ }
138
+
139
+ onMounted(async () => {
140
+ await getFirstUse()
141
+ });
104
142
  </script>
@@ -4,23 +4,6 @@
4
4
  <Loader v-if="!page" class="pos-fixed"/>
5
5
  </transition>
6
6
 
7
- <transition
8
- name="scaleTransition"
9
- mode="out-in"
10
- >
11
- <section
12
- v-if="MOBILE_APP && FirstUse"
13
- class="w-100"
14
- >
15
- <component
16
- :is="Walkthrough"
17
- @updateFirstUse="updateFirstUse"
18
- :slides="[1,2,3]"
19
- class="tab"
20
- />
21
- </section>
22
- </transition>
23
-
24
7
  <transition name="moveFromTop" mode="out-in" appear>
25
8
  <Sidebar
26
9
  v-if="show && globals.state.isOpenSidebar"
@@ -48,7 +31,6 @@
48
31
  </Popup>
49
32
 
50
33
  <section
51
- v-if="((!FirstUse && MOBILE_APP) || !MOBILE_APP)"
52
34
  id="screen"
53
35
  ref="screen"
54
36
  @scroll="handleScroll"
@@ -101,7 +83,7 @@
101
83
 
102
84
 
103
85
  <script setup>
104
- import { computed, ref, onMounted, provide, inject, onUnmounted, defineAsyncComponent, onServerPrefetch, onBeforeMount } from 'vue'
86
+ import { computed, ref, onMounted, provide, inject, onUnmounted, onServerPrefetch, onBeforeMount } from 'vue'
105
87
  // Router
106
88
  import { useRoute, useRouter } from 'vue-router'
107
89
  // Store
@@ -112,38 +94,13 @@
112
94
  import Sidebar from '@pf/src/components/Sidebar/Sidebar.vue'
113
95
  import Popup from '@pf/src/components/Popup/Popup.vue'
114
96
  import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'
115
- import LocationSelection from '@pf/src/components/LocationSelection/LocationSelection.vue'
97
+ import LocationSelection from '@pf/src/modules/globals/views/components/partials/LocationSelection.vue'
116
98
 
117
99
  import Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'
118
100
  import Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'
119
101
  import BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue';
120
102
 
121
103
  import ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'
122
- // Walkthrough
123
- let Walkthrough;
124
-
125
- if (__MOBILE_APP__) {
126
- Walkthrough = defineAsyncComponent(() =>
127
- import('@pf/src/modules/globals/views/components/sections/Walkthrough.vue').then(_ => _.default)
128
- );
129
- } else {
130
- Walkthrough = null;
131
- }
132
- /////////////////////////////
133
- // FIRST USE
134
- /////////////////////////////
135
- const FirstUse = ref(false);
136
-
137
- import { Preferences } from '@capacitor/preferences';
138
-
139
- async function getFirstUse() {
140
- const ret = await Preferences.get({ key: 'first-use' });
141
- FirstUse.value = ret.value ? JSON.parse(ret.value) : true;
142
- }
143
-
144
- const updateFirstUse = (value) => {
145
- FirstUse.value = value;
146
- }
147
104
  /////////////////////////////
148
105
  // CREATED
149
106
  /////////////////////////////
@@ -156,7 +113,6 @@
156
113
  const screen = ref(null)
157
114
  // Ref Code
158
115
  const referalCode = ref(route.query.referalCode);
159
-
160
116
  /////////////////////////////
161
117
  // Methods
162
118
  /////////////////////////////
@@ -220,7 +176,6 @@
220
176
  // }
221
177
 
222
178
  onMounted(async () => {
223
- await getFirstUse()
224
179
 
225
180
  if ('serviceWorker' in navigator) {
226
181
  window.addEventListener('load', () => {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="pos-fixed pos-t-0 pos-l-0 w-100 h-100vh z-index-6 bg-white flex embla" ref="emblaNode">
2
+ <div class="pos-fixed pos-t-0 pos-l-0 w-100 h-100vh z-index-6 bg-light flex embla" ref="emblaNode">
3
3
  <div class="w-100 embla__container z-index-1">
4
4
  <div
5
5
  v-for="(slide, index) in walkthrough"
@@ -8,7 +8,7 @@
8
8
  :style="{ opacity: tweenSlides.length ? tweenSlides[index] : undefined, transform: tweenSlides[index] ? `scale(${tweenSlides[index]})` : '' }"
9
9
  >
10
10
  <img class="w-100" :src="require(`@/assets/images/walkthrough/walkthrough_${index}.png`).default">
11
- <h3 class="mn-b-thin">{{slide.title}}</h3>
11
+ <h2 class="mn-b-small">{{slide.title}}</h2>
12
12
  <p class="p-big t-transp">{{slide.subtitle}}</p>
13
13
  </div>
14
14
 
@@ -25,7 +25,7 @@
25
25
  <button @click="openFirstRoute('Sign Up')" class="w-100 bg-main button mn-b-thin">Sign Up</button>
26
26
  <button @click="openFirstRoute('Sign In')" class="w-100 bg-white button mn-b-semi">Sign In</button>
27
27
 
28
- <p class="p-medium text-center mn-b-thin">Or explore as a guest:</p>
28
+ <p class="p-medium text-center">Or explore as a guest:</p>
29
29
  <button @click="setFirstUseFalse()" class="button bg-white w-100">Continue without registration</button>
30
30
  </div>
31
31
 
@@ -40,7 +40,7 @@
40
40
  class="pos-fixed pos-t-0 pos-l-0 z-index-0"
41
41
  /> -->
42
42
 
43
- <div class="z-index-5 flex-nowrap flex flex-center gap-small w-100 embla__dots">
43
+ <div class="z-index-5 h-4r pos-absolute pos-b-1r pd-small flex-nowrap flex flex-center gap-small w-100 embla__dots">
44
44
  <div
45
45
  v-for="(snap, index) in scrollSnaps"
46
46
  :key="index"
@@ -53,7 +53,7 @@
53
53
  >
54
54
  </div>
55
55
 
56
- <div @click.native="setFirstUseFalse()" class="pd-small radius-small br-solid br-main br-2px uppercase t-semi t-main pos-absolute pos-r-10">
56
+ <div @click.native="setFirstUseFalse()" class="h-100 w-6r pos-b-0r flex-nowrap flex flex-center pos-r-1r pos-relative radius-small br-solid br-main br-2px uppercase t-semi p-big t-main pos-absolute">
57
57
  skip
58
58
  </div>
59
59
  </div>