update: lint

This commit is contained in:
windingwind 2023-11-29 23:06:45 +08:00
parent 5be1eef76a
commit 01490ba8ff
7 changed files with 17 additions and 18 deletions

View File

@ -205,17 +205,11 @@
</div>
<div
class="diff-viewport viewport"
style="
width: calc(30% - 10px);
padding: 10px 30px 10px 30px;
"
style="width: calc(30% - 10px); padding: 10px 30px 10px 30px"
></div>
<div
class="render-viewport viewport primary-editor ProseMirror"
style="
width: calc(50% - 10px);
padding: 10px 30px 10px 30px;
"
style="width: calc(50% - 10px); padding: 10px 30px 10px 30px"
></div>
</div>
<div

View File

@ -67,7 +67,6 @@
}
@media (prefers-color-scheme: dark) {
:not(.dx-state-focused) > .dx-treeview-item.dx-state-hover {
background-color: #494949;
color: #fff;

View File

@ -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,

View File

@ -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;

View File

@ -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<string, never>): void;
function showTemplatePicker(): void;