vacuum-card 2.11.0 → 2.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.github/dependabot.yml +2 -0
  2. package/.github/workflows/main.yml +8 -7
  3. package/.github/workflows/stale.yml +1 -1
  4. package/.husky/pre-commit +0 -3
  5. package/AGENTS.md +43 -0
  6. package/README.md +15 -15
  7. package/dist/vacuum-card.js +1 -4
  8. package/eslint.config.mjs +26 -0
  9. package/package.json +37 -29
  10. package/rollup.config.mjs +1 -0
  11. package/scripts/lint-translations.mjs +75 -0
  12. package/src/localize.ts +6 -3
  13. package/src/styles.css +1 -4
  14. package/src/translations/ca.json +36 -5
  15. package/src/translations/cn.json +20 -7
  16. package/src/translations/cs.json +17 -4
  17. package/src/translations/da.json +10 -10
  18. package/src/translations/de.json +7 -7
  19. package/src/translations/es.json +33 -8
  20. package/src/translations/fi.json +5 -5
  21. package/src/translations/fr.json +36 -18
  22. package/src/translations/he.json +20 -5
  23. package/src/translations/hu.json +1 -1
  24. package/src/translations/it.json +35 -7
  25. package/src/translations/ko.json +18 -5
  26. package/src/translations/lt.json +34 -3
  27. package/src/translations/nb.json +36 -7
  28. package/src/translations/nl.json +44 -4
  29. package/src/translations/nn.json +35 -3
  30. package/src/translations/pl.json +7 -9
  31. package/src/translations/pt-BR.json +28 -12
  32. package/src/translations/pt.json +9 -9
  33. package/src/translations/ro.json +24 -4
  34. package/src/translations/ru.json +14 -15
  35. package/src/translations/sv.json +33 -4
  36. package/src/translations/tw.json +43 -13
  37. package/src/translations/uk.json +5 -6
  38. package/src/translations/vi.json +34 -3
  39. package/src/vacuum-card.ts +1 -0
  40. package/.eslintrc.json +0 -17
@@ -12,3 +12,5 @@ updates:
12
12
  schedule:
13
13
  interval: 'monthly'
14
14
  open-pull-requests-limit: 25
15
+ cooldown:
16
+ default-days: 21 # 3 weeks
@@ -4,6 +4,7 @@ on:
4
4
  pull_request:
5
5
 
6
6
  permissions:
7
+ id-token: write # Required for OIDC
7
8
  contents: write
8
9
  pull-requests: write
9
10
 
@@ -17,12 +18,12 @@ jobs:
17
18
  runs-on: ubuntu-latest
18
19
  steps:
19
20
  - name: ⬇️ Checkout Repo
20
- uses: actions/checkout@v4
21
+ uses: actions/checkout@v6
21
22
 
22
23
  - name: ⬢ Setup Node.js
23
- uses: actions/setup-node@v4
24
+ uses: actions/setup-node@v6
24
25
  with:
25
- node-version: '*'
26
+ node-version: latest
26
27
  cache: npm
27
28
 
28
29
  - name: 📦 Install Packages
@@ -38,12 +39,13 @@ jobs:
38
39
  if: github.ref_name == 'main' && (github.event_name == 'push' || github.event.pull_request.merged)
39
40
  steps:
40
41
  - name: ⬇️ Checkout Repo
41
- uses: actions/checkout@v4
42
+ uses: actions/checkout@v6
42
43
 
43
44
  - name: ⬢ Setup Node.js
44
- uses: actions/setup-node@v4
45
+ uses: actions/setup-node@v6
45
46
  with:
46
- node-version: '*'
47
+ registry-url: https://registry.npmjs.org
48
+ node-version: latest
47
49
  cache: npm
48
50
 
49
51
  - name: 📦 Install Packages
@@ -56,7 +58,6 @@ jobs:
56
58
  run: npx semantic-release
57
59
  env:
58
60
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
60
61
 
61
62
  dependabot:
62
63
  name: Dependabot Auto-merge
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
16
  - name: 🧹 Clean stale issues and pull requests
17
- uses: actions/stale@v9
17
+ uses: actions/stale@v10
18
18
  with:
