chore: deps

This commit is contained in:
lencx
2023-01-16 21:57:00 +08:00
parent f822a56993
commit 240c88220d
3 changed files with 8 additions and 13 deletions

View File

@@ -26,15 +26,10 @@ wry = "0.24.1"
dark-light = "1.0.0" dark-light = "1.0.0"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.23.0", features = ["macros"] } tokio = { version = "1.23.0", features = ["macros"] }
tauri-plugin-positioner = { version = "1.0.4", features = ["system-tray"] }
tauri = { version = "1.2.3", features = ["api-all", "devtools", "global-shortcut", "system-tray", "updater"] } tauri = { version = "1.2.3", features = ["api-all", "devtools", "global-shortcut", "system-tray", "updater"] }
[dependencies.tauri-plugin-log] tauri-plugin-positioner = { version = "1.0.4", features = ["system-tray"] }
git = "https://github.com/lencx/tauri-plugin-log" tauri-plugin-log = { git = "https://github.com/lencx/tauri-plugins-workspace", branch = "dev", features = ["colored"] }
branch = "dev" tauri-plugin-autostart = { git = "https://github.com/lencx/tauri-plugins-workspace", branch = "dev" }
features = ["colored"]
[dependencies.tauri-plugin-autostart]
git = "https://github.com/lencx/tauri-plugin-autostart"
branch = "dev"
# sqlx = { version = "0.6.2", features = ["runtime-tokio-rustls", "sqlite"] } # sqlx = { version = "0.6.2", features = ["runtime-tokio-rustls", "sqlite"] }

View File

@@ -94,7 +94,7 @@ pub fn control_window(handle: &tauri::AppHandle) {
.title("Control Center") .title("Control Center")
.resizable(true) .resizable(true)
.fullscreen(false) .fullscreen(false)
.inner_size(800.0, 600.0) .inner_size(1000.0, 700.0)
.min_inner_size(800.0, 600.0) .min_inner_size(800.0, 600.0)
.build() .build()
.unwrap(); .unwrap();

View File

@@ -13,7 +13,7 @@ use tauri::api::path;
use tauri_plugin_autostart::MacosLauncher; use tauri_plugin_autostart::MacosLauncher;
use tauri_plugin_log::{ use tauri_plugin_log::{
fern::colors::{Color, ColoredLevelConfig}, fern::colors::{Color, ColoredLevelConfig},
LogTarget, LoggerBuilder, LogTarget,
}; };
#[tokio::main] #[tokio::main]
@@ -38,9 +38,7 @@ async fn main() {
let mut builder = tauri::Builder::default() let mut builder = tauri::Builder::default()
// https://github.com/tauri-apps/tauri/pull/2736 // https://github.com/tauri-apps/tauri/pull/2736
.plugin( .plugin(
LoggerBuilder::new() tauri_plugin_log::Builder::default()
.level(log::LevelFilter::Debug)
.with_colors(colors)
.targets([ .targets([
// LogTarget::LogDir, // LogTarget::LogDir,
// LOG PATH: ~/.chatgpt/ChatGPT.log // LOG PATH: ~/.chatgpt/ChatGPT.log
@@ -48,6 +46,8 @@ async fn main() {
LogTarget::Stdout, LogTarget::Stdout,
LogTarget::Webview, LogTarget::Webview,
]) ])
.level(log::LevelFilter::Debug)
.with_colors(colors)
.build(), .build(),
) )
.plugin(tauri_plugin_positioner::init()) .plugin(tauri_plugin_positioner::init())