@ozdao/prometheus-framework 0.2.238 → 0.2.240
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +1 -1
- package/dist/builder.mjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +3 -0
- 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 +3 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +508 -511
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +508 -511
- package/package.json +1 -1
- package/src/builder/webpack/webpack.config.spa.js +1 -1
- package/src/modules/events/components/elements/ButtonCheck.vue +10 -12
package/package.json
CHANGED
@@ -20,7 +20,7 @@ module.exports = (projectRoot) => {
|
|
20
20
|
mode: !isProd ? "development" : "production",
|
21
21
|
devtool: "source-map",
|
22
22
|
entry: {
|
23
|
-
main: path.resolve(projectRoot, "src/
|
23
|
+
main: path.resolve(projectRoot, "src/index.js"),
|
24
24
|
},
|
25
25
|
output: {
|
26
26
|
filename: "main.js",
|
@@ -55,6 +55,7 @@ async function startScan() {
|
|
55
55
|
|
56
56
|
document.querySelector('body')?.classList.add('barcode-scanner-active')
|
57
57
|
document.querySelector('html')?.classList.add('barcode-scanner-active-html')
|
58
|
+
BarcodeScanner.hideBackground();
|
58
59
|
|
59
60
|
isScanning.value = true
|
60
61
|
|
@@ -92,9 +93,11 @@ async function processBarcode(barcode) {
|
|
92
93
|
if (!barcode) {
|
93
94
|
throw new Error('Troubles with barcode reading')
|
94
95
|
}
|
96
|
+
console.log('barcode is', barcode)
|
95
97
|
const response = await tickets.actions.update({ _id: barcode, status: 'used', check: true })
|
96
98
|
alert("Ticket checked. And it's all right!")
|
97
99
|
} catch (e) {
|
100
|
+
console.log(e)
|
98
101
|
alert(`Ticket is not found, already used or deactivated!`)
|
99
102
|
} finally {
|
100
103
|
emits('qrcodecheck')
|
@@ -145,20 +148,15 @@ async function toggleTorch() {
|
|
145
148
|
}
|
146
149
|
|
147
150
|
/* Existing styles */
|
148
|
-
body.barcode-scanner-active {
|
149
|
-
visibility: hidden;
|
151
|
+
/*body.barcode-scanner-active {
|
152
|
+
visibility: hidden !important;
|
153
|
+
background: transparent !important;
|
150
154
|
--background: transparent;
|
151
155
|
--ion-background-color: transparent;
|
152
|
-
|
156
|
+
opacity: 0;
|
157
|
+
}*/
|
153
158
|
|
154
|
-
html.barcode-scanner-active-html {
|
159
|
+
/*html.barcode-scanner-active-html {
|
155
160
|
background: transparent !important;
|
156
|
-
}
|
157
|
-
|
158
|
-
@media (prefers-color-scheme: dark) {
|
159
|
-
.barcode-scanner-modal {
|
160
|
-
--background: transparent;
|
161
|
-
--ion-background-color: transparent;
|
162
|
-
}
|
163
|
-
}
|
161
|
+
}*/
|
164
162
|
</style>
|