feat: chatgpt prompts

This commit is contained in:
lencx
2022-12-16 21:23:46 +08:00
parent 3318bfb23f
commit 47c9072f40
10 changed files with 79 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
use crate::{conf::ChatConfJson, utils};
use std::fs;
use std::{fs, path::PathBuf};
use tauri::{api, command, AppHandle, Manager};
#[command]
@@ -59,3 +59,8 @@ pub fn form_msg(app: AppHandle, label: &str, title: &str, msg: &str) {
let win = app.app_handle().get_window(label);
tauri::api::dialog::message(win.as_ref(), title, msg);
}
#[command]
pub fn open_file(path: PathBuf) {
utils::open_file(path);
}