From 64ca197a09ff86279b3a48ea93ef739231da675a Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Fri, 3 Oct 2025 17:47:49 +0800 Subject: [PATCH] Updated main page --- src/pages/MainPage/Main.tsx | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/src/pages/MainPage/Main.tsx b/src/pages/MainPage/Main.tsx index 3395366..021edb7 100644 --- a/src/pages/MainPage/Main.tsx +++ b/src/pages/MainPage/Main.tsx @@ -5,8 +5,10 @@ import { Tabs } from '@kobalte/core/tabs' import { ofetch } from 'ofetch' import { onMount, createSignal } from 'solid-js' import dayjs from 'dayjs' -import { checkConnection } from '../../utils/functions' +import { checkConnection, createPdf } from '../../utils/functions' import { FaSolidThumbsUp } from 'solid-icons/fa' +// @ts-ignore +// import * as openssl from 'openssl-nodejs' const API = import.meta.env.VITE_BACKEND const PESO = import.meta.env.VITE_PESO @@ -160,6 +162,10 @@ export default () => { await load() } + const openPDF = () => { + createPdf() + } + onMount(async () => { await load() }) @@ -238,7 +244,7 @@ export default () => { -

List of Ready to Approve and Sign Electrical Order of Payments

+

List of Ready to Approve and Sign Electrical Order of Payments

@@ -306,7 +312,7 @@ export default () => { - To cancel click anywhere + Click anywhere to cancel @@ -365,6 +371,28 @@ export default () => { + +
setConnected(true)}> + + + + + +

Connection Error

+
+
+ + +

{errorMessage()}

+
+ + + Click anywhere to close + +
+
+
+
) }