Skip to content

Commit

Permalink
修改文件和文件夹的显示顺序
Browse files Browse the repository at this point in the history
修改文件和文件夹的显示顺序
  • Loading branch information
apyixiang committed Sep 21, 2016
1 parent 3721ce7 commit 65cb6aa
Show file tree
Hide file tree
Showing 19 changed files with 225 additions and 324 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');

// uncomment after placing your favicon in /public
//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
Expand Down
Binary file added duang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 0 additions & 42 deletions npm-debug.log

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
"debug": "~2.2.0",
"express": "^4.13.4",
"highlight.js": "^9.4.0",
"iconv-lite": "^0.4.13",
"jade": "~1.11.0",
"marked": "^0.3.5",
"morgan": "~1.6.1",
"node-supervisor": "^1.0.2",
"serve-favicon": "~2.3.0"
},
"description": "之前做的[HTTP浏览](http://moyuyc.github.io/2016/05/28/node-express-jade%E5%AE%9E%E7%8E%B0HTTP%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E5%99%A8/)是使用express2.x版本做的...,因为参考书比较旧了。\r 1. `express2.x`中没有`express4.x`中的`res.sendFile()`方法,之前发送文件是使用的`stream.pipe()`方法,导致不支持继续下载,而且用户不能知道下载进度,在线音乐视频播放也不能选择时间跳跃欣赏。`res.sendFile()`方法可以将本地文件以静态资源发送给用户,所有问题迎刃而解。\r 2. 旧版本不支持`java/c/cpp/js/css/html`等代码文件和`md/markdown`文件在线查看,所以进行改进。\r 3. 利用`Bootstrap responsive utils`和`Bootstrap grid system`进行响应式布局。\r 4. 监控`root.txt`文件,改变root后无需重启服务器。\r 5. 去除对`q.js`依赖,使用原生`Promise`",
Expand Down
Binary file added public/duang.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon.ico
Binary file not shown.
Binary file added public/images/duang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions public/javascripts/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
*/
!function () {
hljs.initHighlightingOnLoad();
var i =document.getElementById('html-show');
i.contentWindow.onload = function(){
var h= 30+i.contentDocument.body.clientHeight;
if(i.clientHeight<h)
i.style.height = h+'px';
var i = document.getElementById('html-show');
i.contentWindow.onload = function () {
var h = 30 + i.contentDocument.body.clientHeight;
if (i.clientHeight < h)
i.style.height = h + 'px';
};
}()
} ()
10 changes: 5 additions & 5 deletions public/javascripts/md.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Created by Yc on 2016/6/9.
*/
~function(){
~function () {
marked.setOptions({
highlight: function (code) {
return hljs.highlightAuto(code).value;
Expand All @@ -11,15 +11,15 @@
var map = {};
renderer.heading = function (text, level) {
var escapedText = text.toLowerCase();
if(!!map[text])
escapedText+='-'+map[text]++;
if (!!map[text])
escapedText += '-' + map[text]++;
else
map[text]=1;
map[text] = 1;
return '<h' + level + '><a name="' +
escapedText +
'" class="anchor" href="#' +
escapedText +
'"><span class="header-link"></span></a>' +
text + '</h' + level + '>';
};
}();
} ();
124 changes: 0 additions & 124 deletions public/stylesheets/hljs-github.min.css

This file was deleted.

2 changes: 1 addition & 1 deletion root.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/mnt/file
E:/
Loading

0 comments on commit 65cb6aa

Please sign in to comment.