From 2f6a1572dde7aa929aabf2cd562b7065b77b93fb Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Fri, 26 Sep 2025 17:31:46 +0800 Subject: [PATCH 1/4] Updated .env --- .env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 4801c14..7f0e68e 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ -VITE_BACKEND=http://localhost:4320/api/ \ No newline at end of file +VITE_BACKEND=http://localhost:4320/api/ +VITE_HEAD=ARCH. KHASHAYAR L. TOGHYANI \ No newline at end of file From 011460a533119947ec3a0effcba6969348a1af26 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Fri, 26 Sep 2025 17:31:59 +0800 Subject: [PATCH 2/4] Added get-password --- backend/main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/backend/main.go b/backend/main.go index 6b04b54..8757460 100644 --- a/backend/main.go +++ b/backend/main.go @@ -465,6 +465,21 @@ func connect() { c.JSON(http.StatusOK, gin.H{ "result": result, }) + + case "get-password": + err := db.QueryRow("SELECT IFNULL(password, '') AS result FROM esign WHERE employeeid = ?", data).Scan(&result) + if err != nil { + if err == sql.ErrNoRows { + result = "0" + } else { + c.AbortWithError(http.StatusBadRequest, err) + c.String(http.StatusBadRequest, err.Error()) + } + + } + c.JSON(http.StatusOK, gin.H{ + "result": result, + }) } }) From ebebbee0c0a3353ad36c2b060c45e38e9b77c2f9 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Fri, 26 Sep 2025 17:32:15 +0800 Subject: [PATCH 3/4] Added option to add background --- src/components/Box/Box.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Box/Box.tsx b/src/components/Box/Box.tsx index 80cf5a4..b641bcd 100644 --- a/src/components/Box/Box.tsx +++ b/src/components/Box/Box.tsx @@ -7,13 +7,14 @@ interface Props { children: JSXElement curved?: boolean padding?: number + background?: string } export default (props: Props) => { const boxClass = createMemo(() => (props.curved ? 'curvedbox' : 'box')) return ( -
+
{props.children}
) From f91e94952d873a2e3cdd0cd8c775a0d0f06f1dc7 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Fri, 26 Sep 2025 17:32:40 +0800 Subject: [PATCH 4/4] Added width option on button component --- src/components/Button/Button.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 9282a48..0bb57ef 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -10,6 +10,8 @@ interface Props { design?: 'bu-primary' | 'bu-link' | 'bu-info' | 'bu-success' | 'bu-warning' | 'bu-danger' | 'bu-dark' | 'bu-light' | 'bu-text' | 'bu-ghost' | 'bo-primary' | 'bo-secondary' | 'bo-success' | 'bo-danger' | 'bo-warning' | 'bo-info' | 'bo-light' | 'bo-dark' | 'bo-link' submit?: boolean newtab?: boolean + width?: number + wide?: boolean } const getBorderRadius = (edge: Props['edges']) => { @@ -34,14 +36,14 @@ export default (props: Props) => { - - @@ -53,26 +55,26 @@ export default (props: Props) => { - - - -