2024-09-09 03:12:35 -04:00
|
|
|
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
|
|
|
|
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
|
|
|
|
#[tauri::command]
|
2024-09-09 22:23:41 -04:00
|
|
|
fn station(name: &str) -> String {
|
2024-09-09 03:12:35 -04:00
|
|
|
format!(
|
|
|
|
"https://dixielandsoftware.net/cgi-bin/solari_relay.pl?data={}",
|
|
|
|
name
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
tauri::Builder::default()
|
2024-09-09 22:23:41 -04:00
|
|
|
.invoke_handler(tauri::generate_handler![station])
|
2024-09-09 03:12:35 -04:00
|
|
|
.run(tauri::generate_context!())
|
|
|
|
.expect("error while running tauri application");
|
|
|
|
}
|