Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(desktop): add automations route and settings nav entry
Richie McIlroy759a6d4b2efa
diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsxindex 65d7debf3..495784a47 100644--- a/apps/desktop/src/App.tsx+++ b/apps/desktop/src/App.tsx@@ -40,6 +40,9 @@ const SettingsTranscriptionPage = lazy(const SettingsScreenshotsPage = lazy(() => import("./routes/(window-chrome)/settings/screenshots"),);+const SettingsAutomationsPage = lazy(+ () => import("./routes/(window-chrome)/settings/automations"),+);const SettingsHotkeysPage = lazy(() => import("./routes/(window-chrome)/settings/hotkeys"),);@@ -178,6 +181,7 @@ function Inner() {component={SettingsTranscriptionPage}/><Route path="/screenshots" component={SettingsScreenshotsPage} />+ <Route path="/automations" component={SettingsAutomationsPage} /><Route path="/hotkeys" component={SettingsHotkeysPage} /><Route path="/cli" component={SettingsCliPage} /><Route path="/changelog" component={SettingsChangelogPage} />diff --git a/apps/desktop/src/routes/(window-chrome)/settings.tsx b/apps/desktop/src/routes/(window-chrome)/settings.tsxindex bc4392a92..108167ad6 100644--- a/apps/desktop/src/routes/(window-chrome)/settings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings.tsx@@ -30,6 +30,7 @@ import {} from "~/utils/web-api";import IconLucideTerminal from "~icons/lucide/terminal";import IconLucideUserRound from "~icons/lucide/user-round";+import IconLucideZap from "~icons/lucide/zap";const USER_PROFILE_CACHE_GC_MS = 2 * 60 * 60 * 1000;const USER_PROFILE_REFRESH_INTERVAL_MS = 5 * 60 * 1000;@@ -216,6 +217,11 @@ export default function Settings(props: RouteSectionProps) {name: "Screenshots",icon: IconLucideImage,},+ {+ href: "automations",+ name: "Automations",+ icon: IconLucideZap,+ },{href: "transcription",name: "Transcription",diff --git a/apps/desktop/src/store.ts b/apps/desktop/src/store.tsindex 06a22d576..0bfd56852 100644--- a/apps/desktop/src/store.ts+++ b/apps/desktop/src/store.ts@@ -1,6 +1,7 @@import { createQuery } from "@tanstack/solid-query";import { Store } from "@tauri-apps/plugin-store";import { onCleanup } from "solid-js";+import type { AutomationsStore } from "~/utils/automations";import type { GeneralSettingsStore } from "~/utils/general-settings";import type {AuthStore,@@ -73,6 +74,7 @@ function declareStore<T extends object>(name: string, defaults?: T) {export const presetsStore = declareStore<PresetsStore>("presets");export const authStore = declareStore<AuthStore>("auth");+export const automationsStore = declareStore<AutomationsStore>("automations");export const userProfileStore = declareStore<UserProfileStore>("user_profile");export const hotkeysStore = declareStore<HotkeysStore>("hotkeys");export const generalSettingsStore =