@ozdao/prometheus-framework 0.2.246 → 0.2.248

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/builder.js +9 -1
  2. package/dist/builder.mjs +9 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -1
  5. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  7. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  9. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +24 -25
  10. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs.map +1 -1
  11. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +25 -26
  12. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js.map +1 -1
  13. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +10 -13
  14. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs.map +1 -1
  15. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +10 -13
  16. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js.map +1 -1
  17. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  19. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  21. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +4 -4
  24. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +4 -4
  25. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +3 -3
  28. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +3 -3
  29. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +3 -3
  30. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
  31. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +3 -3
  32. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +3 -3
  33. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +3 -3
  34. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +3 -3
  35. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +3 -3
  36. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +3 -3
  37. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
  38. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
  39. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
  40. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
  41. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  42. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  43. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
  44. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  45. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +16 -19
  48. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
  49. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +16 -19
  50. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
  51. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  53. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  54. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  55. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  56. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
  66. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  67. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  70. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +3 -3
  80. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  81. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +3 -3
  84. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  85. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
  88. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  89. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +4 -4
  96. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  97. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
  102. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
  106. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  107. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +4 -4
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  113. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +581 -581
  114. package/dist/prometheus-framework/src/modules/pages/pages.client.js +581 -581
  115. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +3 -3
  116. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +3 -3
  117. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
  118. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  132. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  133. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
  138. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  139. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
  142. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  143. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
  146. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  147. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  153. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  157. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
  160. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
  161. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +3 -3
  162. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  165. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +3 -3
  166. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  167. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
  169. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  171. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  173. package/package.json +1 -1
  174. package/src/builder/webpack/webpack.config.spa.js +7 -0
  175. package/src/modules/events/components/elements/ButtonCheck.vue +38 -44
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- ;/* empty css */
5
- const Field = require("../../../../components/Field/Field.vue2.cjs");
4
+ ;/* empty css */
5
+ const Field = require("../../../../components/Field/Field.vue.cjs");
6
6
  const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
7
- const Button = require("../../../../components/Button/Button.vue2.cjs");
7
+ const Button = require("../../../../components/Button/Button.vue.cjs");
8
8
  const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
9
9
  const ProfileCompletion = require("../sections/ProfileCompletion.vue.cjs");
10
10
  const vueRouter = require("vue-router");
@@ -1,8 +1,8 @@
1
1
  import { ref, onMounted, openBlock, createElementBlock, unref, createBlock, createCommentVNode, createElementVNode, createVNode, toDisplayString, withCtx, createTextVNode } from "vue";
2
- /* empty css */
3
- import Field from "../../../../components/Field/Field.vue2.js";
2
+ /* empty css */
3
+ import Field from "../../../../components/Field/Field.vue.js";
4
4
  import _sfc_main$3 from "../../../../components/Checkbox/Checkbox.vue.js";
5
- import _sfc_main$4 from "../../../../components/Button/Button.vue2.js";
5
+ import _sfc_main$4 from "../../../../components/Button/Button.vue.js";
6
6
  import _sfc_main$2 from "../../../../components/UploadImage/UploadImage.vue.js";
7
7
  import _sfc_main$1 from "../sections/ProfileCompletion.vue.js";
8
8
  import { useRoute, useRouter } from "vue-router";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const wallet = require("../../localization/wallet.json.cjs");
5
- const Field = require("../../../../../components/Field/Field.vue2.cjs");
5
+ const Field = require("../../../../../components/Field/Field.vue.cjs");
6
6
  const vueI18n = require("vue-i18n");
7
7
  const _hoisted_1 = { class: "bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between" };
