mirror of
https://github.com/bfloydd/streams.git
synced 2026-07-22 12:50:25 +00:00
Refactor into named dirs
This commit is contained in:
parent
55a859888d
commit
a8a38f0467
6 changed files with 14 additions and 12 deletions
4
main.ts
4
main.ts
|
|
@ -1,8 +1,8 @@
|
|||
import { App, Editor, MarkdownView, Modal, Notice, Plugin, PluginSettingTab, Setting, WorkspaceLeaf } from 'obsidian';
|
||||
import { StreamsSettingTab } from './settings';
|
||||
import { Stream, StreamsSettings } from './types';
|
||||
import { createDailyNote, openStreamDate } from './streamUtils';
|
||||
import { CalendarWidget } from './CalendarWidget';
|
||||
import { createDailyNote, openStreamDate } from './src/utils/streamUtils';
|
||||
import { CalendarWidget } from './src/Widgets/CalendarWidget';
|
||||
import { normalize } from 'path';
|
||||
import { Logger } from './src/utils/Logger';
|
||||
import { OpenTodayStreamCommand } from './src/commands/OpenTodayStreamCommand';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { App, PluginSettingTab, Setting } from 'obsidian';
|
||||
import StreamsPlugin from './main';
|
||||
import { Stream, StreamsSettings, LucideIcon } from './types';
|
||||
import { getFolderSuggestions } from './streamUtils';
|
||||
import { getFolderSuggestions } from './src/utils/streamUtils';
|
||||
|
||||
export class StreamsSettingTab extends PluginSettingTab {
|
||||
plugin: StreamsPlugin;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { App, WorkspaceLeaf, TFile, MarkdownView } from 'obsidian';
|
||||
import { Stream } from './types';
|
||||
import { openStreamDate } from './streamUtils';
|
||||
import { Logger } from './src/utils/Logger';
|
||||
import { OpenStreamDateCommand } from './src/commands/OpenStreamDateCommand';
|
||||
import { OpenTodayStreamCommand } from './src/commands/OpenTodayStreamCommand';
|
||||
import { Stream } from '../../types';
|
||||
import { openStreamDate } from '../utils/streamUtils';
|
||||
import { Logger } from '../utils/Logger';
|
||||
import { OpenStreamDateCommand } from '../commands/OpenStreamDateCommand';
|
||||
import { OpenTodayStreamCommand } from '../commands/OpenTodayStreamCommand';
|
||||
|
||||
export class CalendarWidget {
|
||||
private widget: HTMLElement;
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
import { App } from 'obsidian';
|
||||
import { Stream } from '../../types';
|
||||
import { openStreamDate } from '../../streamUtils';
|
||||
import { openStreamDate } from '../utils/streamUtils';
|
||||
import { Logger } from '../utils/Logger';
|
||||
import { Command } from './Command';
|
||||
|
||||
|
||||
const log = new Logger();
|
||||
|
||||
export class OpenStreamDateCommand implements Command {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
import { App } from 'obsidian';
|
||||
import { Stream } from '../../types';
|
||||
import { openStreamDate } from '../../streamUtils';
|
||||
import { openStreamDate } from '../utils/streamUtils';
|
||||
import { Logger } from '../utils/Logger';
|
||||
import { Command } from './Command';
|
||||
|
||||
|
||||
const log = new Logger();
|
||||
|
||||
export class OpenTodayStreamCommand implements Command {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { App, TFolder, TFile, MarkdownView } from 'obsidian';
|
||||
import { join, normalize } from 'path';
|
||||
import { Stream } from './types';
|
||||
import { Logger } from './src/utils/Logger';
|
||||
import { Stream } from '../../types';
|
||||
import { Logger } from './Logger';
|
||||
|
||||
const log = new Logger();
|
||||
|
||||
Loading…
Reference in a new issue