修改 build.js 将 css inline 化
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -55,4 +55,5 @@ db.db
|
|||||||
#*.out
|
#*.out
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
.DS_Store
|
.DS_Store
|
||||||
log/
|
log/
|
||||||
|
release/
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import url("bootstrap/bootstrap.min.css");
|
||||||
|
@import url("bootstrap/todc-bootstrap.min.css");
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
({
|
({
|
||||||
// RequireJS 通过一个相对的路径 baseUrl来加载所有代码。baseUrl通常被设置成data-main属性指定脚本的同级目录。
|
// RequireJS 通过一个相对的路径 baseUrl来加载所有代码。baseUrl通常被设置成data-main属性指定脚本的同级目录。
|
||||||
baseUrl: ".",
|
baseUrl: "js/",
|
||||||
// 第三方脚本模块的别名,jquery比libs/jquery-1.11.1.min.js简洁明了;
|
// 第三方脚本模块的别名,jquery比libs/jquery-1.11.1.min.js简洁明了;
|
||||||
paths: {
|
paths: {
|
||||||
//百度webuploader
|
//百度webuploader
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
oj: "app/oj",
|
oj: "app/oj",
|
||||||
"bs_alert": "utils/bs_alert",
|
"bs_alert": "utils/bs_alert",
|
||||||
|
|
||||||
|
|
||||||
//formValidation 不要在代码中单独使用,而是使用和修改utils/validation
|
//formValidation 不要在代码中单独使用,而是使用和修改utils/validation
|
||||||
base: "lib/formValidation/base",
|
base: "lib/formValidation/base",
|
||||||
helper: "lib/formValidation/helper",
|
helper: "lib/formValidation/helper",
|
||||||
@@ -45,8 +44,12 @@
|
|||||||
shim: {
|
shim: {
|
||||||
"bootstrap": {"deps": ['jquery']}
|
"bootstrap": {"deps": ['jquery']}
|
||||||
},
|
},
|
||||||
name: "oj",
|
findNestedDependencies: true,
|
||||||
out: "oj-build.js",
|
appDir: "../",
|
||||||
findNestedDependencies: true
|
dir: "../../release/",
|
||||||
//wrapShim: true
|
modules: [
|
||||||
|
{
|
||||||
|
name: "oj"
|
||||||
|
}
|
||||||
|
]
|
||||||
})
|
})
|
||||||
@@ -8,11 +8,6 @@
|
|||||||
|
|
||||||
<title>在线评测系统</title>
|
<title>在线评测系统</title>
|
||||||
|
|
||||||
<!-- common css begin -->
|
|
||||||
<link href="/static/css/bootstrap/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<link href="/static/css/bootstrap/todc-bootstrap.min.css" rel="stylesheet">
|
|
||||||
<!-- common css end -->
|
|
||||||
|
|
||||||
<!-- custom css begin -->
|
<!-- custom css begin -->
|
||||||
{% block css_block %}{% endblock %}
|
{% block css_block %}{% endblock %}
|
||||||
<!-- custom css end -->
|
<!-- custom css end -->
|
||||||
@@ -95,7 +90,7 @@
|
|||||||
|
|
||||||
<!-- custom body end -->
|
<!-- custom body end -->
|
||||||
<script src="/static/js/config.js"></script>
|
<script src="/static/js/config.js"></script>
|
||||||
<script src="/static/js/require.js" data-main="/static/js/oj-build.js"></script>
|
<script src="/static/js/require.js" data-main="/static/js/app/oj.js"></script>
|
||||||
<!-- footer begin -->
|
<!-- footer begin -->
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<p class="text-muted text-center">Copyright © 2015 青岛大学信息工程学院 创新实验室</p>
|
<p class="text-muted text-center">Copyright © 2015 青岛大学信息工程学院 创新实验室</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user