chore: lint
This commit is contained in:
parent
7446883595
commit
d599443d77
|
|
@ -4,4 +4,5 @@ node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
|
addon/chrome/content/lib/**
|
||||||
# zotero-cmd.json
|
# zotero-cmd.json
|
||||||
|
|
|
||||||
|
|
@ -278,8 +278,8 @@
|
||||||
e.itemData.added
|
e.itemData.added
|
||||||
? "added-list-item"
|
? "added-list-item"
|
||||||
: e.itemData.removed
|
: e.itemData.removed
|
||||||
? "removed-list-item"
|
? "removed-list-item"
|
||||||
: "",
|
: "",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -318,8 +318,8 @@
|
||||||
span.className = diff.added
|
span.className = diff.added
|
||||||
? "added"
|
? "added"
|
||||||
: diff.removed
|
: diff.removed
|
||||||
? "removed"
|
? "removed"
|
||||||
: "normal";
|
: "normal";
|
||||||
span.innerText = diff.value;
|
span.innerText = diff.value;
|
||||||
frag.append(span);
|
frag.append(span);
|
||||||
diff.element = span;
|
diff.element = span;
|
||||||
|
|
|
||||||
|
|
@ -1151,8 +1151,8 @@ async function processM2NRehypeImageNodes(
|
||||||
const srcType = (src as string).startsWith("data:")
|
const srcType = (src as string).startsWith("data:")
|
||||||
? "b64"
|
? "b64"
|
||||||
: (src as string).startsWith("http")
|
: (src as string).startsWith("http")
|
||||||
? "url"
|
? "url"
|
||||||
: "file";
|
: "file";
|
||||||
if (srcType === "file") {
|
if (srcType === "file") {
|
||||||
if (!PathUtils.isAbsolute(src)) {
|
if (!PathUtils.isAbsolute(src)) {
|
||||||
src = jointPath(fileDir, src);
|
src = jointPath(fileDir, src);
|
||||||
|
|
|
||||||
|
|
@ -275,11 +275,10 @@ function setScale(scaling: number) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setTitle() {
|
function setTitle() {
|
||||||
addon.data.imageViewer.window!.document.querySelector(
|
addon.data.imageViewer.window!.document.querySelector("title")!.innerText! =
|
||||||
"title",
|
`${addon.data.imageViewer.idx + 1}/${
|
||||||
)!.innerText! = `${addon.data.imageViewer.idx + 1}/${
|
addon.data.imageViewer.srcList.length
|
||||||
addon.data.imageViewer.srcList.length
|
}:${addon.data.imageViewer.title}`;
|
||||||
}:${addon.data.imageViewer.title}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setPin() {
|
function setPin() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue