Add error slide for carousel

This commit is contained in:
Prayag Prajapati committed 2023-07-25 15:47:18 +05:30
1 parent d5daa6d9dc
commit 0bcb7a6cff
9 files changed
+367 -266

No files matched your search

+11 -5
View File
@@ -1,9 +1,8 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use tauri::Manager;
use tauri::{utils::config::AppUrl, WindowUrl};
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, LogTarget};
// Create the command:
// This command must be async so that it doesn't run on the main thread.
#[tauri::command]
@@ -19,8 +18,10 @@ async fn close_splashscreen(window: tauri::Window) {
// Tauri by default uses HTTPS, so use the localhost plugin to downgrade back to
// HTTP. However, when running tauri dev, we already have a localhost server
// provided by vite, so don't enable it
#[cfg(debug_assertions)]
const USE_LOCALHOST_SERVER: bool = false;
#[cfg(not(debug_assertions))]
const USE_LOCALHOST_SERVER: bool = true;
@@ -43,12 +44,17 @@ fn main() {
builder = builder.plugin(tauri_plugin_localhost::Builder::new(port).build());
}
builder
.invoke_handler(tauri::generate_handler![close_splashscreen])
.plugin(
tauri_plugin_log::Builder::default()
.targets([LogTarget::LogDir, LogTarget::Stdout, LogTarget::Webview])
.with_colors(ColoredLevelConfig::default())
.build(),
)
.plugin(tauri_plugin_store::Builder::default().build())
.invoke_handler(tauri::generate_handler![close_splashscreen])
.run(context)
.expect("error while running tauri application");
.expect("error while running JellyPlayer");
// tauri::Builder::default()
// .run(tauri::generate_context!())
// .expect("error while running tauri application");