mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-16 08:01:53 +00:00
2.4
This commit is contained in:
@@ -1 +1 @@
|
|||||||
{"version":"2.3","updatedTime":"2017-01-20T07:21:51.505Z"}
|
{"version":"2.4","updatedTime":"2017-02-10T07:21:51.505Z"}
|
17
node_modules/file.js
generated
vendored
17
node_modules/file.js
generated
vendored
@@ -11,6 +11,12 @@ var Images = dbClient.images;
|
|||||||
var Attachs = db.attachs;
|
var Attachs = db.attachs;
|
||||||
var Web = require('web');
|
var Web = require('web');
|
||||||
|
|
||||||
|
// timeout 0无限等待, 60,000 1分钟
|
||||||
|
needle.defaults({
|
||||||
|
timeout: 60000,
|
||||||
|
rejectUnauthorized: false
|
||||||
|
});
|
||||||
|
|
||||||
function log(o) {
|
function log(o) {
|
||||||
console.trace(o);
|
console.trace(o);
|
||||||
}
|
}
|
||||||
@@ -676,6 +682,17 @@ var File = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (url.indexOf('https://leanote.com') == 0) {
|
||||||
|
needle.defaults({
|
||||||
|
timeout: 60000,
|
||||||
|
rejectUnauthorized: true
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
needle.defaults({
|
||||||
|
timeout: 60000,
|
||||||
|
rejectUnauthorized: false
|
||||||
|
});
|
||||||
|
}
|
||||||
// 远程的图片
|
// 远程的图片
|
||||||
needle.get(src, function(err, resp) {
|
needle.get(src, function(err, resp) {
|
||||||
// console.log(resp);
|
// console.log(resp);
|
||||||
|
@@ -1108,15 +1108,15 @@ Note._getNoteHtmlObjct = function(note, isShared) {
|
|||||||
tmp = tt(Note.getItemTplNoImg(), classes, this.newNoteSeq(), note.NoteId, note.Title || getMsg('UnTitled'), Notebook.getNotebookTitle(note.NotebookId), goNowToDatetime(note.UpdatedTime), note.Desc);
|
tmp = tt(Note.getItemTplNoImg(), classes, this.newNoteSeq(), note.NoteId, note.Title || getMsg('UnTitled'), Notebook.getNotebookTitle(note.NotebookId), goNowToDatetime(note.UpdatedTime), note.Desc);
|
||||||
}
|
}
|
||||||
// blog ?
|
// blog ?
|
||||||
|
var $tmp = $(tmp);
|
||||||
if (!note.IsBlog) {
|
if (!note.IsBlog) {
|
||||||
tmp = $(tmp);
|
$tmp.removeClass('item-b');
|
||||||
tmp.removeClass('item-b');
|
|
||||||
} else {
|
} else {
|
||||||
tmp.addClass('item-b');
|
$tmp.addClass('item-b');
|
||||||
}
|
}
|
||||||
// star ?
|
// star ?
|
||||||
if (note.Star) {
|
if (note.Star) {
|
||||||
$(tmp).addClass('item-is-star');
|
$tmp.addClass('item-is-star');
|
||||||
}
|
}
|
||||||
|
|
||||||
return tmp;
|
return tmp;
|
||||||
|
Reference in New Issue
Block a user