-
+
-
+
-
+
-
+
-
+
diff --git a/electron/main/script.js b/electron/main/script.js
index 6500dbc..2fede18 100644
--- a/electron/main/script.js
+++ b/electron/main/script.js
@@ -27,15 +27,13 @@ function checkBoxes() {
if(testEndings.some(e => pathToLower.endsWith(e))){
//assembly of the json for the main
- const selectedStyles = [checkedCounter];
- var iter = 0;
- checkboxes.forEach(function(checkbox){
- if(checkbox.checked){
- console.log(checkbox.value);
- selectedStyles[iter] = {iter: checkbox.value};
- iter++;
- }
- });
+ var typeCheckbox;
+ if(document.getElementById("docFormat").checked) typeCheckbox = document.getElementById("docFormat").value;
+ if(document.getElementById("docFormatSummary1").checked) typeCheckbox = document.getElementById("docFormatSummary1").value;
+ if(document.getElementById("docFormatSummary2").checked) typeCheckbox = document.getElementById("docFormatSummary2").value;
+ if(document.getElementById("docFormatSummary3").checked) typeCheckbox = document.getElementById("docFormatSummary3").value;
+ if(document.getElementById("docFormatCustom").checked) typeCheckbox = document.getElementById("docFormatCustom").value;
+
document.getElementById("testy").style.visibility = "visible"
document.getElementById("box1").style.backgroundColor = "red";
document.getElementById("box2").style.backgroundColor = "red";
@@ -55,7 +53,7 @@ function checkBoxes() {
},
"document": {
"module":aiType.value,
- "styles": selectedStyles,
+ "type": typeCheckbox,
"outputType": outputType.value
}
};
diff --git a/electron/main/style.css b/electron/main/style.css
index cc4eed9..19edf7d 100644
--- a/electron/main/style.css
+++ b/electron/main/style.css
@@ -177,10 +177,11 @@ input[type="file"] {
.submit-btn {
display: flex;
justify-content: center;
+ align-items: center;
padding: 10px 20px;
- margin-left: 80px;
+ margin-left: 300px;
margin-top: 30px;
- margin-bottom: 10px;
+ margin-bottom: 70px;
background-color: #007BFF;
color: white;
border: none;
@@ -420,7 +421,6 @@ li {
border-radius: 5px;
background-color: #1C3B69;
margin: 0;
- display: -ms-grid;
display: grid;
grid-template-rows: 1fr repeat(4, 0.5fr);
grid-row-gap: 25px;
@@ -436,19 +436,21 @@ li {
-webkit-transition: all 0.3s ease;
}
-.menu1 li:first-child {
+.menu1 a:first-child {
margin-top: 30px;
}
-.menu1 li:last-child {
+.menu1 a:last-child {
margin-bottom: 30px;
}
.li1 {
+ color: #fff;
width: 100%;
margin: 0;
- padding: 10px 0;
+ padding: 10px 0px;
font: 700 20px 'Oswald', sans-serif;
+ text-decoration: none;
}
.li1:hover {
diff --git a/main.js b/main.js
index 6be3875..fe5ba23 100644
--- a/main.js
+++ b/main.js
@@ -131,11 +131,21 @@ electron.ipcMain.on("file_submit", async (event, args) => {
try {
globalArgs = args
let curstep = 0
- let totalsteps = 3 + args.document.styles.length
-
- if(args.document.styles.length == 0)
- throw new Error("At least one Document Style needed");
-
+ let totalsteps = 4
+
+ const TEMPLATE_MAP = {
+ "followup-report": "followup_report.txt",
+ "agenda": "agenda.txt",
+ "result-protocol": "result_protocol.txt",
+ "sprint-planning": "sprint_planning_note.txt",
+ "custom": "custom_document.txt"
+ };
+
+ const templateFile = TEMPLATE_MAP[args.document.type];
+
+ if (!templateFile) {
+ throw new Error("Unknown document type: " + args.document.type);
+ }
console.log(args);
let audiopath = ""
@@ -184,10 +194,10 @@ electron.ipcMain.on("file_submit", async (event, args) => {
console.log("\n\n Running the LLM module");
// TODO implement documentation module
// This code handles the Text to Document processing module call
- for (let i = 0; i < args.document.styles.length; i++) {
- console.log(`\n\n Running the LLM for Document Style ${i+1}`);
- await mapFunctions.get("module-handler").function(args.document.module, {inputTranscriptPath: transcriptpath, documentTypePath: "./storage/documentType/standard_meeting_report.txt", language: "en"}).then(resp => {
+ console.log(`\n\n Running the LLM for Document Style ${args.document.type}`);
+
+ await mapFunctions.get("module-handler").function(args.document.module, { inputTranscriptPath: transcriptpath, documentTypePath: "./storage/documentType/" + templateFile, language: "en" }).then(resp => {
console.log(resp);
globalFinalHtmlPath = resp
curstep++
@@ -262,4 +272,4 @@ let q1 = {
{name:"abc", displayname:"ABC"},
{name:"qeg", displayname:"aqghegahu"}
]
-}
+}
\ No newline at end of file