@ozdao/prometheus-framework 0.2.249 → 0.2.251
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +8 -9
- package/dist/builder.mjs +8 -9
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +46 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +46 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.cjs +35 -13
- package/dist/prometheus-framework/src/modules/events/events.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.js +41 -19
- package/dist/prometheus-framework/src/modules/events/events.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +95 -91
- package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +94 -90
- package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -10
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +3 -11
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +693 -693
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +693 -693
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.spa.js +7 -7
- package/src/modules/events/components/elements/ButtonCheck.vue +28 -28
- package/src/modules/events/components/pages/EventsBackoffice.vue +1 -1
- package/src/modules/events/events.client.js +43 -18
- package/src/modules/events/router/events.js +79 -66
- package/src/modules/governance/governance.client.js +62 -0
- package/src/modules/governance/governance.server.js +56 -0
- package/src/modules/organizations/router/organizations.js +4 -11
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, onMounted, onUnmounted, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, createBlock, Teleport, createElementVNode, createCommentVNode } from "vue";
|
2
2
|
import { BarcodeScanner } from "../../../../../../node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js";
|
3
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
4
|
-
import "../../store/tickets.js";
|
3
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
4
|
+
import { actions } from "../../store/tickets.js";
|
5
5
|
/* empty css */
|
6
6
|
const _hoisted_1 = {
|
7
7
|
key: 0,
|
@@ -12,16 +12,18 @@ const _hoisted_2 = {
|
|
12
12
|
class: "zoom-ratio-wrapper"
|
13
13
|
};
|
14
14
|
const _hoisted_3 = ["min", "max"];
|
15
|
+
const SCAN_TIMEOUT = 1e3;
|
15
16
|
const _sfc_main = {
|
16
17
|
__name: "ButtonCheck",
|
17
18
|
emits: ["qrcodecheck"],
|
18
19
|
setup(__props, { emit: __emit }) {
|
20
|
+
const emits = __emit;
|
19
21
|
const error = ref("");
|
20
22
|
const isScanning = ref(false);
|
21
23
|
const isTorchAvailable = ref(false);
|
22
24
|
const minZoomRatio = ref(void 0);
|
23
25
|
const maxZoomRatio = ref(void 0);
|
24
|
-
ref(false);
|
26
|
+
const isProcessing = ref(false);
|
25
27
|
onMounted(async () => {
|
26
28
|
const { supported } = await BarcodeScanner.isSupported();
|
27
29
|
if (!supported) {
|
@@ -31,14 +33,30 @@ const _sfc_main = {
|
|
31
33
|
isTorchAvailable.value = available;
|
32
34
|
});
|
33
35
|
onUnmounted(async () => {
|
34
|
-
await stopScan();
|
35
36
|
});
|
36
37
|
async function startScan() {
|
37
38
|
var _a, _b;
|
38
39
|
try {
|
40
|
+
const { camera } = await BarcodeScanner.checkPermissions();
|
41
|
+
if (camera !== "granted") {
|
42
|
+
const { camera: newStatus } = await BarcodeScanner.requestPermissions();
|
43
|
+
if (newStatus !== "granted") {
|
44
|
+
throw new Error("Camera permission is required to scan barcodes");
|
45
|
+
}
|
46
|
+
}
|
39
47
|
(_a = document.querySelector("body")) == null ? void 0 : _a.classList.add("barcode-scanner-active");
|
40
48
|
(_b = document.querySelector("html")) == null ? void 0 : _b.classList.add("barcode-scanner-active-html");
|
41
49
|
isScanning.value = true;
|
50
|
+
await BarcodeScanner.addListener("barcodeScanned", async (result) => {
|
51
|
+
if (!isProcessing.value) {
|
52
|
+
await processBarcode(result.barcode);
|
53
|
+
}
|
54
|
+
});
|
55
|
+
await BarcodeScanner.startScan();
|
56
|
+
const { zoomRatio: min } = await BarcodeScanner.getMinZoomRatio();
|
57
|
+
const { zoomRatio: max } = await BarcodeScanner.getMaxZoomRatio();
|
58
|
+
minZoomRatio.value = min;
|
59
|
+
maxZoomRatio.value = max;
|
42
60
|
} catch (e) {
|
43
61
|
error.value = e.message;
|
44
62
|
alert(`Error: ${error.value}`);
|
@@ -57,6 +75,30 @@ const _sfc_main = {
|
|
57
75
|
alert(`Error stopping scan: ${error.value}`);
|
58
76
|
}
|
59
77
|
}
|
78
|
+
async function processBarcode(barcode) {
|
79
|
+
if (isProcessing.value) return;
|
80
|
+
isProcessing.value = true;
|
81
|
+
try {
|
82
|
+
if (!barcode || !barcode.rawValue) {
|
83
|
+
throw new Error("Invalid barcode data");
|
84
|
+
}
|
85
|
+
console.log("barcode is", barcode);
|
86
|
+
const response = await actions.update({
|
87
|
+
_id: barcode.rawValue,
|
88
|
+
status: "used",
|
89
|
+
check: true
|
90
|
+
});
|
91
|
+
alert("Ticket checked. And it's all right!");
|
92
|
+
emits("qrcodecheck");
|
93
|
+
} catch (e) {
|
94
|
+
console.error(e);
|
95
|
+
alert(`Ticket is not found, already used or deactivated!`);
|
96
|
+
} finally {
|
97
|
+
setTimeout(() => {
|
98
|
+
isProcessing.value = false;
|
99
|
+
}, SCAN_TIMEOUT);
|
100
|
+
}
|
101
|
+
}
|
60
102
|
async function setZoomRatio(event) {
|
61
103
|
const zoomRatio = parseFloat(event.target.value);
|
62
104
|
await BarcodeScanner.setZoomRatio({ zoomRatio });
|
package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ButtonCheck.vue.js","sources":["../../../../../../../src/modules/events/components/elements/ButtonCheck.vue"],"sourcesContent":["<template>\n <div>\n <Button @click=\"startScan\" class=\"bg-main button-small radius-extra button\">\n Check Tickets\n </Button>\n \n <teleport to=\"body\" v-if=\"isScanning\">\n
|
1
|
+
{"version":3,"file":"ButtonCheck.vue.js","sources":["../../../../../../../src/modules/events/components/elements/ButtonCheck.vue"],"sourcesContent":["<template>\n <div>\n <Button @click=\"startScan\" class=\"bg-main button-small radius-extra button\">\n Check Tickets\n </Button>\n \n <teleport to=\"body\" v-if=\"isScanning\">\n <div v-if=\"isScanning\" class=\"barcode-scanner-modal\">\n <div class=\"square\"></div>\n <div class=\"zoom-ratio-wrapper\" v-if=\"minZoomRatio !== undefined && maxZoomRatio !== undefined\">\n <input type=\"range\" :min=\"minZoomRatio\" :max=\"maxZoomRatio\" @input=\"setZoomRatio\" />\n </div>\n <Button @click=\"stopScan\" class=\"bg-white t-black stop-scan-button\">Stop Scan</Button>\n <Button v-if=\"isTorchAvailable\" @click=\"toggleTorch\" class=\"bg-white torch-button\">\n Toggle Torch\n </Button>\n </div>\n </teleport>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted, onUnmounted } from 'vue'\nimport { BarcodeScanner } from '@capacitor-mlkit/barcode-scanning'\nimport Button from '@pf/src/components/Button/Button.vue'\nimport * as tickets from '@pf/src/modules/events/store/tickets'\n\nconst emits = defineEmits(['qrcodecheck'])\nconst error = ref('')\nconst isScanning = ref(false)\nconst isTorchAvailable = ref(false)\nconst minZoomRatio = ref(undefined)\nconst maxZoomRatio = ref(undefined)\nconst isProcessing = ref(false)\n\nonMounted(async () => {\n const { supported } = await BarcodeScanner.isSupported()\n if (!supported) {\n error.value = 'Barcode scanning is not supported on this device'\n }\n const { available } = await BarcodeScanner.isTorchAvailable()\n isTorchAvailable.value = available\n})\n\nonUnmounted(async () => {\n // await stopScan()\n})\n\nconst SCAN_TIMEOUT = 1000 // 5 секунд (можно изменить по вашему усмотрению)\n\nasync function startScan() {\n try {\n const { camera } = await BarcodeScanner.checkPermissions()\n if (camera !== 'granted') {\n const { camera: newStatus } = await BarcodeScanner.requestPermissions()\n if (newStatus !== 'granted') {\n throw new Error('Camera permission is required to scan barcodes')\n }\n }\n document.querySelector('body')?.classList.add('barcode-scanner-active')\n document.querySelector('html')?.classList.add('barcode-scanner-active-html')\n isScanning.value = true\n await BarcodeScanner.addListener('barcodeScanned', async (result) => {\n if (!isProcessing.value) {\n await processBarcode(result.barcode)\n }\n })\n await BarcodeScanner.startScan()\n const { zoomRatio: min } = await BarcodeScanner.getMinZoomRatio()\n const { zoomRatio: max } = await BarcodeScanner.getMaxZoomRatio()\n minZoomRatio.value = min\n maxZoomRatio.value = max\n } catch (e) {\n error.value = e.message\n alert(`Error: ${error.value}`)\n }\n}\n\nasync function stopScan() {\n try {\n document.querySelector('body')?.classList.remove('barcode-scanner-active')\n document.querySelector('html')?.classList.remove('barcode-scanner-active-html')\n isScanning.value = false\n await BarcodeScanner.stopScan()\n await BarcodeScanner.removeAllListeners()\n } catch (e) {\n error.value = e.message\n alert(`Error stopping scan: ${error.value}`)\n }\n}\n\nasync function processBarcode(barcode) {\n if (isProcessing.value) return;\n isProcessing.value = true;\n \n try {\n if (!barcode || !barcode.rawValue) {\n throw new Error('Invalid barcode data');\n }\n console.log('barcode is', barcode);\n\n const response = await tickets.actions.update({\n _id: barcode.rawValue,\n status: 'used',\n check: true\n });\n\n alert(\"Ticket checked. And it's all right!\");\n emits('qrcodecheck');\n } catch (e) {\n console.error(e);\n alert(`Ticket is not found, already used or deactivated!`);\n } finally {\n // Устанавливаем таймаут перед следующим сканированием\n setTimeout(() => {\n isProcessing.value = false;\n }, SCAN_TIMEOUT);\n }\n}\n\nasync function setZoomRatio(event) {\n const zoomRatio = parseFloat(event.target.value)\n await BarcodeScanner.setZoomRatio({ zoomRatio })\n}\n\nasync function toggleTorch() {\n await BarcodeScanner.toggleTorch()\n}\n</script>\n\n<style>\n.barcode-scanner-modal {\n visibility: visible;\n position: fixed;\n top: 0;\n left: 0%;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0);\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.square {\n width: 200px;\n height: 200px;\n border: 2px solid white;\n border-radius: 10px;\n}\n\n.zoom-ratio-wrapper {\n width: 80%;\n margin-top: 20px;\n}\n\n.stop-scan-button,\n.torch-button {\n margin-top: 20px;\n}\n\n/* Existing styles */\nbody.barcode-scanner-active {\n left: -100%;\n/* visibility: hidden !important;*/\n background: transparent !important;\n --background: transparent;\n --ion-background-color: transparent;\n}\n\nhtml.barcode-scanner-active-html {\n background: transparent !important;\n}\n</style>\n"],"names":["tickets.actions"],"mappings":";;;;;;;;;;;;;;AAgDA,MAAM,eAAe;;;;;AArBrB,UAAM,QAAQ;AACd,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,aAAa,IAAI,KAAK;AAC5B,UAAM,mBAAmB,IAAI,KAAK;AAClC,UAAM,eAAe,IAAI,MAAS;AAClC,UAAM,eAAe,IAAI,MAAS;AAClC,UAAM,eAAe,IAAI,KAAK;AAE9B,cAAU,YAAY;AACpB,YAAM,EAAE,UAAS,IAAK,MAAM,eAAe,YAAa;AACxD,UAAI,CAAC,WAAW;AACd,cAAM,QAAQ;AAAA,MACf;AACD,YAAM,EAAE,UAAS,IAAK,MAAM,eAAe,iBAAkB;AAC7D,uBAAiB,QAAQ;AAAA,IAC3B,CAAC;AAED,gBAAY,YAAY;AAAA,IAExB,CAAC;AAID,mBAAe,YAAY;;AACzB,UAAI;AACF,cAAM,EAAE,OAAM,IAAK,MAAM,eAAe,iBAAkB;AAC1D,YAAI,WAAW,WAAW;AACxB,gBAAM,EAAE,QAAQ,UAAW,IAAG,MAAM,eAAe,mBAAoB;AACvE,cAAI,cAAc,WAAW;AAC3B,kBAAM,IAAI,MAAM,gDAAgD;AAAA,UACjE;AAAA,QACF;AACD,uBAAS,cAAc,MAAM,MAA7B,mBAAgC,UAAU,IAAI;AAC9C,uBAAS,cAAc,MAAM,MAA7B,mBAAgC,UAAU,IAAI;AAC9C,mBAAW,QAAQ;AACnB,cAAM,eAAe,YAAY,kBAAkB,OAAO,WAAW;AACnE,cAAI,CAAC,aAAa,OAAO;AACvB,kBAAM,eAAe,OAAO,OAAO;AAAA,UACpC;AAAA,QACP,CAAK;AACD,cAAM,eAAe,UAAW;AAChC,cAAM,EAAE,WAAW,IAAK,IAAG,MAAM,eAAe,gBAAiB;AACjE,cAAM,EAAE,WAAW,IAAK,IAAG,MAAM,eAAe,gBAAiB;AACjE,qBAAa,QAAQ;AACrB,qBAAa,QAAQ;AAAA,MACtB,SAAQ,GAAG;AACV,cAAM,QAAQ,EAAE;AAChB,cAAM,UAAU,MAAM,KAAK,EAAE;AAAA,MAC9B;AAAA,IACH;AAEA,mBAAe,WAAW;;AACxB,UAAI;AACF,uBAAS,cAAc,MAAM,MAA7B,mBAAgC,UAAU,OAAO;AACjD,uBAAS,cAAc,MAAM,MAA7B,mBAAgC,UAAU,OAAO;AACjD,mBAAW,QAAQ;AACnB,cAAM,eAAe,SAAU;AAC/B,cAAM,eAAe,mBAAoB;AAAA,MAC1C,SAAQ,GAAG;AACV,cAAM,QAAQ,EAAE;AAChB,cAAM,wBAAwB,MAAM,KAAK,EAAE;AAAA,MAC5C;AAAA,IACH;AAEA,mBAAe,eAAe,SAAS;AACrC,UAAI,aAAa,MAAO;AACxB,mBAAa,QAAQ;AAErB,UAAI;AACF,YAAI,CAAC,WAAW,CAAC,QAAQ,UAAU;AACjC,gBAAM,IAAI,MAAM,sBAAsB;AAAA,QACvC;AACD,gBAAQ,IAAI,cAAc,OAAO;AAEjC,cAAM,WAAW,MAAMA,QAAgB,OAAO;AAAA,UAC5C,KAAK,QAAQ;AAAA,UACb,QAAQ;AAAA,UACR,OAAO;AAAA,QACb,CAAK;AAED,cAAM,qCAAqC;AAC3C,cAAM,aAAa;AAAA,MACpB,SAAQ,GAAG;AACV,gBAAQ,MAAM,CAAC;AACf,cAAM,mDAAmD;AAAA,MAC7D,UAAY;AAER,mBAAW,MAAM;AACf,uBAAa,QAAQ;AAAA,QACtB,GAAE,YAAY;AAAA,MAChB;AAAA,IACH;AAEA,mBAAe,aAAa,OAAO;AACjC,YAAM,YAAY,WAAW,MAAM,OAAO,KAAK;AAC/C,YAAM,eAAe,aAAa,EAAE,WAAW;AAAA,IACjD;AAEA,mBAAe,cAAc;AAC3B,YAAM,eAAe,YAAa;AAAA,IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
const Button = require("../../../../components/Button/Button.
|
4
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
5
5
|
require("../../../auth/views/store/auth.cjs");
|
6
6
|
const tickets = require("../../store/tickets.cjs");
|
7
7
|
;/* empty css */
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock, createBlock, withCtx, createTextVNode, toDisplayString } from "vue";
|
2
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
2
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
3
3
|
import "../../../auth/views/store/auth.js";
|
4
4
|
import { actions } from "../../store/tickets.js";
|
5
5
|
/* empty css */
|
@@ -8,7 +8,7 @@ const vueDatepicker = require("../../../../../../node_modules/@vuepic/vue-datepi
|
|
8
8
|
;/* empty css */
|
9
9
|
;/* empty css */
|
10
10
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
11
|
-
const Popup = require("../../../../components/Popup/Popup.
|
11
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
12
12
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
13
13
|
const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
|
14
14
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
@@ -17,7 +17,7 @@ const Upload = require("../../../../components/Upload/Upload.vue.cjs");
|
|
17
17
|
const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
|
18
18
|
const EditImages = require("../../../../components/EditImages/EditImages.vue.cjs");
|
19
19
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
20
|
-
const Button = require("../../../../components/Button/Button.
|
20
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
21
21
|
const Card = require("../../../globals/views/components/blocks/Card.vue.cjs");
|
22
22
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
23
23
|
const vueRouter = require("vue-router");
|
@@ -6,7 +6,7 @@ import Vn from "../../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-d
|
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$4 from "../../../../components/Block/Block.vue.js";
|
9
|
-
import _sfc_main$7 from "../../../../components/Popup/Popup.
|
9
|
+
import _sfc_main$7 from "../../../../components/Popup/Popup.vue.js";
|
10
10
|
import Field from "../../../../components/Field/Field.vue2.js";
|
11
11
|
import _sfc_main$8 from "../../../../components/FieldTags/BlockTags.vue.js";
|
12
12
|
import _sfc_main$2 from "../../../../components/Checkbox/Checkbox.vue.js";
|
@@ -15,7 +15,7 @@ import Upload from "../../../../components/Upload/Upload.vue.js";
|
|
15
15
|
import _sfc_main$1 from "../../../../components/UploadImage/UploadImage.vue.js";
|
16
16
|
import _sfc_main$3 from "../../../../components/EditImages/EditImages.vue.js";
|
17
17
|
import _sfc_main$a from "../../../../components/Feed/Feed.vue.js";
|
18
|
-
import _sfc_main$b from "../../../../components/Button/Button.
|
18
|
+
import _sfc_main$b from "../../../../components/Button/Button.vue.js";
|
19
19
|
import _sfc_main$9 from "../../../globals/views/components/blocks/Card.vue.js";
|
20
20
|
import _sfc_main$5 from "../../../icons/navigation/IconDelete.vue.js";
|
21
21
|
import { useRoute, useRouter } from "vue-router";
|
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs
CHANGED
@@ -3,9 +3,9 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
5
5
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
6
|
-
const Popup = require("../../../../components/Popup/Popup.
|
6
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
7
7
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
8
|
-
const Button = require("../../../../components/Button/Button.
|
8
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
9
9
|
const ButtonCheck = require("../elements/ButtonCheck.vue.cjs");
|
10
10
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
11
11
|
const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
|
package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ref, onMounted, unref, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, Fragment, renderList, createTextVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
|
2
2
|
import _sfc_main$7 from "../../../../components/Feed/Feed.vue.js";
|
3
3
|
import _sfc_main$3 from "../../../../components/Block/Block.vue.js";
|
4
|
-
import _sfc_main$2 from "../../../../components/Popup/Popup.
|
4
|
+
import _sfc_main$2 from "../../../../components/Popup/Popup.vue.js";
|
5
5
|
import Field from "../../../../components/Field/Field.vue2.js";
|
6
|
-
import _sfc_main$6 from "../../../../components/Button/Button.
|
6
|
+
import _sfc_main$6 from "../../../../components/Button/Button.vue.js";
|
7
7
|
import _sfc_main$1 from "../elements/ButtonCheck.vue.js";
|
8
8
|
import _sfc_main$5 from "../../../icons/navigation/IconDelete.vue.js";
|
9
9
|
import _sfc_main$4 from "../../../icons/navigation/IconAdd.vue.js";
|
@@ -1,7 +1,7 @@
|
|
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
|
4
|
+
;/* empty css */
|
5
5
|
const HeroEvent = require("../sections/HeroEvent.vue.cjs");
|
6
6
|
const SectionMainGuest = require("../sections/SectionMainGuest.vue.cjs");
|
7
7
|
const SectionSpecialGuests = require("../sections/SectionSpecialGuests.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createCommentVNode, createBlock, normalizeStyle, createElementVNode, normalizeClass, resolveDynamicComponent, mergeProps } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import HeroEvent from "../sections/HeroEvent.vue.js";
|
4
4
|
import _sfc_main$1 from "../sections/SectionMainGuest.vue.js";
|
5
5
|
import _sfc_main$2 from "../sections/SectionSpecialGuests.vue.js";
|
package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs
CHANGED
@@ -79,7 +79,7 @@ const _sfc_main = {
|
|
79
79
|
url: event.url
|
80
80
|
}
|
81
81
|
}), ["stop"])
|
82
|
-
}, "
|
82
|
+
}, " Manage Tickets ", 8, _hoisted_3)) : vue.createCommentVNode("", true)
|
83
83
|
]),
|
84
84
|
_: 2
|
85
85
|
}, 1032, ["onClick", "event", "user"]);
|
package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EventsBackoffice.vue.cjs","sources":["../../../../../../../src/modules/events/components/pages/EventsBackoffice.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"pd-thin\"\n\t>\n\t\t<header \n\t\t\tclass=\"mn-b-medium flex-v-center flex-nowrap flex\"\n\t\t>\n\t \t<h2\n\t \t\tclass=\"mn-r-medium\"\n\t \t>\n\t \t\tEvents\n\t \t</h2>\n\t \t\n\t \t<button \n\t \t\tv-if=\"auth.state.user._id === route.params.user || route.params._id\"\n\t \t\t@click=\"router.push({name: 'Create Event'})\" \n\t \t\tclass=\"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second\"\n\t \t>\n\t \t\t+\n\t \t</button>\n\t\t</header>\n\n\t\t<Tab \n\t\t\tv-if=\"route.params._id\"\n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'My', \tvalue: 'owner' },\n\t\t\t\t{ name: 'Participant', \tvalue: 'participant' },\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t\n\n\t\t<Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => events.read(options),\n }\"\n :options=\"{\n user: auth.state.user._id,\n owner: route.params._id || route.params.user,\n creator: route.params.user\n }\"\n v-slot=\"{ \n items \n }\"\n >\n <CardEvent \n @click=\"$router.push({name: 'Event', params: {url: event.url}})\" \n v-for=\"(event,index) in items\" \n :key=\"event._id\" \n :event=\"event\" \n :user=\"auth.state.user._id\" \n :type=\"'normal'\"\n class=\"bg-light radius-big mn-b-medium\"\n >\n\n\t\t <div \n\t\t v-if=\"route.params._id && hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t class=\"mn-b-semi w-100 bg-second button t-white uppercase\"\n\t\t @click.stop=\"router.push({\n\t\t name: 'Edit Event Tickets',\n\t\t params: {\n\t\t url: event.url\n\t\t }\n\t\t })\"\n\t\t >\n\t\t
|
1
|
+
{"version":3,"file":"EventsBackoffice.vue.cjs","sources":["../../../../../../../src/modules/events/components/pages/EventsBackoffice.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"pd-thin\"\n\t>\n\t\t<header \n\t\t\tclass=\"mn-b-medium flex-v-center flex-nowrap flex\"\n\t\t>\n\t \t<h2\n\t \t\tclass=\"mn-r-medium\"\n\t \t>\n\t \t\tEvents\n\t \t</h2>\n\t \t\n\t \t<button \n\t \t\tv-if=\"auth.state.user._id === route.params.user || route.params._id\"\n\t \t\t@click=\"router.push({name: 'Create Event'})\" \n\t \t\tclass=\"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second\"\n\t \t>\n\t \t\t+\n\t \t</button>\n\t\t</header>\n\n\t\t<Tab \n\t\t\tv-if=\"route.params._id\"\n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'My', \tvalue: 'owner' },\n\t\t\t\t{ name: 'Participant', \tvalue: 'participant' },\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t\n\n\t\t<Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => events.read(options),\n }\"\n :options=\"{\n user: auth.state.user._id,\n owner: route.params._id || route.params.user,\n creator: route.params.user\n }\"\n v-slot=\"{ \n items \n }\"\n >\n <CardEvent \n @click=\"$router.push({name: 'Event', params: {url: event.url}})\" \n v-for=\"(event,index) in items\" \n :key=\"event._id\" \n :event=\"event\" \n :user=\"auth.state.user._id\" \n :type=\"'normal'\"\n class=\"bg-light radius-big mn-b-medium\"\n >\n\n\t\t <div \n\t\t v-if=\"route.params._id && hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t class=\"mn-b-semi w-100 bg-second button t-white uppercase\"\n\t\t @click.stop=\"router.push({\n\t\t name: 'Edit Event Tickets',\n\t\t params: {\n\t\t url: event.url\n\t\t }\n\t\t })\"\n\t\t >\n\t\t Manage Tickets\n\t\t </div>\n </CardEvent>\n </Feed>\n\n <!-- <Feed \n\t\t\tv-if=\"tabOrganization ==='owner'\"\n\t \t:user=\"auth.state.user._id\"\n\t\t\t:creator=\"route.params.user\"\n\t\t\t:owner=\"route.params._id\"\n\t\t\t:sortOrder=\"'asc'\"\n\t\t/> -->\n\n\n\t\t<!-- <Feed \n\t\t\tv-if=\"tabOrganization ==='participant'\"\n \t\t:user=\"auth.state.user._id\"\n \t\t:participant=\"route.params.user\"\n \t\t:owner=\"route.params._id\"\n\t\t\t:sortOrder=\"'desc'\"\n\t\t/> -->\n\t</div>\n</template>\n\n<script setup>\n\timport { watch, ref } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Components\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardEvent from '@pf/src/modules/events/components/blocks/CardEvent.vue';\n\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n\timport * as events from '@pf/src/modules/events/store/events.js'; \n\t// Accessing router\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// State\n\tlet tab = route.query.tab ? route.query.tab : 'owner';\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\twatch(tabOrganization, (newValue) => {\n\t router.replace({ query: { ...route.query, tab: newValue } });\n\t});\n</script>"],"names":["useRoute","useRouter","ref","watch"],"mappings":";;;;;;;;;;;;;;;AA6GC,UAAM,QAAQA,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAE1B,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,kBAAkBC,IAAG,IAAC,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;AAElCC,cAAM,iBAAiB,CAAC,aAAa;AACnC,aAAO,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,KAAK,SAAU,EAAA,CAAE;AAAA,IAC9D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js
CHANGED
@@ -77,7 +77,7 @@ const _sfc_main = {
|
|
77
77
|
url: event.url
|
78
78
|
}
|
79
79
|
}), ["stop"])
|
80
|
-
}, "
|
80
|
+
}, " Manage Tickets ", 8, _hoisted_3)) : createCommentVNode("", true)
|
81
81
|
]),
|
82
82
|
_: 2
|
83
83
|
}, 1032, ["onClick", "event", "user"]);
|
package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EventsBackoffice.vue.js","sources":["../../../../../../../src/modules/events/components/pages/EventsBackoffice.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"pd-thin\"\n\t>\n\t\t<header \n\t\t\tclass=\"mn-b-medium flex-v-center flex-nowrap flex\"\n\t\t>\n\t \t<h2\n\t \t\tclass=\"mn-r-medium\"\n\t \t>\n\t \t\tEvents\n\t \t</h2>\n\t \t\n\t \t<button \n\t \t\tv-if=\"auth.state.user._id === route.params.user || route.params._id\"\n\t \t\t@click=\"router.push({name: 'Create Event'})\" \n\t \t\tclass=\"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second\"\n\t \t>\n\t \t\t+\n\t \t</button>\n\t\t</header>\n\n\t\t<Tab \n\t\t\tv-if=\"route.params._id\"\n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'My', \tvalue: 'owner' },\n\t\t\t\t{ name: 'Participant', \tvalue: 'participant' },\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t\n\n\t\t<Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => events.read(options),\n }\"\n :options=\"{\n user: auth.state.user._id,\n owner: route.params._id || route.params.user,\n creator: route.params.user\n }\"\n v-slot=\"{ \n items \n }\"\n >\n <CardEvent \n @click=\"$router.push({name: 'Event', params: {url: event.url}})\" \n v-for=\"(event,index) in items\" \n :key=\"event._id\" \n :event=\"event\" \n :user=\"auth.state.user._id\" \n :type=\"'normal'\"\n class=\"bg-light radius-big mn-b-medium\"\n >\n\n\t\t <div \n\t\t v-if=\"route.params._id && hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t class=\"mn-b-semi w-100 bg-second button t-white uppercase\"\n\t\t @click.stop=\"router.push({\n\t\t name: 'Edit Event Tickets',\n\t\t params: {\n\t\t url: event.url\n\t\t }\n\t\t })\"\n\t\t >\n\t\t
|
1
|
+
{"version":3,"file":"EventsBackoffice.vue.js","sources":["../../../../../../../src/modules/events/components/pages/EventsBackoffice.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"pd-thin\"\n\t>\n\t\t<header \n\t\t\tclass=\"mn-b-medium flex-v-center flex-nowrap flex\"\n\t\t>\n\t \t<h2\n\t \t\tclass=\"mn-r-medium\"\n\t \t>\n\t \t\tEvents\n\t \t</h2>\n\t \t\n\t \t<button \n\t \t\tv-if=\"auth.state.user._id === route.params.user || route.params._id\"\n\t \t\t@click=\"router.push({name: 'Create Event'})\" \n\t \t\tclass=\"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second\"\n\t \t>\n\t \t\t+\n\t \t</button>\n\t\t</header>\n\n\t\t<Tab \n\t\t\tv-if=\"route.params._id\"\n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'My', \tvalue: 'owner' },\n\t\t\t\t{ name: 'Participant', \tvalue: 'participant' },\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t\n\n\t\t<Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => events.read(options),\n }\"\n :options=\"{\n user: auth.state.user._id,\n owner: route.params._id || route.params.user,\n creator: route.params.user\n }\"\n v-slot=\"{ \n items \n }\"\n >\n <CardEvent \n @click=\"$router.push({name: 'Event', params: {url: event.url}})\" \n v-for=\"(event,index) in items\" \n :key=\"event._id\" \n :event=\"event\" \n :user=\"auth.state.user._id\" \n :type=\"'normal'\"\n class=\"bg-light radius-big mn-b-medium\"\n >\n\n\t\t <div \n\t\t v-if=\"route.params._id && hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t class=\"mn-b-semi w-100 bg-second button t-white uppercase\"\n\t\t @click.stop=\"router.push({\n\t\t name: 'Edit Event Tickets',\n\t\t params: {\n\t\t url: event.url\n\t\t }\n\t\t })\"\n\t\t >\n\t\t Manage Tickets\n\t\t </div>\n </CardEvent>\n </Feed>\n\n <!-- <Feed \n\t\t\tv-if=\"tabOrganization ==='owner'\"\n\t \t:user=\"auth.state.user._id\"\n\t\t\t:creator=\"route.params.user\"\n\t\t\t:owner=\"route.params._id\"\n\t\t\t:sortOrder=\"'asc'\"\n\t\t/> -->\n\n\n\t\t<!-- <Feed \n\t\t\tv-if=\"tabOrganization ==='participant'\"\n \t\t:user=\"auth.state.user._id\"\n \t\t:participant=\"route.params.user\"\n \t\t:owner=\"route.params._id\"\n\t\t\t:sortOrder=\"'desc'\"\n\t\t/> -->\n\t</div>\n</template>\n\n<script setup>\n\timport { watch, ref } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Components\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardEvent from '@pf/src/modules/events/components/blocks/CardEvent.vue';\n\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n\timport * as events from '@pf/src/modules/events/store/events.js'; \n\t// Accessing router\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// State\n\tlet tab = route.query.tab ? route.query.tab : 'owner';\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\twatch(tabOrganization, (newValue) => {\n\t router.replace({ query: { ...route.query, tab: newValue } });\n\t});\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;AA6GC,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAE1B,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,kBAAkB,IAAI,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;AAElC,UAAM,iBAAiB,CAAC,aAAa;AACnC,aAAO,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,KAAK,SAAU,EAAA,CAAE;AAAA,IAC9D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,7 +1,7 @@
|
|
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
|
4
|
+
;/* empty css */
|
5
5
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
6
6
|
const CardEvent = require("../blocks/CardEvent.vue.cjs");
|
7
7
|
const SkeletonEvent = require("../../../icons/skeletons/SkeletonEvent.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createBlock, createCommentVNode, Transition } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import _sfc_main$2 from "../blocks/CardEvent.vue.js";
|
5
5
|
import SkeletonEvent from "../../../icons/skeletons/SkeletonEvent.vue.js";
|
@@ -1,7 +1,7 @@
|
|
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
|
4
|
+
;/* empty css */
|
5
5
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
6
6
|
const CardEvent = require("../blocks/CardEvent.vue.cjs");
|
7
7
|
const SkeletonEventShort = require("../../../icons/skeletons/SkeletonEventShort.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createBlock, createCommentVNode, Transition, normalizeClass } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import _sfc_main$2 from "../blocks/CardEvent.vue.js";
|
5
5
|
import SkeletonEventShort from "../../../icons/skeletons/SkeletonEventShort.vue.js";
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const events = require("./store/events.cjs");
|
4
|
+
const events$1 = require("./router/events.cjs");
|
3
5
|
const CardEvent = require("./components/blocks/CardEvent.vue.cjs");
|
4
6
|
const Feed = require("./components/sections/Feed.vue.cjs");
|
5
7
|
const List = require("./components/sections/List.vue.cjs");
|
@@ -8,16 +10,36 @@ const layoutEvents = require("./components/layouts/layoutEvents.vue.cjs");
|
|
8
10
|
const EditEvent = require("./components/pages/EditEvent.vue.cjs");
|
9
11
|
const Event = require("./components/pages/Event.vue.cjs");
|
10
12
|
const Events = require("./components/pages/Events.vue.cjs");
|
11
|
-
|
12
|
-
const
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
13
|
+
function initializeEvents(app, store, router, options = {}) {
|
14
|
+
const route = options.route || "Home";
|
15
|
+
const routesEvents = events$1.createEventRoutes();
|
16
|
+
router.addRoute(route, routesEvents);
|
17
|
+
store.addStore("events", events);
|
18
|
+
}
|
19
|
+
const ModuleEvents = {
|
20
|
+
initialize: initializeEvents,
|
21
|
+
views: {
|
22
|
+
store: {
|
23
|
+
storeEvents: events
|
24
|
+
},
|
25
|
+
router: {
|
26
|
+
createEventRoutes: events$1.createEventRoutes
|
27
|
+
},
|
28
|
+
components: {
|
29
|
+
// Blocks
|
30
|
+
CardEvent: CardEvent.default,
|
31
|
+
// Sections
|
32
|
+
Feed: Feed.default,
|
33
|
+
List: List.default,
|
34
|
+
FeaturedEvents: FeaturedEvents.default,
|
35
|
+
// Layouts
|
36
|
+
EventsLayout: layoutEvents.default,
|
37
|
+
// Pages
|
38
|
+
EditEvent: EditEvent.default,
|
39
|
+
EventPage: Event.default,
|
40
|
+
EventsPage: Events.default
|
41
|
+
}
|
42
|
+
}
|
43
|
+
};
|
44
|
+
exports.default = ModuleEvents;
|
23
45
|
//# sourceMappingURL=events.client.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.client.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"events.client.cjs","sources":["../../../../../src/modules/events/events.client.js"],"sourcesContent":["// Store\nimport * as storeEvents from './store/events.js';\n\n// Router\nimport { createEventRoutes } from './router/events';\n\n// Views\nimport CardEvent from './components/blocks/CardEvent.vue';\nimport Feed from './components/sections/Feed.vue';\nimport List from './components/sections/List.vue';\nimport FeaturedEvents from './components/sections/FeaturedEvents.vue';\nimport EventsLayout from './components/layouts/layoutEvents.vue';\nimport EditEvent from './components/pages/EditEvent.vue';\nimport EventPage from './components/pages/Event.vue';\nimport EventsPage from './components/pages/Events.vue';\n\n// Пример функции инициализации для модуля событий\nfunction initializeEvents(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n const routesEvents = createEventRoutes();\n \n router.addRoute(route, routesEvents);\n \n store.addStore('events', storeEvents);\n}\n\nconst ModuleEvents = {\n initialize: initializeEvents,\n views: {\n store: {\n storeEvents\n },\n router: {\n createEventRoutes\n },\n components: {\n // Blocks\n CardEvent,\n // Sections\n Feed,\n List,\n FeaturedEvents,\n // Layouts\n EventsLayout,\n // Pages\n EditEvent,\n EventPage,\n EventsPage\n }\n }\n}\n\nexport default ModuleEvents;\n"],"names":["createEventRoutes","storeEvents","CardEvent","Feed","List","FeaturedEvents","EventsLayout","EditEvent","EventPage","EventsPage"],"mappings":";;;;;;;;;;;;AAiBA,SAAS,iBAAiB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC1D,QAAM,QAAQ,QAAQ,SAAS;AAE/B,QAAM,eAAeA,SAAAA;AAErB,SAAO,SAAS,OAAO,YAAY;AAEnC,QAAM,SAAS,UAAUC,MAAW;AACtC;AAEK,MAAC,eAAe;AAAA,EACnB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,aAAMA;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,mBAAMD,SAAiB;AAAA,IAClB;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,WAAME,UAAS;AAAA;AAAA,MAEf,MAAMC,KAAI;AAAA,MACV,MAAMC,KAAI;AAAA,MACV,gBAAMC,eAAc;AAAA;AAAA,MAEpB,cAAMC,aAAY;AAAA;AAAA,MAElB,WAAMC,UAAS;AAAA,MACf,WAAMC,MAAS;AAAA,MACf,YAAMC,OAAU;AAAA,IACX;AAAA,EACF;AACH;;"}
|
@@ -1,23 +1,45 @@
|
|
1
|
-
import { default as default2 } from "./components/blocks/CardEvent.vue.js";
|
2
|
-
import { default as default3 } from "./components/sections/Feed.vue.js";
|
3
|
-
import { default as default4 } from "./components/sections/List.vue.js";
|
4
|
-
import { default as default5 } from "./components/sections/FeaturedEvents.vue.js";
|
5
|
-
import { default as default6 } from "./components/layouts/layoutEvents.vue.js";
|
6
|
-
import { default as default7 } from "./components/pages/EditEvent.vue.js";
|
7
|
-
import { default as default8 } from "./components/pages/Event.vue.js";
|
8
|
-
import { default as default9 } from "./components/pages/Events.vue.js";
|
9
1
|
import * as events from "./store/events.js";
|
10
|
-
import {
|
2
|
+
import { createEventRoutes } from "./router/events.js";
|
3
|
+
import _sfc_main from "./components/blocks/CardEvent.vue.js";
|
4
|
+
import _sfc_main$1 from "./components/sections/Feed.vue.js";
|
5
|
+
import _sfc_main$2 from "./components/sections/List.vue.js";
|
6
|
+
import _sfc_main$3 from "./components/sections/FeaturedEvents.vue.js";
|
7
|
+
import _sfc_main$4 from "./components/layouts/layoutEvents.vue.js";
|
8
|
+
import _sfc_main$5 from "./components/pages/EditEvent.vue.js";
|
9
|
+
import _sfc_main$6 from "./components/pages/Event.vue.js";
|
10
|
+
import _sfc_main$7 from "./components/pages/Events.vue.js";
|
11
|
+
function initializeEvents(app, store, router, options = {}) {
|
12
|
+
const route = options.route || "Home";
|
13
|
+
const routesEvents = createEventRoutes();
|
14
|
+
router.addRoute(route, routesEvents);
|
15
|
+
store.addStore("events", events);
|
16
|
+
}
|
17
|
+
const ModuleEvents = {
|
18
|
+
initialize: initializeEvents,
|
19
|
+
views: {
|
20
|
+
store: {
|
21
|
+
storeEvents: events
|
22
|
+
},
|
23
|
+
router: {
|
24
|
+
createEventRoutes
|
25
|
+
},
|
26
|
+
components: {
|
27
|
+
// Blocks
|
28
|
+
CardEvent: _sfc_main,
|
29
|
+
// Sections
|
30
|
+
Feed: _sfc_main$1,
|
31
|
+
List: _sfc_main$2,
|
32
|
+
FeaturedEvents: _sfc_main$3,
|
33
|
+
// Layouts
|
34
|
+
EventsLayout: _sfc_main$4,
|
35
|
+
// Pages
|
36
|
+
EditEvent: _sfc_main$5,
|
37
|
+
EventPage: _sfc_main$6,
|
38
|
+
EventsPage: _sfc_main$7
|
39
|
+
}
|
40
|
+
}
|
41
|
+
};
|
11
42
|
export {
|
12
|
-
|
13
|
-
default7 as EditEvent,
|
14
|
-
default8 as EventPage,
|
15
|
-
default6 as EventsLayout,
|
16
|
-
default9 as EventsPage,
|
17
|
-
default5 as FeaturedEvents,
|
18
|
-
default3 as Feed,
|
19
|
-
default4 as List,
|
20
|
-
default10 as eventsRoutes,
|
21
|
-
events as eventsStore
|
43
|
+
ModuleEvents as default
|
22
44
|
};
|
23
45
|
//# sourceMappingURL=events.client.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.client.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"events.client.js","sources":["../../../../../src/modules/events/events.client.js"],"sourcesContent":["// Store\nimport * as storeEvents from './store/events.js';\n\n// Router\nimport { createEventRoutes } from './router/events';\n\n// Views\nimport CardEvent from './components/blocks/CardEvent.vue';\nimport Feed from './components/sections/Feed.vue';\nimport List from './components/sections/List.vue';\nimport FeaturedEvents from './components/sections/FeaturedEvents.vue';\nimport EventsLayout from './components/layouts/layoutEvents.vue';\nimport EditEvent from './components/pages/EditEvent.vue';\nimport EventPage from './components/pages/Event.vue';\nimport EventsPage from './components/pages/Events.vue';\n\n// Пример функции инициализации для модуля событий\nfunction initializeEvents(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n const routesEvents = createEventRoutes();\n \n router.addRoute(route, routesEvents);\n \n store.addStore('events', storeEvents);\n}\n\nconst ModuleEvents = {\n initialize: initializeEvents,\n views: {\n store: {\n storeEvents\n },\n router: {\n createEventRoutes\n },\n components: {\n // Blocks\n CardEvent,\n // Sections\n Feed,\n List,\n FeaturedEvents,\n // Layouts\n EventsLayout,\n // Pages\n EditEvent,\n EventPage,\n EventsPage\n }\n }\n}\n\nexport default ModuleEvents;\n"],"names":["storeEvents","CardEvent","Feed","List","FeaturedEvents","EventsLayout","EditEvent","EventPage","EventsPage"],"mappings":";;;;;;;;;;AAiBA,SAAS,iBAAiB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC1D,QAAM,QAAQ,QAAQ,SAAS;AAE/B,QAAM,eAAe;AAErB,SAAO,SAAS,OAAO,YAAY;AAEnC,QAAM,SAAS,UAAUA,MAAW;AACtC;AAEK,MAAC,eAAe;AAAA,EACnB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,aAAMA;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACN;AAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,WAAMC;AAAAA;AAAAA,MAEN,MAAMC;AAAAA,MACN,MAAMC;AAAAA,MACN,gBAAMC;AAAAA;AAAAA,MAEN,cAAMC;AAAAA;AAAAA,MAEN,WAAMC;AAAAA,MACN,WAAMC;AAAAA,MACN,YAAMC;AAAAA,IACD;AAAA,EACF;AACH;"}
|