Skip to content

Commit 1dc6df0

Browse files
author
Jag Talon
committed
Revert accidental commit
This reverts commit 684b2fd.
1 parent 684b2fd commit 1dc6df0

File tree

3 files changed

+5
-40
lines changed

3 files changed

+5
-40
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ dist-xdc
1010
.vscode/*
1111
.idea
1212
.DS_Store
13-
*~
14-
pnpm-lock.yaml
13+
*~

index.html

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,10 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<script src="webxdc.js"></script>
7-
<style>
8-
html, body {
9-
width: 100%;
10-
height: 100%;
11-
margin: 0;
12-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
13-
}
14-
15-
body {
16-
display: flex;
17-
}
18-
19-
header {
20-
width: 100%;
21-
height: fit-content;
22-
padding: 1rem;
23-
text-align: center;
24-
font-size: 1rem;
25-
font-weight: bold;
26-
}
27-
</style>
287
</head>
298
<body>
309
<script type="module">
31-
import { h, render } from 'preact';
32-
import htm from 'htm';
33-
34-
const html = htm.bind(h);
35-
36-
function App (props) {
37-
return html`<header>Split Bill</header>`;
38-
}
39-
40-
render(html`<${App} />`, document.body);
10+
window.webxdc.sendUpdate({ payload: "hello world!" }, "");
4111
</script>
4212
</body>
4313
</html>

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
"build": "vite build"
1010
},
1111
"devDependencies": {
12-
"@webxdc/vite-plugins": "latest",
13-
"@webxdc/webxdc-dev": "latest",
1412
"concurrently": "latest",
1513
"prettier": "latest",
16-
"vite": "latest"
17-
},
18-
"dependencies": {
19-
"htm": "^3.1.1",
20-
"preact": "^10.25.3"
14+
"vite": "latest",
15+
"@webxdc/webxdc-dev": "latest",
16+
"@webxdc/vite-plugins": "latest"
2117
}
2218
}

0 commit comments

Comments
 (0)