04be659d6b
Add routes for modules, users, notes import, recap, and islands edit. Update middleware to filter pages based on user role. feat(admin): add modal for assigning teaching, replace delete icon with SVG refactor(server): rename port variable to uppercase and add env support feat(admin): add enseignants, users, filtering and role colors refactor(AdminRoles): improve role UI and add permission mapping feat(admin-users): add role colors, role filter, and modal for creating users feat(admin): add EditModule component for module editing feat(admin): add EditUser page for editing users and managing enseignements feat(promo-select): display id and name in options for promo dropdown feat: add edit module/user routes, inline coeff editing, UI tweaks refactor: UI – icons, modal overlay, grid, subtitles, import margin
24 lines
601 B
TypeScript
24 lines
601 B
TypeScript
import {
|
|
getPartialsConfig,
|
|
makePartials,
|
|
} from "$root/defaults/makePartials.tsx";
|
|
import { FreshContext } from "$fresh/server.ts";
|
|
import { State } from "$root/defaults/interfaces.ts";
|
|
import ImportNotes from "../../(_islands)/ImportNotes.tsx";
|
|
|
|
// deno-lint-ignore require-await
|
|
async function ImportNotesPage(
|
|
_request: Request,
|
|
_context: FreshContext<State>,
|
|
) {
|
|
return (
|
|
<div class="page-content">
|
|
<h2 class="page-title">Importer des Notes</h2>
|
|
<ImportNotes />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export const config = getPartialsConfig();
|
|
export default makePartials(ImportNotesPage);
|