@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.238",
3
+ "version": "0.2.240",
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",
@@ -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/app.js"),
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>