Skip to content

Commit

Permalink
update dexie
Browse files Browse the repository at this point in the history
bugfix on answer/article backup
  • Loading branch information
XZiar committed Jun 2, 2018
1 parent 43eed12 commit 0c825a4
Show file tree
Hide file tree
Showing 9 changed files with 3,100 additions and 3,642 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## 1.0.9
* 无关痛痒的代码整理。
* 增加了提问者的显示、回答者状态的显示。
* 改善token获取机制
* 自动爬虫支持在隐身模式中打开
* 更新dexie.js到3.0.0alpha2

## 1.0.8
* 部分移除本地数据库的容量限制。
Expand Down
2 changes: 1 addition & 1 deletion DBExportor/DBFuncController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private Dictionary<string, object> BuildCache(StandardDB db)
LOG.LogInformation($"answer's index cache built");
var dict2 = db.articles.ToDictionary(art => art.id, art => art.author_);
caches["art-author"] = dict2;
caches["author-art"] = dict1.ToLookup(kv => kv.Value, kv => kv.Key);
caches["author-art"] = dict2.ToLookup(kv => kv.Value, kv => kv.Key);
LOG.LogInformation($"article's index cache built");
}
GC.Collect(2, GCCollectionMode.Optimized, false, true);
Expand Down
1,182 changes: 686 additions & 496 deletions ZhiHuExt/3rd/js/dexie.d.ts

Large diffs are not rendered by default.

5,545 changes: 2,407 additions & 3,138 deletions ZhiHuExt/3rd/js/dexie.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ZhiHuExt/3rd/js/dexie.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions ZhiHuExt/3rd/js/dexie.min.js

This file was deleted.

1 change: 0 additions & 1 deletion ZhiHuExt/3rd/js/dexie.min.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion ZhiHuExt/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async function blocking(api, id)
url: `http://www.zhihu.com/api/v4/people/${usr.id}`,
url_token: usr.id,
user_type: "people"
};
};
return ret;
});

Expand Down
2 changes: 1 addition & 1 deletion ZhiHuExt/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ $("body").on("drop", ".RichContent-inner", ev =>
else
return;

const ansInfo = getAAInfo(node);
const ansInfo = getAAInfo(wrapper);
const aid = ansInfo.token || ansInfo.itemId;
saveADetail(target, aid);
});
Expand Down

0 comments on commit 0c825a4

Please sign in to comment.