feat(spary): Initializes project infrastructure and core functionality

- Adds basic project structure for Tauri and Vue
- Configures the Vite, TypeScript, and Vuetify environments
- Implements basic spray-on components and Rust backend logic
- Sets up routing, plugins, and the style system
This commit is contained in:
2025-10-09 15:17:23 +08:00
commit f1139af34e
36 changed files with 3396 additions and 0 deletions

13
src-tauri/src/lib.rs Normal file
View File

@@ -0,0 +1,13 @@
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
use crate::spary::spary_switch;
mod spary;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.invoke_handler(tauri::generate_handler![spary_switch])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

6
src-tauri/src/main.rs Normal file
View File

@@ -0,0 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
spary_lib::run()
}

5
src-tauri/src/spary.rs Normal file
View File

@@ -0,0 +1,5 @@
#[tauri::command]
pub fn spary_switch(status:bool) {
println!("Spraying {status}");
}