Minor tweaks

main
Antonio De Lucreziis 2 years ago
parent 8823418daa
commit 0c2009b659

@ -17,7 +17,7 @@ export const MainContent = () => {
login: Login,
admin: AdminPanel,
apiKeys: ApiKeys,
}[route.id] || (() => <>Error</>)
}[route.id] || (() => <>Still nothing here</>)
return (
<div class={`main-content route-${changeCase('camel', 'dash', route.id)}`}>

@ -43,6 +43,9 @@ const App = () => {
if (id !== 'login' && user !== 'admin') {
location.href = '/login'
}
if (id === 'login' && user === 'admin') {
location.href = '/'
}
})
const [toasts, setToasts] = useState([])

@ -5,6 +5,7 @@ go 1.18
require (
github.com/gofiber/fiber/v2 v2.34.1
github.com/joho/godotenv v1.4.0
golang.org/x/exp v0.0.0-20220613132600-b0d781184e0d
)
require (
@ -13,6 +14,5 @@ require (
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.37.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect
golang.org/x/exp v0.0.0-20220613132600-b0d781184e0d // indirect
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 // indirect
)

Loading…
Cancel
Save