From 3f0f1b8a1202ef13263611ca8bb97b0535ece5da Mon Sep 17 00:00:00 2001 From: SinusFox <61253950+SinusFox@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:23:53 +0200 Subject: [PATCH] Design fixes (#32) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Initial Push Inititial project state * Static demo version * static demo site - added variables a * first_implementation * Updated UI, Improved Style to be more "Reactly", added Functionality * add parsing functions * change folder * Import/Export Prototype * Adding "reactjs-popup" to package,json * Adding GLPK source * Rough implementation of solver + example * Show solution in output * example 2 + popup lib * removing import button This feature won't be needed in this state of the project and might come back later. Right now it serves no functional purpose. * Removing "Popout" button This feature won't be needed in this state of the project and might come back later. Right now it serves no functional purpose. * Updating Logs Now the site displays all logs created with customLog(STRING). Logs can be cleared with customLogClear(); * Adding walltime Can be called using: Start: function walltimeStart() { returns Date.now(); Stop: function walltimeStopAndPrint(startpoint: number) { Add startpoint as argument. It prints the elapsed time using customLog() * Adding duals ouput * Adding glpk.js package required dependency * adding LP format export and fixing a few errors * fixing further errors * adding automatic build * Moving files to correct folders * Update nextjs.yml * Updating README and .gitignore README: - added installation instructions - added troubleshooting gitignore: - skipping Writerside and .idea folders * Update LICENCE.txt We are required to use the same license. See https://github.com/hgourvest/node-glpk/blob/master/LICENSE * Updating icon * Adding RegEx input checks and updating text box explanations * Update README.md Updating license info Signed-off-by: SinusFox <61253950+SinusFox@users.noreply.github.com> * Deleting license to recreate proper license * Update layout.tsx fixing typo Signed-off-by: SinusFox <61253950+SinusFox@users.noreply.github.com> * Fixing word issue English has some false friends... like the German "Enter" is actually return in English. * Updatint License * Fixing design issue and updating license link * Fixing typo in log * Fixing white mode * adding translations 1/2 UI Translations Coming in 2/2: Output translations * adding output translations * adding minimize button * adding unit test for rendering home page * fixing maxmin on lp export * Update .gitignore * Update .gitignore * Update scripts.ts * Update scripts.ts * Update README.md * adding tests * Adding MPS Export * Updating language file * Updating Deployment Structure/GitHub Actions * Update nextjsbuildonly.yml * design fix --------- Signed-off-by: SinusFox <61253950+SinusFox@users.noreply.github.com> Co-authored-by: moebiusl Co-authored-by: Marcel Pöppe --- src/app/globals.css | 8 ++++++-- src/app/scripts.ts | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index c7a9fd3..790cffc 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -160,11 +160,13 @@ body { } .dropdown-custom { - width: 20%; + width: 150px; background-color: black; color: white; border: none; padding: 10px; + border-radius: 20px; + margin: 10px; font-size: 16px; cursor: pointer; } @@ -177,8 +179,10 @@ body { width: 150px; background-color: black; color: white; - border: none; + border: 2px solid #5353535c; padding: 10px; + border-radius: 20px; + margin: 10px; font-size: 16px; cursor: pointer; } diff --git a/src/app/scripts.ts b/src/app/scripts.ts index a39ebc4..4b3f4e0 100644 --- a/src/app/scripts.ts +++ b/src/app/scripts.ts @@ -64,6 +64,7 @@ function walltimeStart() { export function isInputValidRegex(obj: string | undefined, subj: string | undefined, bounds: string | undefined, vars: string | undefined): boolean { customLog("input_checks_start"); + customLog(""); // standard case: input is undefined - invalid if (obj === undefined || obj === null || subj === undefined || subj === null || bounds === undefined || bounds === null || vars === undefined || vars === null) {