Initial Commit
This commit is contained in:
commit
8ed5b576eb
33 changed files with 5495 additions and 0 deletions
7
src-tauri/.gitignore
vendored
Normal file
7
src-tauri/.gitignore
vendored
Normal 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
|
5136
src-tauri/Cargo.lock
generated
Normal file
5136
src-tauri/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
25
src-tauri/Cargo.toml
Normal file
25
src-tauri/Cargo.toml
Normal file
|
@ -0,0 +1,25 @@
|
|||
[package]
|
||||
name = "openvcs"
|
||||
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 = "openvcs_lib"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2", features = [] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "2", features = [] }
|
||||
tauri-plugin-opener = "2"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
3
src-tauri/build.rs
Normal file
3
src-tauri/build.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
tauri_build::build()
|
||||
}
|
10
src-tauri/capabilities/default.json
Normal file
10
src-tauri/capabilities/default.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "default",
|
||||
"description": "Capability for the main window",
|
||||
"windows": ["main"],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"opener:default"
|
||||
]
|
||||
}
|
BIN
src-tauri/icons/128x128.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/128x128.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/128x128@2x.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/128x128@2x.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/32x32.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/32x32.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square107x107Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square107x107Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square142x142Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square142x142Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square150x150Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square150x150Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square284x284Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square284x284Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square30x30Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square30x30Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square310x310Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square310x310Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square44x44Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square44x44Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square71x71Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square71x71Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/Square89x89Logo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/Square89x89Logo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/StoreLogo.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/StoreLogo.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/icon.icns
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/icon.icns
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/icon.ico
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/icon.ico
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
src-tauri/icons/icon.png
(Stored with Git LFS)
Normal file
BIN
src-tauri/icons/icon.png
(Stored with Git LFS)
Normal file
Binary file not shown.
14
src-tauri/src/lib.rs
Normal file
14
src-tauri/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
||||
#[tauri::command]
|
||||
fn greet(name: &str) -> String {
|
||||
format!("Hello, {}! You've been greeted from Rust!", name)
|
||||
}
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.invoke_handler(tauri::generate_handler![greet])
|
||||
.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() {
|
||||
openvcs_lib::run()
|
||||
}
|
33
src-tauri/tauri.conf.json
Normal file
33
src-tauri/tauri.conf.json
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "openvcs",
|
||||
"version": "0.1.0",
|
||||
"identifier": "dev.jordon.openvcs",
|
||||
"build": {
|
||||
"frontendDist": "../src"
|
||||
},
|
||||
"app": {
|
||||
"withGlobalTauri": true,
|
||||
"windows": [
|
||||
{
|
||||
"title": "openvcs",
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue