From 4a5cf2b359fcc2eecc24b9bf967268e8a8e3f2f3 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Mon, 15 Dec 2025 00:04:59 +0700 Subject: [PATCH] cron rename Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com> --- main.ts | 2 +- src/pages/Schedules.tsx | 2 +- store/host.ts | 2 +- store/persisted.ts | 2 +- types/{cron.d.ts => schedules.d.ts} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename types/{cron.d.ts => schedules.d.ts} (100%) 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