19
19
  stale-issue-message: >
20
20
  There hasn't been any activity on this issue recently.
package/.husky/pre-commit CHANGED
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
1
  npx lint-staged
package/AGENTS.md ADDED
@@ -0,0 +1,43 @@
1
+ # Repository Guidelines
2
+
3
+ ## Project Structure & Module Organization
4
+
5
+ - `src/`: TypeScript source for the custom Lovelace card (entry: `src/vacuum-card.ts`).
6
+ - `dist/`: Build output (bundled card JS). This is generated by Rollup.
7
+ - `rollup.config.mjs`: Build pipeline and asset handling.
8
+ - `eslint.config.mjs`: Lint configuration.
9
+ - `package.json`: Scripts, dependencies, and release config.
10
+
11
+ ## Build, Test, and Development Commands
12
+
13
+ - `npm install`: Install dependencies.
14
+ - `npm run start`: Watch mode build (Rollup) for local development.
15
+ - `npm run build`: Production bundle to `dist/`.
16
+ - `npm run lint`: Run ESLint on `src/`.
17
+ - `npm run lint:fix`: Auto-fix lint issues in `src/`.
18
+ - `npm run format`: Format with Prettier (respects `.prettier` settings in `package.json`).
19
+ - `npm test`: Runs `lint` then `build` (no separate test suite).
20
+
21
+ ## Coding Style & Naming Conventions
22
+
23
+ - Language: TypeScript, ES modules (`"type": "module"`).
24
+ - Formatting: Prettier with single quotes (`"singleQuote": true`).
25
+ - Linting: ESLint (see `eslint.config.mjs`) using `@typescript-eslint` and `eslint-plugin-import`.
26
+ - Match existing patterns in `src/` for file naming and exports; prefer descriptive, kebab-case filenames for components.
27
+
28
+ ## Testing Guidelines
29
+
30
+ - No dedicated test framework is configured.
31
+ - Use `npm test` to validate linting and the production build.
32
+ - Keep changes buildable; avoid introducing new build-time warnings.
33
+
34
+ ## Commit & Pull Request Guidelines
35
+
36
+ - Commit messages follow Conventional Commits (Angular preset), e.g. `feat: ...`, `fix: ...`, `chore(deps): ...`.
37
+ - Dependency updates should use `chore(deps): ...` to align with release rules.
38
+ - PRs should include: a concise description, what changed, and how it was validated (commands run). If UI changes are visible, include a screenshot or GIF.
39
+
40
+ ## Release & Automation Notes
41
+
42
+ - Releases are handled by semantic-release on `main` with assets from `dist/vacuum-card.js`.
43
+ - Ensure build output remains stable when changing dependencies or build config.
package/README.md CHANGED
@@ -159,17 +159,17 @@ You can defined [custom scripts][ha-scripts] for custom actions i.e cleaning spe
159
159
 
160
160
  This card can be styled by changing the values of these CSS properties (globally or per-card via [`card-mod`][card-mod]):
161
161
 
162
- | Variable | Default value | Description |
163
- | --------------------------- | ---------------------------------------------------------------- | ------------------------------------ |
164
- | `--vc-background` | `var(--ha-card-background, var(--card-background-color, white))` | Background of the card |
165
- | `--vc-primary-text-color` | `var(--primary-text-color)` | Vacuum name, stats values, etc |
166
- | `--vc-secondary-text-color` | `var(--secondary-text-color)` | Status, stats units and titles, etc |
167
- | `--vc-icon-color` | `var(--secondary-text-color)` | Colors of icons |
168
- | `--vc-toolbar-background` | `var(--vc-background)` | Background of the toolbar |
169
- | `--vc-toolbar-text-color` | `var(--secondary-text-color)` | Color of the toolbar texts |
170
- | `--vc-toolbar-icon-color` | `var(--secondary-text-color)` | Color of the toolbar icons |
171
- | `--vc-divider-color` | `var(--entities-divider-color, var(--divider-color))` | Color of dividers |
172
- | `--vc-spacing` | `10px` | Paddings and margins inside the card |
162
+ | Variable | Default value | Description |
163
+ | --------------------------- | ----------------------------------------------------- | ------------------------------------ |
164
+ | `--vc-background` | `transparent` | Background of the card |
165
+ | `--vc-primary-text-color` | `var(--primary-text-color)` | Vacuum name, stats values, etc |
166
+ | `--vc-secondary-text-color` | `var(--secondary-text-color)` | Status, stats units and titles, etc |
167
+ | `--vc-icon-color` | `var(--secondary-text-color)` | Colors of icons |
168
+ | `--vc-toolbar-background` | `var(--vc-background)` | Background of the toolbar |
169
+ | `--vc-toolbar-text-color` | `var(--secondary-text-color)` | Color of the toolbar texts |
170
+ | `--vc-toolbar-icon-color` | `var(--secondary-text-color)` | Color of the toolbar icons |
171
+ | `--vc-divider-color` | `var(--entities-divider-color, var(--divider-color))` | Color of dividers |
172
+ | `--vc-spacing` | `10px` | Paddings and margins inside the card |
173
173
 
