From cfb5555edf2fad8cf07478c0a46a2275b90c70aa Mon Sep 17 00:00:00 2001 From: ByteAtATime Date: Wed, 9 Jul 2025 11:03:41 -0700 Subject: [PATCH] chore(client): remove all unused variables and imports --- src/lib/components/ClipboardHistoryView.svelte | 7 +------ src/lib/components/Extensions.svelte | 12 ------------ src/lib/components/FileSearchView.svelte | 7 +------ src/lib/components/SearchSnippets.svelte | 9 ++------- .../components/extensions/ExtensionDetailView.svelte | 3 --- src/lib/components/nodes/GridItem.svelte | 2 -- src/lib/components/nodes/form/Dropdown.svelte | 2 +- src/lib/components/nodes/form/LinkAccessory.svelte | 1 - .../components/nodes/shared/AccessoryDropdown.svelte | 4 ++-- src/lib/components/nodes/shared/ActionMenu.svelte | 1 - src/lib/components/nodes/shared/DropdownItem.svelte | 11 +---------- src/lib/components/nodes/shared/actions.ts | 10 +--------- src/lib/components/ui/command/command-input.svelte | 1 - 13 files changed, 9 insertions(+), 61 deletions(-) diff --git a/src/lib/components/ClipboardHistoryView.svelte b/src/lib/components/ClipboardHistoryView.svelte index a16fdca..7ba867a 100644 --- a/src/lib/components/ClipboardHistoryView.svelte +++ b/src/lib/components/ClipboardHistoryView.svelte @@ -2,18 +2,13 @@ import { invoke } from '@tauri-apps/api/core'; import { onMount, tick, untrack } from 'svelte'; import { VList } from 'virtua/svelte'; - import { Button } from '$lib/components/ui/button'; - import { Pin, Trash, Loader2 } from '@lucide/svelte'; + import { Loader2 } from '@lucide/svelte'; import ListItemBase from './nodes/shared/ListItemBase.svelte'; import { convertFileSrc } from '@tauri-apps/api/core'; import { writeText } from '@tauri-apps/plugin-clipboard-manager'; - import { Kbd } from './ui/kbd'; - import * as DropdownMenu from './ui/dropdown-menu'; import * as Select from './ui/select'; import ActionBar from './nodes/shared/ActionBar.svelte'; - import ActionMenu from './nodes/shared/ActionMenu.svelte'; import BaseList from './BaseList.svelte'; - import KeyboardShortcut from './KeyboardShortcut.svelte'; import HeaderInput from './HeaderInput.svelte'; import MainLayout from './layout/MainLayout.svelte'; import Header from './layout/Header.svelte'; diff --git a/src/lib/components/Extensions.svelte b/src/lib/components/Extensions.svelte index f22c82f..a16b594 100644 --- a/src/lib/components/Extensions.svelte +++ b/src/lib/components/Extensions.svelte @@ -1,26 +1,19 @@ {#if componentProps && dropdownContext} diff --git a/src/lib/components/nodes/shared/actions.ts b/src/lib/components/nodes/shared/actions.ts index a36ef86..9f57f8a 100644 --- a/src/lib/components/nodes/shared/actions.ts +++ b/src/lib/components/nodes/shared/actions.ts @@ -1,15 +1,7 @@ -import type { - ActionCopyToClipboardProps, - ActionOpenInBrowserProps, - ActionProps, - componentSchemas, - ComponentType, - Schemas -} from '$lib/props'; +import type { ActionCopyToClipboardProps, ActionOpenInBrowserProps, ActionProps } from '$lib/props'; import type { UINode } from '$lib/types'; import { writeText } from '@tauri-apps/plugin-clipboard-manager'; import { openUrl } from '@tauri-apps/plugin-opener'; -import z from 'zod/v4'; export type ActionDefinition = ActionProps & { handler?: () => void; disabled?: boolean }; diff --git a/src/lib/components/ui/command/command-input.svelte b/src/lib/components/ui/command/command-input.svelte index d6c7d0c..c623f13 100644 --- a/src/lib/components/ui/command/command-input.svelte +++ b/src/lib/components/ui/command/command-input.svelte @@ -1,6 +1,5 @@