Skip to content

Commit 0c825a4

Browse files
committed
update dexie
bugfix on answer/article backup
1 parent 43eed12 commit 0c825a4

File tree

9 files changed

+3100
-3642
lines changed

9 files changed

+3100
-3642
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
## 1.0.9
44
* 无关痛痒的代码整理。
55
* 增加了提问者的显示、回答者状态的显示。
6+
* 改善token获取机制
7+
* 自动爬虫支持在隐身模式中打开
8+
* 更新dexie.js到3.0.0alpha2
69

710
## 1.0.8
811
* 部分移除本地数据库的容量限制。

DBExportor/DBFuncController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private Dictionary<string, object> BuildCache(StandardDB db)
5959
LOG.LogInformation($"answer's index cache built");
6060
var dict2 = db.articles.ToDictionary(art => art.id, art => art.author_);
6161
caches["art-author"] = dict2;
62-
caches["author-art"] = dict1.ToLookup(kv => kv.Value, kv => kv.Key);
62+
caches["author-art"] = dict2.ToLookup(kv => kv.Value, kv => kv.Key);
6363
LOG.LogInformation($"article's index cache built");
6464
}
6565
GC.Collect(2, GCCollectionMode.Optimized, false, true);

ZhiHuExt/3rd/js/dexie.d.ts

Lines changed: 686 additions & 496 deletions
Large diffs are not rendered by default.

ZhiHuExt/3rd/js/dexie.js

Lines changed: 2407 additions & 3138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ZhiHuExt/3rd/js/dexie.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ZhiHuExt/3rd/js/dexie.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

ZhiHuExt/3rd/js/dexie.min.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

ZhiHuExt/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ async function blocking(api, id)
226226
url: `http://www.zhihu.com/api/v4/people/${usr.id}`,
227227
url_token: usr.id,
228228
user_type: "people"
229-
};
229+
};
230230
return ret;
231231
});
232232

ZhiHuExt/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ $("body").on("drop", ".RichContent-inner", ev =>
622622
else
623623
return;
624624

625-
const ansInfo = getAAInfo(node);
625+
const ansInfo = getAAInfo(wrapper);
626626
const aid = ansInfo.token || ansInfo.itemId;
627627
saveADetail(target, aid);
628628
});

0 commit comments

Comments
 (0)