Skip to content

Commit a09bf98

Browse files
author
yuki tamazawa
committed
[ci skip] fix browser
1 parent 80509c8 commit a09bf98

File tree

5 files changed

+61
-1
lines changed

5 files changed

+61
-1
lines changed

Browser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ws": "^7.2.0"
1010
},
1111
"devDependencies": {
12+
"file-loader": "^5.0.2",
1213
"jqtree": "^1.4.9",
1314
"jquery": "^3.4.1",
1415
"webpack": "^4.29.6",

Browser/src/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import 'jqtree'
22
import * as blobUtil from 'blob-util'
33

4+
require('file-loader?name=[name].[ext]!./index.html');
5+
46
const sock = new WebSocket("ws://0.0.0.0:8080");
57

68
sock.addEventListener("message", e => {

Browser/src/index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html lang="ja">
3+
4+
<head>
5+
<link rel="stylesheet" href="https://mbraak.github.io/jqTree/jqtree.css">
6+
<script src="./bundle.js"></script>
7+
<meta charset="utf-8">
8+
<title>RIB Tree Viewer</title>
9+
</head>
10+
<style>
11+
* {
12+
box-sizing: border-box;
13+
}
14+
15+
/* Create two equal columns that floats next to each other */
16+
.column {
17+
float: left;
18+
width: 50%;
19+
padding: 10px;
20+
height: 300px; /* Should be removed. Only for demonstration */
21+
}
22+
23+
/* Clear floats after the columns */
24+
.row:after {
25+
content: "";
26+
display: table;
27+
clear: both;
28+
}
29+
</style>
30+
31+
<body>
32+
33+
<div class="row">
34+
<div class="column" id="body"></div>
35+
<div class="column">
36+
<img id="capture" width="100%" />
37+
</div>
38+
</div>
39+
40+
</body>
41+
</html>

Browser/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
entry: './src/app.js',
77
output: {
88
filename: 'bundle.js',
9-
path: path.join(__dirname, 'public/js')
9+
path: path.join(__dirname, 'public')
1010
},
1111
plugins: [
1212
new webpack.ProvidePlugin({

Browser/yarn.lock

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,14 @@ figgy-pudding@^3.5.1:
980980
resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790"
981981
integrity sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==
982982

983+
file-loader@^5.0.2:
984+
version "5.0.2"
985+
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-5.0.2.tgz#7f3d8b4ac85a5e8df61338cfec95d7405f971caa"
986+
integrity sha512-QMiQ+WBkGLejKe81HU8SZ9PovsU/5uaLo0JdTCEXOYv7i7jfAjHZi1tcwp9tSASJPOmmHZtbdCervFmXMH/Dcg==
987+
dependencies:
988+
loader-utils "^1.2.3"
989+
schema-utils "^2.5.0"
990+
983991
fill-range@^4.0.0:
984992
version "4.0.0"
985993
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7"
@@ -2344,6 +2352,14 @@ schema-utils@^1.0.0:
23442352
ajv-errors "^1.0.0"
23452353
ajv-keywords "^3.1.0"
23462354

2355+
schema-utils@^2.5.0:
2356+
version "2.6.1"
2357+
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.6.1.tgz#eb78f0b945c7bcfa2082b3565e8db3548011dc4f"
2358+
integrity sha512-0WXHDs1VDJyo+Zqs9TKLKyD/h7yDpHUhEFsM2CzkICFdoX1av+GBq/J2xRTFfsQO5kBfhZzANf2VcIm84jqDbg==
2359+
dependencies:
2360+
ajv "^6.10.2"
2361+
ajv-keywords "^3.4.1"
2362+
23472363
semver@^5.3.0, semver@^5.5.0, semver@^5.6.0:
23482364
version "5.7.1"
23492365
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"

0 commit comments

Comments
 (0)