Skip to content

Commit 4f27c30

Browse files
committed
add client build
1 parent 5695843 commit 4f27c30

13 files changed

Lines changed: 61 additions & 7 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<div class="fullscreen">
1212
<h1>Loading...</h1>
1313
</div>
14-
14+
<script src="sockets/socket.io.js"></script>
15+
<!-- <script src="index.js"></script> -->
1516
<script src="jspm_packages/system.js"></script>
1617
<script src="jspm.config.js"></script>
1718
<script>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import EventEmitter from "events";
2-
import io from "../sockets/socket.io.js";
2+
3+
const io = window.io;
34

45
export default class Connection extends EventEmitter {
56
constructor() {
File renamed without changes.
File renamed without changes.

dist/client/index.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
html, body, .fullscreen {
2+
margin: 0;
3+
height: 100%;
4+
width: 100%;
5+
font-family: monospace;
6+
}
7+
8+
.fullscreen {
9+
color: #ccc;
10+
background-color: #000;
11+
display: flex;
12+
flex-direction: column;
13+
justify-content: center;
14+
align-items: center;
15+
user-select: none;
16+
cursor: pointer;
17+
}
18+
19+
.fullscreen h1 {
20+
font-size: 6vw;
21+
}
22+
23+
.fullscreen h1.error {
24+
color: #FF0033;
25+
}

dist/client/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!doctype html>
2+
<html>
3+
4+
<head>
5+
<title>jsRemote</title>
6+
<meta charset="utf-8">
7+
<link rel="stylesheet" href="./css/index.css">
8+
</head>
9+
10+
<body>
11+
<div class="fullscreen">
12+
<h1>Loading...</h1>
13+
</div>
14+
<script src="sockets/socket.io.js"></script>
15+
<script src="index.js"></script>
16+
</body>
17+
18+
</html>

dist/client/index.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)