From 8c39997a5a7609c0413adb1a3167b6a06c361722 Mon Sep 17 00:00:00 2001 From: SinusFox <61253950+SinusFox@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:22:00 +0200 Subject: [PATCH] adding LP format export and fixing a few errors --- src/app/modules.tsx | 51 ++------------ src/app/page.tsx | 25 ++++--- src/app/scripts.ts | 151 +++++++++++++++++++++++++++++++++++++++--- src/pages/parseLP.ts | 4 ++ src/pages/parseMIP.ts | 5 ++ 5 files changed, 172 insertions(+), 64 deletions(-) diff --git a/src/app/modules.tsx b/src/app/modules.tsx index 6b5a122..8a6eb43 100644 --- a/src/app/modules.tsx +++ b/src/app/modules.tsx @@ -1,4 +1,5 @@ import { MouseEventHandler } from "react"; +import React from 'react'; import Popup from "reactjs-popup"; export function Box({title, placeholder, id}: @@ -35,53 +36,13 @@ export function Button({title, className, onClickFunc}: ); } -export function Popup_Button({title, className}: - {title:string; className:string|undefined;}) { - - return( - - {title} - } - position="right center" - modal - nested> - {close => ( -
- -
{title}
-
- This is a popup example. -
-
- -
-
- )} -
- - - ); -} - -export function Output({id, text}: - {id:string; text:string}) { - - return( +export function Output({ id, text }: { id: string; text: string }) { + return (
-
- Output -
+
Output
-

+

+ {text}

diff --git a/src/app/page.tsx b/src/app/page.tsx index 530df20..9f1d499 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,7 @@ 'use client' -import { Box, Button, Output, Popup_Button } from "./modules.tsx"; -import { calculate_click, import_click, export_click } from "./scripts.ts" +import { Box, Button, Output } from "./modules"; +import { calculate_click, downloadLP, import_click } from "./scripts" export default function Home() { return ( @@ -18,9 +18,17 @@ export default function Home() { + title={"Objective"} + placeholder={"Objective"} + id="objective"/> + + */} - +