@ozdao/prometheus-framework 0.2.52 → 0.2.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. package/dist/main-0a2437f4.js +91 -0
  2. package/dist/main-180a9315.js +91 -0
  3. package/dist/main-3b7bd446.mjs +13631 -0
  4. package/dist/main-4fnApBsF.js +91 -0
  5. package/dist/main-Im8ovDCi.mjs +13609 -0
  6. package/dist/main-MjvO1l5U.js +91 -0
  7. package/dist/main-cdd0be68.mjs +13628 -0
  8. package/dist/main-kjbLXQEa.mjs +13606 -0
  9. package/dist/main.css +1 -1
  10. package/dist/organizations.server.js +17 -3
  11. package/dist/organizations.server.mjs +17 -3
  12. package/dist/products.server.js +62 -50
  13. package/dist/products.server.mjs +62 -50
  14. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -223
  16. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +223 -2
  18. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +20 -20
  20. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  22. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +81 -2
  24. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  26. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
  28. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -70
  30. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
  32. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -95
  34. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
  36. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
  38. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  44. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  52. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +57 -77
  54. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  56. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +4 -4
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -65
  66. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +100 -96
  74. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +59 -52
  78. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  82. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  84. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  86. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -13
  90. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  92. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
  94. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
  96. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +54 -78
  98. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/orders/store/orders.js +42 -32
  104. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  106. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +5 -5
  110. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  114. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  116. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  120. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  122. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
  124. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +5 -3
  126. package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/router/organizations.router.js +20 -5
  128. package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +22 -0
  130. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +1 -0
  131. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +45 -0
  132. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.cjs +1 -0
  133. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.js +4 -0
  134. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -0
  143. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +79 -0
  144. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -0
  145. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +193 -0
  146. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +1 -0
  147. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +4 -0
  148. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  150. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +68 -58
  154. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  160. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +21 -18
  162. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  164. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/products/products.client.js +2 -2
  166. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/products/store/categories.js +39 -27
  168. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  170. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +63 -77
  172. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  176. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
  180. package/dist/prometheus-framework.cjs.js +1 -1
  181. package/dist/prometheus-framework.es.js +1 -1
  182. package/dist/style.css +1 -1
  183. package/dist/web-0066fd51.mjs +55 -0
  184. package/dist/web-6b9fa713.js +1 -0
  185. package/dist/web-8b404cc2.js +1 -0
  186. package/dist/web-e9b09dc6.mjs +55 -0
  187. package/dist/web-i-suCpLM.mjs +55 -0
  188. package/dist/web-ngl7bNhF.js +1 -0
  189. package/dist/web-t91TrxXa.mjs +55 -0
  190. package/dist/web-vB7UhMOt.js +1 -0
  191. package/package.json +1 -1
  192. package/src/components/Button/Button.vue +1 -3
  193. package/src/components/EditImages/EditImages.vue +1 -1
  194. package/src/components/Field/Field.vue +8 -1
  195. package/src/components/LocationSelection/LocationSelection.vue +2 -2
  196. package/src/modules/backoffice/components/pages/Dashboard.vue +4 -25
  197. package/src/modules/backoffice/router/admin.js +0 -14
  198. package/src/modules/backoffice/router/backoffice.js +1 -1
  199. package/src/modules/events/components/pages/EditEvent.vue +10 -6
  200. package/src/modules/events/components/sections/HeroEvent.vue +12 -2
  201. package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
  202. package/src/modules/landing/components/sections/MobileApp.vue +2 -6
  203. package/src/modules/marketplace/components/sections/Filters.vue +7 -1
  204. package/src/modules/orders/components/blocks/StatusHistory.vue +91 -31
  205. package/src/modules/orders/components/pages/EditOrder.vue +4 -21
  206. package/src/modules/orders/components/pages/FormOrder.vue +53 -15
  207. package/src/modules/orders/components/pages/Order.vue +2 -2
  208. package/src/modules/orders/components/sections/FormClientDetails.vue +63 -0
  209. package/src/modules/orders/components/sections/FormDelivery.vue +72 -0
  210. package/src/modules/orders/components/sections/FormPayment.vue +27 -0
  211. package/src/modules/orders/controllers/orders.controller.js +63 -49
  212. package/src/modules/orders/models/order.model.js +9 -13
  213. package/src/modules/orders/routes/orders.routes.js +6 -20
  214. package/src/modules/orders/store/orders.js +24 -12
  215. package/src/modules/organizations/controllers/organizations.controller.js +28 -9
  216. package/src/modules/organizations/router/organizations.js +4 -1
  217. package/src/modules/organizations/router/organizations.router.js +18 -2
  218. package/src/modules/organizations/router/products.router.js +24 -4
  219. package/src/modules/products/components/blocks/CardCategory.vue +53 -0
  220. package/src/modules/products/components/pages/Categories.vue +90 -0
  221. package/src/modules/products/components/pages/CategoryEdit.vue +214 -0
  222. package/src/modules/products/components/pages/ProductEdit.vue +9 -1
  223. package/src/modules/products/components/sections/FilterProducts.vue +4 -1
  224. package/src/modules/products/controllers/categories.controller.js +30 -13
  225. package/src/modules/products/controllers/products.controller.js +3 -2
  226. package/src/modules/products/models/category.model.js +42 -32
  227. package/src/modules/products/products.client.js +4 -2
  228. package/src/modules/products/store/categories.js +17 -3
  229. package/src/modules/users/components/pages/Profile.vue +2 -2
  230. package/src/modules/backoffice/components/admin/Categories.vue +0 -53
  231. package/src/modules/backoffice/components/admin/CategoryEdit.vue +0 -98
  232. package/src/modules/orders/components/sections/FormOrderDetails.vue +0 -220
  233. package/src/modules/products/components/blocks/CategoryCard.vue +0 -42
  234. package/src/modules/products/router/products.router.js +0 -48
  235. /package/src/modules/{products → organizations}/components/pages/OrganizationCreate.vue +0 -0
  236. /package/src/modules/{products → organizations}/components/pages/OrganizationDetails.vue +0 -0
  237. /package/src/modules/{products → organizations}/components/pages/OrganizationDocuments.vue +0 -0
  238. /package/src/modules/{products → organizations}/components/pages/OrganizationPeople.vue +0 -0
