13 Commits

Author SHA1 Message Date
36ca85ebf7 🚀Bumped version to 1.0.1 2023-04-15 19:15:44 +02:00
d96f32cc84 reload on language change 2023-04-15 19:15:33 +02:00
bd4fc7a2f4 🚀Bumped version to 1.0.0 2023-04-15 19:04:14 +02:00
add0cb14c6 No more space 2023-04-15 19:03:13 +02:00
38a91f730b Removed svg padding 2023-04-15 19:00:38 +02:00
3f98268967 Automargin 2023-04-15 18:53:52 +02:00
a8a0d0018e New checkmark and lower padding 2023-04-15 18:53:05 +02:00
4ce0eeffea deps: node@19.9.0 2023-04-15 18:43:32 +02:00
0edf31a9ec Pinned deependencies 2023-04-15 18:38:12 +02:00
38d80b4371 update license exporter 2023-04-15 18:24:09 +02:00
c6700a9153 drop html-minifier 2023-04-15 18:23:57 +02:00
60d51f39bf drop husky precommit hook 2023-04-15 18:23:01 +02:00
076849221a feat(Scanner): move clock to monospace font 2023-04-15 18:20:21 +02:00
9 changed files with 6605 additions and 1621 deletions

1
.husky/.gitignore vendored
View File

@@ -1 +0,0 @@
_

View File

@@ -1,5 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn format
yarn license:export

View File

