mirror of
https://github.com/ayabusa/Rusty-slicer.git
synced 2025-06-14 02:14:10 +00:00
fixed multiple bugs, and made a few tweaks
This commit is contained in:
@ -27,9 +27,11 @@ const unlistenerror = await listen('backend_error', (event) => {
|
||||
document.getElementById("folderLocation").innerHTML = "please select an output folder"
|
||||
console.log("please select an output folder");
|
||||
break;
|
||||
case "formating_issue":
|
||||
document.getElementById("errorLabel").innerHTML = "error: wrong chapter format. use 0:13 - my title"
|
||||
console.log("error: wrong chapter format. use \n0:00 - first song title \n2:13 - second song title \n3:45 - third song title \n...");
|
||||
break;
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// listen for f0rmating issue from rust backend
|
||||
const unlistenformattinginssie = await listen('formatting_error', (event) => {
|
||||
document.getElementById("errorLabel").innerHTML = "error: wrong chapter format. "+ event.payload.message;
|
||||
console.log("error: wrong chapter format. \n"+event.payload.message+"\nuse \n0:00 - first song title \n2:13 - second song title \n3:45 - third song title \n...");z
|
||||
})
|
||||
|
@ -18,17 +18,17 @@
|
||||
<h3>Welcome to the Rusty slicer! <img src="assets/cat-vibe-vibe-cat.gif"></h1>
|
||||
<div class="select-file">
|
||||
<div>
|
||||
<p><b> Input file </b></p>
|
||||
<h4><b> Input file </b></h4>
|
||||
<p id="fileLocation"> no location choosen </p>
|
||||
</div>
|
||||
<button id="fileButton">choose file 📂</button>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<textarea id="chapterList" rows="30">
|
||||
0:00 - my first song
|
||||
<h4><b> Chapter list (timecode - song name) </b></h4>
|
||||
<textarea id="chapterList" rows="30" cols="10000" placeholder="0:00 - my first song
|
||||
3:30 - another one
|
||||
13:37 - one more time - Daft punk</textarea>
|
||||
13:37 - one more time - Daft punk"></textarea>
|
||||
<p id="errorLabel" style="color: red;"></p>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user