8
8
  const _sfc_main = {
@@ -1,6 +1,6 @@
1
1
  import { openBlock, createElementBlock, Fragment, createElementVNode, createVNode, unref, toDisplayString } from "vue";
2
2
  import text from "../../localization/wallet.json.js";
3
- import Field from "../../../../../components/Field/Field.vue2.js";
3
+ import Field from "../../../../../components/Field/Field.vue.js";
4
4
  import { useI18n } from "vue-i18n";
5
5
  const _hoisted_1 = { class: "bg-grey radius-big mn-t-semi mn-b-semi flex flex-justify-between" };
6
6
  const _sfc_main = {
@@ -5,7 +5,7 @@ const vueI18n = require("vue-i18n");
5
5
  const bignumber = require("../../../../../../node_modules/bignumber.js/bignumber.cjs");
6
6
  const wallet_store = require("../../store/wallet.store.cjs");
7
7
  const wallet = require("../../localization/wallet.json.cjs");
8
- const Field = require("../../../../../components/Field/Field.vue2.cjs");
8
+ const Field = require("../../../../../components/Field/Field.vue.cjs");
9
9
  const Select = require("../../../../../components/Select/Select.vue.cjs");
10
10
  const _hoisted_1 = { class: "mn-b-small t-center t-bold" };
11
11
  const _hoisted_2 = { class: "t-semi" };
@@ -3,7 +3,7 @@ import { useI18n } from "vue-i18n";
3
3
  import { BigNumber } from "../../../../../../node_modules/bignumber.js/bignumber.js";
4
4
  import { state, actions } from "../../store/wallet.store.js";
5
5
  import text from "../../localization/wallet.json.js";
6
- import Field from "../../../../../components/Field/Field.vue2.js";
6
+ import Field from "../../../../../components/Field/Field.vue.js";
7
7
  import Select from "../../../../../components/Select/Select.vue.js";
8
8
  const _hoisted_1 = { class: "mn-b-small t-center t-bold" };
9
9
  const _hoisted_2 = { class: "t-semi" };
@@ -6,7 +6,7 @@ const Web3 = require("web3");
6
6
  const wallet_store = require("../../store/wallet.store.cjs");
7
7
  const wallet = require("../../localization/wallet.json.cjs");
8
8
  const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
9
- const Button = require("../../../../../components/Button/Button.vue2.cjs");
9
+ const Button = require("../../../../../components/Button/Button.vue.cjs");
10
10
  require("vue-router");
11
11
  ;/* empty css */
12
12
  require("../../../../reports/store/reports.cjs");
@@ -4,7 +4,7 @@ import Web3 from "web3";
4
4
  import { state, actions } from "../../store/wallet.store.js";
5
5
  import text from "../../localization/wallet.json.js";
6
6
  import _sfc_main$3 from "../../../../../components/Popup/Popup.vue.js";
7
- import _sfc_main$1 from "../../../../../components/Button/Button.vue2.js";
7
+ import _sfc_main$1 from "../../../../../components/Button/Button.vue.js";
8
8
  import "vue-router";
9
9
  /* empty css */
10
10
  import "../../../../reports/store/reports.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.246",
3
+ "version": "0.2.248",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -56,6 +56,13 @@ module.exports = (projectRoot) => {
56
56
  filename: 'index.html',
57
57
  inject: 'body',
58
58
  }),
59
+ new CopyWebpackPlugin({
60
+ patterns: [
61
+ { from: path.resolve(projectRoot, "../public/logo"), to: 'logo' },
62
+ { from: path.resolve(projectRoot, "../public/walkthrough"), to: 'walkthrough' },
63
+ { from: path.resolve(projectRoot, "../public/icons"), to: 'icons' }
64
+ ]
65
+ })
59
66
  // new ServiceWorkerPlugin()
60
67
  ],
