diff --git a/frontend/index.html b/frontend/index.html index 8f06c07..1f0d858 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -7,7 +7,7 @@ - CutScript + TalkEdit
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8542392..d160236 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -114,19 +114,19 @@ export default function App() {
-

CutScript

+

TalkEdit

- Open-source text-based video editing powered by AI. + Offline AI-powered video editor.

{/* Whisper model selector */}
- + setProviderConfig('ollama', { model: e.target.value })} - className="w-full px-3 py-2 bg-editor-surface border border-editor-border rounded-lg text-xs text-editor-text focus:outline-none focus:border-editor-accent" + className="w-full px-3 py-2 bg-editor-surface border border-editor-border rounded-lg text-xs text-white focus:outline-none focus:border-editor-accent" > {ollamaModels.map((m) => ( diff --git a/frontend/src/hooks/useKeyboardShortcuts.ts b/frontend/src/hooks/useKeyboardShortcuts.ts index 91c9ce4..10f10ce 100644 --- a/frontend/src/hooks/useKeyboardShortcuts.ts +++ b/frontend/src/hooks/useKeyboardShortcuts.ts @@ -164,7 +164,7 @@ async function saveProject() { const outputPath = await window.electronAPI?.saveFile({ defaultPath: state.videoPath.replace(/\.[^.]+$/, '.aive'), - filters: [{ name: 'CutScript Project', extensions: ['aive'] }], + filters: [{ name: 'TalkEdit Project', extensions: ['aive'] }], }); if (outputPath) { diff --git a/frontend/src/lib/tauri-bridge.ts b/frontend/src/lib/tauri-bridge.ts index 8b1c90a..9690f71 100644 --- a/frontend/src/lib/tauri-bridge.ts +++ b/frontend/src/lib/tauri-bridge.ts @@ -12,8 +12,7 @@ import { open, save } from '@tauri-apps/plugin-dialog'; import { readTextFile, writeTextFile } from '@tauri-apps/plugin-fs'; const VIDEO_FILTERS = [ - { name: 'Video Files', extensions: ['mp4', 'avi', 'mov', 'mkv', 'webm'] }, - { name: 'Audio Files', extensions: ['m4a', 'wav', 'mp3', 'flac'] }, + { name: 'Audio and Video Files', extensions: ['mp4', 'avi', 'mov', 'mkv', 'webm', 'm4a', 'wav', 'mp3', 'flac'] }, { name: 'All Files', extensions: ['*'] }, ]; diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 0d8ab73..c6566eb 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1,5 +1,3 @@ -use tauri::Manager; - // --- Commands --- /// Returns the backend URL. Stubbed for now; will be replaced once the @@ -15,26 +13,23 @@ fn get_backend_url() -> String { /// OS keychain implementation is added (e.g. tauri-plugin-stronghold). #[tauri::command] fn encrypt_string(data: String) -> String { - use std::io::Write; - let encoded = data + data .as_bytes() .iter() .fold(String::new(), |mut acc, b| { use std::fmt::Write as FmtWrite; let _ = write!(acc, "{:02x}", b); acc - }); - encoded + }) } /// Companion decode for encrypt_string. #[tauri::command] fn decrypt_string(encrypted: String) -> Result { - let bytes: Result, _> = (0..encrypted.len()) + (0..encrypted.len()) .step_by(2) .map(|i| u8::from_str_radix(&encrypted[i..i + 2], 16)) - .collect(); - bytes + .collect::, _>>() .map_err(|e| format!("decrypt error: {e}")) .and_then(|b| String::from_utf8(b).map_err(|e| format!("utf8 error: {e}"))) }