-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
21 changed files
with
1,312 additions
and
3,449 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { html, css, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import '../src/your-webcomponent'; | ||
|
||
@customElement('app-root') | ||
export class AppRoot extends LitElement { | ||
render() { | ||
return html` | ||
<your-webcomponent title="Hello"> | ||
<div slot="my-slot">Some slotted content</div> | ||
</your-webcomponent> | ||
`; | ||
} | ||
|
||
static styles = css` | ||
:host { | ||
display: block; | ||
} | ||
`; | ||
} |
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 |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
<html lang="en-GB"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<style> | ||
html { | ||
font-size: 10px; /* This is to match petabox's base font size */ | ||
|
@@ -12,41 +10,12 @@ | |
body { | ||
background: #fafafa; | ||
} | ||
|
||
ia-account-settings { | ||
display: block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="demo"> | ||
</div> | ||
<script type="module"> | ||
// import { html, render } from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'; | ||
// import { html, css, render } from '../node_modules/lit/index.js'; | ||
import {html, render} from 'https://unpkg.com/lit-html?module'; | ||
|
||
|
||
import '../dist/index.js'; | ||
|
||
render( | ||
html`<ia-account-settings | ||
.userData=${{ | ||
screenname: 'neeraj-archive', | ||
email: '[email protected]', | ||
password: '*******', | ||
isAdmin: true, | ||
}} | ||
.newsletterData=${{ | ||
ml_events: true, | ||
ml_donors: true | ||
}} | ||
.loanHistoryFlag=${'public'} | ||
> | ||
</ia-account-settings>`, | ||
<app-root></app-root> | ||
|
||
document.querySelector('#demo') | ||
) | ||
<script type="module" src="../dist/demo/app-root.js"> | ||
</script> | ||
</body> | ||
</html> |
This file was deleted.
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { IAAccountSettings } from './src/ia-account-settings'; | ||
export { YourWebComponent } from './src/your-webcomponent'; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.