From 728b17288a75a36fee84e56bf8a1841b24b3bd20 Mon Sep 17 00:00:00 2001 From: ayabusa Date: Sun, 17 Mar 2024 15:40:00 +0100 Subject: [PATCH] changed main page layout and fixed some bugs --- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/main.rs | 23 +++++++++++--- src-tauri/tauri.conf.json | 6 ++-- src/about.html | 2 +- src/done.html | 12 ++++++++ src/index.html | 65 +++++++++++++++++++++------------------ src/styles.css | 15 ++++++++- 8 files changed, 85 insertions(+), 42 deletions(-) create mode 100644 src/done.html diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 3453380..041c9b8 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3178,7 +3178,7 @@ checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "rusty-slicer" -version = "0.0.1" +version = "1.0.0" dependencies = [ "lazy_static", "native-dialog", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 6d0e5d3..1732086 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rusty-slicer" -version = "0.0.1" +version = "1.0.0" description = "An app to slice your playlist into multiple files" authors = ["Ayabusa"] edition = "2021" diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 6c4fb8b..bbad7e6 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -75,13 +75,13 @@ async fn slice_button(app: tauri::AppHandle, chapter: String, fileformat: String };*/ // create the progress window - let _about_window = tauri::WindowBuilder::new( + let _progress_window = tauri::WindowBuilder::new( &app, "progress", /* the unique window label */ tauri::WindowUrl::App("progress.html".into()) ).build().expect("failed to create progress window"); - _about_window.set_title("Slicing progress").unwrap(); - _about_window.set_size(Size::Physical(PhysicalSize { width: 400, height: 100 })).unwrap(); + _progress_window.set_title("Slicing progress").unwrap(); + _progress_window.set_size(Size::Physical(PhysicalSize { width: 400, height: 100 })).unwrap(); for i in 0..time_codes.len(){ let args: Vec; @@ -91,7 +91,9 @@ async fn slice_button(app: tauri::AppHandle, chapter: String, fileformat: String output_file.set_extension(&fileformat); if i+1
-

Rusty Slicer V0.0.1

+

Rusty Slicer V1.0.0

Credit

diff --git a/src/done.html b/src/done.html new file mode 100644 index 0000000..9282616 --- /dev/null +++ b/src/done.html @@ -0,0 +1,12 @@ + + + + + + + Rusty Slicer + + + +

Finished slicing :D

+ \ No newline at end of file diff --git a/src/index.html b/src/index.html index 4b17d47..0bf8cf8 100644 --- a/src/index.html +++ b/src/index.html @@ -16,47 +16,52 @@

Welcome to the Rusty slicer!

-
-
-

Input file

-

no location choosen

-
- -
-
-

Chapter list (timecode - song name)

- -

-
- -
-
-

Output folder

-

no location choosen

+

- -
-
-

output type

- -
+
+
+
+

Input file

+

no location choosen

+
+ +
- +
+
+

Output folder

+

no location choosen

+
+ +
+ +
+

output type

+ +
+

+ +
+