Skip to content

Commit

Permalink
#92, 增加PDF标注颜色组
Browse files Browse the repository at this point in the history
  • Loading branch information
MuiseDestiny committed Feb 6, 2023
1 parent 1e701c9 commit ce96d4f
Show file tree
Hide file tree
Showing 6 changed files with 393 additions and 88 deletions.
1 change: 1 addition & 0 deletions addon/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pref("extensions.zotero.__addonRef__.progressColumn.circle", true);
pref("extensions.zotero.__addonRef__.columnsViews", "[]");

pref("extensions.zotero.__addonRef__.annotationColors", '[["general.yellow","#ffd400"],["general.red","#ff6666"],["general.green","#5fb236"],["general.blue","#2ea8e5"],["general.purple","#a28ae5"]]');
pref("extensions.zotero.__addonRef__.annotationColorsGroups", '[["Untitled",[["general.yellow","#ffd400"],["general.red","#ff6666"],["general.green","#5fb236"],["general.blue","#2ea8e5"],["general.purple","#a28ae5"]]]]');



Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zotero-style",
"version": "2.0.9",
"version": "2.1.0",
"description": "让你的Zotero看起来更有趣",
"config": {
"addonName": "Zotero Style",
Expand Down
5 changes: 0 additions & 5 deletions src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Zotero._AddonItemGlobal = Zotero._AddonItemGlobal || new AddonItem()
const addonItem = Zotero._AddonItemGlobal



async function onStartup() {
// Register the callback in Zotero as an item observer
const notifierID = Zotero.Notifier.registerObserver(
Expand Down Expand Up @@ -52,12 +51,8 @@ async function onStartup() {

try {
ZoteroPane.itemsView.tree._columns._updateVirtualizedTable()
//@ts-ignore
ztoolkit.ItemTree.refresh()
} catch { }
window.setTimeout(() => {
Record();
}, 5000)

const events = new Events(addonItem)
events.onInit()
Expand Down
Loading

2 comments on commit ce96d4f

@Aatrox0728
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大佬能问下,现在可以两个电脑同步阅读进度吗?之前我用坚果云和zotero自己的同步可以做到完全同步,但我发现style的进度好像无法同步。

@MuiseDestiny
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大佬能问下,现在可以两个电脑同步阅读进度吗?之前我用坚果云和zotero自己的同步可以做到完全同步,但我发现style的进度好像无法同步。

可以的,addon item一致就可以同步

Please sign in to comment.