diff --git a/src/main.ts b/src/main.ts index 33ce458..3f6638a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,8 +6,8 @@ import { Setting, } from 'obsidian'; -import ExampleView, { REPEATING_NOTES_DUE_VIEW } from './repeat/view'; -import RepeatNoteSetupModal from './repeat/modal'; +import RepeatView, { REPEATING_NOTES_DUE_VIEW } from './repeat/obsidian/RepeatView'; +import RepeatNoteSetupModal from './repeat/obsidian/RepeatNoteSetupModal'; import { RepeatPluginSettings, DEFAULT_SETTINGS } from './settings'; export default class RepeatPlugin extends Plugin { @@ -52,7 +52,7 @@ export default class RepeatPlugin extends Plugin { )); this.registerView( REPEATING_NOTES_DUE_VIEW, - (leaf) => new ExampleView(leaf), + (leaf) => new RepeatView(leaf), ); const ribbonIconEl = this.addRibbonIcon( diff --git a/src/repeat/modal.ts b/src/repeat/obsidian/RepeatNoteSetupModal.ts similarity index 100% rename from src/repeat/modal.ts rename to src/repeat/obsidian/RepeatNoteSetupModal.ts diff --git a/src/repeat/view.tsx b/src/repeat/obsidian/RepeatView.tsx similarity index 83% rename from src/repeat/view.tsx rename to src/repeat/obsidian/RepeatView.tsx index a7d8ecd..787cd45 100644 --- a/src/repeat/view.tsx +++ b/src/repeat/obsidian/RepeatView.tsx @@ -2,11 +2,11 @@ import { ItemView, WorkspaceLeaf } from 'obsidian'; import * as React from 'react'; import { createRoot, Root } from 'react-dom/client'; -import RepeatingNotesDueRoot from './RepeatingNotesDueRoot'; +import RepeatingNotesDueRoot from '../RepeatingNotesDueRoot'; export const REPEATING_NOTES_DUE_VIEW = 'repeating-notes-due-view'; -class ExampleView extends ItemView { +class RepeatView extends ItemView { root: Root; constructor(leaf: WorkspaceLeaf) { @@ -35,4 +35,4 @@ class ExampleView extends ItemView { } } -export default ExampleView; +export default RepeatView;