Refactor into named dirs

This commit is contained in:
Ben Floyd 2025-02-04 08:52:09 -07:00
parent 55a859888d
commit a8a38f0467
6 changed files with 14 additions and 12 deletions

View file

@ -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';

View file

@ -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;

View file

@ -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;

View file

@ -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 {

View file

@ -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 {

View file

@ -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();