Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ryanxhl
dataplay2
提交
8fe9048d
D
dataplay2
项目概览
Ryanxhl
/
dataplay2
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dataplay2
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8fe9048d
编写于
1月 08, 2016
作者:
T
TaoGang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add js build
上级
20ac9433
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
106 addition
and
5 deletion
+106
-5
docs/install.txt
docs/install.txt
+3
-0
package/main.py
package/main.py
+5
-0
package/static/build.js
package/static/build.js
+11
-0
package/static/index.html
package/static/index.html
+1
-1
package/static/index_debug.html
package/static/index_debug.html
+81
-0
package/static/package.json
package/static/package.json
+5
-4
未找到文件。
docs/install.txt
浏览文件 @
8fe9048d
...
...
@@ -13,6 +13,9 @@ npm install babel-preset-react --save
babel --presets es2015,react --watch js/ --out-dir lib/
npm install requirejs --save
node node_modules/requirejs/bin/r.js -o build.js
python package/main.py
http://localhost:5000
...
...
package/main.py
浏览文件 @
8fe9048d
...
...
@@ -23,6 +23,11 @@ def index():
return
app
.
send_static_file
(
'index.html'
)
@
app
.
route
(
'/debug'
)
def
index_debug
():
return
app
.
send_static_file
(
'index_debug.html'
)
@
app
.
route
(
'/csvdata'
,
methods
=
[
'GET'
,
'POST'
])
def
csvdata
():
if
request
.
method
==
'POST'
:
...
...
package/static/build.js
0 → 100644
浏览文件 @
8fe9048d
({
baseUrl
:
"
./lib
"
,
paths
:
{
comp
:
'
./components
'
,
viz
:
'
./visualization
'
,
event
:
'
./event
'
,
data
:
'
./data
'
},
name
:
"
app
"
,
out
:
"
main-built.js
"
})
\ No newline at end of file
package/static/index.html
浏览文件 @
8fe9048d
...
...
@@ -76,6 +76,6 @@
});
</script>
<script
type=
"text/javascript"
src=
"./
lib/app
.js"
></script>
<script
type=
"text/javascript"
src=
"./
main-built
.js"
></script>
</body>
</html>
\ No newline at end of file
package/static/index_debug.html
0 → 100755
浏览文件 @
8fe9048d
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
Data Play
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"description"
content=
""
>
<meta
name=
"author"
content=
"Gang Tao"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./bower_components/bootstrap/dist/css/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./bower_components/bootstrap/dist/css/bootstrap.min.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./bower_components/bootstrap-fileinput/css/fileinput.min.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./bower_components/select2/dist/css/select2.min.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./bower_components/datatables/media/css/jquery.dataTables.min.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"./resources/viz.css"
/>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style
type=
"text/css"
>
body
{
padding-top
:
60px
;
padding-bottom
:
40px
;
float
:
center
;
}
</style>
</head>
<body>
<div
id=
"navigation_bar"
class=
"navbar navbar-inverse navbar-fixed-top"
role=
"navigation"
>
<div
class=
"container"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"#"
id=
"home_link"
>
Data Play
</a>
</div>
<div
id=
"menubar"
class=
"collapse navbar-collapse"
>
</div>
<!--/.nav-collapse -->
</div>
</div>
<div
id=
"container"
class=
"container"
>
</div>
<script
type=
'text/javascript'
></script>
<script
type=
"text/javascript"
src=
"./bower_components/jquery/dist/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/bootstrap/dist/js/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/bootstrap-fileinput/js/fileinput.min.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/select2/dist/js/select2.min.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/datatables/media/js/jquery.dataTables.min.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/papaparse/papaparse.min.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/echarts/build/dist/echarts-all.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/d3/d3.min.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/react/react.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/react/react-dom.js"
></script>
<script
type=
"text/javascript"
src=
"./bower_components/requirejs/require.js"
></script>
<script>
requirejs
.
config
({
baseUrl
:
'
lib
'
,
paths
:
{
comp
:
'
./components
'
,
viz
:
'
./visualization
'
,
event
:
'
./event
'
,
data
:
'
./data
'
}
});
</script>
<script
type=
"text/javascript"
src=
"./lib/app.js"
></script>
</body>
</html>
\ No newline at end of file
package/static/package.json
浏览文件 @
8fe9048d
...
...
@@ -4,13 +4,14 @@
"description"
:
""
,
"main"
:
""
,
"dependencies"
:
{
"babel"
:
"^6.3.13"
,
"babel-core"
:
"^6.3.21"
,
"babel-preset-es2015"
:
"^6.3.13"
,
"babel-preset-react"
:
"^6.3.13"
,
"babelify"
:
"^7.2.0"
,
"babel"
:
"^6.3.13"
,
"react"
:
"^0.14.3"
,
"babel-preset-react"
:
"^6.3.13"
,
"babel-preset-es2015"
:
"^6.3.13"
,
"react-dom"
:
"^0.14.3"
"react-dom"
:
"^0.14.3"
,
"requirejs"
:
"^2.1.22"
},
"devDependencies"
:
{},
"scripts"
:
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录