From e70ed83de0403554e392e25d2b8af5fffa4503f0 Mon Sep 17 00:00:00 2001 From: Jonathan Ma Date: Mon, 15 Apr 2024 14:23:35 -0400 Subject: [PATCH] add some extra fields for requests --- README.md | 4 +- main.js | 16 - renderer/item_main.html | 1182 ++++++++++++++++++++------------------- renderer/item_main.js | 49 +- 4 files changed, 646 insertions(+), 605 deletions(-) diff --git a/README.md b/README.md index db5ab71..6511d0a 100644 --- a/README.md +++ b/README.md @@ -44,4 +44,6 @@ When linking css to an html file, use style.css as the only stylesheet. If you m Use ```npm start``` to open the application (make sure you've installed all dependencies using ```npm install``` at least once). Once you make any changes, hit ```ctrl+r``` in the app to refresh the page. To restart the app, enter ```rs``` in the terminal. Opening the html file in a browser directly will prevent the JS from loading. App Icon -Repair icons created by Ayub Irawan - Flaticon \ No newline at end of file +Repair icons created by Ayub Irawan - Flaticon + +https://firebase.google.com/docs/app-check/web/recaptcha-provider#web-modular-api \ No newline at end of file diff --git a/main.js b/main.js index 259f1de..4cd7846 100644 --- a/main.js +++ b/main.js @@ -30,22 +30,6 @@ ipcMain.on('write-file', (event, emailData) => { console.error(`Error writing file: ${err}`); } else { shell.openPath(pathToFile) - .then(() => { - sleep(2000).then(() => { - // Delete the file after opening - fs.unlink(pathToFile, (err) => { - if (err) { - console.error(`Error deleting file: ${err}`); - } else { - console.log('File deleted successfully'); - } - }); - }, - ) - .catch((err) => { - console.error(`Error opening file: ${err}`); - }); - }); } }); }); diff --git a/renderer/item_main.html b/renderer/item_main.html index b2c117e..3e3527b 100644 --- a/renderer/item_main.html +++ b/renderer/item_main.html @@ -29,8 +29,8 @@
- +
@@ -39,8 +39,8 @@
- +
@@ -48,8 +48,8 @@
- +
@@ -89,7 +89,7 @@
-
Fields marked with "*" are compulsory
+
Fields marked with "*" are mandatory
@@ -108,7 +108,7 @@
Fields marked with "*" are compulsory
-
+
@@ -116,7 +116,7 @@
Fields marked with "*" are compulsory
-
+