Compare commits
4 commits
321109e064
...
af973a78d4
| Author | SHA1 | Date | |
|---|---|---|---|
| af973a78d4 | |||
| bf5a04dbc3 | |||
| 841ea74d03 | |||
| 0a81bb8ea7 |
6 changed files with 29 additions and 7 deletions
|
|
@ -61,7 +61,8 @@ func connect() {
|
|||
|
||||
//SERVER
|
||||
// router.Use(cors.New(cors.Config{
|
||||
// AllowAllOrigins: true,
|
||||
// //AllowAllOrigins: true,
|
||||
// AllowOrigins: []string{"https://ocboapps.davaocity.gov.ph"},
|
||||
// AllowMethods: []string{"GET", "POST"},
|
||||
// AllowHeaders: []string{"Origin"},
|
||||
// ExposeHeaders: []string{"Content-Length"},
|
||||
|
|
@ -69,6 +70,8 @@ func connect() {
|
|||
// }))
|
||||
|
||||
router.StaticFile("/", "static/index.html")
|
||||
router.StaticFile("/esign.webp", "static/esign.webp")
|
||||
router.StaticFile("/favicon.png", "static/favicon.png")
|
||||
|
||||
// shield := "inquiry"
|
||||
|
||||
|
|
@ -82,7 +85,7 @@ func connect() {
|
|||
c.Writer.Header().Set("X-Frame-Options", "DENY")
|
||||
c.Writer.Header().Set("X-Download-Options", "noopen")
|
||||
c.Writer.Header().Set("Referrer-Policy", "no-referrer")
|
||||
c.Writer.Header().Set("Server", "OCBO Server")
|
||||
c.Writer.Header().Set("X-Server", "OCBO Server")
|
||||
|
||||
switch method {
|
||||
case "test":
|
||||
|
|
@ -241,7 +244,7 @@ func connect() {
|
|||
headId := os.Getenv("HEADID")
|
||||
array := []string{}
|
||||
|
||||
results, err := db.Query("SELECT IFNULL(employeeid, 0) AS result FROM esign WHERE employeeid <> ?", headId)
|
||||
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)
|
||||
if err != nil {
|
||||
c.AbortWithError(http.StatusBadRequest, err)
|
||||
c.String(http.StatusBadRequest, err.Error())
|
||||
|
|
|
|||
BIN
backend/static/esign.webp
Normal file
BIN
backend/static/esign.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
BIN
backend/static/favicon.png
Normal file
BIN
backend/static/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
|
|
@ -2,24 +2,36 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="name" content="OCBO e-Sign Server" />
|
||||
<meta name="description" content="Backend application for OCBO e-Sign" />
|
||||
<meta name="author" content="Patrick Alvin Alcala" />
|
||||
<meta name="developer" content="Patrick Alvin Alcala" />
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
<title>OCBO e-Sign Server</title>
|
||||
<style>
|
||||
body {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
justify-content: start;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
background-color: #16212c;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 200px;
|
||||
height: auto;
|
||||
padding: 2rem 0 0 0;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 20px 0;
|
||||
color: rgba(255, 255, 255, 0.848);
|
||||
color: rgba(240, 254, 233, 0.905);
|
||||
font-size: 3.25rem;
|
||||
}
|
||||
|
||||
|
|
@ -27,11 +39,16 @@
|
|||
.title {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<img class="logo" src="/esign.webp" alt="esign logo" />
|
||||
<h1 class="title">OCBO e-Sign Server is running</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<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:type" content="website" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
<title>OCBO e-Sign</title>
|
||||
</head>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export { default as checkConnection } from './checkConnection'
|
||||
export { default as createPdf } from './createPdf'
|
||||
export { default as postApi } from './postApi'
|
||||
export { default as getApi } from './getApi'
|
||||
// export { default as generateFavicon } from './generateFavicon'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue