Skip to content

Commit 138a199

Browse files
修改部分项目目录
1 parent c96f9b1 commit 138a199

18 files changed

+4959
-2092
lines changed

appcache.manifest

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CACHE MANIFEST
2+
#version 1.0.0
3+
4+
CACHE:
5+
#css
6+
#js
7+
./dist/lib.dll.js
8+
9+
#img
10+
https://reactjs.org/favicon.ico
11+
12+
NETWORK:
13+
*
14+
FALLBACK:
15+
/404.html

dist/app.0.css

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

dist/appcache.manifest

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CACHE MANIFEST
2+
#version 1.0.0
3+
4+
CACHE:
5+
#css
6+
#js
7+
./dist/lib.dll.js
8+
9+
#img
10+
https://reactjs.org/favicon.ico
11+
12+
NETWORK:
13+
*
14+
FALLBACK:
15+
/404.html

dist/bundle.js

Lines changed: 4308 additions & 2079 deletions
Large diffs are not rendered by default.

dist/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" manifest="appcache.manifest">
33
<head>
44
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
77
<title>react-demo</title>
8-
<link rel='icon' href='https://reactjs.org/favicon.ico'>
8+
<link rel="icon" href="https://reactjs.org/favicon.ico">
99
<script src="./lib.dll.js"></script>
1010
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.8&key=61c862deb5927dba993ae57bc14250d6"></script>
11-
</head>
11+
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.0/socket.io.js"></script> -->
12+
<link href="/app.0.css?23ed2a3bf57f7d7f8f56" rel="stylesheet"></head>
1213
<body>
1314
<div id="root"></div>
14-
</body>
15+
<script type="text/javascript" src="/bundle.js?23ed2a3bf57f7d7f8f56"></script></body>
1516
</html>

dist/lib.dll.js

Lines changed: 543 additions & 0 deletions
Large diffs are not rendered by default.

dist/manifest.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" manifest="appcache.manifest">
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"start:dev": "npm run start",
9-
"start:prod": "npm run product",
109
"start": "webpack-dev-server --progress --profile --colors --config ./webpack.config.dev.js --mode development",
11-
"product": "webpack-dev-server --progress --profile --colors --config ./webpack.config.prod.js --mode production",
1210
"build:prod": "webpack -p --config ./webpack.config.dev.js --mode production --progress --profile --colors",
1311
"build:dev": "webpack --progress --profile --colors --config ./webpack.config.dev.js --mode development",
1412
"build:test": "npm run build:dev",

src/component/canvas/index.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React from 'react';
2+
import {inject, observer} from 'mobx-react';
3+
import './index.less';
4+
import CanvasStore from '../../stores/canvas/CanvasStore';
5+
6+
@inject('CanvasStore')
7+
@observer
8+
export default class Map extends React.Component{
9+
10+
canvasStore: CanvasStore = null;
11+
jsplumbInstance : any = null;
12+
13+
constructor(props) {
14+
super(props);
15+
this.canvasStore = props.CanvasStore;
16+
}
17+
18+
19+
render() {
20+
21+
return (
22+
<div className='canvas'>
23+
canvas
24+
</div>
25+
);
26+
}
27+
}

0 commit comments

Comments
 (0)