61
68
  optimization: {
@@ -43,81 +43,75 @@ onUnmounted(async () => {
43
43
  await stopScan()
44
44
  })
45
45
 
46
- const SCAN_TIMEOUT = 5000 // 5 секунд (можно изменить по вашему усмотрению)
47
-
48
- let lastScannedCode = null;
46
+ const SCAN_TIMEOUT = 2500 // 5 секунд (можно изменить по вашему усмотрению)
49
47
 
50
48
  async function startScan() {
51
49
  try {
52
- const { camera } = await BarcodeScanner.checkPermissions();
50
+ const { camera } = await BarcodeScanner.checkPermissions()
53
51
  if (camera !== 'granted') {
54
- const { camera: newStatus } = await BarcodeScanner.requestPermissions();
52
+ const { camera: newStatus } = await BarcodeScanner.requestPermissions()
55
53
  if (newStatus !== 'granted') {
56
- throw new Error('Camera permission is required to scan barcodes');
54
+ throw new Error('Camera permission is required to scan barcodes')
57
55
  }
58
56
  }
59
- document.querySelector('body')?.classList.add('barcode-scanner-active');
60
- document.querySelector('html')?.classList.add('barcode-scanner-active-html');
61
- isScanning.value = true;
62
-
63
- // Remove existing listeners before adding a new one
64
- await BarcodeScanner.removeAllListeners();
65
-
66
- await BarcodeScanner.addListener('barcodeScanned', handleBarcodeScanned);
67
- await BarcodeScanner.startScan();
68
- const { zoomRatio: min } = await BarcodeScanner.getMinZoomRatio();
69
- const { zoomRatio: max } = await BarcodeScanner.getMaxZoomRatio();
70
- minZoomRatio.value = min;
71
- maxZoomRatio.value = max;
57
+ document.querySelector('body')?.classList.add('barcode-scanner-active')
58
+ document.querySelector('html')?.classList.add('barcode-scanner-active-html')
59
+ isScanning.value = true
60
+ await BarcodeScanner.addListener('barcodeScanned', async (result) => {
61
+ if (!isProcessing.value) {
62
+ await processBarcode(result.barcode)
63
+ }
64
+ })
65
+ await BarcodeScanner.startScan()
66
+ const { zoomRatio: min } = await BarcodeScanner.getMinZoomRatio()
67
+ const { zoomRatio: max } = await BarcodeScanner.getMaxZoomRatio()
68
+ minZoomRatio.value = min
69
+ maxZoomRatio.value = max
72
70
  } catch (e) {
73
- error.value = e.message;
74
- alert(`Error: ${error.value}`);
71
+ error.value = e.message
72
+ alert(`Error: ${error.value}`)
75
73
  }
76
74
  }
77
75
 
78
76
  async function stopScan() {
79
77
  try {
80
- document.querySelector('body')?.classList.remove('barcode-scanner-active');
81
- document.querySelector('html')?.classList.remove('barcode-scanner-active-html');
82
- isScanning.value = false;
83
- await BarcodeScanner.stopScan();
84
- await BarcodeScanner.removeAllListeners();
85
- lastScannedCode = null; // Reset the last scanned code
78
+ document.querySelector('body')?.classList.remove('barcode-scanner-active')
79
+ document.querySelector('html')?.classList.remove('barcode-scanner-active-html')
80
+ isScanning.value = false
81
+ await BarcodeScanner.stopScan()
82
+ await BarcodeScanner.removeAllListeners()
86
83
  } catch (e) {
87
- error.value = e.message;
88
- alert(`Error stopping scan: ${error.value}`);
89
- }
90
- }
91
-
92
- async function handleBarcodeScanned(result) {
93
- if (!isProcessing.value && result.barcode.rawValue !== lastScannedCode) {
94
- lastScannedCode = result.barcode.rawValue;
95
- await processBarcode(result.barcode);
84
+ error.value = e.message
85
+ alert(`Error stopping scan: ${error.value}`)
96
86
  }
97
87
  }
98
88
 
99
89
  async function processBarcode(barcode) {
100
90
  if (isProcessing.value) return;
101
91
  isProcessing.value = true;
92
+
102
93
  try {
103
94
  if (!barcode || !barcode.rawValue) {
104
95
  throw new Error('Invalid barcode data');
105
96
  }
106
97
  console.log('barcode is', barcode);
107
- const response = await tickets.actions.update({ _id: barcode.rawValue, status: 'used', check: true });
98
+
99
+ const response = await tickets.actions.update({
100
+ _id: barcode.rawValue,
101
+ status: 'used',
102
+ check: true
103
+ });
104
+
108
105
  alert("Ticket checked. And it's all right!");
109
106
  emits('qrcodecheck');
107
+ } catch (e) {
108
+ console.error(e);
109
+ alert(`Ticket is not found, already used or deactivated!`);
110
+ } finally {
110
111
  // Устанавливаем таймаут перед следующим сканированием
111
112
  setTimeout(() => {
112
113
  isProcessing.value = false;
113
- lastScannedCode = null; // Reset the last scanned code after processing
114
114
  }, SCAN_TIMEOUT);
115
- } catch (e) {
116
- console.error(e);
117
- isProcessing.value = false;
118
- alert(`Ticket is not found, already used or deactivated!`);
119
- // Сбрасываем флаг isProcessing в случае ошибки, чтобы можно было попробовать снова
120
- lastScannedCode = null; // Reset the last scanned code in case of error
121
115
  }
122
116
  }
123
117