feat: scaffold Tauri v2 + React + TS with all dependencies

- Tauri v2 with React 19 + TypeScript + Vite 7
- Tauri plugins: fs, dialog, shell (registered in lib.rs)
- Filesystem permissions scoped to $APPDATA/openpylon/**
- Tailwind CSS v4 via @tailwindcss/vite
- shadcn/ui initialized with 12 components
- All app dependencies: Zustand, zundo, dnd-kit, Framer Motion,
  Zod, ulid, date-fns, react-markdown, remark-gfm
- Path alias @/* configured in tsconfig + vite
This commit is contained in:
Your Name
2026-02-15 18:31:54 +02:00
parent d167d0aa0b
commit 13cda71721
52 changed files with 11907 additions and 0 deletions

7
src-tauri/.gitignore vendored Normal file
View File

@@ -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

28
src-tauri/Cargo.toml Normal file
View File

@@ -0,0 +1,28 @@
[package]
name = "openpylon"
version = "0.1.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
[lib]
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "openpylon_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
tauri-plugin-fs = "2"
tauri-plugin-dialog = "2"
tauri-plugin-shell = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"

3
src-tauri/build.rs Normal file
View File

@@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}

View File

@@ -0,0 +1,44 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Default permissions for OpenPylon",
"windows": ["main"],
"permissions": [
"core:default",
"opener:default",
"dialog:default",
"shell:default",
{
"identifier": "fs:default",
"allow": [{ "path": "$APPDATA/openpylon/**" }]
},
{
"identifier": "fs:allow-exists",
"allow": [{ "path": "$APPDATA/openpylon/**" }]
},
{
"identifier": "fs:allow-read",
"allow": [{ "path": "$APPDATA/openpylon/**" }]
},
{
"identifier": "fs:allow-write",
"allow": [{ "path": "$APPDATA/openpylon/**" }]
},
{
"identifier": "fs:allow-mkdir",
"allow": [{ "path": "$APPDATA/openpylon/**" }]
},
{
"identifier": "fs:allow-remove",
"allow": [{ "path": "$APPDATA/openpylon/**" }]
},
{
"identifier": "fs:allow-copy-file",
"allow": [{ "path": "$APPDATA/openpylon/**" }]
},
{
"identifier": "fs:allow-read-dir",
"allow": [{ "path": "$APPDATA/openpylon/**" }]
}
]
}

BIN
src-tauri/icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
src-tauri/icons/32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 974 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 903 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src-tauri/icons/icon.icns Normal file

Binary file not shown.

BIN
src-tauri/icons/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
src-tauri/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

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

@@ -0,0 +1,10 @@
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_shell::init())
.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() {
temptauri_lib::run()
}

35
src-tauri/tauri.conf.json Normal file
View File

@@ -0,0 +1,35 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "openpylon",
"version": "0.1.0",
"identifier": "com.openpylon.app",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "OpenPylon",
"width": 1200,
"height": 800
}
],
"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"
]
}
}