login
This commit is contained in:
parent
ca6f676fb7
commit
e84e34d735
@ -2,6 +2,7 @@
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import i18n from '@/i18n.js'
|
import i18n from '@/i18n.js'
|
||||||
import { login , register } from '@/rest/Users.js'
|
import { login , register } from '@/rest/Users.js'
|
||||||
|
import { getAllCurriculums } from '@/rest/curriculum.js'
|
||||||
import { uploadProfilePicture } from '@/rest/uploads.js'
|
import { uploadProfilePicture } from '@/rest/uploads.js'
|
||||||
import {toast} from 'vue3-toastify'
|
import {toast} from 'vue3-toastify'
|
||||||
import 'vue3-toastify/dist/index.css';
|
import 'vue3-toastify/dist/index.css';
|
||||||
@ -24,8 +25,10 @@
|
|||||||
const imageSaved = ref(false)
|
const imageSaved = ref(false)
|
||||||
const ppData = ref(false)
|
const ppData = ref(false)
|
||||||
|
|
||||||
|
const curricula=getAllCurriculums();
|
||||||
|
|
||||||
function goBackHome(){
|
function goBackHome(){
|
||||||
window.location.href='#home'
|
window.location.href='#/home'
|
||||||
}
|
}
|
||||||
|
|
||||||
function verifyInputs(){
|
function verifyInputs(){
|
||||||
@ -122,9 +125,8 @@
|
|||||||
<div class="inputBox">
|
<div class="inputBox">
|
||||||
<p>{{i18n("curriculum").toUpperCase()}}</p>
|
<p>{{i18n("curriculum").toUpperCase()}}</p>
|
||||||
<select v-model="curriculum">
|
<select v-model="curriculum">
|
||||||
<option value="Chemistry">Chemistry</option>
|
<option v-for="item in currcula">{{item}}</option>
|
||||||
<option value="Psycho">Psychology</option>
|
|
||||||
<option value="IT">IT</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div style="align-self:center;" class="inputBox">
|
<div style="align-self:center;" class="inputBox">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* curriculum API
|
* curriculum API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { restGet, restPostn, restDelete, restPatch } from './restConsumer.js'
|
import { restGet, restPost, restDelete, restPatch } from './restConsumer.js'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new curriculum (bundle of courses)
|
* Create a new curriculum (bundle of courses)
|
||||||
@ -19,6 +19,10 @@ export async function deletecurriculum(id){
|
|||||||
return restDelete("/curriculum/" + id);
|
return restDelete("/curriculum/" + id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function getAllCurriculums(){
|
||||||
|
return restGet("/curriculum");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get informations on a particular curriculum
|
* Get informations on a particular curriculum
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user