make do without tauri and test vid

s 0f44589 ws that starts to work
s 6df44a1 first video
s dacb6cd click to time
s 7831ae4 remove tauri
s 2d18c9b concurrently and frontmatter
s dc43284 add new video and test
s 0dd03af fix for youtube format and markdown compat
s c30fa38 remove placeholder mds
s d8f1a54 remove images from git
This commit is contained in:
polv committed 2026-02-01 18:41:23 +07:00
1 parent fc58e68ad7
commit 00033e0341
38 files changed
+4897 -6257

No files matched your search

-41
View File
@@ -1,41 +0,0 @@
use tauri::Listener;
use serde::Deserialize;
#[tauri::command]
fn download_q(q: String) {
println!("Download q! {q}");
}
#[tauri::command]
fn timed_q(q: String, t: f32, current_time: f32, data: String) {
println!("Timed q! {q} {t} {current_time} {}", &data[..10]);
}
#[derive(Deserialize, Debug)]
struct SeekQEvent {
t: f32,
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![download_q, timed_q])
.setup(|app| {
app.listen("seek_q", |event| {
if let Ok(payload) = serde_json::from_str::<SeekQEvent>(&event.payload()) {
println!("downloading {}", payload.t);
}
});
if cfg!(debug_assertions) {
app.handle().plugin(
tauri_plugin_log::Builder::default()
.level(log::LevelFilter::Info)
.build(),
)?;
}
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}