Update and clean code

This commit is contained in:
schooltechx 2023-04-04 12:39:11 +07:00
parent 3edde43c25
commit 1c9b5877d6
29 changed files with 1179 additions and 838 deletions

View file

@ -1,8 +1,8 @@
import {getExams} from "$lib/data/qualify-exam"
import {getQualifyExams} from "$lib/data/info"
import type { PageServerLoad } from './$types'
export const load: PageServerLoad = async () => {
const exams = await getExams()
const exams = await getQualifyExams()
return {exams}
}

View file

@ -4,10 +4,11 @@
const exams = data.exams
</script>
<h1 class="text-4xl">การสอบคัดเลือก</h1>
<h1 class="p-5">การสอบคัดเลือก</h1>
<h1 class="text-2xl">รายการสอบ</h1>
<div class="overflow-x-auto">
<div class="p-5">
<h2>รายการสอบ</h2>
<table class="table table-compact w-full">
<thead>
<tr>
@ -25,4 +26,4 @@
{/each}
</tbody>
</table>
</div>
</div>