Simple hook for when the backend is ready
This commit is contained in:
@ -1,37 +1,17 @@
|
||||
<script setup>
|
||||
import i18n from "@/i18n.js"
|
||||
import {ref} from 'vue'
|
||||
const cursus=[
|
||||
{
|
||||
"id": 12,
|
||||
"name": "Math pour l'info",
|
||||
"credits": 11,
|
||||
"faculty": "science",
|
||||
"teacher": 42,
|
||||
"Assistants": []},
|
||||
{
|
||||
"id": 42,
|
||||
"name": "Operating Systems",
|
||||
"credits": 8,
|
||||
"faculty": "science",
|
||||
"teacher": 62,
|
||||
"Assistants": []},
|
||||
{
|
||||
"id": 52,
|
||||
"name": "Fonctionnement des ordinateurs",
|
||||
"credits": 11,
|
||||
"faculty": "science",
|
||||
"teacher": 59,
|
||||
"Assistants": []},
|
||||
import { getCourses } from "@/rest/courses.js"
|
||||
import { getTeachers } from "@/rest/Users.js"
|
||||
|
||||
]
|
||||
const cursus = await getCourses()
|
||||
|
||||
const profList=[42,45,62,84,59]
|
||||
const profList = getTeachers()
|
||||
|
||||
const createMod = ref(false)
|
||||
const deleteMod = ref(false)
|
||||
|
||||
const editElementID = ref("");
|
||||
const editElementID = ref("")
|
||||
|
||||
function editItem(id){
|
||||
editElementID = id;
|
||||
|
Reference in New Issue
Block a user