mirror of
https://github.com/prncc/obsidian-repeat-plugin.git
synced 2026-07-22 06:50:25 +00:00
More clearly separate obsidian and react code
This commit is contained in:
parent
f77fa5a36e
commit
08090a3fa8
3 changed files with 6 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
Loading…
Reference in a new issue