@@ -6,7 +6,7 @@
6
6
  <p class="mn-b-small t-transp p-medium">{{t('description')}}</p>
7
7
 
8
8
  <Address
9
- apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
9
+ :apiKey="GOOGLE_MAPS_API_KEY"
10
10
 
11
11
  :address="position.address"
12
12
  :location="position.location"
@@ -35,7 +35,7 @@
35
35
  />
36
36
 
37
37
  <LocationMarker
38
- apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
38
+ :apiKey="GOOGLE_MAPS_API_KEY"
39
39
 
40
40
  :address="position.address"
41
41
  :location="position.location"
@@ -1,16 +1,6 @@
1
1
  <template>
2
2
  <div class="">
3
- <SelectMulti
4
- v-model="selectedOrganization"
5
- :options="publics"
6
- :multiple="false"
7
- :taggable="false"
8
- placeholder="Select organization"
9
- label="name"
10
- track-by="_id"
11
- class="mn-b-medium h1 bg-grey radius-medium pd-big"
12
- />
13
-
3
+ <h1>Welcome to Backoffice</h1>
14
4
 
15
5
  <Menu
16
6
  class="bg-grey mn-b-semi"
@@ -166,8 +156,11 @@ import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'
166
156
  // HELPERS
167
157
  /////////////////////////////
168
158
  import { useRoute, useRouter } from 'vue-router'
159
+
169
160
  import * as auth from '@pf/src/modules/auth/store/auth'
161
+
170
162
  import * as organizations from '@pf/src/modules/organizations/store/organizations'
163
+
171
164
  const route = useRoute()
172
165
  const router = useRouter()
173
166
  /////////////////////////////
@@ -183,20 +176,6 @@ const publics = ref([]);
183
176
  // MOUNTED
184
177
  /////////////////////////////
