-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Fresh 1.6.8; ran deno fmt; other tweaks
- Loading branch information
Showing
10 changed files
with
6 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,3 @@ class HelloWC extends HTMLElement { | |
} | ||
} | ||
customElements.define("hello-wc", HelloWC); | ||
|
||
export default HelloWC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,5 +52,3 @@ customElements.define( | |
"lit-counter", | ||
LitCounter, | ||
); | ||
|
||
export default LitCounter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
import { css, html, LitElement } from "https://esm.sh/[email protected]"; | ||
// import { | ||
// customElement, | ||
// property, | ||
// } from "https://esm.sh/[email protected]/decorators.js"; | ||
|
||
/* TS errors are ignored in the build */ | ||
// @customElement("my-lit-message") | ||
// @ts-ignore LSP does not recognize LitElement syntax | ||
export class MyLitMessage extends LitElement { | ||
// @property() | ||
// Properties are the component attributes | ||
static get properties(): { message: string } { | ||
return { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* How to use a library in a web component - change-case here. | ||
*/ | ||
// 'npm:' specifier does not work since Deno is not processing this | ||
// 'npm:' specifier does not work since Deno is not processing this file | ||
import * as changeCase from "https://esm.sh/[email protected]"; | ||
|
||
class UsingNpmLib extends HTMLElement { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"exclude": ["**/_fresh/*"], | ||
"nodeModulesDir": true, | ||
"imports": { | ||
"$fresh/": "https://deno.land/x/[email protected].7/", | ||
"$fresh/": "https://deno.land/x/[email protected].8/", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Definitions of web component types with emphasis on extending | ||
* JSX.IntrinsicElements. This is required to be able to use a custom | ||
* element in a .tsx page without showing errors in vscode. | ||
* element in a .tsx page without showing TypeScript errors in vscode. | ||
*/ | ||
import { JSX } from "preact"; | ||
import { LitElement } from "https://esm.sh/[email protected]"; | ||
|