diff --git a/Cargo.toml b/Cargo.toml index 761d36a..e51c1a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,5 @@ [workspace] members = [ - "webapp", "clego", "tauri", ] diff --git a/tauri/.gitignore b/tauri/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/tauri/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/tauri/.gitkeep b/tauri/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/tauri/README.md b/tauri/README.md new file mode 100644 index 0000000..441faf7 --- /dev/null +++ b/tauri/README.md @@ -0,0 +1,7 @@ +# Tauri + Vanilla + +This template should help get you started developing with Tauri in vanilla HTML, CSS and Javascript. + +## Recommended IDE Setup + +- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) diff --git a/tauri/src-tauri/.gitignore b/tauri/src-tauri/.gitignore new file mode 100644 index 0000000..b21bd68 --- /dev/null +++ b/tauri/src-tauri/.gitignore @@ -0,0 +1,7 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ + +# Generated by Tauri +# will have schema files for capabilities auto-completion +/gen/schemas diff --git a/tauri/src-tauri/Cargo.toml b/tauri/src-tauri/Cargo.toml new file mode 100644 index 0000000..b495df0 --- /dev/null +++ b/tauri/src-tauri/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "tauri" +version = "0.0.0" +description = "A Tauri App" +authors = ["you"] +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[build-dependencies] +tauri-build = { version = "2.0.0-beta", features = [] } + +[dependencies] +tauri = { version = "2.0.0-beta", features = [] } +tauri-plugin-shell = "2.0.0-beta" +serde = { version = "1", features = ["derive"] } +serde_json = "1" + diff --git a/tauri/src-tauri/build.rs b/tauri/src-tauri/build.rs new file mode 100644 index 0000000..d860e1e --- /dev/null +++ b/tauri/src-tauri/build.rs @@ -0,0 +1,3 @@ +fn main() { + tauri_build::build() +} diff --git a/tauri/src-tauri/capabilities/default.json b/tauri/src-tauri/capabilities/default.json new file mode 100644 index 0000000..e14ca1d --- /dev/null +++ b/tauri/src-tauri/capabilities/default.json @@ -0,0 +1,17 @@ +{ + "$schema": "../gen/schemas/desktop-schema.json", + "identifier": "default", + "description": "Capability for the main window", + "windows": ["main"], + "permissions": [ + "path:default", + "event:default", + "window:default", + "app:default", + "image:default", + "resources:default", + "menu:default", + "tray:default", + "shell:allow-open" + ] +} diff --git a/tauri/src-tauri/icons/128x128.png b/tauri/src-tauri/icons/128x128.png new file mode 100644 index 0000000..6be5e50 Binary files /dev/null and b/tauri/src-tauri/icons/128x128.png differ diff --git a/tauri/src-tauri/icons/128x128@2x.png b/tauri/src-tauri/icons/128x128@2x.png new file mode 100644 index 0000000..e81bece Binary files /dev/null and b/tauri/src-tauri/icons/128x128@2x.png differ diff --git a/tauri/src-tauri/icons/32x32.png b/tauri/src-tauri/icons/32x32.png new file mode 100644 index 0000000..a437dd5 Binary files /dev/null and b/tauri/src-tauri/icons/32x32.png differ diff --git a/tauri/src-tauri/icons/Square107x107Logo.png b/tauri/src-tauri/icons/Square107x107Logo.png new file mode 100644 index 0000000..0ca4f27 Binary files /dev/null and b/tauri/src-tauri/icons/Square107x107Logo.png differ diff --git a/tauri/src-tauri/icons/Square142x142Logo.png b/tauri/src-tauri/icons/Square142x142Logo.png new file mode 100644 index 0000000..b81f820 Binary files /dev/null and b/tauri/src-tauri/icons/Square142x142Logo.png differ diff --git a/tauri/src-tauri/icons/Square150x150Logo.png b/tauri/src-tauri/icons/Square150x150Logo.png new file mode 100644 index 0000000..624c7bf Binary files /dev/null and b/tauri/src-tauri/icons/Square150x150Logo.png differ diff --git a/tauri/src-tauri/icons/Square284x284Logo.png b/tauri/src-tauri/icons/Square284x284Logo.png new file mode 100644 index 0000000..c021d2b Binary files /dev/null and b/tauri/src-tauri/icons/Square284x284Logo.png differ diff --git a/tauri/src-tauri/icons/Square30x30Logo.png b/tauri/src-tauri/icons/Square30x30Logo.png new file mode 100644 index 0000000..6219700 Binary files /dev/null and b/tauri/src-tauri/icons/Square30x30Logo.png differ diff --git a/tauri/src-tauri/icons/Square310x310Logo.png b/tauri/src-tauri/icons/Square310x310Logo.png new file mode 100644 index 0000000..f9bc048 Binary files /dev/null and b/tauri/src-tauri/icons/Square310x310Logo.png differ diff --git a/tauri/src-tauri/icons/Square44x44Logo.png b/tauri/src-tauri/icons/Square44x44Logo.png new file mode 100644 index 0000000..d5fbfb2 Binary files /dev/null and b/tauri/src-tauri/icons/Square44x44Logo.png differ diff --git a/tauri/src-tauri/icons/Square71x71Logo.png b/tauri/src-tauri/icons/Square71x71Logo.png new file mode 100644 index 0000000..63440d7 Binary files /dev/null and b/tauri/src-tauri/icons/Square71x71Logo.png differ diff --git a/tauri/src-tauri/icons/Square89x89Logo.png b/tauri/src-tauri/icons/Square89x89Logo.png new file mode 100644 index 0000000..f3f705a Binary files /dev/null and b/tauri/src-tauri/icons/Square89x89Logo.png differ diff --git a/tauri/src-tauri/icons/StoreLogo.png b/tauri/src-tauri/icons/StoreLogo.png new file mode 100644 index 0000000..4556388 Binary files /dev/null and b/tauri/src-tauri/icons/StoreLogo.png differ diff --git a/tauri/src-tauri/icons/icon.icns b/tauri/src-tauri/icons/icon.icns new file mode 100644 index 0000000..12a5bce Binary files /dev/null and b/tauri/src-tauri/icons/icon.icns differ diff --git a/tauri/src-tauri/icons/icon.ico b/tauri/src-tauri/icons/icon.ico new file mode 100644 index 0000000..b3636e4 Binary files /dev/null and b/tauri/src-tauri/icons/icon.ico differ diff --git a/tauri/src-tauri/icons/icon.png b/tauri/src-tauri/icons/icon.png new file mode 100644 index 0000000..e1cd261 Binary files /dev/null and b/tauri/src-tauri/icons/icon.png differ diff --git a/tauri/src-tauri/src/main.rs b/tauri/src-tauri/src/main.rs new file mode 100644 index 0000000..96361fb --- /dev/null +++ b/tauri/src-tauri/src/main.rs @@ -0,0 +1,16 @@ +// 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] +fn greet(name: &str) -> String { + format!("Hello, {}! You've been greeted from Rust!", name) +} + +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_shell::init()) + .invoke_handler(tauri::generate_handler![greet]) + .run(tauri::generate_context!()) + .expect("error while running tauri application"); +} diff --git a/tauri/src-tauri/tauri.conf.json b/tauri/src-tauri/tauri.conf.json new file mode 100644 index 0000000..f3630be --- /dev/null +++ b/tauri/src-tauri/tauri.conf.json @@ -0,0 +1,32 @@ +{ + "productName": "tauri", + "version": "0.0.0", + "identifier": "org.p4pillon.krys4lide", + "build": { + "frontendDist": "../src" + }, + "app": { + "withGlobalTauri": true, + "windows": [ + { + "title": "tauri", + "width": 800, + "height": 600 + } + ], + "security": { + "csp": null + } + }, + "bundle": { + "active": true, + "targets": "all", + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ] + } +} diff --git a/tauri/src/assets/javascript.svg b/tauri/src/assets/javascript.svg new file mode 100644 index 0000000..f9abb2b --- /dev/null +++ b/tauri/src/assets/javascript.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tauri/src/assets/tauri.svg b/tauri/src/assets/tauri.svg new file mode 100644 index 0000000..31b62c9 --- /dev/null +++ b/tauri/src/assets/tauri.svg @@ -0,0 +1,6 @@ + diff --git a/tauri/src/index.html b/tauri/src/index.html new file mode 100644 index 0000000..3b7e70d --- /dev/null +++ b/tauri/src/index.html @@ -0,0 +1,41 @@ + + +
+ + + +