This commit is contained in:
Patrick Alvin Alcala 2025-09-24 17:00:53 +08:00
parent 728d77bc14
commit ff54944024
2 changed files with 19 additions and 1 deletions

View file

@ -2,7 +2,6 @@
@use '/src/styles/breakpoint.sass' as views @use '/src/styles/breakpoint.sass' as views
h1 h1
font-size: 3.25rem
color: vars.$textColor color: vars.$textColor
@media only screen and (max-width: views.$mobile) @media only screen and (max-width: views.$mobile)

View file

@ -1,7 +1,26 @@
import './Index.sass' import './Index.sass'
import { Button, Page, Padding, Display, Row, Logo, Column, Box } from '../../components' import { Button, Page, Padding, Display, Row, Logo, Column, Box } from '../../components'
import { onMount } from 'solid-js'
import { ofetch } from 'ofetch'
const API = 'http://localhost:4320/api/'
let assessorsNameList: string[]
export default () => { export default () => {
const getAssessors = async () => {
try {
const assessors = await ofetch(API + 'get-list-assessors', { parseResponse: JSON.parse })
assessorsNameList = [...assessors.result2]
} catch (error) {
console.error(error)
}
sessionStorage.setItem('assessors', JSON.stringify([...assessorsNameList]))
}
onMount(async () => {
await getAssessors()
})
return ( return (
<> <>
<Page> <Page>