Skip to content

Commit

Permalink
Added editor to card for visual configuration (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcokreeft87 authored Oct 15, 2023
1 parent 5e56712 commit f341c97
Show file tree
Hide file tree
Showing 7 changed files with 391 additions and 489 deletions.
397 changes: 206 additions & 191 deletions formulaone-card.js

Large diffs are not rendered by default.

Binary file modified formulaone-card.js.gz
Binary file not shown.
56 changes: 46 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "formulaone-card",
"version": "1.8.6",
"version": "1.8.7",
"description": "Frontend card for Home Assistant to display Formula One data",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -39,6 +39,7 @@
"@babel/plugin-transform-runtime": "^7.22.5",
"@babel/preset-env": "^7.22.14",
"@lit-labs/scoped-registry-mixin": "^1.0.1",
"@marcokreeft/ha-editor-formbuilder": "^2023.10.9",
"babel-jest": "^29.7.0",
"compression-webpack-plugin": "^10.0.0",
"custom-card-helpers": "^1.9.0",
Expand Down
2 changes: 1 addition & 1 deletion src/cards/base-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export abstract class BaseCard {

abstract cardSize() : number;

abstract defaultTranslations: Translation;
abstract defaultTranslations: Translation;

protected getProperties() {
const cardProperties = this.parent.properties?.get('cardValues') as CardProperties;
Expand Down
Loading

0 comments on commit f341c97

Please sign in to comment.