185
178
  onMounted(async () =>{
186
- const dataPublics = await organizations.actions.read({
187
- user: auth.state.user._id,
188
- postable: auth.state.user._id,
189
- limit: 100
190
- })
191
-
192
- console.log(dataPublics)
193
-
194
- publics.value = dataPublics.map(publicItem => ({
195
- name: publicItem.profile.name,
196
- _id: publicItem._id,
197
- photo: publicItem.profile.photo
198
- }));
199
-
200
179
  })
201
180
  </script>
202
181
 
@@ -6,20 +6,6 @@
6
6
  // component: layoutAdmin,
7
7
  // meta: { authorize: ["ROLE_MODERATOR"] },
8
8
  // children: [{
9
- // path: 'categories',
10
- // name: 'Categories',
11
- // component: () => import(/* webpackChunkName: 'Categories' */ '@/components/pages/admin/Categories.vue')
12
- // },
13
- // {
14
- // path: 'categories/add',
15
- // name: 'AddCategory',
16
- // component: () => import(/* webpackChunkName: 'AddCategory' */ '@/components/pages/admin/CategoryEdit.vue')
17
- // },
18
- // {
19
- // path: 'categories/:url/edit',
20
- // name: 'EditCategory',
21
- // component: () => import(/* webpackChunkName: 'EditCategory' */ '@/components/pages/admin/CategoryEdit.vue')
22
- // },{
23
9
  // path: 'backcalls',
24
10
  // name: 'Backcalls',
25
11
  // // meta: { authorize: ["ROLE_MODERATOR"] },
@@ -2,7 +2,7 @@ import layoutBackoffice from '../components/layouts/Backoffice.vue'
2
2
  import * as validationAuth from '@pf/src/modules/middlewares/client/auth.validation.js';
3
3
 
