From 01490ba8ffad060f0540e805a242fe1faac5f324 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Wed, 29 Nov 2023 23:06:45 +0800 Subject: [PATCH] update: lint --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/feature_request.yml | 6 +++--- addon/chrome/content/syncDiff.html | 10 ++-------- addon/chrome/content/treeView.html | 1 - src/hooks.ts | 4 +--- src/modules/sync/diffWindow.ts | 6 +++++- src/modules/template/picker.ts | 6 +++++- 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index f453261..ea45eef 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -35,7 +35,7 @@ body: value: | - OS: - Zotero Version: - - Plugin Version: + - Plugin Version: validations: required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 1f947c2..39ec6ee 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -25,7 +25,7 @@ body: value: | - OS: - Zotero Version: - - Plugin Version: + - Plugin Version: validations: required: true @@ -60,7 +60,7 @@ body: attributes: label: Anything else? description: | - Links? References? Anything that will give us more context about the issue you are encountering! - Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. + Links? References? Anything that will give us more context about the issue you are encountering! + Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. validations: required: false diff --git a/addon/chrome/content/syncDiff.html b/addon/chrome/content/syncDiff.html index caffe36..3ce3c65 100644 --- a/addon/chrome/content/syncDiff.html +++ b/addon/chrome/content/syncDiff.html @@ -205,17 +205,11 @@
.dx-treeview-item.dx-state-hover { background-color: #494949; color: #fff; diff --git a/src/hooks.ts b/src/hooks.ts index bb268e3..2a95899 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -25,9 +25,7 @@ import { } from "./modules/workspace/content"; import { registerNotify } from "./modules/notify"; import { showWorkspaceWindow } from "./modules/workspace/window"; -import { - registerReaderAnnotationButton, -} from "./modules/reader"; +import { registerReaderAnnotationButton } from "./modules/reader"; import { setSyncing, callSyncing } from "./modules/sync/hooks"; import { showTemplatePicker, diff --git a/src/modules/sync/diffWindow.ts b/src/modules/sync/diffWindow.ts index c031556..2c81fb3 100644 --- a/src/modules/sync/diffWindow.ts +++ b/src/modules/sync/diffWindow.ts @@ -133,7 +133,11 @@ export async function showSyncDiff(noteId: number, mdPath: string) { autoSyncDelay: Zotero.Notes.AUTO_SYNC_DELAY, }, }); - await addon.api.$export.syncMDBatch(mdStatus.filedir, [noteItem.id], [mdStatus.meta]); + await addon.api.$export.syncMDBatch( + mdStatus.filedir, + [noteItem.id], + [mdStatus.meta], + ); break; default: break; diff --git a/src/modules/template/picker.ts b/src/modules/template/picker.ts index 253b846..063b031 100644 --- a/src/modules/template/picker.ts +++ b/src/modules/template/picker.ts @@ -10,7 +10,11 @@ function showTemplatePicker( ): void; function showTemplatePicker( mode: "create", - data?: { noteType?: "standalone" | "item"; parentItemId?: number, topItemIds?: number[] }, + data?: { + noteType?: "standalone" | "item"; + parentItemId?: number; + topItemIds?: number[]; + }, ): void; function showTemplatePicker(mode: "export", data?: Record): void; function showTemplatePicker(): void;