diff --git a/.env b/.env
index 09cacb8..8075f55 100644
--- a/.env
+++ b/.env
@@ -1,5 +1,4 @@
-# VITE_BACKEND=http://localhost:4320/api/
-VITE_BACKEND=http://192.168.7.160:8080/esign-server/api/
+VITE_BACKEND=http://localhost:4320/api/
VITE_HEAD=ARCH. KHASHAYAR L. TOGHYANI
VITE_PESO=₱
VITE_HEADID=276
\ No newline at end of file
diff --git a/backend/main.go b/backend/main.go
index c1c0549..67bb890 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -12,7 +12,7 @@ import (
// "errors"
// "os"
- // "github.com/gin-contrib/cors"
+ "github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
_ "github.com/go-sql-driver/mysql"
)
@@ -50,14 +50,13 @@ func connect() {
// }))
//SERVER
- // router.Use(cors.New(cors.Config{
- // // AllowOrigins: []string{"http://192.168.7.160:8080/esign"},
- // AllowAllOrigins: true,
- // AllowMethods: []string{"GET", "POST"},
- // AllowHeaders: []string{"Origin", "OCBO-ShieldConnection"},
- // ExposeHeaders: []string{"Content-Length"},
- // AllowCredentials: true,
- // }))
+ router.Use(cors.New(cors.Config{
+ AllowOrigins: []string{"http://192.168.7.160:8080/esign"},
+ AllowMethods: []string{"GET", "POST"},
+ AllowHeaders: []string{"Origin", "OCBO-ShieldConnection"},
+ ExposeHeaders: []string{"Content-Length"},
+ AllowCredentials: true,
+ }))
router.StaticFile("/", "static/index.html")
diff --git a/index.html b/index.html
index ad43fc4..1c9c52c 100644
--- a/index.html
+++ b/index.html
@@ -12,7 +12,7 @@
-
+
OCBO e-Sign
diff --git a/package.json b/package.json
index ce30c8b..41c894b 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,6 @@
"preview": "vite preview"
},
"dependencies": {
- "@fontsource-variable/roboto": "^5.2.8",
"@kobalte/core": "^0.13.11",
"@solidjs-use/integrations": "^2.3.0",
"@solidjs/router": "^0.15.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f65f878..50c3ce6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,9 +8,6 @@ importers:
.:
dependencies:
- '@fontsource-variable/roboto':
- specifier: ^5.2.8
- version: 5.2.8
'@kobalte/core':
specifier: ^0.13.11
version: 0.13.11(solid-js@1.9.9)
@@ -357,9 +354,6 @@ packages:
'@floating-ui/utils@0.2.10':
resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}
- '@fontsource-variable/roboto@5.2.8':
- resolution: {integrity: sha512-UBhCzUXpkZZqBhTnkIhkM3USlSuu2Da6k4mjiRaEnZtvMOMWcQVOV6oV2cY00plUuJZrsnTRtt3ZRRJF09gV5w==}
-
'@img/colour@1.0.0':
resolution: {integrity: sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==}
engines: {node: '>=18'}
@@ -2044,8 +2038,6 @@ snapshots:
'@floating-ui/utils@0.2.10': {}
- '@fontsource-variable/roboto@5.2.8': {}
-
'@img/colour@1.0.0': {}
'@img/sharp-darwin-arm64@0.34.4':
diff --git a/src/styles/fonts.sass b/src/styles/fonts.sass
index 2b5cc0a..4fa1b67 100644
--- a/src/styles/fonts.sass
+++ b/src/styles/fonts.sass
@@ -4,20 +4,12 @@ $Montserrat: Montserrat, sans-serif
$OpenSans: 'Open Sans', sans-serif
$PublicSans: 'Public Sans', sans-serif
-// @font-face
-// font-family: 'Roboto'
-// font-style: normal
-// font-display: swap
-// font-weight: 100 900
-// src: url(https://cdn.jsdelivr.net/fontsource/fonts/roboto:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
-// unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
-
@font-face
font-family: 'Roboto'
font-style: normal
font-display: swap
font-weight: 100 900
- src: url(@fontsource-variable/roboto/files/roboto-latin-wght-normal.woff2) format('woff2-variations')
+ src: url(https://cdn.jsdelivr.net/fontsource/fonts/roboto:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
@font-face