Compare commits

..

5 Commits
v1.0.6 ... main

Author SHA1 Message Date
syt ed129f2a45
Merge pull request #12 from syt2/11-更新时报错-typeerror-tiscollection-is-not-a-function
fix isCollection func
2024-07-25 16:53:31 +08:00
ytshen 2a9125aa99 fix isCollection func 2024-07-25 16:52:52 +08:00
shenyutao 5d4dde170a Release 1.0.7 2024-04-17 18:33:55 +08:00
shenyutao 2d10915c7d fix error 2024-04-17 18:33:35 +08:00
ytshen 18fac41190 update release v -> V 2024-04-16 23:42:07 +08:00
6 changed files with 9 additions and 10 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.6",
"version": "1.0.7",
"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.15"
"zotero-plugin-toolkit": "^2.3.29"
},
"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() && !item.isCollection();
return item.isRegularItem();
}),
);
}
@ -165,7 +165,6 @@ 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@0.5x.png`;
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon.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@0.5x.png`;
const menuIcon = `chrome://${config.addonRef}/content/icons/favicon.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() && !item.isCollection()) {
if (item.isRegularItem()) {
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.6",
"version": "1.0.7",
"update_link": "undefined/latest/download/zotero-tldr.xpi",
"applications": {
"zotero": {