Skip to content

Commit

Permalink
Use npm version of lit
Browse files Browse the repository at this point in the history
  • Loading branch information
vasqued2 committed Aug 25, 2024
1 parent 040c8bf commit 2714d3c
Show file tree
Hide file tree
Showing 15 changed files with 477 additions and 1,033 deletions.
1,304 changes: 404 additions & 900 deletions dist/ha-teamtracker-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ha-teamtracker-card.js.map

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions package-lock.json

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"source": "./src/ha-teamtracker-card.js",
"source": "./src/ha-teamtracker-card.js",
"module": "./dist/ha-teamtracker-card.js",
"targets": {
"module": {
Expand All @@ -12,5 +12,8 @@
},
"devDependencies": {
"parcel": "^2.12.0"
},
"dependencies": {
"lit": "^3.2.0"
}
}
}
2 changes: 1 addition & 1 deletion src/card_editor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Define and register the UI Card Editor
//
import { html, LitElement } from "./lit/lit-all.min.js";
import { html, LitElement } from "lit";


export class TeamtrackerCardEditor extends LitElement {
Expand Down
120 changes: 0 additions & 120 deletions src/lit/lit-all.min.js

This file was deleted.

1 change: 0 additions & 1 deletion src/lit/lit-all.min.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion src/render_bye.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html } from "./lit/lit-all.min.js";
import { html } from "lit";


// Define the rendering function
Expand Down
2 changes: 1 addition & 1 deletion src/render_error.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html } from "./lit/lit-all.min.js";
import { html } from "lit";


export function renderMissingConfig() {
Expand Down
3 changes: 2 additions & 1 deletion src/render_in.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { html, styleMap } from "./lit/lit-all.min.js";
import { html } from "lit";
import { styleMap } from 'lit/directives/style-map.js';


// Define the rendering function
Expand Down
2 changes: 1 addition & 1 deletion src/render_not_found.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html } from "./lit/lit-all.min.js";
import { html } from "lit";


// Define the rendering function
Expand Down
3 changes: 2 additions & 1 deletion src/render_post.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { html, styleMap } from "./lit/lit-all.min.js";
import { html } from "lit";
import { styleMap } from 'lit/directives/style-map.js';


// Define the rendering function
Expand Down
3 changes: 2 additions & 1 deletion src/render_pre.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { html, styleMap } from "./lit/lit-all.min.js";
import { html } from "lit";
import { styleMap } from 'lit/directives/style-map.js';


// Define the rendering function
Expand Down
2 changes: 1 addition & 1 deletion src/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from "./lit/lit-all.min.js";
import { css } from "lit";

export const cardStyles = css`
.card { position: relative; overflow: hidden; padding: 16px 16px 20px; font-weight: 400; border-radius: var(--ha-card-border-radius, 10px); }
Expand Down
2 changes: 1 addition & 1 deletion src/teamtracker_card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, css } from "./lit/lit-all.min.js";
import { LitElement, css } from "lit";
import { Translator } from "./localize/translator.js";
import { VERSION } from "./const.js";
import { renderBye } from './render_bye.js';
Expand Down

0 comments on commit 2714d3c

Please sign in to comment.