diff --git a/.env b/.env index 7f0e68e..4801c14 100644 --- a/.env +++ b/.env @@ -1,2 +1 @@ -VITE_BACKEND=http://localhost:4320/api/ -VITE_HEAD=ARCH. KHASHAYAR L. TOGHYANI \ No newline at end of file +VITE_BACKEND=http://localhost:4320/api/ \ No newline at end of file diff --git a/backend/main.go b/backend/main.go index 8757460..6b04b54 100644 --- a/backend/main.go +++ b/backend/main.go @@ -465,21 +465,6 @@ 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, - }) } }) diff --git a/src/components/Box/Box.tsx b/src/components/Box/Box.tsx index b641bcd..80cf5a4 100644 --- a/src/components/Box/Box.tsx +++ b/src/components/Box/Box.tsx @@ -7,14 +7,13 @@ interface Props { children: JSXElement curved?: boolean padding?: number - background?: string } export default (props: Props) => { const boxClass = createMemo(() => (props.curved ? 'curvedbox' : 'box')) return ( -
+
{props.children}
) diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 0bb57ef..9282a48 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -10,8 +10,6 @@ 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']) => { @@ -36,14 +34,14 @@ export default (props: Props) => { - - @@ -55,26 +53,26 @@ export default (props: Props) => { - - - -