@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
@@ -1,98 +0,0 @@
1
- <template>
2
- <!-- ---------------------------------------------------------------- -->
3
- <!-- 01. Page Title -->
4
- <!-- ---------------------------------------------------------------- -->
5
- <section class="pageheader section">
6
- <div class="mn-b-big title">
7
- <h1 v-if="route.params.url">Редактировать категорию</h1>
8
- <h1 v-else>Добавить категорию</h1>
9
- </div>
10
- </section>
11
-
12
- <!-- ---------------------------------------------------------------- -->
13
- <!-- 03. Page Content -->
14
- <!-- ---------------------------------------------------------------- -->
15
- <section class=" bg-grey br-bot-dark section-subsection section">
16
-
17
- <form onsubmit="return false">
18
- <!-- ---------------------------------------------------------------- -->
19
- <!-- Category Info -->
20
- <!-- ---------------------------------------------------------------- -->
21
- <div class="mn-b-big flex-column flex block">
22
- <div class="w-100 flex-nowrap flex">
23
- <InputText :obj="'categories'" :prop="'current.url'" :value="category.url" label="URL категории" class="mn-r-small"/>
24
- <InputText :obj="'categories'" :prop="'current.name'" :value="category.name" label="Название"/>
25
- </div>
26
- </div>
27
- <!-- Subcategories -->
28
- <EditCategories
29
- :category="category"
30
- title="Подкатегории"
31
- obj="categories"
32
- prop="current.subcategories"
33
- name="subcategories"
34
- keyname="name"
35
- parname="url"
36
- />
37
- <!-- Filters -->
38
- <EditCategories
39
- :category="category"
40
- title="Фильтры для категории"
41
- obj="categories"
42
- prop='current.filters'
43
- name="filters"
44
- keyname="name"
45
- parname="options"
46
- />
47
- <!-- Localization -->
48
- <EditCategories
49
- :category="category"
50
- title="Локализация"
51
- obj="categories"
52
- prop='current.localization'
53
- name="localization"
54
- keyname="locale"
55
- parname="text"
56
- />
57
- <!-- Sumbmit -->
58
- <a @click="onSubmit()" class="button">Сохранить</a>
59
- </form>
60
- <!-- End of page form -->
61
- </section>
62
- <!-- End of page content -->
63
- </template>
64
-
65
- <script setup>
66
- // Import components
67
- import InputText from '@/components/elements/InputText.vue'
68
- import EditCategories from '@pf/src/modules/products/components/blocks/EditCategories.vue'
69
- import EditFilters from '@/components/blocks/EditFilters.vue'
70
- // Import libs
71
- import { computed, onMounted } from 'vue'
72
-
73
- import { useRoute } from 'vue-router'
74
- // Accessing router and store
75
- const store = useStore()
76
- const route = useRoute()
77
- // Data prefetching
78
- if (route.params.url) {
79
- store.dispatch('categories/fetchCategory', route.params.url)
80
- } else {
81
- await store.commit('categories/cleanCategoryState')
82
- }
83
- // Accessing state
84
- const category = computed(() => store.state.categories.current)
85
- const routePath = computed(() => route.name)
86
- // Filters and subcategory
87
- function onSubmit() {
88
- if (route.params.url) {
89
- store.dispatch('categories/updateCategory', route.params.url)
90
- } else {
91
- store.dispatch('categories/addCategory')
92
- }
93
- }
94
- </script>
95
-
96
- <style lang="scss">
97
-
98
- </style>
@@ -1,220 +0,0 @@
1
- <template>
2
- <div class="order-form col">
3
- <!-- Client info -->
4
- <Block
5
- title="Personal Data"
6
- class="mn-b-thin"
7
- >
8
- <!-- Name and surname -->
9
- <Field
10
- v-model:field="order.user.name"
11
- label="Name*"
12
- placeholder="Enter your name"
13
- class="
14
- bg-white
15
- pd-medium
16
- radius-small
17
- mn-b-thin
18
- "
19
- />
20
- <!-- Phone -->
21
- <FieldPhone
22
- v-model:modelValue="order.user.phone"
23
- @country="(country) => { order.user.number = country }"
24
- :inputOptions="{
25
- placeholder: 'Enter contact phone number',
26
- type: 'tel',
27
- }"
28
- :defaultCountry="'TH'"
29
- :validCharactersOnly="true"
30
- :dropdownOptions="{
31
- showDialCodeInSelection: true,
32
- showFlags: true,
33
- showDialCodeInList: true
34
- }"
35
- mode="national"
36
- class="bg-white pd-small radius-small mn-b-thin"
37
- />
38
-
39
- <p class="mn-b-small">
40
- Prefer to chat instead of calling? Just drop your messenger info here:
41
- </p>
42
-
43
- <div class="flex-nowrap flex">
44
- <Select
45
- :options="[
46
- {name: 'Telegram', value: 'telegram'},
47
- {name: 'WhatsApp', value: 'whatsapp'},
48
- {name: 'Line', value: 'line'},
49
- ]"
50
- @update:select="(option) => order.user.messenger.type = option.value"
51
- placeholder="Messenger"
52
- size="small"
53
- class="
54
- bg-white
55
- pd-medium
56
- radius-small
57
- mn-r-small
58
- "
59
- />
60
-
61
- <Field
62
- v-model:field="order.user.messenger.value"
63
- placeholder="Enter your contact here"
64
- class="
65
- bg-white
66
- pd-medium
67
- radius-small
68
- w-100
69
- "
70
- />
71
- </div>
72
- </Block>
73
-
74
- <!-- Delivery -->
75
- <Block
76
- title="Delivery"
77
- class="mn-b-thin"
78
- :tooltip="'Delivery by mail takes 3-5 days.'"
79
- >
80
- <!-- Type of delivery -->
81
- <div class="mn-b-small flex-nowrap flex">
82
- <Radio
83
- v-model:radio="order.delivery.type"
84
- label="Courier"
85
- value="courier"
86
- class="
87
- bg-white
88
- pd-medium
89
- radius-small
90
- w-100
91
- mn-r-small
92
- "
93
- />
94
- <Radio
95
- v-model:radio="order.delivery.type"
96
- label="Post"
97
- value="Post"
98
- class="
99
- bg-white
100
- pd-medium
101
- radius-small
102
- w-100
103
- mn-r-small
104
- "
105
- />
106
- </div>
107
- <!-- Adress-->
108
- <Address
109
- label="Address"
110
-
111
- apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
112
-
113
- :address="order.delivery.address"
114
- :location="order.delivery.location"
115
-
116
- placeholder="Enter your address"
117
-
118
- class="
119
- bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium
120
- "
121
-
122
- @update:location="newLocation => {
123
- order.delivery.location = newLocation;
124
- }"
125
- @update:address="newAddress => {
126
- order.delivery.address = newAddress;
127
- }"
128
- />
129
-
130
- <LocationMarker
131
- apiKey="AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI"
132
-
133
- :address="order.delivery.address"
134
- :location="order.delivery.location"
135
-
136
- class="mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden"
137
-
138
- @update:location="newLocation => {
139
- order.delivery.location = newLocation;
140
- }"
141
- @update:address="newAddress => {
142
- order.delivery.address = newAddress;
143
- }"
144
- />
145
- <Field
146
- v-model:field="order.comment"
147
- placeholder="Comments regarding the address (apartment unit, floor level, building section)"
148
- type="textarea"
149
- class="
150
- bg-white
151
- pd-medium
152
- radius-small
153
- "
154
- />
155
- </Block>
156
- <!-- Type of payment -->
157
- <Block
158
- title="Payment"
159
- >
160
- <div class="mn-b-small flex-nowrap flex">
161
- <Select
162
- v-model:select="order.payment.type"
163
- :property="'value'"
164
- :options="[
165
- {name: 'Cash On Delivery', value: 'cash'},
166
- {name: 'Bank Transfer', value: 'bank'},
167
- {name: 'Crypto', value: 'crypto'},
168
- ]"
169
-
170
- placeholder="Select type of payment"
171
- size="small"
172
- class="
173
- bg-white
174
- pd-medium
175
- radius-small
176
- w-100
177
- "
178
- />
179
- </div>
180
- </Block>
181
-
182
-
183
- </div>
184
-
185
- </template>
186
-
187
- <script setup="props">
188
- import { computed, onMounted, watch } from 'vue'
189
-
190
- import * as globals from '@pf/src/modules/globals/store/globals';
191
- import * as orders from '@pf/src/modules/orders/store/orders';
192
- /////////////////////////////
193
- // COMPONENT DEPENDENCIES
194
- /////////////////////////////
195
- import Block from '@pf/src/components/Block/Block.vue'
196
- import Field from '@pf/src/components/Field/Field.vue'
197
- import FieldPhone from '@pf/src/components/FieldPhone/FieldPhone2.vue'
198
- import Select from '@pf/src/components/Select/Select.vue'
199
- import Address from '@pf/src/components/Address/Address.vue'
200
-
201
- import LocationMarker from "@pf/src/components/LocationMarker/LocationMarker.vue";
202
- import Radio from '@pf/src/components/Radio/Radio.vue'
203
- /////////////////////////////
204
- // CREATED
205
- /////////////////////////////
206
- const props = defineProps({
207
- order: Object,
208
- });
209
- /////////////////////////////
210
- // MOUNTED
211
- /////////////////////////////
212
- onMounted(() => {
213
- if (globals.state.position) props.order.delivery.address = globals.state.position.address
214
- if (globals.state.position) props.order.delivery.location = globals.state.position.location
215
- })
216
- </script>
217
-
218
- <style lang="scss">
219
-
220
- </style>
@@ -1,42 +0,0 @@
1
- <template>
2
- <div class="card">
3
- <div class="flex-v-center flex">
4
- <h4>{{category.name}}</h4>
5
- <div class="actions">
6
- <router-link :to="'/admin/categories/' + category.url + '/edit'" class="mn-r-medium nav-link">Редактировать</router-link>
7
- <a class="nav-link" @click="deleteCategory(category)">Удалить</a>
8
- </div>
9
- </div>
10
- </div>
11
- </template>
12
-
13
-
14
- <script>
15
- import { toRef,onMounted } from 'vue'
16
-
17
- export default {
18
- props: ['category'],
19
- name: 'CategoryCard',
20
- setup(props) {
21
- onMounted(() => {
22
- })
23
-
24
- return {
25
- }
26
- },
27
- methods: {
28
- deleteCategory(category) {
29
- this.$store.commit('categories/deleteCategory', category);
30
- this.$store.dispatch('categories/deleteCategory', category.url)
31
- }
32
- }
33
- }
34
- </script>
35
-
36
- <style lang="scss">
37
- .categories-card {
38
-
39
- }
40
- </style>
41
-
42
-
@@ -1,48 +0,0 @@
1
- // import layoutProducts from '../components/layouts/Products.vue'
2
- import layoutEmpty from '@pf/src/modules/globals/components/layouts/Empty.vue'
3
-
4
- import * as validationAuth from '@pf/src/modules/middlewares/client/auth.validation.js';
5
-
6
- const productsRoutes = [{
7
- path: 'products',
8
- component: layoutEmpty,
9
- beforeEnter: [
10
- validationAuth.requiresAdmin,
11
- ],
12
- children: [{
13
- path: ':_id',
14
- name: 'Products',
15
- meta: {
16
- title: {
17
- en: 'Products',
18
- ru: 'Товары'
19
- },
20
- authorize: []
21
- },
22
- component: () => import(/* webpackChunkName: 'ProductsGallery' */ '../components/pages/Dashboard.vue'),
23
- },{
24
- path: 'products',
25
- name: 'Products',
26
- meta: {
27
- title: {
28
- en: 'Products',
29
- ru: 'Товары'
30
- },
31
- authorize: []
32
- },
33
- component: () => import(/* webpackChunkName: 'ProductsProducts' */ '@pf/src/modules/products/components/pages/ProductsProducts.vue'),
34
- },{
35
- path: 'leftovers',
36
- name: 'Leftovers',
37
- meta: {
38
- title: {
39
- en: 'Leftovers',
40
- ru: 'Остатки'
41
- },
42
- authorize: []
43
- },
44
- component: () => import(/* webpackChunkName: 'ProductsLeftovers' */ '@pf/src/modules/products/components/pages/Leftovers.vue'),
45
- }]
46
- }];
47
-
48
- export default productsRoutes;