From 342ab8645f9eabc72bb1002507fd52a9b29c543f Mon Sep 17 00:00:00 2001 From: bigeagle Date: Wed, 2 Sep 2015 15:34:52 +0800 Subject: [PATCH] minior updates --- gulpfile.js | 2 +- package.json | 16 ++++++++-------- src/help/ubuntu.md | 5 +---- src/index.tpl.html | 4 +--- src/js/help.js | 5 ++++- src/js/index.js | 1 + 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 7cd08a6..06ed2fe 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,6 +72,6 @@ gulp.task('scss-build', function(){ gulp.task('copy', ['copy-html', 'copy-lib', 'copy-img']) gulp.task('build', ['copy', 'js-build', 'scss-build']); -gulp.task('default', ['copy', 'watch']); +gulp.task('default', ['copy', 'js-build', 'scss-build', 'watch']); // vim: ts=2 sts=2 sw=2 expandtab diff --git a/package.json b/package.json index 20f5361..46bcbab 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,6 @@ "version": "1.0.0", "description": "TUNA mirror site", "main": "index.html", - "devDependencies": { - "gulp": "^3.9.0", - "gulp-babel": "^5.2.1", - "gulp-file-include": "^0.13.7", - "gulp-rename": "^1.2.2", - "gulp-sass": "^2.0.4" - }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, @@ -23,5 +16,12 @@ "url": "https://github.com/tuna/mirror-web/issues" }, "homepage": "https://github.com/tuna/mirror-web#readme", - "dependencies": {} + "dependencies": { + "gulp": "^3.9.0", + "gulp-babel": "^5.2.1", + "gulp-file-include": "^0.13.7", + "gulp-rename": "^1.2.2", + "node-sass": "^3.3.2", + "gulp-sass": "^2.0.4" + } } diff --git a/src/help/ubuntu.md b/src/help/ubuntu.md index 56f8ce0..8161edc 100644 --- a/src/help/ubuntu.md +++ b/src/help/ubuntu.md @@ -30,17 +30,14 @@ deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main multiver | 版本号 | 代号 | 完整代号 | | ------ | ---- | -------- | -| 8.04 LTS | hardy | Hardy Heron | | 10.04 LTS | lucid | Lucid Lynx | -| 10.10 | maverick | Maverick Meerkat | -| 11.04 | natty | Natty Narwhal | -| 11.10 | oneiric | Oneiric Ocelot | | 12.04 LTS | precise | Precise Pangolin | | 12.10 | quantal | Quantal Quetzal | | 13.04 | raring | Raring Ringtail | | 13.10 | saucy | Saucy Salamander | | 14.04 LTS | trusty | Trusty Tahr | | 14.10 | utopic | Utopic Unicorn | +| 15.04 | vivid | Vivid Vervet | ### 参考 diff --git a/src/index.tpl.html b/src/index.tpl.html index 2c2bab8..86f521f 100644 --- a/src/index.tpl.html +++ b/src/index.tpl.html @@ -9,9 +9,7 @@
-

欢迎来到清华大学开源镜像网站,它由清华大学开源镜像站管理团队维护管理。

-

本站可以在校内外通过 IPv4/IPv6 使用。
- 本站域名有:

+

欢迎来到清华大学开源镜像网站,它由清华大学开源镜像站管理团队维护管理。你可以通过不同域名选定网络线路。

  • http://mirrors.tuna.tsinghua.edu.cn/ 支持 IPv4/IPv6
  • http://mirrors.6.tuna.tsinghua.edu.cn/ 只解析 IPv6
  • diff --git a/src/js/help.js b/src/js/help.js index c07d5e7..c8d280a 100644 --- a/src/js/help.js +++ b/src/js/help.js @@ -8,7 +8,10 @@ $(document).ready(() => { if (url.match(/\.md$/)) { rendered = marked(data); } - $("#help-content").html(rendered); + $("#help-content") + .html(rendered) + .find('table') + .addClass("table table-bordered table-striped"); $('#spinner').addClass('hidden'); }); }; diff --git a/src/js/index.js b/src/js/index.js index 679ab7e..5d8e237 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -27,6 +27,7 @@ var mir_tmpl = $("#template").text(), new_mirrors = { 'OpenBSD': true, 'hackage': true, + 'kodi': true, 'qt': true, 'npm': true },