fix teacher, parent and admin pages

This commit is contained in:
root
2026-04-25 00:00:10 -04:00
parent 7fe34dde0d
commit 3e77fc92c7
275 changed files with 46412 additions and 3325 deletions
+17
View File
@@ -0,0 +1,17 @@
/**
* Late slips preview (legacy CI slips/preview_list).
*/
import { apiFetch } from './http'
export type SlipPreviewRow = Record<string, unknown>
export async function fetchSlipPreviewList(params?: {
school_year?: string
semester?: string
}): Promise<{ rows?: SlipPreviewRow[]; school_year?: string; semester?: string }> {
const qs = new URLSearchParams()
if (params?.school_year) qs.set('school_year', params.school_year)
if (params?.semester) qs.set('semester', params.semester)
const suffix = qs.toString() ? `?${qs}` : ''
return apiFetch(`/api/v1/administrator/slips/preview${suffix}`)
}