readme and remove template
This commit is contained in:
@@ -1,7 +1,3 @@
|
|||||||
# Tauri + Vue + TypeScript
|
# Review Videos
|
||||||
|
|
||||||
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
Generated by Gemini CLI
|
||||||
|
|
||||||
## Recommended IDE Setup
|
|
||||||
|
|
||||||
- [VS Code](https://code.visualstudio.com/) + [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ use std::fs;
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
|
|
||||||
// Define the configuration structure
|
// Define the configuration structure
|
||||||
#[derive(Serialize, Deserialize, Default, Debug)]
|
#[derive(Serialize, Deserialize, Default, Debug)]
|
||||||
pub struct AppConfig {
|
pub struct AppConfig {
|
||||||
@@ -18,12 +17,6 @@ pub struct AppConfig {
|
|||||||
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
|
||||||
pub struct HistoryMap(HashMap<String, Vec<String>>);
|
pub struct HistoryMap(HashMap<String, Vec<String>>);
|
||||||
|
|
||||||
// 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)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
fn copy_directory(template_path: String, target_path: String, new_folder_name: String) -> Result<String, String> {
|
fn copy_directory(template_path: String, target_path: String, new_folder_name: String) -> Result<String, String> {
|
||||||
let template = Path::new(&template_path);
|
let template = Path::new(&template_path);
|
||||||
@@ -351,7 +344,6 @@ pub fn run() {
|
|||||||
.plugin(tauri_plugin_opener::init())
|
.plugin(tauri_plugin_opener::init())
|
||||||
.plugin(tauri_plugin_dialog::init())
|
.plugin(tauri_plugin_dialog::init())
|
||||||
.invoke_handler(tauri::generate_handler![
|
.invoke_handler(tauri::generate_handler![
|
||||||
greet,
|
|
||||||
copy_directory,
|
copy_directory,
|
||||||
save_config,
|
save_config,
|
||||||
load_config,
|
load_config,
|
||||||
|
|||||||
Reference in New Issue
Block a user