diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index e9623e9..5ab1665 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install modules run: npm i diff --git a/.gitignore b/.gitignore index e09a007..9e42502 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ data.json # Exclude macOS Finder (System Explorer) View States .DS_Store +yarn.lock diff --git a/manifest.json b/manifest.json index 2afbdda..7d667e7 100644 --- a/manifest.json +++ b/manifest.json @@ -1,11 +1,11 @@ { "id": "obsidian-folder-index", "name": "Folder Index", - "version": "1.0.24", "minAppVersion": "1.1.16", "description": "This Plugin will automatically generate a TOC for the current Folder.", "author": "turulix", "authorUrl": "https://turulix.de/", "fundingUrl": "https://www.buymeacoffee.com/turulix", - "isDesktopOnly": false + "isDesktopOnly": false, + "version": "1.0.25" } \ No newline at end of file diff --git a/package.json b/package.json index ea01fb4..c0c95de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-sample-plugin", - "version": "1.0.24", + "version": "1.0.25", "description": "This is a sample plugin for Obsidian (https://obsidian.md)", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index a387f3e..b728beb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,7 +4,7 @@ import {GraphManipulatorModule} from "./modules/GraphManipulatorModule"; import {EventEmitter} from "events"; import {DEFAULT_SETTINGS, PluginSetting, PluginSettingsTab} from "./models/PluginSettingsTab"; import {FolderNoteModule} from "./modules/FolderNoteModule"; -import { ContextMenuModule } from './modules/ContextMenuModule'; +import {ContextMenuModule} from "./modules/ContextMenuModule"; // Remember to rename these classes and interfaces! @@ -19,7 +19,7 @@ export default class FolderIndexPlugin extends Plugin { eventManager: EventEmitter oldGraphSetting = false static PLUGIN: FolderIndexPlugin; - + // @ts-ignore private contextMenuModule: ContextMenuModule; constructor(app: App, manifest: PluginManifest) { @@ -55,7 +55,7 @@ export default class FolderIndexPlugin extends Plugin { } this.contextMenuModule = new ContextMenuModule(this.app, this); - this.contextMenuModule.addFolderContextMenu(); + this.contextMenuModule.addFolderContextMenu(); } onSettingsUpdate() { diff --git a/src/models/PluginSettingsTab.ts b/src/models/PluginSettingsTab.ts index 20c7589..886360b 100644 --- a/src/models/PluginSettingsTab.ts +++ b/src/models/PluginSettingsTab.ts @@ -2,10 +2,15 @@ import {App, PluginSettingTab, Setting, TextAreaComponent} from "obsidian"; import FolderIndexPlugin from "../main"; export enum SortBy { + // eslint-disable-next-line no-unused-vars None = "Disabled", + // eslint-disable-next-line no-unused-vars Alphabetically = "Alphabetically", + // eslint-disable-next-line no-unused-vars ReverseAlphabetically = "Reverse Alphabetically", + // eslint-disable-next-line no-unused-vars Natural = "Natural", + // eslint-disable-next-line no-unused-vars ReverseNatural = "Reverse Natural" } diff --git a/src/modules/ContextMenuModule.ts b/src/modules/ContextMenuModule.ts index 852bd4d..7ffb0b1 100644 --- a/src/modules/ContextMenuModule.ts +++ b/src/modules/ContextMenuModule.ts @@ -1,7 +1,8 @@ -import { TFolder, Menu, Notice, App } from 'obsidian'; +import { TFolder, Notice, App } from 'obsidian'; import FolderIndexPlugin from "../main"; export class ContextMenuModule { + // eslint-disable-next-line no-unused-vars constructor(private app: App, private plugin: FolderIndexPlugin) { } @@ -43,10 +44,12 @@ export class ContextMenuModule { // Notify the user new Notice(`File "${newFile.name}" created successfully in folder "${newFile.path}".`); + // eslint-disable-next-line no-console console.log(`File created at path: ${newFile.path}`); } catch (error) { + // eslint-disable-next-line no-console console.error(`Failed to create file at path: ${filePath}`, error); new Notice("Failed to create file. See console for details."); } } -} \ No newline at end of file +} diff --git a/versions.json b/versions.json index c101f2a..533d87b 100644 --- a/versions.json +++ b/versions.json @@ -15,5 +15,6 @@ "1.0.21": "1.1.16", "1.0.22": "1.1.16", "1.0.23": "1.1.16", - "1.0.24": "1.1.16" + "1.0.24": "1.1.16", + "1.0.25": "1.1.16" } \ No newline at end of file