4
4
  const backofficeRoutes = [{
5
- path: 'backoffice',
5
+ path: ':_id/backoffice',
6
6
  component: layoutBackoffice,
7
7
  beforeEnter: [
8
8
  validationAuth.requiresAdmin,
@@ -329,22 +329,26 @@
329
329
 
330
330
  <Field
331
331
  v-model:field="event.specialData.previousTitle"
332
- placeholder="Name"
332
+ placeholder="Title"
333
+ value="Explore our exclusive party archive"
333
334
  class="w-100 bg-grey radius-small pd-medium"
334
335
  />
335
336
  <Field
336
337
  v-model:field="event.specialData.previousDescription"
337
- placeholder="Name"
338
+ label="Description"
339
+ value="Experience the ultimate party vibe at The Commune! Elevate your evening with distinctive and exhilarating activities, ensuring an unforgettable time. Dive into the excitement and make every moment special."
338
340
  class="w-100 bg-grey radius-small pd-medium"
339
341
  />
340
342
  <Field
341
- v-model:field="event.specialData.previousLink"
342
- placeholder="Name"
343
+ v-model:field="event.specialData.previousLinkText"
344
+ label="Button"
345
+ value="Check In Instagram"
343
346
  class="w-100 bg-grey radius-small pd-medium"
344
347
  />
345
348
  <Field
346
- v-model:field="event.specialData.previousLinkText"
347
- placeholder="Name"
349
+ v-model:field="event.specialData.previousLink"
350
+ label="Link"
351
+ value="https://www.instagram.com/thecommune.phuket/"
348
352
  class="w-100 bg-grey radius-small pd-medium"
349
353
  />
350
354
 
@@ -22,10 +22,11 @@
22
22
  style="object-fit: cover;"
23
23
  ref="videoElement"
24
24
  class="pos-absolute pos-t-0 pos-l-0 w-100 h-100"
25
- preload autoplay muted loop playsinlineclass playsinline :src="content.video"
25
+ preload autoplay muted loop playsinlineclass playsinline
26
26
  itemprop="video"
27
27
  type="video/webm"
28
28
  >
29
+ <source :src="content.video" :type="getVideoType(content.video)" />
29
30
  </video>
30
31
  </div>
31
32
 
@@ -38,7 +39,7 @@
38
39
  pd-big mn-r-auto mn-l-auto t-white flex-h-center flex-column o-hidden flex-v-start t-left flex w-100 h-100 gap-zero">
39
40
  <!-- <img src="/logo/jungle-stereo-cosmonaut.png" class="h-8r mn-b-small z-index-1"/> -->
40
41
  <div class="mn-b-big z-index-1 flex-nowrap flex gap-small">
41
- <img v-for="logo in content.logos" class="radius-thin i-big" :src="logo">
42
+ <img v-for="logo in content.logos" class="radius-thin object-fit-contain i-big" :src="logo">
42
43
  </div>
43
44
 
44
45
  <h3 class="pd-thin z-index-1 w-max br-solid br-2px br-white radius-extra mn-b-thin">
@@ -128,6 +129,15 @@
128
129
  };
129
130
  }
130
131
 
132
+ function getVideoType(videoUrl) {
133
+ if (videoUrl.endsWith('.mp4')) {
134
+ return 'video/mp4';
135
+ } else if (videoUrl.endsWith('.webm')) {
136
+ return 'video/webm';
137
+ }
138
+ return '';
139
+ }
140
+
131
141
  async function playVid() {
132
142
  if (videoElement.value.paused && !isPlaying) {
133
143
  return videoElement.value.play();
@@ -3,7 +3,7 @@
3
3
  <div class="cols-2 gap-big pos-relative ">
4
4
  <div class="cols-1 gap-small ">
5
5
  <a v-if="options?.link" @click="clickBuyTicket()" href="#" class="bg-main flex-child-grow-1 flex-child-shrink-0 flex-child-basis-auto o-hidden radius-big pd-big flex-center flex-column flex w-100 gap-zero">
6
- <img v-if="content?.ticket" class="w-100" :src="content?.ticket">
6
+ <img v-if="content?.ticket" class="w-80" :src="content?.ticket">
7
7
 
8
8
  <a class="t-white bg-black pd-l-small pd-b-thin pd-t-thin pd-r-small h4 radius-extra uppercase t-nye204">
9
9
  <!-- SOLD OUT -->
@@ -76,15 +76,11 @@ import LabelGooglePlay from '@pf/src/modules/icons/labels/LabelGooglePlay.vue'
76
76
  const props = defineProps({
77
77
  mockupImage: {
78
78
  type: String,
79
- default: "/landing/mockup.png"
80
- },
81
- mockupMobile: {
82
- type: String,
83
- default: "/landing/mockup-mobile.png"
79
+ default: "/landing/mockup.jpg"
84
80
  },
85
81
  bgImage: {
86
82
  type: String,
87
- default: "" // Введите ваше стандартное значение здесь, если необходимо
83
+ default: ""
88
84
  },
89
85
  textData: {
90
86
  type: Object,
@@ -185,7 +185,13 @@
185
185
  const { t } = useI18n(text)
186
186
 
187
187
  onMounted(async () => {
188
- await store.categories.actions.fetchCategories()
188
+ let options = {
189
+ status: 'published'
190
+ }
191
+
192
+ console.log(options)
193
+ console.log()
194
+ await store.categories.actions.fetchCategories(options)
189
195
 
190
196
  store.categories.state.all.forEach( category => {
191
197
  category.localization.forEach( localization => {
@@ -10,6 +10,7 @@
10
10
  />
11
11
  </div>
12
12
  <p class="h4 w-8r">{{status.name}}</p>
13
+ <!-- <button v-if="status.value === 'delivered'" @click="printReceipt()" class="mn-l-auto bg-main button radius-big">Print</button> -->
13
14
  <button v-if="edit" :disabled="!isNextPossibleStatus(status.value)" @click="setStatus(status)" class="mn-l-auto bg-main button radius-big">Set status</button>
14
15
  </div>
15
16
  </div>
@@ -20,6 +21,8 @@ import { ref, computed } from 'vue';
20
21
 
21
22
  import IconCheckmark from '@pf/src/modules/icons/navigation/IconCheckmark.vue'
22
23
 
24
+ // import Socket from '@vendus/sockets-for-cordova';
25
+
23
26
  const props = defineProps({
24
27
  statusHistory: {
25
28
  type: Array
@@ -33,40 +36,42 @@ const props = defineProps({
33
36
  })
34
37
 
35
38
  // Инициализация состояния компонента
36
- const statuses = ref([{
39
+ const statuses = ref([
40
+ {
37
41
  value: 'created',
38
42
  name: 'Received',
39
43
  nextstatus: 'Confirming order...',
40
44
  description: 'Your order has been successfully created. Our manager will contact you within five minutes to confirm your order.'
41
- },{
42
- value: 'confirming',
43
- name: 'Confirming',
44
- nextstatus: 'Confirming order...',
45
- description: 'Your order has been confirmed. We are now processing your items and preparing them for shipment.'
46
- },{
47
- value: 'confirmed',
48
- name: 'Confirmed',
49
- nextstatus: 'Order is confirmed. Packing order...',
50
- description: 'Your order has been confirmed. We are now processing your items and preparing them for shipment.'
51
- },{
52
- value: 'packing',
53
- name: 'Packing',
54
- nextstatus: 'Packing order...',
55
- description: 'Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information.'
56
- },{
57
- value: 'packed',
58
- name: 'Packed',
59
- nextstatus: 'Delivering order...',
60
- description: 'Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information.'
61
- },{
62
- value: 'in delivery',
63
- name: 'Delivering',
64
- description: 'Your order is currently in transit. Our delivery team is working hard to get your items to you as soon as possible.'
65
- },{
66
- value: 'delivered',
67
- name: 'Delivered',
68
- description: 'Congratulations! Your order has been successfully delivered. If you have any concerns or feedback, feel free to contact us.'
69
- }]);
45
+ },{
46
+ value: 'confirming',
47
+ name: 'Confirming',
48
+ nextstatus: 'Confirming order...',
49
+ description: 'Your order has been confirmed. We are now processing your items and preparing them for shipment.'
50
+ },{
51
+ value: 'confirmed',
52
+ name: 'Confirmed',
53
+ nextstatus: 'Order is confirmed. Packing order...',
54
+ description: 'Your order has been confirmed. We are now processing your items and preparing them for shipment.'
55
+ },{
56
+ value: 'packing',
57
+ name: 'Packing',
58
+ nextstatus: 'Packing order...',
59
+ description: 'Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information.'
60
+ },{
61
+ value: 'packed',
62
+ name: 'Packed',
63
+ nextstatus: 'Delivering order...',
64
+ description: 'Your order is now awaiting shipment. Once shipped, you will receive a notification with tracking information.'
65
+ },{
66
+ value: 'in delivery',
67
+ name: 'Delivering',
68
+ description: 'Your order is currently in transit. Our delivery team is working hard to get your items to you as soon as possible.'
69
+ },{
70
+ value: 'delivered',
71
+ name: 'Delivered',
72
+ description: 'Congratulations! Your order has been successfully delivered. If you have any concerns or feedback, feel free to contact us.'
73
+ }
74
+ ]);
70
75
 
71
76
  const statusCurrent = ref(props.statusCurrent);
72
77
  const statusHistory = ref(props.statusHistory);
@@ -91,5 +96,60 @@ const setStatus = async (newStatus) => {
91
96
  // console.log(status)
92
97
  // orders.state.current.status = status.value
93
98
  // await orders.actions.update(orders.state.current)
94
- }
99
+ }
100
+
101
+ const printerIP = ref('192.168.1.197');
102
+ const printerPort = ref(9100);
103
+ const textToPrint = ref('This is some text to print\n\n');
104
+
105
+ // const printReceipt = async () => {
106
+ // try {
107
+ // const initPrinter = new Uint8Array([0x1b, 0x40]); // Команда инициализации принтера
108
+ // const lineFeed = new Uint8Array([0x0a]); // Перевод строки
109
+ // const cutPaper = new Uint8Array([0x1d, 0x56, 0x01]); // Резка бумаги
110
+
111
+ // const encoder = new TextEncoder();
112
+ // const textData = encoder.encode(textToPrint.value);
113
+
114
+ // const dataToSend = new Uint8Array([
115
+ // ...initPrinter,
116
+ // ...textData,
117
+ // ...lineFeed,
118
+ // ...cutPaper
119
+ // ]);
120
+
121
+ // const socket = new Socket();
122
+
123
+ // socket.onError = function (errorMessage) {
124
+ // console.error('Ошибка при подключении к принтеру:', errorMessage);
125
+ // };
126
+
127
+ // socket.onClose = function (hasError) {
128
+ // console.log('Соединение с принтером закрыто');
129
+ // };
130
+
131
+ // await new Promise((resolve, reject) => {
132
+ // socket.open(
133
+ // printerIP.value,
134
+ // printerPort.value,
135
+ // function () {
136
+ // console.log('Подключено к принтеру');
137
+ // resolve();
138
+ // },
139
+ // function (errorMessage) {
140
+ // console.error('Не удалось подключиться к принтеру:', errorMessage);
141
+ // reject(errorMessage);
142
+ // }
143
+ // );
144
+ // });
145
+
146
+ // socket.write(dataToSend);
147
+
148
+ // socket.shutdownWrite();
149
+
150
+ // console.log('Чек успешно напечатан');
151
+ // } catch (error) {
152
+ // console.error('Ошибка при печати чека:', error);
153
+ // }
154
+ // };
95
155
  </script>
@@ -2,24 +2,7 @@
2
2
  <header class="mn-b-medium flex-v-center flex-nowrap flex">
3
3
  <h2 class="mn-r-medium">Edit Order</h2>
4
4
  </header>
5
-
6
- <section class="gap-thin flex-nowrap flex mn-b-semi">
7
-
8
- <div class="w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium">
9
- <p class=" mn-b-small p-big">
10
- Статус заказа:<br>{{order.status}}
11
- </p>
12
- <button class="button">Подтвердить заказ</button>
13
- </div>
14
-
15
- <div class="w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium">
16
- <p class="mn-b-semi p-big">Статус оплаты:<br>{{order.payment?.status}}</p>
17
- <button class="button">Изменить статус оплаты</button>
18
- </div>
19
-
20
-
21
- </section>
22
-
5
+
23
6
  <Block
24
7
  title="Add Position"
25
8
  class="mn-b-semi"
@@ -51,12 +34,12 @@
51
34
  @update="updateProduct"
52
35
  />
53
36
  </Block>
54
-
37
+ <!--
55
38
  <FormOrderDetails
56
39
  :order="orders.state.current"
57
40
  @create="handleCreate"
58
41
  class="bg-grey pd-medium radius-big mn-b-semi"
59
- />
42
+ /> -->
60
43
 
61
44
 
62
45
  <div class="mn-thinw-100 flex-v-center flex block">
@@ -88,7 +71,7 @@
88
71
  import ListPositions from '@pf/src/modules/products/components/blocks/ListPositions.vue'
89
72
  import CardPosition from '@pf/src/modules/products/components/blocks/CardPosition.vue';
90
73
 
91
- import FormOrderDetails from '@pf/src/modules/orders/components/sections/FormOrderDetails.vue'
74
+ // import FormOrderDetails from '@pf/src/modules/orders/components/sections/FormOrderDetails.vue'
92
75
 
93
76
  // Import your store
94
77
  import * as orders from '@pf/src/modules/orders/store/orders';
@@ -10,15 +10,29 @@
10
10
  <!-- Empty State -->
11
11
  <EmptyState
12
12
  v-if="shopcart.state.positions < 1"
13
- />
13
+ />
14
+
14
15
  <Succes
15
16
  v-if="order.status === true && shopcart.state.positions.length > 0"
16
17
  :order="order"
17
18
  />
18
- <FormOrderDetails
19
- v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
20
- :order="orders.state.current"
21
- />
19
+ <!-- Order Form -->
20
+ <div
21
+ v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
22
+ class="order-form col"
23
+ >
24
+ <FormClientDetails
25
+ :order="orders.state.current"
26
+ />
27
+ <FormDelivery
28
+ v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
29
+ :order="orders.state.current"
30
+ />
31
+ <FormPayment
32
+ v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
33
+ :order="orders.state.current"
34
+ />
35
+ </div>
22
36
 
23
37
  <!-- Order positions -->
24
38
  <div
@@ -41,13 +55,33 @@
41
55
  <div
42
56
  style="border-bottom: 1px solid #f7f7f7; border-top: 1px solid #f7f7f7;" class="pd-b-medium pd-t-medium mn-b-medium"
43
57
  >
44
- <p class="mn-b-thin">Subtotal: {{returnCurrency()}} {{ cartTotalPrice }} </p>
45
- <p class="mn-b-thin">Delivery: {{returnCurrency()}} {{ Math.trunc(100 + 20 * orderOrganization[0]?.distance - 7,5 * (orderOrganization[0]?.distance / 10))}} </p>
46
- <p class="h3">Total: {{returnCurrency()}} {{ Math.trunc(100 + 20 * orderOrganization[0]?.distance - 7,5 * (orderOrganization[0]?.distance / 10)) + cartTotalPrice.value }} </p>
58
+ <p class="mn-b-thin">
59
+ Subtotal:
60
+ {{ returnCurrency() }}
61
+ {{ cartTotalPrice }}
62
+ </p>
63
+ <p class="mn-b-thin">
64
+ Delivery:
65
+ {{ returnCurrency() }}
66
+ {{
67
+ Math.trunc(100 + 20 * orderOrganization[0]?.distance - 7,5 * (orderOrganization[0]?.distance / 10))
68
+ }}
69
+ </p>
70
+ <p class="h3">
71
+ Total:
72
+ {{ returnCurrency() }}
73
+ {{
74
+ Math.trunc(100 + 20 * orderOrganization[0]?.distance - 7,5 * (orderOrganization[0]?.distance / 10)) + cartTotalPrice.value
75
+ }}
76
+ </p>
47
77
  </div>
48
78
 
49
- <p class='mn-b-thin'>By making this purchase you agree to the General Terms and Conditions.</p>
50
- <p class='mn-b-small'>I agree that placing the order places me under an obligation to make a payment in accordance with the General Terms and Conditions.</p>
79
+ <p class='mn-b-thin'>
80
+ By making this purchase you agree to the General Terms and Conditions.
81
+ </p>
82
+ <p class='mn-b-small'>
83
+ I agree that placing the order places me under an obligation to make a payment in accordance with the General Terms and Conditions.
84
+ </p>
51
85
  <!-- Send order -->
52
86
  <button
53
87
  v-if="orders.state.current.status !== true && shopcart.state.positions.length > 0"
@@ -85,7 +119,10 @@ import CardOrderItem from '@pf/src/modules/orders/components/blocks/CardOrderIte
85
119
  import AskToLogin from '@pf/src/modules/orders/components/sections/AskToLogin.vue'
86
120
  import Succes from '@pf/src/modules/orders/components/sections/Succes.vue'
87
121
  import EmptyState from '@pf/src/modules/orders/components/sections/EmptyState.vue'
88
- import FormOrderDetails from '@pf/src/modules/orders/components/sections/FormOrderDetails.vue'
122
+
123
+ import FormClientDetails from '@pf/src/modules/orders/components/sections/FormClientDetails.vue'
124
+ import FormDelivery from '@pf/src/modules/orders/components/sections/FormDelivery.vue'
125
+ import FormPayment from '@pf/src/modules/orders/components/sections/FormPayment.vue'
89
126
  ///////////////////////////////////////////////////////////////////////////////////////////////////
90
127
  // Import libs
91
128
  ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -110,6 +147,7 @@ const user = computed(() => users.state.current)
110
147
  const cartTotalPrice = computed(() => shopcart.getters.cartTotalPrice)
111
148
  // Organization
112
149
  const orderOrganization = ref([])
150
+
113
151
  onMounted(async()=> {
114
152
  orderOrganization.value = await organizations.actions.read({
115
153
  _id: shopcart.state.organization,
@@ -129,13 +167,13 @@ watch(() => orders.state.current.delivery.address, async (newFilterValue, oldFil
129
167
  // Store Verification
130
168
  /////////////////////////////
131
169
  const errorName = computed(() => {
132
- if (orders.state.current.user.name?.length < 2) { return true } else { return false }
170
+ if (orders.state.current.client.name?.length < 2) { return true } else { return false }
133
171
  });
134
172
 
135
173
  const errorPhoneOrMessenger = computed(() => {
136
- const hasMessengerType = orders.state.current.user.messenger?.type;
137
- const hasMessengerValue = orders.state.current.user.messenger?.value?.length > 2;
138
- const hasPhone = orders.state.current.user.number?.length > 0;
174
+ const hasMessengerType = orders.state.current.client.messenger?.type;
175
+ const hasMessengerValue = orders.state.current.client.messenger?.value?.length > 2;
176
+ const hasPhone = orders.state.current.client.number?.length > 0;
139
177
  // Ошибка, если нет ни номера телефона, ни корректного типа и значения мессенджера
140
178
  return !hasPhone && !(hasMessengerType && hasMessengerValue);
141
179
  });
@@ -77,7 +77,7 @@
77
77
  <div class="w-100">
78
78
 
79
79
  <CardOrganization
80
- v-if="orderOrganization"
80
+ v-if="orderOrganization[0]"
81
81
  :organization="orderOrganization[0]"
82
82
  :showRating="true"
83
83
  :showFollowers="false"
@@ -239,7 +239,7 @@
239
239
 
240
240
  orderOrganization.value = await organizations.actions.read({
241
241
  _id: order.value.organization,
242
- location: globals.state.position?.location,
242
+ // location: globals.state.position?.location,
243
243
  });
244
244
 
245
245
  })
@@ -0,0 +1,63 @@
1
+ <template>
2
+ <Block title="Personal Data" class="mn-b-thin">
3
+ <Field
4
+ v-model="order.client.name"
5
+ label="Name*"
6
+ placeholder="Enter your name"
7
+ class="bg-white pd-medium radius-small mn-b-thin"
8
+ />
9
+
10
+ <FieldPhone
11
+ v-model="order.client.phone"
12
+ @country="(country) => { order.client.number = country }"
13
+ :inputOptions="{
14
+ placeholder: 'Enter contact phone number',
15
+ type: 'tel',
16
+ }"
17
+ :defaultCountry="'TH'"
18
+ :validCharactersOnly="true"
19
+ :dropdownOptions="{
20
+ showDialCodeInSelection: true,
21
+ showFlags: true,
22
+ showDialCodeInList: true
23
+ }"
24
+ mode="national"
25
+ class="bg-white pd-small radius-small mn-b-thin"
26
+ />
27
+
28
+ <p class="mn-b-small">
29
+ Prefer to chat instead of calling? Just drop your messenger info here:
30
+ </p>
31
+
32
+ <div class="flex-nowrap flex">
33
+ <Select
34
+ :options="[
35
+ {name: 'Telegram', value: 'telegram'},
36
+ {name: 'WhatsApp', value: 'whatsapp'},
37
+ {name: 'Line', value: 'line'},
38
+ ]"
39
+ @update:select="(option) => order.client.messenger.type = option.value"
40
+ placeholder="Messenger"
41
+ size="small"
42
+ class="bg-white pd-medium radius-small mn-r-small"
43
+ />
44
+
45
+ <Field
46
+ v-model="order.client.messenger.value"
47
+ placeholder="Enter your contact here"
48
+ class="bg-white pd-medium radius-small w-100"
49
+ />
50
+ </div>
51
+ </Block>
52
+ </template>
53
+
54
+ <script setup>
55
+ import Block from '@pf/src/components/Block/Block.vue'
56
+ import Field from '@pf/src/components/Field/Field.vue'
57
+ import FieldPhone from '@pf/src/components/FieldPhone/FieldPhone2.vue'
58
+ import Select from '@pf/src/components/Select/Select.vue'
59
+
60
+ defineProps({
61
+ order: Object,
62
+ });
63
+ </script>