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:
13
src-tauri/src/lib.rs
Normal file
13
src-tauri/src/lib.rs
Normal 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
6
src-tauri/src/main.rs
Normal 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
5
src-tauri/src/spary.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
#[tauri::command]
|
||||
pub fn spary_switch(status:bool) {
|
||||
println!("Spraying {status}");
|
||||
}
|
||||
Reference in New Issue
Block a user