d3de5c29e7
feat(notes): add XLSX import island and admin route feat(upload): add drag‑and‑drop upload, template download, UI tweaks
27 lines
736 B
TypeScript
27 lines
736 B
TypeScript
import UploadStudents from "../../(_islands)/UploadStudents.tsx";
|
|
import {
|
|
getPartialsConfig,
|
|
makePartials,
|
|
} from "$root/defaults/makePartials.tsx";
|
|
import { FreshContext } from "$fresh/server.ts";
|
|
import { State } from "$root/defaults/interfaces.ts";
|
|
|
|
// deno-lint-ignore require-await
|
|
async function Students(_request: Request, _context: FreshContext<State>) {
|
|
return (
|
|
<div class="page-content">
|
|
<h2 class="page-title">Importer des Élèves</h2>
|
|
<p
|
|
class="upload-format"
|
|
style="margin-bottom: 1.25rem"
|
|
>
|
|
POST /students/api/students/import-csv
|
|
</p>
|
|
<UploadStudents />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export const config = getPartialsConfig();
|
|
export default makePartials(Students);
|