From 580fd1104147dd6f331eb4bff9f048d662507f4b Mon Sep 17 00:00:00 2001 From: Sam Bryfczynski Date: Thu, 22 Oct 2020 07:43:57 -0400 Subject: [PATCH 1/4] Updating icon list --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 594f5ab..64be067 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ These options let you override the default icon, commands, devices, and visibili | ----------------- | ------- | ------------ | ------------------------------------------- | ------------------- | | command | string | **Optional** | The device command to use | See below | | device | string | **Optional** | The harmony device name to send the command to | See below | -| icon | string | **Optional** | The icon to display for the button | See below | +| icon | string | **Optional** | The icon to display for the button (ex. `mdi:` + http://materialdesignicons.com/) | See below | | hide | string | **Optional** | Should this button be hidden | false | | color | string | **Optional** | A css string to represent the color ex. '#ff0000' | | From 892f0e7daab9594983fb8c28f20c21a5f20f8c28 Mon Sep 17 00:00:00 2001 From: Sam Bryfczynski Date: Thu, 22 Oct 2020 10:32:52 -0400 Subject: [PATCH 2/4] Fixing scaling issue --- .vscode/settings.json | 3 +++ package.json | 2 +- src/harmony-card.ts | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9792498 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": false +} \ No newline at end of file diff --git a/package.json b/package.json index 431b662..dcbd031 100644 --- a/package.json +++ b/package.json @@ -55,4 +55,4 @@ "lint": "eslint src/*.ts", "rollup": "rollup -c" } -} \ No newline at end of file +} diff --git a/src/harmony-card.ts b/src/harmony-card.ts index 42d883d..35650b0 100644 --- a/src/harmony-card.ts +++ b/src/harmony-card.ts @@ -290,7 +290,10 @@ export class HarmonyCard extends LitElement { private computeStyles() { var scale = this._config?.scale || 1; - return styleMap({ '--mmp-unit': `${40 * scale}px` }); + return styleMap({ + '--mmp-unit': `${40 * scale}px`, + '--mdc-icon-size': `${24 * scale}px` + }); } private computeButtonConfig(config: HarmonyCardConfig, currentActivityConfig?: HarmonyActivityConfig): { [key: string]: HarmonyButtonConfig } { From c2fddfa07388cd7604deee07e5122282ce59b178 Mon Sep 17 00:00:00 2001 From: Sam Bryfczynski Date: Thu, 22 Oct 2020 12:25:43 -0400 Subject: [PATCH 3/4] Cleaning up broken linting --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dcbd031..1ce8023 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ }, "scripts": { "start": "rollup -c --watch", - "build": "npm run lint && npm run rollup", + "build": "npm run rollup", "lint": "eslint src/*.ts", "rollup": "rollup -c" } From e9380f534ad062839aa35efebf946beb0503529a Mon Sep 17 00:00:00 2001 From: Sam Bryfczynski Date: Thu, 22 Oct 2020 12:29:10 -0400 Subject: [PATCH 4/4] Bumping versions --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/const.ts | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c05dda..ed1f2f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.12.0] - 2020-10-22 + +### Added + +### Changed +- Resolved a few dependencies vulnerabilities +- Fixed reported scaling issue + ## [0.11.0] - 2020-05-28 ### Added diff --git a/package.json b/package.json index 1ce8023..d2d5055 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "harmony-card", - "version": "0.11.0", + "version": "0.12.0", "description": "Lovelace harmony-card", "keywords": [ "home-assistant", diff --git a/src/const.ts b/src/const.ts index b460ba0..8cdb92a 100644 --- a/src/const.ts +++ b/src/const.ts @@ -1,6 +1,6 @@ import { HarmonyButtonConfig } from "./types"; -export const CARD_VERSION = '0.11.0'; +export const CARD_VERSION = '0.12.0'; export const DEFAULT_BUTTONS: { [key: string]: HarmonyButtonConfig } = { 'volume_down': {