-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lit+ui-kit): example added and moved shim for lit html locally
- Loading branch information
1 parent
bd8f621
commit 0fb5033
Showing
10 changed files
with
7,692 additions
and
3 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
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,41 @@ | ||
import { | ||
Component, | ||
html, | ||
LitElement, | ||
} from 'http://localhost:8080/@rxdi/lit-html'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
template(this) { | ||
return html` | ||
<rx-button palette="danger">Test Button</rx-button> | ||
<rx-accordion-item> | ||
<div slot="title">Why should i upgrade ?</div> | ||
<div slot="content">Optimized for best experience...</div> | ||
</rx-accordion-item> `; | ||
}, | ||
}) | ||
export class AppRoot extends LitElement {} | ||
|
||
export default Litre({ | ||
page: () => Ocean.html` | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>My app</title> | ||
<script type="module"> | ||
import 'http://localhost:8080/@rxdi/ui-kit/accordion-item'; | ||
import 'http://localhost:8080/@rxdi/ui-kit/button'; | ||
import { Bootstrap} from 'http://localhost:8080/@rxdi/core'; | ||
import { ReactiveUiModule } from 'http://localhost:8080/@rxdi/ui-kit'; | ||
Bootstrap(ReactiveUiModule.forRoot()).subscribe() | ||
</script> | ||
</head> | ||
<body> | ||
<app-root></app-root> | ||
</body> | ||
</html> | ||
`, | ||
}); |
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,5 @@ | ||
{ | ||
"imports": { | ||
"@rxdi/lit-html": "https://cdn.esm.sh/v53/@rxdi/lit-html@0.7.127" | ||
} | ||
} |
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,7 @@ | ||
import { start } from '../../src/mod.ts'; | ||
|
||
start({ | ||
importmap: await Deno.readTextFile('importmap.json'), | ||
folder: 'app', | ||
port: 4200, | ||
}); |
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,8 @@ | ||
dev: | ||
mode=dev deno run --no-check --allow-net --allow-read --allow-env --allow-run --allow-write --import-map=importmap.json --unstable -c tsconfig.json index.ts | ||
|
||
start: | ||
deno run --no-check --allow-net --allow-read --allow-env --allow-run --allow-write --import-map=importmap.json --unstable -c tsconfig.json index.ts | ||
|
||
cache: | ||
deno cache --reload --no-check -c tsconfig.json index.ts |
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,15 @@ | ||
{ | ||
"compilerOptions": { | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"alwaysStrict": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"strict": true, | ||
"strictBindCallApply": true, | ||
"strictFunctionTypes": true, | ||
"strictNullChecks": true, | ||
"strictPropertyInitialization": true | ||
} | ||
} |
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
Oops, something went wrong.