174
174
  ### Styling via theme
175
175
 
@@ -242,16 +242,16 @@ This card relies on basic vacuum services, like `pause`, `start`, `stop`, `retur
242
242
 
243
243
  If this card works with your vacuum cleaner, please open a PR and your model to the list.
244
244
 
245
- - **Roborock** S8 (MaxV Ultra, Ultra Pro), S7 (MaxV), S6 (MaxV, Pure), S5 (Max), S50, S4 (Max), E25, E4, Q5 Pro
245
+ - **Roborock** S8 (MaxV Ultra, Ultra Pro), S7 (MaxV), S6 (MaxV, Pure), S5 (Max), S50, S4 (Max), E25, E4, Q5 Pro, Qrevo S
246
246
  - **Mijia** Robot Vacuum Cleaner 1C (STYTJ01ZHM)
247
247
  - **Xiaomi** Mi Robot (STYJ02YM), Mi Robot 1S, Mi Roborock V1 (SDJQR02RR), Mijia 1C, Mi Robot Vacuum-Mop P, Robot Vacuum E10
248
- - **Roomba** 670, 675, 676, 960980, 981, i3, i7+, e5, S9, s9+, j7
248
+ - **Roomba** 670, 675, 676, 697, 960, 980, 981, i3, i7+, e5, S9, s9+, j7
249
249
  - **Braava** M6
250
250
  - **Dyson** 360 Eye
251
251
  - **Neato** D7, D6, D4
252
252
  - **Shark** IQ
253
253
  - **Ecova**cs Deebot 950, Deebot OZMO T8 AIVI, Deebot N79, Deebot N8, Deebot N8+, T9 AIVI, Deebot T20 Ombi
254
- - **Eufy** Robovac 30c, Robovac 15C Max, Robovac X8 Hybrid, Robovac G40
254
+ - **Eufy** Robovac 30c, Robovac 35c, Robovac 15C Max, Robovac L70 Hybrid, Robovac X8, Robovac X8 Hybrid, Robovac G40
255
255
  - **EcoVacs** T9 AIVI
256
256
  - **Dreame** Z10 Pro, L10 Pro, D9, F9
257
257
  - 360 S7 Pro
@@ -305,7 +305,7 @@ MIT © [Denys Dovhan][denysdovhan]
305
305
  [returning-gif]: https://user-images.githubusercontent.com/3459374/81119452-765afd00-8f33-11ea-9dc5-9c26ba3f8c45.gif
306
306
  [latest-release]: https://github.com/denysdovhan/vacuum-card/releases/latest
307
307
  [ha-scripts]: https://www.home-assistant.io/docs/scripts/
308
- [edit-readme]: https://github.com/denysdovhan/vacuum-card/edit/master/README.md
308
+ [edit-readme]: https://github.com/denysdovhan/vacuum-card/edit/main/README.md
309
309
  [card-mod]: https://github.com/thomasloven/lovelace-card-mod
310
310
  [add-translation]: https://github.com/denysdovhan/vacuum-card/blob/master/CONTRIBUTING.md#how-to-add-translation
311
311
  [macbury-smart-house]: https://macbury.github.io/SmartHouse/HomeAssistant/Vacuum/