Tauri 2 + React 18 + TypeScript + Tailwind CSS v4 + SQLite (rusqlite) Features: - Menu bar app with tray icon (no dock icon) - Global hotkey Cmd+Shift+V - Clipboard polling every 500ms (text, images, file paths) - SQLite FTS5 full-text search - Pin/unpin entries, auto-trim, context menu - Settings panel (launch at login, show images, max history, clear all) - Dark/light mode following macOS system preference - Frameless floating window, closes on blur Testing: - 27 Rust unit tests (db, clipboard, FTS5, trim, settings) - 31 TypeScript component tests (vitest + @testing-library/react) Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
283 B
TypeScript
15 lines
283 B
TypeScript
export interface ClipboardEntry {
|
|
id: number;
|
|
content: string;
|
|
content_type: "text" | "image" | "file";
|
|
created_at: string;
|
|
pinned: boolean;
|
|
content_hash: string;
|
|
}
|
|
|
|
export interface Settings {
|
|
launch_at_login: boolean;
|
|
show_images: boolean;
|
|
max_history: number;
|
|
}
|