Skip to content

Commit 16a75df

Browse files
committed
fix: fix formatting
1 parent 8135b9e commit 16a75df

File tree

8 files changed

+18
-13
lines changed

8 files changed

+18
-13
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import { type AppDispatch, createReactor } from "./redux/store";
5454
import { createUseSelector } from "./redux/use-selector";
5555
import { DataviewFacade } from "./service/dataview-facade";
5656
import { TransactionWriter } from "./service/diff-writer";
57+
import { ListPropsParser } from "./service/list-props-parser";
5758
import { PeriodicNotes } from "./service/periodic-notes";
5859
import { STaskEditor } from "./service/stask-editor";
5960
import { VaultFacade } from "./service/vault-facade";
@@ -73,6 +74,7 @@ import { useDebounceWithDelay } from "./ui/hooks/use-debounce-with-delay";
7374
import { mountStatusBarWidget } from "./ui/hooks/use-status-bar-widget";
7475
import { useTasks } from "./ui/hooks/use-tasks";
7576
import { useVisibleDays } from "./ui/hooks/use-visible-days";
77+
import { LogSummaryView } from "./ui/log-summary";
7678
import MultiDayView from "./ui/multi-day-view";
7779
import { DayPlannerReleaseNotesView } from "./ui/release-notes";
7880
import { DayPlannerSettingsTab } from "./ui/settings-tab";
@@ -82,8 +84,6 @@ import { createEnvironmentHooks } from "./util/create-environment-hooks";
8284
import { createRenderMarkdown } from "./util/create-render-markdown";
8385
import { createShowPreview } from "./util/create-show-preview";
8486
import { notifyAboutStartedTasks } from "./util/notify-about-started-tasks";
85-
import { ListPropsParser } from "./service/list-props-parser";
86-
import { LogSummaryView } from "./ui/log-summary";
8787

8888
export default class DayPlanner extends Plugin {
8989
settings!: () => DayPlannerSettings;

src/redux/dataview/dataview-slice.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Pos } from "obsidian";
33
import type { STask } from "obsidian-dataview";
44

55
import { createAppSlice } from "../create-app-slice";
6+
67
import type { Props } from "src/util/props";
78

89
export type ListPropsParseResult = {

src/redux/dataview/init-dataview-listeners.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type { ListPropsParser } from "../../service/list-props-parser";
12
import type { AppListenerEffect } from "../store";
23

34
import { type DataviewChangeAction, listPropsParsed } from "./dataview-slice";
4-
import type { ListPropsParser } from "../../service/list-props-parser";
55

66
export function createListPropsParseListener(props: {
77
listPropsParser: ListPropsParser;

src/redux/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { combineSlices, configureStore } from "@reduxjs/toolkit";
1111
import { derived, writable } from "svelte/store";
1212

1313
import type { DataviewFacade } from "../service/dataview-facade";
14+
import type { ListPropsParser } from "../service/list-props-parser";
1415
import type { PointerDateTime, ReduxExtraArgument } from "../types";
1516
import { getUpdateTrigger } from "../util/store";
1617

@@ -27,7 +28,6 @@ import { searchSlice } from "./search-slice";
2728
import { selectDataviewSource, settingsSlice } from "./settings-slice";
2829
import { useActionDispatched } from "./use-action-dispatched";
2930
import { createUseSelector } from "./use-selector";
30-
import type { ListPropsParser } from "../service/list-props-parser";
3131

3232
const rootReducer = combineSlices(
3333
globalSlice,

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import type { RawIcal } from "./redux/ical/ical-slice";
66
import { type AppDispatch } from "./redux/store";
77
import type { UseSelector } from "./redux/use-selector";
88
import type { DataviewFacade } from "./service/dataview-facade";
9+
import type { ListPropsParser } from "./service/list-props-parser";
910
import type { PeriodicNotes } from "./service/periodic-notes";
1011
import type { STaskEditor } from "./service/stask-editor";
1112
import type { VaultFacade } from "./service/vault-facade";
@@ -14,9 +15,8 @@ import type { DayPlannerSettings, IcalConfig } from "./settings";
1415
import type { LocalTask, WithPlacing } from "./task-types";
1516
import { EditMode } from "./ui/hooks/use-edit/types";
1617
import { useEditContext } from "./ui/hooks/use-edit/use-edit-context";
17-
import { type ShowPreview } from "./util/create-show-preview";
18-
import type { ListPropsParser } from "./service/list-props-parser";
1918
import type { useTasks } from "./ui/hooks/use-tasks";
19+
import { type ShowPreview } from "./util/create-show-preview";
2020

2121
export type OnUpdateFn = (
2222
base: Array<LocalTask>,

src/ui/log-summary.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { ItemView, View, WorkspaceLeaf } from "obsidian";
2-
import { viewTypeLogSummary } from "../constants";
1+
import { ItemView, WorkspaceLeaf } from "obsidian";
32
import { type Component, mount } from "svelte";
4-
import LogSummary from "./components/log-summary.svelte";
3+
4+
import { viewTypeLogSummary } from "../constants";
55
import type { ComponentContext } from "../types";
6-
import { isNotVoid } from "typed-assert";
6+
7+
import LogSummary from "./components/log-summary.svelte";
78

89
export class LogSummaryView extends ItemView {
910
private component?: Component;

tests/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { initialState } from "../src/redux/global-slice";
1515
import { createReactor, type RootState } from "../src/redux/store";
1616
import type { DataviewFacade } from "../src/service/dataview-facade";
1717
import { TransactionWriter } from "../src/service/diff-writer";
18+
import { ListPropsParser } from "../src/service/list-props-parser";
1819
import type { PeriodicNotes } from "../src/service/periodic-notes";
1920
import { VaultFacade } from "../src/service/vault-facade";
2021
import type { WorkspaceFacade } from "../src/service/workspace-facade";
@@ -37,7 +38,6 @@ import {
3738
InMemoryVault,
3839
type InMemoryFile,
3940
} from "./test-utils";
40-
import { ListPropsParser } from "../src/service/list-props-parser";
4141

4242
const { join } = path.posix;
4343

tests/store/ical.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
import { initListenerMiddleware } from "../../src/redux/listener-middleware";
1313
import { makeStore, type RootState } from "../../src/redux/store";
1414
import { DataviewFacade } from "../../src/service/dataview-facade";
15+
import { ListPropsParser } from "../../src/service/list-props-parser";
1516
import { defaultSettingsForTests } from "../../src/settings";
1617
import { FakeMetadataCache, InMemoryVault } from "../test-utils";
1718

@@ -70,8 +71,10 @@ function makeStoreForTests(props?: { preloadedState?: Partial<RootState> }) {
7071
lists: [],
7172
tasks: [],
7273
}) as unknown as DataviewFacade,
73-
metadataCache: new FakeMetadataCache({}) as unknown as MetadataCache,
74-
vault: new InMemoryVault([]) as unknown as Vault,
74+
listPropsParser: new ListPropsParser(
75+
new InMemoryVault([]) as unknown as Vault,
76+
new FakeMetadataCache({}) as unknown as MetadataCache,
77+
),
7578
onIcalsFetched: async () => {},
7679
},
7780
});

0 commit comments

Comments
 (0)