Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed129f2a45 | ||
|
|
2a9125aa99 | ||
|
|
5d4dde170a | ||
|
|
2d10915c7d | ||
|
|
18fac41190 |
|
|
@ -3,7 +3,7 @@ name: Release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v**
|
- V**
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "zotero-tldr",
|
"name": "zotero-tldr",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"description": "TLDR(too long; didn't read) from sematic scholar",
|
"description": "TLDR(too long; didn't read) from sematic scholar",
|
||||||
"config": {
|
"config": {
|
||||||
"addonName": "Zotero TLDR",
|
"addonName": "Zotero TLDR",
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/syt2/zotero-tldr#readme",
|
"homepage": "https://github.com/syt2/zotero-tldr#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"zotero-plugin-toolkit": "^2.3.15"
|
"zotero-plugin-toolkit": "^2.3.29"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.10.4",
|
"@types/node": "^20.10.4",
|
||||||
|
|
@ -115,7 +115,7 @@
|
||||||
},
|
},
|
||||||
"release-it": {
|
"release-it": {
|
||||||
"git": {
|
"git": {
|
||||||
"tagName": "v${version}"
|
"tagName": "V${version}"
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"publish": false
|
"publish": false
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ function onLoad() {
|
||||||
for (const lib of Zotero.Libraries.getAll()) {
|
for (const lib of Zotero.Libraries.getAll()) {
|
||||||
needFetchItems = needFetchItems.concat(
|
needFetchItems = needFetchItems.concat(
|
||||||
(await Zotero.Items.getAll(lib.id)).filter((item: Zotero.Item) => {
|
(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)
|
? succeedItems.push(item)
|
||||||
: failedItems.push(item);
|
: failedItems.push(item);
|
||||||
await Zotero.Promise.delay(50);
|
await Zotero.Promise.delay(50);
|
||||||
ztoolkit.ItemBox.refresh();
|
|
||||||
popupWin.changeLine({
|
popupWin.changeLine({
|
||||||
progress: (index * 100) / count,
|
progress: (index * 100) / count,
|
||||||
text: `${getString("popWindow-waiting")}: ${
|
text: `${getString("popWindow-waiting")}: ${
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ export class RegisterFactory {
|
||||||
export class UIFactory {
|
export class UIFactory {
|
||||||
// item右键菜单
|
// item右键菜单
|
||||||
static registerRightClickMenuItem() {
|
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
|
// item menuitem with icon
|
||||||
ztoolkit.Menu.register("item", {
|
ztoolkit.Menu.register("item", {
|
||||||
tag: "menuitem",
|
tag: "menuitem",
|
||||||
|
|
@ -57,7 +57,7 @@ export class UIFactory {
|
||||||
|
|
||||||
// collection右键菜单
|
// collection右键菜单
|
||||||
static registerRightClickCollectionMenuItem() {
|
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", {
|
ztoolkit.Menu.register("collection", {
|
||||||
tag: "menuitem",
|
tag: "menuitem",
|
||||||
id: "zotero-collectionmenu-tldr",
|
id: "zotero-collectionmenu-tldr",
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export class TLDRFetcher {
|
||||||
|
|
||||||
constructor(item: Zotero.Item) {
|
constructor(item: Zotero.Item) {
|
||||||
this.zoteroItem = item;
|
this.zoteroItem = item;
|
||||||
if (item.isRegularItem() && !item.isCollection()) {
|
if (item.isRegularItem()) {
|
||||||
this.title = item.getField("title") as string;
|
this.title = item.getField("title") as string;
|
||||||
this.abstract = item.getField("abstractNote") as string;
|
this.abstract = item.getField("abstractNote") as string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
"zoterotldr@syt.com": {
|
"zoterotldr@syt.com": {
|
||||||
"updates": [
|
"updates": [
|
||||||
{
|
{
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"update_link": "undefined/latest/download/zotero-tldr.xpi",
|
"update_link": "undefined/latest/download/zotero-tldr.xpi",
|
||||||
"applications": {
|
"applications": {
|
||||||
"zotero": {
|
"zotero": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue