This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master: initial commit - init node package & add litelement
- Loading branch information
1 parent
d394e84
commit c595236
Showing
4 changed files
with
76 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "embeddable_nfts", | ||
"version": "0.0.1", | ||
"description": "Resuable, embeddable webcomponent for OpenSea assets.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ProjectOpenSea/embeddable_nfts.git" | ||
}, | ||
"author": "Taylor Dawson", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/ProjectOpenSea/embeddable_nfts/issues" | ||
}, | ||
"homepage": "https://github.com/ProjectOpenSea/embeddable_nfts#readme", | ||
"dependencies": { | ||
"lit-element": "^2.2.1" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Import LitElement base class, html helper function, | ||
* and TypeScript decorators | ||
**/ | ||
import { | ||
LitElement, html, customElement, property | ||
} from 'lit-element'; | ||
|
||
/** | ||
* Use the customElement decorator to define your class as | ||
* a custom element. Registers <my-element> as an HTML tag. | ||
*/ | ||
@customElement('my-element') | ||
export class MyElement extends LitElement { | ||
|
||
/** | ||
* Create an observed property. Triggers update on change. | ||
*/ | ||
@property() | ||
foo = 'foo'; | ||
|
||
/** | ||
* Implement `render` to define a template for your element. | ||
*/ | ||
render(){ | ||
/** | ||
* Use JavaScript expressions to include property values in | ||
* the element template. | ||
*/ | ||
return html`<p>${this.foo}</p>`; | ||
} | ||
} |