mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Merge branch 'feature/ui-test' into 'develop'
Feature/ui test See merge request proj-wise2526-video2document/video2document!48
This commit is contained in:
+12
-17
@@ -33,7 +33,6 @@ uploadContainer.addEventListener("drop", (e) => {
|
|||||||
|
|
||||||
window.addEventListener('load', async (e) => {
|
window.addEventListener('load', async (e) => {
|
||||||
try {
|
try {
|
||||||
console.log("test");
|
|
||||||
loadLanguageOptions();
|
loadLanguageOptions();
|
||||||
const value = await window.onStartup.getModuleNames();
|
const value = await window.onStartup.getModuleNames();
|
||||||
loadAiOptions(value.ai_modules);
|
loadAiOptions(value.ai_modules);
|
||||||
@@ -117,7 +116,7 @@ docFormat.addEventListener("change", (e) =>{
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
docFormatSummary1.addEventListener("change", (e) =>{
|
docFormatSummary1.addEventListener("change", (e) =>{
|
||||||
try {
|
try {
|
||||||
if(docFormatSummary1.checked){
|
if(docFormatSummary1.checked){
|
||||||
@@ -129,7 +128,7 @@ docFormatSummary1.addEventListener("change", (e) =>{
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
docFormatSummary2.addEventListener("change", (e) =>{
|
docFormatSummary2.addEventListener("change", (e) =>{
|
||||||
try {
|
try {
|
||||||
if(docFormatSummary2.checked){
|
if(docFormatSummary2.checked){
|
||||||
@@ -141,7 +140,7 @@ docFormatSummary2.addEventListener("change", (e) =>{
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
docFormatSummary3.addEventListener("change", (e) =>{
|
docFormatSummary3.addEventListener("change", (e) =>{
|
||||||
try {
|
try {
|
||||||
if(docFormatSummary3.checked){
|
if(docFormatSummary3.checked){
|
||||||
@@ -153,7 +152,7 @@ docFormatSummary3.addEventListener("change", (e) =>{
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
docFormatCustom.addEventListener("change", (e) =>{
|
docFormatCustom.addEventListener("change", (e) =>{
|
||||||
try {
|
try {
|
||||||
if(docFormatCustom.checked){
|
if(docFormatCustom.checked){
|
||||||
@@ -165,7 +164,7 @@ docFormatCustom.addEventListener("change", (e) =>{
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
//Speaker change listener
|
//Speaker change listener
|
||||||
cur_speaker.addEventListener("change", (e) =>{
|
cur_speaker.addEventListener("change", (e) =>{
|
||||||
@@ -174,16 +173,12 @@ cur_speaker.addEventListener("change", (e) =>{
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
window.electron.speakerAudios((event, arg) => {
|
window.audios.speakerAudios((event, arg) => {
|
||||||
try {
|
|
||||||
setSpeakerAudiosValue(arg);
|
setSpeakerAudiosValue(arg);
|
||||||
loadSpeakerOptions(arg);
|
loadSpeakerOptions(arg);
|
||||||
} catch (error) {
|
});
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
window.electron.progress((event, arg) => {
|
window.electron.progress((event, arg) => {
|
||||||
if(arg.curstep == 1){
|
if(arg.curstep == 1){
|
||||||
@@ -207,7 +202,7 @@ function setCircleOne(){
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
function setCircleZwo(){
|
function setCircleZwo(){
|
||||||
try {
|
try {
|
||||||
if(document.getElementById("box2").style.backgroundColor == "green"){
|
if(document.getElementById("box2").style.backgroundColor == "green"){
|
||||||
@@ -219,7 +214,7 @@ function setCircleZwo(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
function setCircleThree(){
|
function setCircleThree(){
|
||||||
try {
|
try {
|
||||||
if(document.getElementById("box3").style.backgroundColor == "green"){
|
if(document.getElementById("box3").style.backgroundColor == "green"){
|
||||||
@@ -231,7 +226,7 @@ function setCircleThree(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
function setCircleFour(){
|
function setCircleFour(){
|
||||||
try {
|
try {
|
||||||
if(document.getElementById("box4").style.backgroundColor == "green"){
|
if(document.getElementById("box4").style.backgroundColor == "green"){
|
||||||
@@ -242,7 +237,7 @@ function setCircleFour(){
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -49,15 +49,15 @@ function checkBoxes() {
|
|||||||
const sendingPackage = {
|
const sendingPackage = {
|
||||||
"video": {
|
"video": {
|
||||||
"module":"extraction-video-to-audio",
|
"module":"extraction-video-to-audio",
|
||||||
"inputVideoPath": pathTest,
|
"inputVideoPath": pathTest
|
||||||
"outputType": outputType.value
|
|
||||||
},
|
},
|
||||||
"transcription": {
|
"transcription": {
|
||||||
"module": transcriptionType.value
|
"module": transcriptionType.value
|
||||||
},
|
},
|
||||||
"document": {
|
"document": {
|
||||||
"module":aiType.value,
|
"module":aiType.value,
|
||||||
"styles": selectedStyles
|
"styles": selectedStyles,
|
||||||
|
"outputType": outputType.value
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
window.submit.submit(sendingPackage)
|
window.submit.submit(sendingPackage)
|
||||||
|
|||||||
Reference in New Issue
Block a user