Compare commits

..

No commits in common. "main" and "v1.0.6" have entirely different histories.
main ... v1.0.6

6 changed files with 10 additions and 9 deletions

View File

@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- V**
- v**
permissions:
contents: write

View File

@ -1,6 +1,6 @@
{
"name": "zotero-tldr",
"version": "1.0.7",
"version": "1.0.6",
"description": "TLDR(too long; didn't read) from sematic scholar",
"config": {
"addonName": "Zotero TLDR",
@ -32,7 +32,7 @@
},
"homepage": "https://github.com/syt2/zotero-tldr#readme",
"dependencies": {
"zotero-plugin-toolkit": "^2.3.29"
"zotero-plugin-toolkit": "^2.3.15"
},
"devDependencies": {
"@types/node": "^20.10.4",
@ -115,7 +115,7 @@
},
"release-it": {
"git": {
"tagName": "V${version}"
"tagName": "v${version}"
},
"npm": {
"publish": false

View File

@ -99,7 +99,7 @@ function onLoad() {
for (const lib of Zotero.Libraries.getAll()) {
needFetchItems = needFetchItems.concat(
(await Zotero.Items.getAll(lib.id)).filter((item: Zotero.Item) => {
return item.isRegularItem();
return item.isRegularItem() && !item.isCollection();
}),
);
}
@ -165,6 +165,7 @@ function onUpdateItems(items: Zotero.Item[], forceFetch: boolean = false) {
? succeedItems.push(item)
: failedItems.push(item);
await Zotero.Promise.delay(50);
ztoolkit.ItemBox.refresh();
popupWin.changeLine({
progress: (index * 100) / count,
text: `${getString("popWindow-waiting")}: ${

View File

@ -41,7 +41,7 @@ export class RegisterFactory {
export class UIFactory {
// item右键菜单
static registerRightClickMenuItem() {
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon.png`;
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon@0.5x.png`;
// item menuitem with icon
ztoolkit.Menu.register("item", {
tag: "menuitem",
@ -57,7 +57,7 @@ export class UIFactory {
// collection右键菜单
static registerRightClickCollectionMenuItem() {
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon.png`;
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon@0.5x.png`;
ztoolkit.Menu.register("collection", {
tag: "menuitem",
id: "zotero-collectionmenu-tldr",

View File

@ -13,7 +13,7 @@ export class TLDRFetcher {
constructor(item: Zotero.Item) {
this.zoteroItem = item;
if (item.isRegularItem()) {
if (item.isRegularItem() && !item.isCollection()) {
this.title = item.getField("title") as string;
this.abstract = item.getField("abstractNote") as string;
}

View File

@ -3,7 +3,7 @@
"zoterotldr@syt.com": {
"updates": [
{
"version": "1.0.7",
"version": "1.0.6",
"update_link": "undefined/latest/download/zotero-tldr.xpi",
"applications": {
"zotero": {