Skip to content

Commit

Permalink
docs: cleanup web examples
Browse files Browse the repository at this point in the history
  • Loading branch information
xseman committed May 22, 2024
1 parent 2015d4e commit 12b1421
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 54 deletions.
1 change: 0 additions & 1 deletion docs/examples/web/lit/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion docs/examples/web/lit/.npmrc

This file was deleted.

10 changes: 0 additions & 10 deletions docs/examples/web/lit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,5 @@
<app-bysquare></app-bysquare>
</body>

<script type="importmap">
{
"imports": {
"qrcanvas": "https://esm.sh/[email protected]/",
"bysquare": "https://esm.sh/[email protected]/",
"lit": "https://esm.sh/[email protected]/"
}
}
</script>

<script type="module" src="index.js"></script>
</html>
7 changes: 3 additions & 4 deletions docs/examples/web/lit/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-check
import { CurrencyCode, encode, PaymentOptions } from "bysquare";
import { html, LitElement } from "lit";
import { qrcanvas } from "qrcanvas";
import { CurrencyCode, encode, PaymentOptions } from "https://esm.sh/[email protected]/";
import { html, LitElement } from "https://esm.sh/[email protected]/";
import { qrcanvas } from "https://esm.sh/[email protected]/";

/**
* @extends {LitElement}
Expand Down
11 changes: 0 additions & 11 deletions docs/examples/web/lit/package.json

This file was deleted.

1 change: 0 additions & 1 deletion docs/examples/web/preact/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion docs/examples/web/preact/.npmrc

This file was deleted.

9 changes: 0 additions & 9 deletions docs/examples/web/preact/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,5 @@
<div id="app"></div>
</body>

<script type="importmap">
{
"imports": {
"qrcanvas": "https://esm.sh/[email protected]/",
"bysquare": "https://esm.sh/[email protected]/",
"preact": "https://esm.sh/preact"
}
}
</script>
<script type="module" src="index.js"></script>
</html>
8 changes: 3 additions & 5 deletions docs/examples/web/preact/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-check
import { CurrencyCode, encode, PaymentOptions } from "bysquare";
import { Component, createRef, h, render } from "preact";
import { qrcanvas } from "qrcanvas";
import { CurrencyCode, encode, PaymentOptions } from "https://esm.sh/[email protected]/";
import { Component, createRef, h, render } from "https://esm.sh/[email protected]";
import { qrcanvas } from "https://esm.sh/[email protected]/";

/**
* @typedef {Object} State
Expand Down Expand Up @@ -106,5 +105,4 @@ class App extends Component {
};
}

// @ts-ignore
render(h(App, null), document.getElementById("app"));
11 changes: 0 additions & 11 deletions docs/examples/web/preact/package.json

This file was deleted.

3 changes: 3 additions & 0 deletions docs/examples/web/server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

npx esbuild --servedir=./

0 comments on commit 12b1421

Please sign in to comment.