Skip to content

Commit

Permalink
fix: 过期
Browse files Browse the repository at this point in the history
  • Loading branch information
MuiseDestiny authored and MuiseDestiny committed Nov 17, 2024
1 parent a752464 commit 77bb540
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off"
"@typescript-eslint/no-non-null-withion": "off"
},
"ignorePatterns": [
"**/build/**",
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
with two steps: (1) with copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

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-citation",
"version": "0.4.6",
"version": "0.4.7",
"description": "Easier Citation for Zotero",
"config": {
"addonName": "Easier Citation",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { existsSync, lstatSync, writeFileSync, readFileSync, mkdirSync, readdirS
import { env, exit } from "process";
import replaceInFile from "replace-in-file";
const { replaceInFileSync } = replaceInFile;
import details from "../package.json" assert { type: "json" };
import details from "../package.json" with { type: "json" };

const { name, author, description, homepage, version, config } = details;

Expand Down
4 changes: 2 additions & 2 deletions scripts/reload.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { exit } from "process";
import { execSync } from "child_process";
import details from "../package.json" assert { type: "json" };
import cmd from "./zotero-cmd.json" assert { type: "json" };
import details from "../package.json" with { type: "json" };
import cmd from "./zotero-cmd.json" with { type: "json" };

const { addonID, addonName } = details.config;
const { version } = details;
Expand Down
4 changes: 2 additions & 2 deletions scripts/start.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { execSync } from "child_process";
import { exit } from "process";
import { existsSync, writeFileSync, readFileSync } from "fs";
import path from "path";
import details from "../package.json" assert { type: "json" };
import cmd from "./zotero-cmd.json" assert { type: "json" };
import details from "../package.json" with { type: "json" };
import cmd from "./zotero-cmd.json" with { type: "json" };

const { addonID } = details.config;
const { zoteroBinPath, profilePath, dataDir } = cmd.exec;
Expand Down
2 changes: 1 addition & 1 deletion scripts/stop.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import process from "process";
import { execSync } from "child_process";
import cmd from "./zotero-cmd.json" assert { type: "json" };
import cmd from "./zotero-cmd.json" with { type: "json" };
const { killZoteroWindows, killZoteroUnix } = cmd;

try {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/cite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const citeItems = async () => {
Zotero.Integration?.currentSession?.agent || "MacWord16",
"addEditCitation",
"/Applications/Microsoft Word.app/",
1,
2,
);
} else {
await Zotero.Integration.execCommand(
Expand Down
7 changes: 2 additions & 5 deletions src/modules/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,8 @@ class Views {
ZoteroPane.itemsView,
"onDragStart",
config.addonRef,
(original) => async (event: any, row: number) => {
await original(event, row);
event.dataTransfer.setData("text/plain", " ");
event.dataTransfer.setData("text/html", " ");
ztoolkit.log("getDragTarget", Zotero.DragDrop.getDragTarget(event))
(original: any) => async (event: any, row: number) => {
event.dataTransfer.setData("text/plain", "");
},
);
}
Expand Down

0 comments on commit 77bb540

Please sign in to comment.