mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
24 lines
686 B
TypeScript
24 lines
686 B
TypeScript
import type FolderNotesPlugin from '../main';
|
|
export class WhitelistedFolder {
|
|
type: string;
|
|
id: string;
|
|
path: string;
|
|
string: string;
|
|
subFolders: boolean;
|
|
enableSync: boolean;
|
|
enableAutoCreate: boolean;
|
|
enableFolderNote: boolean;
|
|
disableCollapsing: boolean;
|
|
showInFolderOverview: boolean;
|
|
hideInFileExplorer: boolean;
|
|
position: number;
|
|
hideInSettings: boolean;
|
|
constructor(path: string, position: number, id: string | undefined, plugin: FolderNotesPlugin) {
|
|
this.type = 'folder';
|
|
this.id = id || crypto.randomUUID();
|
|
this.path = path;
|
|
this.subFolders = plugin.settings.excludeFolderDefaultSettings.subFolders;
|
|
this.position = position;
|
|
this.string = '';
|
|
}
|
|
}
|