@@ -2,11 +2,39 @@
All notable changes to this project will be documented in this file. Dates are displayed in UTC. All notable changes to this project will be documented in this file. Dates are displayed in UTC.
#### [v0.2.0](https://git.odit.services/lfk/scanclient/compare/0.1.6...v0.2.0) #### [1.0.1](https://git.odit.services/lfk/scanclient/compare/1.0.0...1.0.1)
- reload on language change [`d96f32c`](https://git.odit.services/lfk/scanclient/commit/d96f32cc8499f7a4b1e6458bb68132394c41f782)
### [1.0.0](https://git.odit.services/lfk/scanclient/compare/0.2.0...1.0.0)
> 15 April 2023
- feat(Scanner): move clock to monospace font [`0768492`](https://git.odit.services/lfk/scanclient/commit/076849221a9c6353ec752d4f2213ae2e10b6480b)
- Lockfile [`5f86508`](https://git.odit.services/lfk/scanclient/commit/5f865081a64e2f59a1541a6166e85da3d7cfdbfa)
- Pinned deependencies [`0edf31a`](https://git.odit.services/lfk/scanclient/commit/0edf31a9ec228d3a027c4ef0d61d31318ded8d9e)
- deps: node@19.9.0 [`4ce0eef`](https://git.odit.services/lfk/scanclient/commit/4ce0eeffea6eee4d8af3ba130d2244669e905ed9)
- New checkmark and lower padding [`a8a0d00`](https://git.odit.services/lfk/scanclient/commit/a8a0d0018ee27588eede9bb0456d1b41060f35cd)
- 🚀Bumped version to 1.0.0 [`bd4fc7a`](https://git.odit.services/lfk/scanclient/commit/bd4fc7a2f46b2c6f84c0881242e099d64ca4d695)
- drop html-minifier [`c6700a9`](https://git.odit.services/lfk/scanclient/commit/c6700a9153f96d330f0a6636adaa616b03d232ee)
- Moved ci to pnpm w/ cache [`8610e0b`](https://git.odit.services/lfk/scanclient/commit/8610e0b285939f118fab952ca00e76b1ff659a16)
- Removed svg padding [`38a91f7`](https://git.odit.services/lfk/scanclient/commit/38a91f730b46206eac714cae69be26212c01af6f)
- drop husky precommit hook [`60d51f3`](https://git.odit.services/lfk/scanclient/commit/60d51f39bffa3e947b220a1e5644e0246cf21350)
- Switched dockerfile over to pnpm 8 and cache [`90c1413`](https://git.odit.services/lfk/scanclient/commit/90c1413fa1e6fbe41227296083636568c562da65)
- added webserver to docker build [`f78365f`](https://git.odit.services/lfk/scanclient/commit/f78365f062b1b0eae06b9af02e32573ef6e9bbc9)
- Automargin [`3f98268`](https://git.odit.services/lfk/scanclient/commit/3f982689673fb07e19beaf0765f5552834ec9922)
- No more space [`add0cb1`](https://git.odit.services/lfk/scanclient/commit/add0cb14c68580d7da6a0408fc76995f7a7e4808)
- update license exporter [`38d80b4`](https://git.odit.services/lfk/scanclient/commit/38d80b4371c4d01e717846eff831068dc18a453c)
- Added missing copy [`02b31f2`](https://git.odit.services/lfk/scanclient/commit/02b31f277f7cc0d97aad061f46540e16f55e13c6)
#### [0.2.0](https://git.odit.services/lfk/scanclient/compare/0.1.6...0.2.0)
> 14 April 2021
- Merge pull request 'add 'rst' to Login component' (#20) from feature/18-add-rst-login into dev [`#18`](https://git.odit.services/lfk/scanclient/issues/18) - Merge pull request 'add 'rst' to Login component' (#20) from feature/18-add-rst-login into dev [`#18`](https://git.odit.services/lfk/scanclient/issues/18)
- Merge pull request 'replace unsplash with kaya_bg' (#19) from feature/17-remote-background-image into dev [`#17`](https://git.odit.services/lfk/scanclient/issues/17) - Merge pull request 'replace unsplash with kaya_bg' (#19) from feature/17-remote-background-image into dev [`#17`](https://git.odit.services/lfk/scanclient/issues/17)
- add 'rst' to Login component [`e6d8861`](https://git.odit.services/lfk/scanclient/commit/e6d8861340f6998234d8b2446b918ab01738cf63) - add 'rst' to Login component [`e6d8861`](https://git.odit.services/lfk/scanclient/commit/e6d8861340f6998234d8b2446b918ab01738cf63)
- 🚀Bumped version to 0.2.0 [`6df7b51`](https://git.odit.services/lfk/scanclient/commit/6df7b516aa09f937c23ab19494767867e1ebf8da)
- replace unsplash with kaya_bg [`37c384a`](https://git.odit.services/lfk/scanclient/commit/37c384aa3688a66bc31673048e718fc04bc7bf0d) - replace unsplash with kaya_bg [`37c384a`](https://git.odit.services/lfk/scanclient/commit/37c384aa3688a66bc31673048e718fc04bc7bf0d)
#### [0.1.6](https://git.odit.services/lfk/scanclient/compare/0.1.5...0.1.6) #### [0.1.6](https://git.odit.services/lfk/scanclient/compare/0.1.5...0.1.6)

File diff suppressed because it is too large Load Diff

View File

@@ -1,50 +1,49 @@
{ {
"name": "@lfk/scanclient", "name": "@lfk/scanclient",
"version": "0.2.0", "version": "1.0.1",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
"format": "prettier --write --plugin-search-dir=. ./**/*.html ./**/*.svelte", "format": "prettier --write --plugin-search-dir=. ./**/*.html ./**/*.svelte",
"prepare": "husky install", "license:export": "license-exporter --markdown && git stage licenses.md",
"license:export": "license-exporter --markdown && git stage licenses.md", "release": "release-it --only-version"
"release": "release-it --only-version" },
}, "devDependencies": {
"devDependencies": { "@odit/license-exporter": "0.0.12",
"@odit/license-exporter": "^0.0.11", "@svitejs/vite-plugin-svelte": "0.11.1",
"@svitejs/vite-plugin-svelte": "^0.11.1", "@tsconfig/svelte": "1.0.10",
"@tsconfig/svelte": "^1.0.10", "axios": "0.21.1",
"@types/html-minifier": "^4.0.0", "prettier": "2.2.1",
"axios": "^0.21.1", "prettier-plugin-svelte": "2.2.0",
"html-minifier": "^4.0.0", "release-it": "14.5.1",
"husky": "^5.1.3", "svelte": "3.35.0",
"prettier": "^2.2.1", "svelte-i18n": "3.3.7",
"prettier-plugin-svelte": "^2.2.0", "svelte-preprocess": "4.6.9",
"release-it": "^14.5.1", "vite": "2.1.2",
"svelte": "^3.35.0", "vite-plugin-windicss": "0.9.2"
"svelte-i18n": "^3.3.7", },
"svelte-preprocess": "^4.6.9", "dependencies": {
"vite": "^2.1.2", "validator": "13.5.2"
"vite-plugin-windicss": "^0.9.2" },
}, "release-it": {
"dependencies": { "git": {
"validator": "^13.5.2" "commit": true,
}, "requireCleanWorkingDir": false,
"release-it": { "commitMessage": "🚀Bumped version to ${version}",
"git": { "requireBranch": "dev",
"commit": true, "push": false,
"requireCleanWorkingDir": false, "tag": true,
"commitMessage": "🚀Bumped version to ${version}", "tagName": null,
"requireBranch": "dev", "tagAnnotation": "${version}"
"push": false, },
"tag": true, "npm": {
"tagName": null, "publish": false
"tagAnnotation": "${version}" },
}, "hooks": {
"npm": { "after:bump": "npx auto-changelog --commit-limit false -p -u --hide-credit && git add CHANGELOG.md && node order.js && git add src/locales"
"publish": false }
}, },
"hooks": { "volta": {
"after:bump": "npx auto-changelog --commit-limit false -p -u --hide-credit && git add CHANGELOG.md && node order.js && git add src/locales" "node": "19.9.0"
} }
} }
}

180
pnpm-lock.yaml generated
View File

@@ -2,54 +2,45 @@ lockfileVersion: '6.0'
dependencies: dependencies:
validator: validator:
specifier: ^13.5.2 specifier: 13.5.2
version: 13.5.2 version: 13.5.2
devDependencies: devDependencies:
'@odit/license-exporter': '@odit/license-exporter':
specifier: ^0.0.11 specifier: 0.0.12
version: 0.0.11 version: 0.0.12
'@svitejs/vite-plugin-svelte': '@svitejs/vite-plugin-svelte':
specifier: ^0.11.1 specifier: 0.11.1
version: 0.11.1(svelte@3.35.0)(vite@2.1.2) version: 0.11.1(svelte@3.35.0)(vite@2.1.2)
'@tsconfig/svelte': '@tsconfig/svelte':
specifier: ^1.0.10 specifier: 1.0.10
version: 1.0.10 version: 1.0.10
'@types/html-minifier':
specifier: ^4.0.0
version: 4.0.0
axios: axios:
specifier: ^0.21.1 specifier: 0.21.1
version: 0.21.1 version: 0.21.1
html-minifier:
specifier: ^4.0.0
version: 4.0.0
husky:
specifier: ^5.1.3
version: 5.1.3
prettier: prettier:
specifier: ^2.2.1 specifier: 2.2.1
version: 2.2.1 version: 2.2.1
prettier-plugin-svelte: prettier-plugin-svelte:
specifier: ^2.2.0 specifier: 2.2.0
version: 2.2.0(prettier@2.2.1)(svelte@3.35.0) version: 2.2.0(prettier@2.2.1)(svelte@3.35.0)
release-it: release-it:
specifier: ^14.5.1 specifier: 14.5.1
version: 14.5.1 version: 14.5.1
svelte: svelte:
specifier: ^3.35.0 specifier: 3.35.0
version: 3.35.0 version: 3.35.0
svelte-i18n: svelte-i18n:
specifier: ^3.3.7 specifier: 3.3.7
version: 3.3.7(svelte@3.35.0) version: 3.3.7(svelte@3.35.0)
svelte-preprocess: svelte-preprocess:
specifier: ^4.6.9 specifier: 4.6.9
version: 4.6.9(svelte@3.35.0) version: 4.6.9(svelte@3.35.0)
vite: vite:
specifier: ^2.1.2 specifier: 2.1.2
version: 2.1.2 version: 2.1.2
vite-plugin-windicss: vite-plugin-windicss:
specifier: ^0.9.2 specifier: 0.9.2
version: 0.9.2(vite@2.1.2) version: 0.9.2(vite@2.1.2)
packages: packages:
@@ -241,11 +232,11 @@ packages:
'@octokit/openapi-types': 12.11.0 '@octokit/openapi-types': 12.11.0
dev: true dev: true
/@odit/license-exporter@0.0.11: /@odit/license-exporter@0.0.12:
resolution: {integrity: sha512-jB5XQF913xaRSF0Hjoqaei/qcTGwBEUc2IZ68OcFShwL/fLfBhI4yhlc9nm9gHgWDEKOInI7mVE8xgpHuiGasA==} resolution: {integrity: sha512-k5KxyTOk3Qz/OzId5VNXKjYOz1C4cMVfRHbq3X0VS4BM2rRuIgabrg/lbmZXDM1ExJkdBXi9sqiQ4h7N5bVbLQ==}
hasBin: true hasBin: true
dependencies: dependencies:
yargs: 16.2.0 yargs: 17.7.1
dev: true dev: true
/@rollup/pluginutils@4.2.1: /@rollup/pluginutils@4.2.1:
@@ -315,21 +306,6 @@ packages:
'@types/responselike': 1.0.0 '@types/responselike': 1.0.0
dev: true dev: true
/@types/clean-css@4.2.6:
resolution: {integrity: sha512-Ze1tf+LnGPmG6hBFMi0B4TEB0mhF7EiMM5oyjLDNPE9hxrPU0W+5+bHvO+eFPA+bt0iC1zkQMoU/iGdRVjcRbw==}
dependencies:
'@types/node': 18.15.11
source-map: 0.6.1
dev: true
/@types/html-minifier@4.0.0:
resolution: {integrity: sha512-eFnGhrKmjWBlnSGNtunetE3UU2Tc/LUl92htFslSSTmpp9EKHQVcYQadCyYfnzUEFB5G/3wLWo/USQS/mEPKrA==}
dependencies:
'@types/clean-css': 4.2.6
'@types/relateurl': 0.2.29
'@types/uglify-js': 3.17.1
dev: true
/@types/http-cache-semantics@4.0.1: /@types/http-cache-semantics@4.0.1:
resolution: {integrity: sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==} resolution: {integrity: sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==}
dev: true dev: true
@@ -352,10 +328,6 @@ packages:
resolution: {integrity: sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==} resolution: {integrity: sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==}
dev: true dev: true
/@types/relateurl@0.2.29:
resolution: {integrity: sha512-QSvevZ+IRww2ldtfv1QskYsqVVVwCKQf1XbwtcyyoRvLIQzfyPhj/C+3+PKzSDRdiyejaiLgnq//XTkleorpLg==}
dev: true
/@types/responselike@1.0.0: /@types/responselike@1.0.0:
resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==}
dependencies: dependencies:
@@ -369,12 +341,6 @@ packages:
sass: 1.60.0 sass: 1.60.0
dev: true dev: true
/@types/uglify-js@3.17.1:
resolution: {integrity: sha512-GkewRA4i5oXacU/n4MA9+bLgt5/L3F1mKrYvFGm7r2ouLXhRKjuWwo9XHNnbx6WF3vlGW21S3fCvgqxvxXXc5g==}
dependencies:
source-map: 0.6.1
dev: true
/@windicss/plugin-utils@0.9.2: /@windicss/plugin-utils@0.9.2:
resolution: {integrity: sha512-mYKqjRVc2NYHp5uA5cDyHtqHFNK1pBC6RYYLywuUPTxsUVszYGnRbUXSeZwisGrHqD5dlHtpcefM5QOuTm53KA==} resolution: {integrity: sha512-mYKqjRVc2NYHp5uA5cDyHtqHFNK1pBC6RYYLywuUPTxsUVszYGnRbUXSeZwisGrHqD5dlHtpcefM5QOuTm53KA==}
dependencies: dependencies:
@@ -502,7 +468,7 @@ packages:
dependencies: dependencies:
ansi-align: 3.0.1 ansi-align: 3.0.1
camelcase: 6.3.0 camelcase: 6.3.0
chalk: 4.1.0 chalk: 4.1.2
cli-boxes: 2.2.1 cli-boxes: 2.2.1
string-width: 4.2.3 string-width: 4.2.3
type-fest: 0.20.2 type-fest: 0.20.2
@@ -579,13 +545,6 @@ packages:
engines: {node: '>=6'} engines: {node: '>=6'}
dev: true dev: true
/camel-case@3.0.0:
resolution: {integrity: sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==}
dependencies:
no-case: 2.3.2
upper-case: 1.1.3
dev: true
/camelcase@6.3.0: /camelcase@6.3.0:
resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
engines: {node: '>=10'} engines: {node: '>=10'}
@@ -644,13 +603,6 @@ packages:
engines: {node: '>=8'} engines: {node: '>=8'}
dev: true dev: true
/clean-css@4.2.4:
resolution: {integrity: sha512-EJUDT7nDVFDvaQgAo2G/PJvxmp1o/c6iXLbswsBbUFXi1Nr+AjA2cKmfbKDMjMvzEe75g3P6JkaDDAKk96A85A==}
engines: {node: '>= 4.0'}
dependencies:
source-map: 0.6.1
dev: true
/cli-boxes@2.2.1: /cli-boxes@2.2.1:
resolution: {integrity: sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==} resolution: {integrity: sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==}
engines: {node: '>=6'} engines: {node: '>=6'}
@@ -673,8 +625,9 @@ packages:
engines: {node: '>= 10'} engines: {node: '>= 10'}
dev: true dev: true
/cliui@7.0.4: /cliui@8.0.1:
resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
engines: {node: '>=12'}
dependencies: dependencies:
string-width: 4.2.3 string-width: 4.2.3
strip-ansi: 6.0.1 strip-ansi: 6.0.1
@@ -720,10 +673,6 @@ packages:
delayed-stream: 1.0.0 delayed-stream: 1.0.0
dev: true dev: true
/commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
dev: true
/commander@4.1.1: /commander@4.1.1:
resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
engines: {node: '>= 6'} engines: {node: '>= 6'}
@@ -1053,7 +1002,7 @@ packages:
dependencies: dependencies:
asynckit: 0.4.0 asynckit: 0.4.0
combined-stream: 1.0.8 combined-stream: 1.0.8
mime-types: 2.1.29 mime-types: 2.1.35
dev: true dev: true
/fs.realpath@1.0.0: /fs.realpath@1.0.0:
@@ -1244,25 +1193,6 @@ packages:
resolution: {integrity: sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==} resolution: {integrity: sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==}
dev: true dev: true
/he@1.2.0:
resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
hasBin: true
dev: true
/html-minifier@4.0.0:
resolution: {integrity: sha512-aoGxanpFPLg7MkIl/DDFYtb0iWz7jMFGqFhvEDZga6/4QTjneiD8I/NXL1x5aaoCp7FSIT6h/OhykDdPsbtMig==}
engines: {node: '>=6'}
hasBin: true
dependencies:
camel-case: 3.0.0
clean-css: 4.2.4
commander: 2.20.3
he: 1.2.0
param-case: 2.1.1
relateurl: 0.2.7
uglify-js: 3.17.4
dev: true
/http-cache-semantics@4.1.1: /http-cache-semantics@4.1.1:
resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==} resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==}
dev: true dev: true
@@ -1296,12 +1226,6 @@ packages:
engines: {node: '>=10.17.0'} engines: {node: '>=10.17.0'}
dev: true dev: true
/husky@5.1.3:
resolution: {integrity: sha512-fbNJ+Gz5wx2LIBtMweJNY1D7Uc8p1XERi5KNRMccwfQA+rXlxWNSdUxswo0gT8XqxywTIw7Ywm/F4v/O35RdMg==}
engines: {node: '>= 10'}
hasBin: true
dev: true
/iconv-lite@0.4.24: /iconv-lite@0.4.24:
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
@@ -1379,7 +1303,7 @@ packages:
engines: {node: '>=8.0.0'} engines: {node: '>=8.0.0'}
dependencies: dependencies:
ansi-escapes: 4.3.2 ansi-escapes: 4.3.2
chalk: 4.1.0 chalk: 4.1.2
cli-cursor: 3.1.0 cli-cursor: 3.1.0
cli-width: 3.0.0 cli-width: 3.0.0
external-editor: 3.1.0 external-editor: 3.1.0
@@ -1575,14 +1499,10 @@ packages:
resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}
engines: {node: '>=10'} engines: {node: '>=10'}
dependencies: dependencies:
chalk: 4.1.0 chalk: 4.1.2
is-unicode-supported: 0.1.0 is-unicode-supported: 0.1.0
dev: true dev: true
/lower-case@1.1.4:
resolution: {integrity: sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==}
dev: true
/lowercase-keys@1.0.1: /lowercase-keys@1.0.1:
resolution: {integrity: sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==} resolution: {integrity: sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
@@ -1719,12 +1639,6 @@ packages:
hasBin: true hasBin: true
dev: true dev: true
/no-case@2.3.2:
resolution: {integrity: sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==}
dependencies:
lower-case: 1.1.4
dev: true
/node-fetch@2.6.9: /node-fetch@2.6.9:
resolution: {integrity: sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==} resolution: {integrity: sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==}
engines: {node: 4.x || >=6.0.0} engines: {node: 4.x || >=6.0.0}
@@ -1793,7 +1707,7 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
dependencies: dependencies:
bl: 4.1.0 bl: 4.1.0
chalk: 4.1.0 chalk: 4.1.2
cli-cursor: 3.1.0 cli-cursor: 3.1.0
cli-spinners: 2.7.0 cli-spinners: 2.7.0
is-interactive: 1.0.0 is-interactive: 1.0.0
@@ -1850,12 +1764,6 @@ packages:
semver: 6.3.0 semver: 6.3.0
dev: true dev: true
/param-case@2.1.1:
resolution: {integrity: sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==}
dependencies:
no-case: 2.3.2
dev: true
/parent-module@1.0.1: /parent-module@1.0.1:
resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
engines: {node: '>=6'} engines: {node: '>=6'}
@@ -2071,11 +1979,6 @@ packages:
rc: 1.2.8 rc: 1.2.8
dev: true dev: true
/relateurl@0.2.7:
resolution: {integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==}
engines: {node: '>= 0.10'}
dev: true
/release-it@14.5.1: /release-it@14.5.1:
resolution: {integrity: sha512-ivbMbYEk4E1RoV3DmWn8T37sjnCx35kwiHDSgfphDr0F8A5zbJCj4ZLZmDseE9sQi9ZjhXTN1webBLW5YbGxNg==} resolution: {integrity: sha512-ivbMbYEk4E1RoV3DmWn8T37sjnCx35kwiHDSgfphDr0F8A5zbJCj4ZLZmDseE9sQi9ZjhXTN1webBLW5YbGxNg==}
engines: {node: '>=10'} engines: {node: '>=10'}
@@ -2295,11 +2198,6 @@ packages:
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
dev: true dev: true
/source-map@0.6.1:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
dev: true
/source-map@0.7.4: /source-map@0.7.4:
resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
@@ -2555,12 +2453,6 @@ packages:
is-typedarray: 1.0.0 is-typedarray: 1.0.0
dev: true dev: true
/uglify-js@3.17.4:
resolution: {integrity: sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==}
engines: {node: '>=0.8.0'}
hasBin: true
dev: true
/unique-string@2.0.0: /unique-string@2.0.0:
resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==} resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==}
engines: {node: '>=8'} engines: {node: '>=8'}
@@ -2582,7 +2474,7 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
dependencies: dependencies:
boxen: 5.1.2 boxen: 5.1.2
chalk: 4.1.0 chalk: 4.1.2
configstore: 5.0.1 configstore: 5.0.1
has-yarn: 2.1.0 has-yarn: 2.1.0
import-lazy: 2.1.0 import-lazy: 2.1.0
@@ -2597,10 +2489,6 @@ packages:
xdg-basedir: 4.0.0 xdg-basedir: 4.0.0
dev: true dev: true
/upper-case@1.1.3:
resolution: {integrity: sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==}
dev: true
/url-join@4.0.1: /url-join@4.0.1:
resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==}
dev: true dev: true
@@ -2743,22 +2631,22 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
dev: true dev: true
/yargs-parser@20.2.9: /yargs-parser@21.1.1:
resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}
engines: {node: '>=10'} engines: {node: '>=12'}
dev: true dev: true
/yargs@16.2.0: /yargs@17.7.1:
resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} resolution: {integrity: sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==}
engines: {node: '>=10'} engines: {node: '>=12'}
dependencies: dependencies:
cliui: 7.0.4 cliui: 8.0.1
escalade: 3.1.1 escalade: 3.1.1
get-caller-file: 2.0.5 get-caller-file: 2.0.5
require-directory: 2.1.1 require-directory: 2.1.1
string-width: 4.2.3 string-width: 4.2.3
y18n: 5.0.8 y18n: 5.0.8
yargs-parser: 20.2.9 yargs-parser: 21.1.1
dev: true dev: true
/yocto-queue@0.1.0: /yocto-queue@0.1.0:

View File

@@ -39,10 +39,10 @@
</div> </div>
</div> </div>
<h1 class="mr-6 text-7xl font-semibold text-center text-gray-900"> <h1 class="mr-6 text-7xl font-semibold text-center text-gray-900 font-mono">
{hours}:{minutes}:{seconds} {hours}:{minutes}:{seconds}
</h1> </h1>
<section class="px-4 py-24 mx-auto max-w-7xl"> <section class="px-4 py-2 mx-auto max-w-7xl">
<div class="mx-auto space-y-5 w-full md:w-1/2"> <div class="mx-auto space-y-5 w-full md:w-1/2">
{#if lastscan_error} {#if lastscan_error}
<div <div
@@ -54,7 +54,6 @@
</div> </div>
{/if} {/if}
<form <form
class="space-y-4"
onsubmit="event.preventDefault();" onsubmit="event.preventDefault();"
on:submit={() => { on:submit={() => {
if (card === "cnf") { if (card === "cnf") {
@@ -114,36 +113,39 @@
/> />
</label> </label>
{#if lastscan_totaldistance} {#if lastscan_totaldistance}
{#if !lastscan_valid || lastscan_error} <div class="w-full text-center items-center">
<svg {#if !lastscan_valid || lastscan_error}
xmlns="http://www.w3.org/2000/svg" <svg
width="20rem" xmlns="http://www.w3.org/2000/svg"
height="20rem" fill="none"
class="ml-auto mr-auto" stroke-width="1.5"
version="1.0" stroke="currentColor"
title="Invalid" class="w-30 h-30 text-center mx-auto text-red-600"
viewBox="0 0 100 100" viewBox="5.25 5.25 13.5 13.5"
><g fill="none" stroke="red" >
><path d="M6 6l88 88" stroke-width="18.1" /><path <path
d="M6 94L94 6" stroke-linecap="round"
stroke-width="17.8" stroke-linejoin="round"
/></g d="M6 18L18 6M6 6l12 12"
></svg />
> </svg>
{:else} {:else}
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="20rem" fill="none"
height="20rem" stroke-width="1.5"
class="ml-auto mr-auto" stroke="currentColor"
title="Valid" class="w-30 h-30 text-center mx-auto text-green-600"
viewBox="0 0 600 600" viewBox="3.75 4.5 16.5 15"
><path >
d="M8 405s115 129 138 182h99c41-126 203-429 341-535 28-37-43-52-102-27-87 36-252 317-283 384-44 12-90-74-90-74z" <path
fill="#181" stroke-linecap="round"
/></svg stroke-linejoin="round"
> d="m4.5 12.75 6 6 9-13.5"
{/if} />
</svg>
{/if}
</div>
<h1 class="text-2xl font-bold text-center">{$_("total-distance")}</h1> <h1 class="text-2xl font-bold text-center">{$_("total-distance")}</h1>
<h1 class="text-6xl font-bold text-center"> <h1 class="text-6xl font-bold text-center">
{lastscan_totaldistance} {lastscan_totaldistance}

View File

@@ -43,6 +43,7 @@
<button <button
on:click={() => { on:click={() => {
lang.set("de-DE"); lang.set("de-DE");
location.reload();
}} }}
type="button" type="button"
class:bg-blue-700={$lang === "de-DE"} class:bg-blue-700={$lang === "de-DE"}
@@ -68,6 +69,7 @@
<button <button
on:click={() => { on:click={() => {
lang.set("en-EN"); lang.set("en-EN");
location.reload();
}} }}
type="button" type="button"
class:bg-blue-700={$lang === "en-EN"} class:bg-blue-700={$lang === "en-EN"}

View File

@@ -1,19 +1,7 @@
import svelte from '@svitejs/vite-plugin-svelte'; import svelte from '@svitejs/vite-plugin-svelte';
import windiCSS from 'vite-plugin-windicss'; import windiCSS from 'vite-plugin-windicss';
import { minify } from 'html-minifier';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
// //
const indexReplace = () => {
return {
name: 'html-transform',
transformIndexHtml(html) {
return minify(html, {
collapseWhitespace: true
});
}
};
};
export default defineConfig(({ command, mode }) => { export default defineConfig(({ command, mode }) => {
const isProduction = mode === 'production'; const isProduction = mode === 'production';
return { return {
@@ -43,8 +31,7 @@ export default defineConfig(({ command, mode }) => {
preprocess: [ preprocess: [
// //
] ]
}), })
indexReplace()
] ]
}; };
}); });