From 600ab91e2d3594a39cfa77b764d65b79f44aec0d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:29:05 +0000 Subject: [PATCH 01/27] Bump vite from 5.0.12 to 5.0.13 Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.12 to 5.0.13. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.0.13/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.0.13/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 440 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 433 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 69918988d..a8dd82602 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "sass": "1.70.0", "svgpath": "^2.6.0", "typescript": "^5.3.3", - "vite": "^5.0.12", + "vite": "^5.0.13", "vite-plugin-checker": "^0.6.4", "vitest": "^1.2.2", "vue-global-type-gen": "^1.1.0", diff --git a/yarn.lock b/yarn.lock index 3d27e090a..dd6e5e93b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -429,6 +429,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/aix-ppc64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/aix-ppc64@npm:0.20.2" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/android-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/android-arm64@npm:0.19.11" @@ -436,6 +443,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/android-arm64@npm:0.20.2" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/android-arm@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/android-arm@npm:0.19.11" @@ -443,6 +457,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/android-arm@npm:0.20.2" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@esbuild/android-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/android-x64@npm:0.19.11" @@ -450,6 +471,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/android-x64@npm:0.20.2" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + "@esbuild/darwin-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/darwin-arm64@npm:0.19.11" @@ -457,6 +485,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/darwin-arm64@npm:0.20.2" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/darwin-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/darwin-x64@npm:0.19.11" @@ -464,6 +499,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/darwin-x64@npm:0.20.2" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@esbuild/freebsd-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/freebsd-arm64@npm:0.19.11" @@ -471,6 +513,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/freebsd-arm64@npm:0.20.2" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/freebsd-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/freebsd-x64@npm:0.19.11" @@ -478,6 +527,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/freebsd-x64@npm:0.20.2" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/linux-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-arm64@npm:0.19.11" @@ -485,6 +541,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-arm64@npm:0.20.2" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/linux-arm@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-arm@npm:0.19.11" @@ -492,6 +555,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-arm@npm:0.20.2" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@esbuild/linux-ia32@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-ia32@npm:0.19.11" @@ -499,6 +569,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ia32@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-ia32@npm:0.20.2" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/linux-loong64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-loong64@npm:0.19.11" @@ -506,6 +583,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-loong64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-loong64@npm:0.20.2" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + "@esbuild/linux-mips64el@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-mips64el@npm:0.19.11" @@ -513,6 +597,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-mips64el@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-mips64el@npm:0.20.2" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + "@esbuild/linux-ppc64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-ppc64@npm:0.19.11" @@ -520,6 +611,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ppc64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-ppc64@npm:0.20.2" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/linux-riscv64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-riscv64@npm:0.19.11" @@ -527,6 +625,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-riscv64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-riscv64@npm:0.20.2" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + "@esbuild/linux-s390x@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-s390x@npm:0.19.11" @@ -534,6 +639,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-s390x@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-s390x@npm:0.20.2" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + "@esbuild/linux-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/linux-x64@npm:0.19.11" @@ -541,6 +653,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/linux-x64@npm:0.20.2" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + "@esbuild/netbsd-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/netbsd-x64@npm:0.19.11" @@ -548,6 +667,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/netbsd-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/netbsd-x64@npm:0.20.2" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/openbsd-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/openbsd-x64@npm:0.19.11" @@ -555,6 +681,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/openbsd-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/openbsd-x64@npm:0.20.2" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/sunos-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/sunos-x64@npm:0.19.11" @@ -562,6 +695,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/sunos-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/sunos-x64@npm:0.20.2" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + "@esbuild/win32-arm64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/win32-arm64@npm:0.19.11" @@ -569,6 +709,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-arm64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/win32-arm64@npm:0.20.2" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/win32-ia32@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/win32-ia32@npm:0.19.11" @@ -576,6 +723,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-ia32@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/win32-ia32@npm:0.20.2" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/win32-x64@npm:0.19.11": version: 0.19.11 resolution: "@esbuild/win32-x64@npm:0.19.11" @@ -583,6 +737,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-x64@npm:0.20.2": + version: 0.20.2 + resolution: "@esbuild/win32-x64@npm:0.20.2" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0": version: 4.4.0 resolution: "@eslint-community/eslint-utils@npm:4.4.0" @@ -1052,6 +1213,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm-eabi@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-android-arm-eabi@npm:4.14.0" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@rollup/rollup-android-arm-eabi@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-android-arm-eabi@npm:4.2.0" @@ -1066,6 +1234,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-android-arm64@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-android-arm64@npm:4.14.0" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-android-arm64@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-android-arm64@npm:4.2.0" @@ -1080,6 +1255,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-darwin-arm64@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-darwin-arm64@npm:4.14.0" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-darwin-arm64@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-darwin-arm64@npm:4.2.0" @@ -1094,6 +1276,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-darwin-x64@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-darwin-x64@npm:4.14.0" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@rollup/rollup-darwin-x64@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-darwin-x64@npm:4.2.0" @@ -1108,6 +1297,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm-gnueabihf@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.14.0" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@rollup/rollup-linux-arm-gnueabihf@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.2.0" @@ -1122,6 +1318,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm64-gnu@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.14.0" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-arm64-gnu@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.2.0" @@ -1136,6 +1339,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-arm64-musl@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-linux-arm64-musl@npm:4.14.0" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-linux-arm64-musl@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-linux-arm64-musl@npm:4.2.0" @@ -1150,6 +1360,20 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-powerpc64le-gnu@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.14.0" + conditions: os=linux & cpu=ppc64le & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-riscv64-gnu@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.14.0" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-riscv64-gnu@npm:4.9.6": version: 4.9.6 resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.9.6" @@ -1157,6 +1381,20 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-s390x-gnu@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.14.0" + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + +"@rollup/rollup-linux-x64-gnu@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-linux-x64-gnu@npm:4.14.0" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + "@rollup/rollup-linux-x64-gnu@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-linux-x64-gnu@npm:4.2.0" @@ -1171,6 +1409,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-linux-x64-musl@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-linux-x64-musl@npm:4.14.0" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + "@rollup/rollup-linux-x64-musl@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-linux-x64-musl@npm:4.2.0" @@ -1185,6 +1430,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-arm64-msvc@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.14.0" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@rollup/rollup-win32-arm64-msvc@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.2.0" @@ -1199,6 +1451,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-ia32-msvc@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.14.0" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@rollup/rollup-win32-ia32-msvc@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.2.0" @@ -1213,6 +1472,13 @@ __metadata: languageName: node linkType: hard +"@rollup/rollup-win32-x64-msvc@npm:4.14.0": + version: 4.14.0 + resolution: "@rollup/rollup-win32-x64-msvc@npm:4.14.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@rollup/rollup-win32-x64-msvc@npm:4.2.0": version: 4.2.0 resolution: "@rollup/rollup-win32-x64-msvc@npm:4.2.0" @@ -2798,7 +3064,7 @@ __metadata: typescript: "npm:^5.3.3" typescript-string-enums: "npm:^1.0.0" url: "npm:^0.11.3" - vite: "npm:^5.0.12" + vite: "npm:^5.0.13" vite-plugin-checker: "npm:^0.6.4" vitest: "npm:^1.2.2" vue: "npm:^3.4.15" @@ -4418,6 +4684,86 @@ __metadata: languageName: node linkType: hard +"esbuild@npm:^0.20.1": + version: 0.20.2 + resolution: "esbuild@npm:0.20.2" + dependencies: + "@esbuild/aix-ppc64": "npm:0.20.2" + "@esbuild/android-arm": "npm:0.20.2" + "@esbuild/android-arm64": "npm:0.20.2" + "@esbuild/android-x64": "npm:0.20.2" + "@esbuild/darwin-arm64": "npm:0.20.2" + "@esbuild/darwin-x64": "npm:0.20.2" + "@esbuild/freebsd-arm64": "npm:0.20.2" + "@esbuild/freebsd-x64": "npm:0.20.2" + "@esbuild/linux-arm": "npm:0.20.2" + "@esbuild/linux-arm64": "npm:0.20.2" + "@esbuild/linux-ia32": "npm:0.20.2" + "@esbuild/linux-loong64": "npm:0.20.2" + "@esbuild/linux-mips64el": "npm:0.20.2" + "@esbuild/linux-ppc64": "npm:0.20.2" + "@esbuild/linux-riscv64": "npm:0.20.2" + "@esbuild/linux-s390x": "npm:0.20.2" + "@esbuild/linux-x64": "npm:0.20.2" + "@esbuild/netbsd-x64": "npm:0.20.2" + "@esbuild/openbsd-x64": "npm:0.20.2" + "@esbuild/sunos-x64": "npm:0.20.2" + "@esbuild/win32-arm64": "npm:0.20.2" + "@esbuild/win32-ia32": "npm:0.20.2" + "@esbuild/win32-x64": "npm:0.20.2" + dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true + "@esbuild/android-arm": + optional: true + "@esbuild/android-arm64": + optional: true + "@esbuild/android-x64": + optional: true + "@esbuild/darwin-arm64": + optional: true + "@esbuild/darwin-x64": + optional: true + "@esbuild/freebsd-arm64": + optional: true + "@esbuild/freebsd-x64": + optional: true + "@esbuild/linux-arm": + optional: true + "@esbuild/linux-arm64": + optional: true + "@esbuild/linux-ia32": + optional: true + "@esbuild/linux-loong64": + optional: true + "@esbuild/linux-mips64el": + optional: true + "@esbuild/linux-ppc64": + optional: true + "@esbuild/linux-riscv64": + optional: true + "@esbuild/linux-s390x": + optional: true + "@esbuild/linux-x64": + optional: true + "@esbuild/netbsd-x64": + optional: true + "@esbuild/openbsd-x64": + optional: true + "@esbuild/sunos-x64": + optional: true + "@esbuild/win32-arm64": + optional: true + "@esbuild/win32-ia32": + optional: true + "@esbuild/win32-x64": + optional: true + bin: + esbuild: bin/esbuild + checksum: 10c0/66398f9fb2c65e456a3e649747b39af8a001e47963b25e86d9c09d2a48d61aa641b27da0ce5cad63df95ad246105e1d83e7fee0e1e22a0663def73b1c5101112 + languageName: node + linkType: hard + "escalade@npm:^3.1.1": version: 3.1.1 resolution: "escalade@npm:3.1.1" @@ -7610,6 +7956,17 @@ __metadata: languageName: node linkType: hard +"postcss@npm:^8.4.38": + version: 8.4.38 + resolution: "postcss@npm:8.4.38" + dependencies: + nanoid: "npm:^3.3.7" + picocolors: "npm:^1.0.0" + source-map-js: "npm:^1.2.0" + checksum: 10c0/955407b8f70cf0c14acf35dab3615899a2a60a26718a63c848cf3c29f2467b0533991b985a2b994430d890bd7ec2b1963e36352b0774a19143b5f591540f7c06 + languageName: node + linkType: hard + "potpack@npm:^1.0.1": version: 1.0.2 resolution: "potpack@npm:1.0.2" @@ -8166,6 +8523,66 @@ __metadata: languageName: node linkType: hard +"rollup@npm:^4.13.0": + version: 4.14.0 + resolution: "rollup@npm:4.14.0" + dependencies: + "@rollup/rollup-android-arm-eabi": "npm:4.14.0" + "@rollup/rollup-android-arm64": "npm:4.14.0" + "@rollup/rollup-darwin-arm64": "npm:4.14.0" + "@rollup/rollup-darwin-x64": "npm:4.14.0" + "@rollup/rollup-linux-arm-gnueabihf": "npm:4.14.0" + "@rollup/rollup-linux-arm64-gnu": "npm:4.14.0" + "@rollup/rollup-linux-arm64-musl": "npm:4.14.0" + "@rollup/rollup-linux-powerpc64le-gnu": "npm:4.14.0" + "@rollup/rollup-linux-riscv64-gnu": "npm:4.14.0" + "@rollup/rollup-linux-s390x-gnu": "npm:4.14.0" + "@rollup/rollup-linux-x64-gnu": "npm:4.14.0" + "@rollup/rollup-linux-x64-musl": "npm:4.14.0" + "@rollup/rollup-win32-arm64-msvc": "npm:4.14.0" + "@rollup/rollup-win32-ia32-msvc": "npm:4.14.0" + "@rollup/rollup-win32-x64-msvc": "npm:4.14.0" + "@types/estree": "npm:1.0.5" + fsevents: "npm:~2.3.2" + dependenciesMeta: + "@rollup/rollup-android-arm-eabi": + optional: true + "@rollup/rollup-android-arm64": + optional: true + "@rollup/rollup-darwin-arm64": + optional: true + "@rollup/rollup-darwin-x64": + optional: true + "@rollup/rollup-linux-arm-gnueabihf": + optional: true + "@rollup/rollup-linux-arm64-gnu": + optional: true + "@rollup/rollup-linux-arm64-musl": + optional: true + "@rollup/rollup-linux-powerpc64le-gnu": + optional: true + "@rollup/rollup-linux-riscv64-gnu": + optional: true + "@rollup/rollup-linux-s390x-gnu": + optional: true + "@rollup/rollup-linux-x64-gnu": + optional: true + "@rollup/rollup-linux-x64-musl": + optional: true + "@rollup/rollup-win32-arm64-msvc": + optional: true + "@rollup/rollup-win32-ia32-msvc": + optional: true + "@rollup/rollup-win32-x64-msvc": + optional: true + fsevents: + optional: true + bin: + rollup: dist/bin/rollup + checksum: 10c0/e19a108138805d3e272f3265f73ced141b75b7a1d432a467ea24095a16832c5cae03348a3d70ea79e17113f718e12b51ccb32d799d75e2eb0df312803a253587 + languageName: node + linkType: hard + "rollup@npm:^4.2.0": version: 4.2.0 resolution: "rollup@npm:4.2.0" @@ -8534,6 +8951,13 @@ __metadata: languageName: node linkType: hard +"source-map-js@npm:^1.2.0": + version: 1.2.0 + resolution: "source-map-js@npm:1.2.0" + checksum: 10c0/7e5f896ac10a3a50fe2898e5009c58ff0dc102dcb056ed27a354623a0ece8954d4b2649e1a1b2b52ef2e161d26f8859c7710350930751640e71e374fe2d321a4 + languageName: node + linkType: hard + "source-map@npm:^0.6.1, source-map@npm:~0.6.1": version: 0.6.1 resolution: "source-map@npm:0.6.1" @@ -9540,14 +9964,14 @@ __metadata: languageName: node linkType: hard -"vite@npm:^5.0.12": - version: 5.0.12 - resolution: "vite@npm:5.0.12" +"vite@npm:^5.0.13": + version: 5.2.8 + resolution: "vite@npm:5.2.8" dependencies: - esbuild: "npm:^0.19.3" + esbuild: "npm:^0.20.1" fsevents: "npm:~2.3.3" - postcss: "npm:^8.4.32" - rollup: "npm:^4.2.0" + postcss: "npm:^8.4.38" + rollup: "npm:^4.13.0" peerDependencies: "@types/node": ^18.0.0 || >=20.0.0 less: "*" @@ -9576,7 +10000,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 10c0/c51b8e458851943c903fddde6973e720099ef8a5f364fb107cddade59c9e90f6d9ad98b61a7419cdfa0c6374236e10bff965d0c2d9e7b1790c68b874e5e7950c + checksum: 10c0/b5717bb00c2570c08ff6d8ed917655e79184efcafa9dd62d52eea19c5d6dfc5a708ec3de9ebc670a7165fc5d401c2bdf1563bb39e2748d8e51e1593d286a9a13 languageName: node linkType: hard From 1c57e38280edb20f40aad86fc787e9b04edb9896 Mon Sep 17 00:00:00 2001 From: Bob Steers Date: Thu, 4 Apr 2024 18:28:28 +0200 Subject: [PATCH 02/27] make metrics duration editable --- src/plugins/history/Metrics/MetricsBasic.vue | 19 +++++++------ .../history/components/MetricsEditor.vue | 27 ++++++++++++++++++- 2 files changed, 37 insertions(+), 9 deletions(-) diff --git a/src/plugins/history/Metrics/MetricsBasic.vue b/src/plugins/history/Metrics/MetricsBasic.vue index 3cd69e3fd..6f6510878 100644 --- a/src/plugins/history/Metrics/MetricsBasic.vue +++ b/src/plugins/history/Metrics/MetricsBasic.vue @@ -16,7 +16,7 @@ import { durationString, fixedNumber, shortDateString } from '@/utils/quantity'; import { DEFAULT_METRICS_DECIMALS, DEFAULT_METRICS_EXPIRY_MS } from '../const'; import { MetricsWidget } from './types'; -interface DisplayValue extends MetricValue { +interface DisplayValue extends Partial { name: string; stale: boolean; decimals: number; @@ -52,20 +52,23 @@ const values = computed(() => { return []; } - return source.value.values.map((result): DisplayValue => { - const name = - config.value.renames[result.field] || defaultLabel(result.field); - const decimals = - config.value.decimals[result.field] ?? DEFAULT_METRICS_DECIMALS; + return config.value.fields.map((field): DisplayValue => { + const result: Partial = + source.value.values.find((v) => v.field === field) ?? {}; + + const name = config.value.renames[field] || defaultLabel(field); + const decimals = config.value.decimals[field] ?? DEFAULT_METRICS_DECIMALS; const freshDuration = - config.value.freshDuration[result.field] ?? DEFAULT_METRICS_EXPIRY_MS; + config.value.freshDuration[field] ?? DEFAULT_METRICS_EXPIRY_MS; + const stale = + result?.time == null || now - result.time.getTime() > freshDuration; return { ...result, name, decimals, freshDuration, - stale: result.time != null && now - result.time.getTime() > freshDuration, + stale, fixedValue: fixedNumber(result.value, decimals), }; }); diff --git a/src/plugins/history/components/MetricsEditor.vue b/src/plugins/history/components/MetricsEditor.vue index 05a2eeaa9..cd6d685cd 100644 --- a/src/plugins/history/components/MetricsEditor.vue +++ b/src/plugins/history/components/MetricsEditor.vue @@ -1,7 +1,10 @@ + + diff --git a/src/plugins/spark/components/widget/AnalogArrayEditor.vue b/src/plugins/spark/components/widget/AnalogArrayEditor.vue new file mode 100644 index 000000000..42333a3df --- /dev/null +++ b/src/plugins/spark/components/widget/AnalogArrayEditor.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/plugins/spark/components/widget/OneWireGpioEditor.vue b/src/plugins/spark/components/widget/GpioArrayEditor.vue similarity index 100% rename from src/plugins/spark/components/widget/OneWireGpioEditor.vue rename to src/plugins/spark/components/widget/GpioArrayEditor.vue diff --git a/src/plugins/spark/components/widget/IoArray.vue b/src/plugins/spark/components/widget/IoArray.vue index f312b766a..0514e53c3 100644 --- a/src/plugins/spark/components/widget/IoArray.vue +++ b/src/plugins/spark/components/widget/IoArray.vue @@ -16,7 +16,7 @@ import { computed } from 'vue'; import { useBlockWidget } from '@/plugins/spark/composables'; import { PWM_SELECT_OPTIONS } from '@/plugins/spark/const'; import { useSparkStore } from '@/plugins/spark/store'; -import { setExclusiveChannelActuator } from '@/plugins/spark/utils/configuration'; +import { setExclusiveIoChannelClaimer } from '@/plugins/spark/utils/configuration'; import { channelName, prettyLimitations, @@ -68,7 +68,7 @@ async function replaceActuator( channel: EditableChannel, link: Link, ): Promise { - setExclusiveChannelActuator( + setExclusiveIoChannelClaimer( sparkStore.blockByLink(serviceId, link), bloxLink(block.value.id), channel.id, diff --git a/src/plugins/spark/components/widget/ValveArray.vue b/src/plugins/spark/components/widget/ValveArray.vue index 61a4a88e7..f9889e1d3 100644 --- a/src/plugins/spark/components/widget/ValveArray.vue +++ b/src/plugins/spark/components/widget/ValveArray.vue @@ -11,7 +11,7 @@ import { import { computed } from 'vue'; import { useBlockWidget } from '@/plugins/spark/composables'; import { useSparkStore } from '@/plugins/spark/store'; -import { setExclusiveChannelActuator } from '@/plugins/spark/utils/configuration'; +import { setExclusiveIoChannelClaimer } from '@/plugins/spark/utils/configuration'; import { channelName, prettyLimitations, @@ -42,7 +42,7 @@ async function replaceActuator( channel: EditableChannel, link: Link, ): Promise { - setExclusiveChannelActuator( + setExclusiveIoChannelClaimer( sparkStore.blockByLink(serviceId, link), bloxLink(block.value.id), channel.id, diff --git a/src/plugins/spark/const.ts b/src/plugins/spark/const.ts index c967cfce6..f14f957ff 100644 --- a/src/plugins/spark/const.ts +++ b/src/plugins/spark/const.ts @@ -1,6 +1,7 @@ import { AnalogCompareOp, AnalogConstraintKey, + AnalogSensorType, AnyConstraintKey, DigitalCompareOp, DigitalConstraintKey, @@ -11,6 +12,8 @@ import { PwmFrequency, SensorCombiFunc, SequenceStoreMode, + TempSensorAnalogSpec, + TempSensorAnalogType, TransitionDurationPreset, ValveState, } from 'brewblox-proto/ts'; @@ -145,3 +148,29 @@ export const ENUM_LABELS_STORE_MODE: EnumLabels = { AT_FIRST_INSTRUCTION_NEVER_ENABLED: 'Go to first instruction and disable sequence', }; + +export const ENUM_LABELS_TEMP_SENSOR_ANALOG_TYPE: EnumLabels = + { + TEMP_SENSOR_TYPE_NOT_SET: 'Not set', + TEMP_SENSOR_TYPE_RTD_2WIRE: 'RTD (two wire)', + TEMP_SENSOR_TYPE_RTD_3WIRE: 'RTD (three wire)', + TEMP_SENSOR_TYPE_RTD_4WIRE: 'RTD (four wire)', + }; + +export const ENUM_LABELS_TEMP_SENSOR_ANALOG_SPEC: EnumLabels = + { + SPEC_NOT_SET: 'Not set', + SPEC_PT100_385: 'PT100 (385)', + SPEC_PT100_392: 'PT100 (392)', + SPEC_PT1000_385: 'PT1000 (385)', + SPEC_PT1000_392: 'PT1000 (392)', + }; + +export const ENUM_LABELS_ANALOG_SENSOR_TYPE: EnumLabels = { + ANALOG_SENSOR_TYPE_NONE: 'None', + ANALOG_SENSOR_TYPE_STRAIN_GAUGE: 'Strain gauge', + ANALOG_SENSOR_TYPE_RTD_2WIRE: 'RTD (two wire)', + ANALOG_SENSOR_TYPE_RTD_3WIRE: 'RTD (three wire)', + ANALOG_SENSOR_TYPE_RTD_4WIRE: 'RTD (four wire)', + ANALOG_SENSOR_TYPE_RTD_3WIRE_LS: 'RTD (three wire LS)', +}; diff --git a/src/plugins/spark/features/AnalogGpioModule/AnalogGpioModuleWidget.vue b/src/plugins/spark/features/AnalogGpioModule/AnalogGpioModuleWidget.vue new file mode 100644 index 000000000..3dc8c4a00 --- /dev/null +++ b/src/plugins/spark/features/AnalogGpioModule/AnalogGpioModuleWidget.vue @@ -0,0 +1,190 @@ + + + diff --git a/src/plugins/spark/features/AnalogGpioModule/index.ts b/src/plugins/spark/features/AnalogGpioModule/index.ts new file mode 100644 index 000000000..bca337081 --- /dev/null +++ b/src/plugins/spark/features/AnalogGpioModule/index.ts @@ -0,0 +1,78 @@ +import { + AnalogGpioModuleBlock, + BlockType, + GpioErrorFlags, + GpioPins, +} from 'brewblox-proto/ts'; +import { Plugin } from 'vue'; +import { discoveredBlockFeature } from '@/plugins/spark/generic'; +import { useBlockSpecStore } from '@/plugins/spark/store'; +import { BlockSpec } from '@/plugins/spark/types'; +import { useFeatureStore, WidgetFeature } from '@/store/features'; +import { cref } from '@/utils/component-ref'; +import widget from './AnalogGpioModuleWidget.vue'; + +const type = BlockType.AnalogGpioModule; +const title = 'Analog GPIO Module'; + +const plugin: Plugin = { + install(app) { + const specStore = useBlockSpecStore(); + const featureStore = useFeatureStore(); + + const blockSpec: BlockSpec = { + type, + title, + hasRelations: true, + generate: (): AnalogGpioModuleBlock['data'] => ({ + channels: [], + modulePosition: 0, + useExternalPower: false, + status: { + moduleStatus: GpioErrorFlags.NONE, + pullUpDesired: GpioPins.NONE, + pullUpStatus: GpioPins.NONE, + pullUpWhenActive: GpioPins.NONE, + pullUpWhenInactive: GpioPins.NONE, + pullDownDesired: GpioPins.NONE, + pullDownStatus: GpioPins.NONE, + pullDownWhenActive: GpioPins.NONE, + pullDownWhenInactive: GpioPins.NONE, + overCurrent: GpioPins.NONE, + openLoad: GpioPins.NONE, + faultsHistory5m: GpioErrorFlags.NONE, + faultsHistory60m: GpioErrorFlags.NONE, + }, + analogChannels: [], + }), + analyze: (block: AnalogGpioModuleBlock) => { + const { moduleStatus } = block.data.status; + switch (moduleStatus) { + case GpioErrorFlags.NONE: + case GpioErrorFlags.OPEN_LOAD: + return 'Active'; + default: + return 'Invalid'; + } + }, + }; + + const feature: WidgetFeature = { + ...discoveredBlockFeature, + id: type, + title, + role: 'Output', + component: cref(app, widget), + widgetSize: { + cols: 4, + rows: 4, + }, + experimental: true, + }; + + specStore.addBlockSpec(blockSpec); + featureStore.addWidgetFeature(feature); + }, +}; + +export default plugin; diff --git a/src/plugins/spark/features/DigitalActuator/DigitalActuatorWidget.vue b/src/plugins/spark/features/DigitalActuator/DigitalActuatorWidget.vue index 596e6c30d..0ec6b6240 100644 --- a/src/plugins/spark/features/DigitalActuator/DigitalActuatorWidget.vue +++ b/src/plugins/spark/features/DigitalActuator/DigitalActuatorWidget.vue @@ -10,7 +10,7 @@ import { useContext } from '@/composables'; import { useBlockWidget } from '@/plugins/spark/composables'; import { ENUM_LABELS_TRANSITION_PRESET } from '@/plugins/spark/const'; import { useSparkStore } from '@/plugins/spark/store'; -import { setExclusiveChannelActuator } from '@/plugins/spark/utils/configuration'; +import { setExclusiveIoChannelClaimer } from '@/plugins/spark/utils/configuration'; import { selectable } from '@/utils/collections'; import { prettyQty } from '@/utils/quantity'; @@ -98,7 +98,7 @@ const softStartSupported = computed(() => { class="col-grow" @update:model-value=" ({ hwDevice, channel }) => - setExclusiveChannelActuator(block, hwDevice, channel) + setExclusiveIoChannelClaimer(block, hwDevice, channel) " /> [] = [ { value: ToggleBehavior.DIRECT, label: 'Direct' }, @@ -60,7 +60,7 @@ const { serviceId, block, patchBlock } = class="col-grow" @update:model-value=" ({ hwDevice, channel }) => - setExclusiveChannelActuator(block, hwDevice, channel) + setExclusiveIoChannelClaimer(block, hwDevice, channel) " /> (() => { class="col-grow" @update:model-value=" ({ hwDevice, channel }) => - setExclusiveChannelActuator(block, hwDevice, channel) + setExclusiveIoChannelClaimer(block, hwDevice, channel) " /> diff --git a/src/plugins/spark/features/OneWireGpioModule/OneWireGpioModuleWidget.vue b/src/plugins/spark/features/OneWireGpioModule/OneWireGpioModuleWidget.vue index 27524f969..5fda624f6 100644 --- a/src/plugins/spark/features/OneWireGpioModule/OneWireGpioModuleWidget.vue +++ b/src/plugins/spark/features/OneWireGpioModule/OneWireGpioModuleWidget.vue @@ -120,7 +120,7 @@ const errors = computed(() => { - diff --git a/src/plugins/spark/features/OneWireGpioModule/index.ts b/src/plugins/spark/features/OneWireGpioModule/index.ts index 70fa0e103..3380107ce 100644 --- a/src/plugins/spark/features/OneWireGpioModule/index.ts +++ b/src/plugins/spark/features/OneWireGpioModule/index.ts @@ -46,13 +46,13 @@ const plugin: Plugin = { }), analyze: (block: OneWireGpioModuleBlock) => { const { moduleStatus } = block.data.status; - if ( - moduleStatus != GpioErrorFlags.NONE && - moduleStatus != GpioErrorFlags.OPEN_LOAD - ) { - return 'Invalid'; + switch (moduleStatus) { + case GpioErrorFlags.NONE: + case GpioErrorFlags.OPEN_LOAD: + return 'Active'; + default: + return 'Invalid'; } - return 'Active'; }, }; diff --git a/src/plugins/spark/features/TempSensorAnalog/TempSensorAnalogWidget.vue b/src/plugins/spark/features/TempSensorAnalog/TempSensorAnalogWidget.vue new file mode 100644 index 000000000..80dd334a3 --- /dev/null +++ b/src/plugins/spark/features/TempSensorAnalog/TempSensorAnalogWidget.vue @@ -0,0 +1,119 @@ + + + diff --git a/src/plugins/spark/features/TempSensorAnalog/index.ts b/src/plugins/spark/features/TempSensorAnalog/index.ts new file mode 100644 index 000000000..9023a4a0e --- /dev/null +++ b/src/plugins/spark/features/TempSensorAnalog/index.ts @@ -0,0 +1,83 @@ +import { + AnalogSensorType, + BlockIntfType, + BlockType, + TempSensorAnalogBlock, + TempSensorAnalogSpec, + TempSensorAnalogType, +} from 'brewblox-proto/ts'; +import { Plugin } from 'vue'; +import { genericBlockFeature } from '@/plugins/spark/generic'; +import { useBlockSpecStore } from '@/plugins/spark/store'; +import { BlockFieldSpec, BlockSpec } from '@/plugins/spark/types'; +import { useFeatureStore, WidgetFeature } from '@/store/features'; +import { cref } from '@/utils/component-ref'; +import { bloxLink } from '@/utils/link'; +import { deltaTempQty, tempQty } from '@/utils/quantity'; +import widget from './TempSensorAnalogWidget.vue'; + +const type = BlockType.TempSensorAnalog; +const title = 'Analog Temp Sensor'; + +const plugin: Plugin = { + install(app) { + const specStore = useBlockSpecStore(); + const featureStore = useFeatureStore(); + + const blockSpec: BlockSpec = { + type, + title, + hasRelations: true, + generate: (): TempSensorAnalogBlock['data'] => ({ + value: tempQty(20), + offset: deltaTempQty(0), + sensorType: TempSensorAnalogType.TEMP_SENSOR_TYPE_NOT_SET, + analogDevice: bloxLink(null, BlockIntfType.AnalogArrayInterface), + analogChannel: 0, + detected: AnalogSensorType.ANALOG_SENSOR_TYPE_NONE, + spec: TempSensorAnalogSpec.SPEC_NOT_SET, + }), + analyze: (block: TempSensorAnalogBlock) => { + const { value, analogDevice, analogChannel } = block.data; + if (analogChannel == 0 || analogDevice.id == null) { + return 'Invalid'; + } + if (value.value == null) { + return 'Inactive'; + } + return 'Active'; + }, + }; + + const fieldSpecs: BlockFieldSpec[] = [ + { + type, + key: 'value', + title: 'Sensor value', + component: 'QuantityValEdit', + generate: () => tempQty(20), + readonly: true, + graphed: true, + }, + ]; + + const feature: WidgetFeature = { + ...genericBlockFeature, + id: type, + title, + role: 'Process', + component: cref(app, widget), + widgetSize: { + cols: 4, + rows: 2, + }, + experimental: true, + }; + + specStore.addBlockSpec(blockSpec); + specStore.addFieldSpecs(fieldSpecs); + featureStore.addWidgetFeature(feature); + }, +}; + +export default plugin; diff --git a/src/plugins/spark/features/index.ts b/src/plugins/spark/features/index.ts index 54d7fc1ad..3867f2b02 100644 --- a/src/plugins/spark/features/index.ts +++ b/src/plugins/spark/features/index.ts @@ -3,6 +3,7 @@ import ActuatorAnalogMock from './ActuatorAnalogMock'; import ActuatorLogic from './ActuatorLogic'; import ActuatorOffset from './ActuatorOffset'; import ActuatorPwm from './ActuatorPwm'; +import AnalogGpioModule from './AnalogGpioModule'; import Balancer from './Balancer'; import DeprecatedObject from './DeprecatedObject'; import DigitalActuator from './DigitalActuator'; @@ -26,6 +27,7 @@ import Spark2Pins from './Spark2Pins'; import Spark3Pins from './Spark3Pins'; import SparkDisplay from './SparkDisplay'; import SysInfo from './SysInfo'; +import TempSensorAnalog from './TempSensorAnalog'; import TempSensorCombi from './TempSensorCombi'; import TempSensorExternal from './TempSensorExternal'; import TempSensorMock from './TempSensorMock'; @@ -37,6 +39,7 @@ const plugins: Plugin[] = [ ActuatorLogic, ActuatorOffset, ActuatorPwm, + AnalogGpioModule, Balancer, DigitalActuator, DigitalInput, @@ -60,6 +63,7 @@ const plugins: Plugin[] = [ SysInfo, QuickActions, QuickValues, + TempSensorAnalog, TempSensorCombi, TempSensorExternal, TempSensorMock, diff --git a/src/plugins/spark/utils/configuration.ts b/src/plugins/spark/utils/configuration.ts index e447c8234..c7931a7b3 100644 --- a/src/plugins/spark/utils/configuration.ts +++ b/src/plugins/spark/utils/configuration.ts @@ -1,4 +1,5 @@ import { + AnalogClaimerInterfaceBlock, AnalogConstraintKey, AnalogConstraints, Block, @@ -16,7 +17,7 @@ import { DeprecatedMutexedConstraint, DigitalConstraintKey, DigitalConstraints, - IoDriverInterfaceBlock, + IoClaimerInterfaceBlock, Link, SetpointProfileBlock, } from 'brewblox-proto/ts'; @@ -149,7 +150,7 @@ export function calculateWiFiPct(dbm: number): number { return Math.round(-0.0154 * dbm * dbm - 0.3794 * dbm + 98.182); } -export async function unlinkChannelActuators( +export async function unlinkIoChannelClaimers( serviceId: string, hwDevice: Link, channel: number, @@ -163,8 +164,8 @@ export async function unlinkChannelActuators( await Promise.all( sparkStore .blocksByService(serviceId) - .filter((block): block is IoDriverInterfaceBlock => - isBlockCompatible(block, BlockIntfType.IoDriverInterface), + .filter((block): block is IoClaimerInterfaceBlock => + isBlockCompatible(block, BlockIntfType.IoClaimerInterface), ) .filter( (block) => @@ -177,15 +178,46 @@ export async function unlinkChannelActuators( ); } -export async function setExclusiveChannelActuator( +export async function unlinkAnalogChannelClaimers( + serviceId: string, + analogDevice: Link, + analogChannel: number, +): Promise { + if (!analogDevice.id || !analogChannel) { + return; + } + + const sparkStore = useSparkStore(); + + await Promise.all( + sparkStore + .blocksByService(serviceId) + .filter((block): block is AnalogClaimerInterfaceBlock => + isBlockCompatible(block, BlockIntfType.AnalogClaimerInterface), + ) + .filter( + (block) => + block.data.analogDevice.id === analogDevice.id && + block.data.analogChannel === analogChannel, + ) + .map((block) => + sparkStore.patchBlock(block, { + analogDevice: bloxLink(null), + analogChannel: 0, + }), + ), + ); +} + +export async function setExclusiveIoChannelClaimer( actuator: Maybe, hwDevice: Link, channel: number, ): Promise { if ( - !isBlockCompatible( + !isBlockCompatible( actuator, - BlockIntfType.IoDriverInterface, + BlockIntfType.IoClaimerInterface, ) ) { return; @@ -198,10 +230,39 @@ export async function setExclusiveChannelActuator( return; // no change } - await unlinkChannelActuators(actuator.serviceId, hwDevice, channel); + await unlinkIoChannelClaimers(actuator.serviceId, hwDevice, channel); await useSparkStore().patchBlock(actuator, { hwDevice, channel }); } +export async function setExclusiveAnalogChannelClaimer( + actuator: Maybe, + analogDevice: Link, + analogChannel: number, +): Promise { + if ( + !isBlockCompatible( + actuator, + BlockIntfType.AnalogClaimerInterface, + ) + ) { + return; + } + + if ( + actuator.data.analogDevice.id === analogDevice.id && + actuator.data.analogChannel === analogChannel + ) { + return; // no change + } + + await unlinkAnalogChannelClaimers( + actuator.serviceId, + analogDevice, + analogChannel, + ); + await useSparkStore().patchBlock(actuator, { analogDevice, analogChannel }); +} + export function emptyAnalogConstraints(): DeepNonNullable { return { min: { enabled: false, limiting: false, value: 0 }, diff --git a/yarn.lock b/yarn.lock index eb14e8993..ca4942a7e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3060,12 +3060,12 @@ __metadata: languageName: node linkType: hard -"brewblox-proto@https://github.com/brewblox/brewblox-proto#commit=2e7314a6a50cf459f49e725444c8e5cacd2bcd77": +"brewblox-proto@https://github.com/brewblox/brewblox-proto#commit=085aa5756728fe8815c434d6d2a61976b642f4b4": version: 1.0.0 - resolution: "brewblox-proto@https://github.com/brewblox/brewblox-proto.git#commit=2e7314a6a50cf459f49e725444c8e5cacd2bcd77" + resolution: "brewblox-proto@https://github.com/brewblox/brewblox-proto.git#commit=085aa5756728fe8815c434d6d2a61976b642f4b4" dependencies: typescript-string-enums: "npm:^1.0.0" - checksum: 10c0/cfb9d17ef3fe0ed66c17fd963dfeb7c5d953f244d4372c9ab71134d5390b27729f988bc597a0ea41ae9dccb8a0f8b2040f3d4e1580a6f0c9b03a2df5364955da + checksum: 10c0/7e47060b6d60125661ce0e90636a3e833e30131970bce84d153f3e288da089dcfe696ebd4ac386180015694dd60d732eb952c69c577a5d4fc173cb75aa4d9b53 languageName: node linkType: hard @@ -3096,7 +3096,7 @@ __metadata: "@vue/test-utils": "npm:^2.4.6" autoprefixer: "npm:^10.4.19" axios: "npm:^1.6.8" - brewblox-proto: "https://github.com/brewblox/brewblox-proto#commit=2e7314a6a50cf459f49e725444c8e5cacd2bcd77" + brewblox-proto: "https://github.com/brewblox/brewblox-proto#commit=085aa5756728fe8815c434d6d2a61976b642f4b4" buffer: "npm:^6.0.3" cm6-theme-basic-dark: "npm:^0.2.0" codemirror: "npm:^6.0.1" From c4e76b1d2ce77b4a0d4524cf8bf477f1ce630cda Mon Sep 17 00:00:00 2001 From: Bob Steers Date: Sat, 18 May 2024 12:43:08 +0200 Subject: [PATCH 06/27] manually pull proto with yarn updates --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f58e006df..2a68235fa 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "dependencies": { "@quasar/extras": "^1.16.11", "axios": "^1.6.8", - "brewblox-proto": "https://github.com/brewblox/brewblox-proto#commit=085aa5756728fe8815c434d6d2a61976b642f4b4", + "brewblox-proto": "https://github.com/brewblox/brewblox-proto#commit=4f015c84245de0cc0dbf07c8f23e90e4ba1b1779", "buffer": "^6.0.3", "cm6-theme-basic-dark": "^0.2.0", "codemirror": "^6.0.1", diff --git a/yarn.lock b/yarn.lock index ca4942a7e..1e2fb235c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3060,12 +3060,12 @@ __metadata: languageName: node linkType: hard -"brewblox-proto@https://github.com/brewblox/brewblox-proto#commit=085aa5756728fe8815c434d6d2a61976b642f4b4": +"brewblox-proto@https://github.com/brewblox/brewblox-proto#commit=4f015c84245de0cc0dbf07c8f23e90e4ba1b1779": version: 1.0.0 - resolution: "brewblox-proto@https://github.com/brewblox/brewblox-proto.git#commit=085aa5756728fe8815c434d6d2a61976b642f4b4" + resolution: "brewblox-proto@https://github.com/brewblox/brewblox-proto.git#commit=4f015c84245de0cc0dbf07c8f23e90e4ba1b1779" dependencies: typescript-string-enums: "npm:^1.0.0" - checksum: 10c0/7e47060b6d60125661ce0e90636a3e833e30131970bce84d153f3e288da089dcfe696ebd4ac386180015694dd60d732eb952c69c577a5d4fc173cb75aa4d9b53 + checksum: 10c0/8cb1404a290d8b237069a110c5162b2314acd0733ba551c515a07f1dbcffbefa4377a3b60152d04d6b0f737559090283d29fdfbb958509a14ca967c50ae6ad48 languageName: node linkType: hard @@ -3096,7 +3096,7 @@ __metadata: "@vue/test-utils": "npm:^2.4.6" autoprefixer: "npm:^10.4.19" axios: "npm:^1.6.8" - brewblox-proto: "https://github.com/brewblox/brewblox-proto#commit=085aa5756728fe8815c434d6d2a61976b642f4b4" + brewblox-proto: "https://github.com/brewblox/brewblox-proto#commit=4f015c84245de0cc0dbf07c8f23e90e4ba1b1779" buffer: "npm:^6.0.3" cm6-theme-basic-dark: "npm:^0.2.0" codemirror: "npm:^6.0.1" From 8d27189fa7a2b9cbb0a37498e92ffe6a165a5f12 Mon Sep 17 00:00:00 2001 From: Bob Steers Date: Thu, 6 Jun 2024 11:21:59 +0200 Subject: [PATCH 07/27] use correct data field for detected type --- .../TempSensorAnalogWidget.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/plugins/spark/features/TempSensorAnalog/TempSensorAnalogWidget.vue b/src/plugins/spark/features/TempSensorAnalog/TempSensorAnalogWidget.vue index 80dd334a3..3866e9371 100644 --- a/src/plugins/spark/features/TempSensorAnalog/TempSensorAnalogWidget.vue +++ b/src/plugins/spark/features/TempSensorAnalog/TempSensorAnalogWidget.vue @@ -83,13 +83,6 @@ const hasValue = computed(() => block.value.data.value.value !== null); ) " /> - (() => block.value.data.value.value !== null); class="col-grow" @update:model-value="(v) => patchBlock({ spec: v })" /> + +
+ + Date: Mon, 17 Jun 2024 10:36:02 +0000 Subject: [PATCH 08/27] Bump braces from 3.0.2 to 3.0.3 Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1e2fb235c..0df14ae17 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3052,11 +3052,11 @@ __metadata: linkType: hard "braces@npm:^3.0.2, braces@npm:~3.0.2": - version: 3.0.2 - resolution: "braces@npm:3.0.2" + version: 3.0.3 + resolution: "braces@npm:3.0.3" dependencies: - fill-range: "npm:^7.0.1" - checksum: 10c0/321b4d675791479293264019156ca322163f02dc06e3c4cab33bb15cd43d80b51efef69b0930cfde3acd63d126ebca24cd0544fa6f261e093a0fb41ab9dda381 + fill-range: "npm:^7.1.1" + checksum: 10c0/7c6dfd30c338d2997ba77500539227b9d1f85e388a5f43220865201e407e076783d0881f2d297b9f80951b4c957fcf0b51c1d2d24227631643c3f7c284b0aa04 languageName: node linkType: hard @@ -5302,12 +5302,12 @@ __metadata: languageName: node linkType: hard -"fill-range@npm:^7.0.1": - version: 7.0.1 - resolution: "fill-range@npm:7.0.1" +"fill-range@npm:^7.1.1": + version: 7.1.1 + resolution: "fill-range@npm:7.1.1" dependencies: to-regex-range: "npm:^5.0.1" - checksum: 10c0/7cdad7d426ffbaadf45aeb5d15ec675bbd77f7597ad5399e3d2766987ed20bda24d5fac64b3ee79d93276f5865608bb22344a26b9b1ae6c4d00bd94bf611623f + checksum: 10c0/b75b691bbe065472f38824f694c2f7449d7f5004aa950426a2c28f0306c60db9b880c0b0e4ed819997ffb882d1da02cfcfc819bddc94d71627f5269682edf018 languageName: node linkType: hard From 83329293974b0ef2cc8b824d1f312b313e871e59 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:50:15 +0000 Subject: [PATCH 09/27] Bump ws from 8.14.2 to 8.17.1 Bumps [ws](https://github.com/websockets/ws) from 8.14.2 to 8.17.1. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/8.14.2...8.17.1) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1e2fb235c..74d9330fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10606,9 +10606,9 @@ __metadata: languageName: node linkType: hard -"ws@npm:^8.14.2": - version: 8.14.2 - resolution: "ws@npm:8.14.2" +"ws@npm:^8.14.2, ws@npm:^8.16.0": + version: 8.17.1 + resolution: "ws@npm:8.17.1" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ">=5.0.2" @@ -10617,22 +10617,7 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: 10c0/35b4c2da048b8015c797fd14bcb5a5766216ce65c8a5965616a5440ca7b6c3681ee3cbd0ea0c184a59975556e9d58f2002abf8485a14d11d3371770811050a16 - languageName: node - linkType: hard - -"ws@npm:^8.16.0": - version: 8.16.0 - resolution: "ws@npm:8.16.0" - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ">=5.0.2" - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: 10c0/a7783bb421c648b1e622b423409cb2a58ac5839521d2f689e84bc9dc41d59379c692dd405b15a997ea1d4c0c2e5314ad707332d0c558f15232d2bc07c0b4618a + checksum: 10c0/f4a49064afae4500be772abdc2211c8518f39e1c959640457dcee15d4488628620625c783902a52af2dd02f68558da2868fd06e6fd0e67ebcd09e6881b1b5bfe languageName: node linkType: hard From a1c8d5d8cd4e1ffbda8097b9646d90fa4a973dc3 Mon Sep 17 00:00:00 2001 From: Bob Steers Date: Fri, 21 Jun 2024 15:30:48 +0200 Subject: [PATCH 10/27] fix commented config for service overrides --- docker-compose.override.yml | 20 +++++--------------- docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index b411d5b3b..d61ff584a 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -19,21 +19,11 @@ services: labels: - traefik.http.routers.ui.rule=PathPrefix(`/ui`) || PathPrefix(`/static`) || Path(`/`) - # node-red: - # volumes: - # - type: bind - # source: ./dev/node-red - # target: /data - # - type: bind - # source: ../node-red-contrib-brewblox - # target: /node-red-contrib-brewblox - # history: - # image: brewblox/brewblox-history:develop # volumes: # - type: bind - # source: ../brewblox-history - # target: /app + # source: ../brewblox-history/brewblox_history + # target: /app/brewblox_history # sparkey: # volumes: @@ -62,11 +52,11 @@ services: # tilt: # volumes: # - type: bind - # source: ../brewblox-tilt - # target: /app + # source: ../brewblox-tilt/brewblox_tilt + # target: /app/brewblox_tilt # read_only: true # - type: bind - # source: ./dev/tilt_share + # source: ${BREWBLOX_CACHE_DIR}/tilt # target: /share # hass: diff --git a/docker-compose.yml b/docker-compose.yml index d69d1285d..8725f0f99 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,7 +34,7 @@ services: image: ghcr.io/brewblox/brewblox-history:develop node-red: - image: ghcr.io/brewblox/node-red:develop + image: nodered/node-red:latest-minimal volumes: - type: bind source: ${BREWBLOX_CACHE_DIR}/node-red From a63f4672aa52d1e25d50ce1d47a824d75f060885 Mon Sep 17 00:00:00 2001 From: Bob Steers Date: Fri, 21 Jun 2024 16:15:57 +0200 Subject: [PATCH 11/27] add conditional messages to troubleshooter if USB is enabled --- .../spark/service/SparkTroubleshooter.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/plugins/spark/service/SparkTroubleshooter.vue b/src/plugins/spark/service/SparkTroubleshooter.vue index 461abda4b..78f839b8e 100644 --- a/src/plugins/spark/service/SparkTroubleshooter.vue +++ b/src/plugins/spark/service/SparkTroubleshooter.vue @@ -52,6 +52,15 @@ const connectionStep = computed(() => { return status.value.connection_status; }); +const usbSupported = computed(() => { + if (!status.value) { + return true; + } + // The Spark 4 does not support USB, and has a device ID of 12 (hex MAC address) + // If there is no desired device ID, we assume USB may be supported. + return status.value.service.device.device_id?.length != 12; +}); + function isStepDone(step: ConnectionStep): boolean { return stepOrder.indexOf(step) < stepOrder.indexOf(connectionStep.value); } @@ -146,11 +155,10 @@ function serviceReboot(): void {
  • Does your controller have the correct firmware?
  • WiFi: Does your controller display its IP address?
  • Are there any error messages in your service logs?
  • -
  • - USB: Your service must have been (re)started after plugging in - the USB cable. -
  • -
  • USB: Can your service access USB devices? (Mac hosts)
  • +