Lint
This commit is contained in:
parent
59d9edb4b1
commit
5fb7d71395
3 changed files with 6 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ export default class VaultLinkPlugin extends Plugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private registerEditorEvents() {
|
private registerEditorEvents(): void {
|
||||||
[
|
[
|
||||||
this.app.workspace.on(
|
this.app.workspace.on(
|
||||||
"editor-change",
|
"editor-change",
|
||||||
|
|
@ -136,7 +136,7 @@ export default class VaultLinkPlugin extends Plugin {
|
||||||
_editor: Editor,
|
_editor: Editor,
|
||||||
info: MarkdownView | MarkdownFileInfo
|
info: MarkdownView | MarkdownFileInfo
|
||||||
) => {
|
) => {
|
||||||
const file = info.file;
|
const { file } = info;
|
||||||
if (file) {
|
if (file) {
|
||||||
await this.client.syncLocallyUpdatedFile({
|
await this.client.syncLocallyUpdatedFile({
|
||||||
relativePath: file.path
|
relativePath: file.path
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,9 @@ export class LogsView extends ItemView {
|
||||||
dropdown.value = this.minLogLevel;
|
dropdown.value = this.minLogLevel;
|
||||||
|
|
||||||
dropdown.addEventListener("change", () => {
|
dropdown.addEventListener("change", () => {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
||||||
this.minLogLevel = dropdown.value as LogLevel;
|
this.minLogLevel = dropdown.value as LogLevel;
|
||||||
|
|
||||||
this.logsContainer?.empty();
|
this.logsContainer?.empty();
|
||||||
this.logLineToElement.clear();
|
this.logLineToElement.clear();
|
||||||
this.updateView();
|
this.updateView();
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@ import "./settings-tab.scss";
|
||||||
|
|
||||||
import type { App } from "obsidian";
|
import type { App } from "obsidian";
|
||||||
import { Notice, PluginSettingTab, Setting } from "obsidian";
|
import { Notice, PluginSettingTab, Setting } from "obsidian";
|
||||||
import VaultLinkPlugin from "src/vault-link-plugin";
|
import type VaultLinkPlugin from "src/vault-link-plugin";
|
||||||
import type { SyncClient, SyncSettings } from "sync-client";
|
import type { SyncClient, SyncSettings } from "sync-client";
|
||||||
import { HistoryView } from "../history/history-view";
|
import { HistoryView } from "../history/history-view";
|
||||||
import { LogsView } from "../logs/logs-view";
|
import { LogsView } from "../logs/logs-view";
|
||||||
import { StatusDescription } from "../status-description/status-description";
|
import type { StatusDescription } from "../status-description/status-description";
|
||||||
|
|
||||||
export class SyncSettingsTab extends PluginSettingTab {
|
export class SyncSettingsTab extends PluginSettingTab {
|
||||||
private editedServerUri: string;
|
private editedServerUri: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue