Compare commits

..

No commits in common. "af973a78d4a5959bf436ada256073daecebc8fbd" and "321109e06415cd155d2999ce0612452201a8b0a9" have entirely different histories.

6 changed files with 7 additions and 29 deletions

View file

@ -61,8 +61,7 @@ func connect() {
//SERVER //SERVER
// router.Use(cors.New(cors.Config{ // router.Use(cors.New(cors.Config{
// //AllowAllOrigins: true, // AllowAllOrigins: true,
// AllowOrigins: []string{"https://ocboapps.davaocity.gov.ph"},
// AllowMethods: []string{"GET", "POST"}, // AllowMethods: []string{"GET", "POST"},
// AllowHeaders: []string{"Origin"}, // AllowHeaders: []string{"Origin"},
// ExposeHeaders: []string{"Content-Length"}, // ExposeHeaders: []string{"Content-Length"},
@ -70,8 +69,6 @@ func connect() {
// })) // }))
router.StaticFile("/", "static/index.html") router.StaticFile("/", "static/index.html")
router.StaticFile("/esign.webp", "static/esign.webp")
router.StaticFile("/favicon.png", "static/favicon.png")
// shield := "inquiry" // shield := "inquiry"
@ -85,7 +82,7 @@ func connect() {
c.Writer.Header().Set("X-Frame-Options", "DENY") c.Writer.Header().Set("X-Frame-Options", "DENY")
c.Writer.Header().Set("X-Download-Options", "noopen") c.Writer.Header().Set("X-Download-Options", "noopen")
c.Writer.Header().Set("Referrer-Policy", "no-referrer") c.Writer.Header().Set("Referrer-Policy", "no-referrer")
c.Writer.Header().Set("X-Server", "OCBO Server") c.Writer.Header().Set("Server", "OCBO Server")
switch method { switch method {
case "test": case "test":
@ -244,7 +241,7 @@ func connect() {
headId := os.Getenv("HEADID") headId := os.Getenv("HEADID")
array := []string{} array := []string{}
results, err := db.Query("SELECT IFNULL(emp.employeename, '') AS result FROM esign e LEFT JOIN employee emp ON e.employeeid = emp.employeeid WHERE e.employeeid <> ?", headId) results, err := db.Query("SELECT IFNULL(employeeid, 0) AS result FROM esign WHERE employeeid <> ?", headId)
if err != nil { if err != nil {
c.AbortWithError(http.StatusBadRequest, err) c.AbortWithError(http.StatusBadRequest, err)
c.String(http.StatusBadRequest, err.Error()) c.String(http.StatusBadRequest, err.Error())

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -2,36 +2,24 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="name" content="OCBO e-Sign Server" /> <meta name="name" content="OCBO e-Sign Server" />
<meta name="description" content="Backend application for OCBO e-Sign" /> <meta name="description" content="Backend application for OCBO e-Sign" />
<meta name="developer" content="Patrick Alvin Alcala" /> <meta name="author" content="Patrick Alvin Alcala" />
<link rel="icon" type="image/png" href="/favicon.png" />
<title>OCBO e-Sign Server</title> <title>OCBO e-Sign Server</title>
<style> <style>
body { body {
display: flex; display: flex;
gap: 20px;
flex-direction: column; flex-direction: column;
flex-wrap: wrap;
justify-content: start;
align-items: center;
align-content: center;
background-color: #16212c; background-color: #16212c;
} }
.logo {
width: 200px;
height: auto;
padding: 2rem 0 0 0;
}
.title { .title {
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
text-align: center; text-align: center;
margin: 0; margin: 0;
padding: 20px 0; padding: 20px 0;
color: rgba(240, 254, 233, 0.905); color: rgba(255, 255, 255, 0.848);
font-size: 3.25rem; font-size: 3.25rem;
} }
@ -39,16 +27,11 @@
.title { .title {
font-size: 1.25rem; font-size: 1.25rem;
} }
.logo {
width: 100px;
}
} }
</style> </style>
</head> </head>
<body> <body>
<img class="logo" src="/esign.webp" alt="esign logo" />
<h1 class="title">OCBO e-Sign Server is running</h1> <h1 class="title">OCBO e-Sign Server is running</h1>
</body> </body>
</html> </html>

View file

@ -12,7 +12,7 @@
<meta name="designer" content="Patrick Alvin Alcala" /> <meta name="designer" content="Patrick Alvin Alcala" />
<meta property="og:description" content="Digital Signature for OCBO (Office of the City Building Official)" /> <meta property="og:description" content="Digital Signature for OCBO (Office of the City Building Official)" />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<link rel="icon" type="image/png" href="/favicon.png" /> <link rel="icon" type="image/svg+xml" href="/favicon.png" />
<title>OCBO e-Sign</title> <title>OCBO e-Sign</title>
</head> </head>

View file

@ -1,5 +1,3 @@
export { default as checkConnection } from './checkConnection' export { default as checkConnection } from './checkConnection'
export { default as createPdf } from './createPdf' export { default as createPdf } from './createPdf'
export { default as postApi } from './postApi'
export { default as getApi } from './getApi'
// export { default as generateFavicon } from './generateFavicon' // export { default as generateFavicon } from './generateFavicon'