Compare commits

...

6 Commits

Author SHA1 Message Date
16deab5308
pnpx -> npx
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 12:08:54 +02:00
45eb4b0828
Merge branch 'main' of git.odit.services:lfk/kiosk 2023-04-19 12:08:28 +02:00
c0a39bdabe
release from main 2023-04-19 12:08:07 +02:00
e25aaf3e5e
Moved config into call 2023-04-19 12:07:27 +02:00
d68e88ec9a
Updated typing 2023-04-19 12:06:13 +02:00
1a0f52f31f
Added bwip types 2023-04-19 12:05:19 +02:00
4 changed files with 22 additions and 9 deletions

View File

@ -36,6 +36,7 @@
"@odit/license-exporter": "0.0.12",
"@sveltejs/adapter-static": "2.0.2",
"@sveltejs/kit": "1.5.0",
"@types/bwip-js": "^3.2.0",
"@typescript-eslint/eslint-plugin": "5.45.0",
"@typescript-eslint/parser": "5.45.0",
"auto-changelog": "2.4.0",
@ -66,7 +67,7 @@
"commit": true,
"requireCleanWorkingDir": false,
"commitMessage": "🚀Bumped version to ${version}",
"requireBranch": "dev",
"requireBranch": "main",
"push": true,
"tag": true,
"tagName": null,
@ -76,7 +77,7 @@
"publish": false
},
"hooks": {
"after:bump": "pnpx auto-changelog --commit-limit false -p -u --hide-credit && pnpm licenses:export && git add CHANGELOG.md licenses.md"
"after:bump": "npx auto-changelog --commit-limit false -p -u --hide-credit && pnpm licenses:export && git add CHANGELOG.md licenses.md"
}
},
"volta": {

15
pnpm-lock.yaml generated
View File

@ -2,7 +2,7 @@ lockfileVersion: '6.0'
dependencies:
'@odit/lfk-client-js':
specifier: ^1.0.1
specifier: 1.0.1
version: 1.0.1
bwip-js:
specifier: 3.4.0
@ -18,6 +18,9 @@ devDependencies:
'@sveltejs/kit':
specifier: 1.5.0
version: 1.5.0(svelte@3.54.0)(vite@4.2.0)
'@types/bwip-js':
specifier: ^3.2.0
version: 3.2.0
'@typescript-eslint/eslint-plugin':
specifier: 5.45.0
version: 5.45.0(@typescript-eslint/parser@5.45.0)(eslint@8.28.0)(typescript@5.0.4)
@ -603,6 +606,12 @@ packages:
engines: {node: '>= 6'}
dev: true
/@types/bwip-js@3.2.0:
resolution: {integrity: sha512-UNcuIorD+Cw+jlJm9YExx0fkUeR0z3a6bidcgvK13GmBshShLv6NTWkuzklBeFl+90ZxBvJx1CHkDFNptSCbAA==}
dependencies:
'@types/node': 18.15.11
dev: true
/@types/cookie@0.5.1:
resolution: {integrity: sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==}
dev: true
@ -615,6 +624,10 @@ packages:
resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}
dev: true
/@types/node@18.15.11:
resolution: {integrity: sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==}
dev: true
/@types/pug@2.0.6:
resolution: {integrity: sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==}
dev: true

View File

@ -5,7 +5,7 @@ type UserState = {
access_token: string;
refresh_token: string;
isLoggedIn: boolean;
refreshInterval: number
refreshInterval: NodeJS.Timer | undefined
};
const userStore = () => {
@ -13,7 +13,7 @@ const userStore = () => {
access_token: '',
refresh_token: '',
isLoggedIn: false,
refreshInterval: 0
refreshInterval: undefined
};
const { subscribe, set, update } = writable(state);
@ -75,7 +75,7 @@ const userStore = () => {
state.isLoggedIn = false;
state.access_token = '';
state.refresh_token = '';
state.refreshInterval = 0;
state.refreshInterval = undefined;
localStorage.clear();
return state;
});

View File

@ -36,7 +36,7 @@
if (is_qrcode) {
bcid = 'qrcode';
}
let codeconfig = {
bwipjs.toCanvas(canvas, {
bcid,
text: `${text}`,
scale: 10,
@ -44,8 +44,7 @@
textxalign: 'center',
backgroundcolor: 'ffffff',
height: 10
};
bwipjs.toCanvas(canvas, codeconfig);
});
return canvas.toDataURL('image/png');
}
</script>