diff --git a/main.ts b/main.ts index 933ce49..cc69ddc 100644 --- a/main.ts +++ b/main.ts @@ -35,7 +35,7 @@ import { openSmallWindow } from './lib/window' import { initHostStore, useHostStore } from './store/host' import { useStore } from './store/memory' import { usePersistedStore } from './store/persisted' -import type { ScheduledTask } from './types/cron' +import type { ScheduledTask } from './types/schedules' let currentRcloneChild: Child | null = null let rcloneListenersRegistered = false diff --git a/src/pages/Schedules.tsx b/src/pages/Schedules.tsx index cbe12b3..16681ef 100644 --- a/src/pages/Schedules.tsx +++ b/src/pages/Schedules.tsx @@ -9,7 +9,7 @@ import { AlertCircleIcon, Clock7Icon, PauseIcon, PlayIcon, Trash2Icon } from 'lu import { useMemo, useState } from 'react' import { buildReadablePath } from '../../lib/format' import { useHostStore } from '../../store/host' -import type { ScheduledTask } from '../../types/cron' +import type { ScheduledTask } from '../../types/schedules' import CommandsDropdown from '../components/CommandsDropdown' export default function Schedules() { diff --git a/store/host.ts b/store/host.ts index 7aa351d..5b1a7ce 100644 --- a/store/host.ts +++ b/store/host.ts @@ -2,7 +2,7 @@ import { LazyStore } from '@tauri-apps/plugin-store' import { create } from 'zustand' import { type StateStorage, createJSONStorage, persist } from 'zustand/middleware' import type { ConfigFile } from '../types/config' -import type { ScheduledTask } from '../types/cron' +import type { ScheduledTask } from '../types/schedules' let activeHostId: string | null = null let activeStore: LazyStore | null = null diff --git a/store/persisted.ts b/store/persisted.ts index 7b3cd4e..160b650 100644 --- a/store/persisted.ts +++ b/store/persisted.ts @@ -7,7 +7,7 @@ import { type StateStorage, createJSONStorage, persist } from 'zustand/middlewar import type { Host } from '../lib/hosts' import type { SERVE_TYPES } from '../lib/rclone/constants' import type { ConfigFile } from '../types/config' -import type { ScheduledTask } from '../types/cron' +import type { ScheduledTask } from '../types/schedules' import type { Template } from '../types/template' import type { RemoteConfig as HostRemoteConfig } from './host' diff --git a/types/cron.d.ts b/types/schedules.d.ts similarity index 100% rename from types/cron.d.ts rename to types/schedules.d.ts