Little Correction in schedules #185
@ -185,11 +185,11 @@ public class MockController {
|
|||||||
|
|
||||||
//Schedule part
|
//Schedule part
|
||||||
|
|
||||||
Lesson lesson_0_progra1 = new Lesson(progra1, "Mon Apr 22 2024 08:15", "Mon Apr 22 2024 10:15","rgb(0,50,100)","A0B2","Course");
|
Lesson lesson_0_progra1 = new Lesson(progra1, "Mon Apr 22 2024 08:15", "Mon Apr 22 2024 10:15","rgb(255,36,175)","A0B2","Course");
|
||||||
Lesson lesson_0_chemistry1 = new Lesson(chemistry1, "Wed Mar 27 2024 08:15", "Wed Mar 27 2024 09:15","rgb(100,50,0)","A0B2","TP");
|
Lesson lesson_0_chemistry1 = new Lesson(chemistry1, "Wed Mar 27 2024 08:15", "Wed Mar 27 2024 09:15","rgb(36,175,255)","A0B2","TP");
|
||||||
Lesson lesson_0_psycho1 = new Lesson(psycho1, "Sun Mar 24 2024 10:30 ","Sun Mar 24 2024 12:30 ","rgb(100,50,100)", "A0B2","TD");
|
Lesson lesson_0_psycho1 = new Lesson(psycho1, "Sun Mar 24 2024 10:30 ","Sun Mar 24 2024 12:30 ","rgb(255,36,175)", "A0B2","TD");
|
||||||
Lesson lesson_1_progra1 = new Lesson(progra1, "Mon Apr 02 2024 13:30", "Mon Apr 02 2024 15:30","rgb(0,50,100)","A0B2","TP");
|
Lesson lesson_1_progra1 = new Lesson(progra1, "Mon Apr 02 2024 13:30", "Mon Apr 02 2024 15:30","rgb(36,175,255)","A0B2","TP");
|
||||||
Lesson lesson_0_commun = new Lesson(commun, "Mon Apr 01 2024 10:30", "Mon Apr 01 2024 12:30","rgb(0,50,100)","A0B2","Course");
|
Lesson lesson_0_commun = new Lesson(commun, "Mon Apr 01 2024 10:30", "Mon Apr 01 2024 12:30","rgb(255,36,175)","A0B2","Course");
|
||||||
|
|
||||||
LessonChangesRequest request1 = new LessonChangesRequest(joke,RequestState.Pending,null,null,null,null,2,null,1);
|
LessonChangesRequest request1 = new LessonChangesRequest(joke,RequestState.Pending,null,null,null,null,2,null,1);
|
||||||
LessonChangesRequest request2 = new LessonChangesRequest(joke,RequestState.Pending,"Fri Apr 19 2024 10:30 ","Fri Apr 19 2024 12:30 ",null,null,1,null,2);
|
LessonChangesRequest request2 = new LessonChangesRequest(joke,RequestState.Pending,"Fri Apr 19 2024 10:30 ","Fri Apr 19 2024 12:30 ",null,null,1,null,2);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import {getDifferenceTime,lastDateOfMonth,formatDate,getFirstDay,sortByDate,weekFromList,sundayToTheEnd,getMarginTop,getHoursMinutes, monthFromList, durationCourse} from '../scheduleFunctions.js'
|
import {getDifferenceTime,lastDateOfMonth,formatDate,getFirstDay,sortByDate,weekFromList,sundayToTheEnd,getMarginTop,getHoursMinutes, monthFromList} from '../scheduleFunctions.js'
|
||||||
import {getAllSchedule} from "@/rest/scheduleRest.js";
|
import {getAllSchedule} from "@/rest/scheduleRest.js";
|
||||||
import {getOnesLessons, getOwnedLessons } from "@/rest/lessonSchedule.js"
|
import {getOnesLessons, getOwnedLessons } from "@/rest/lessonSchedule.js"
|
||||||
import {isLogged, getSelf,getTeachers} from "@/rest/Users.js"
|
import {isLogged, getSelf,getTeachers} from "@/rest/Users.js"
|
||||||
@ -76,8 +76,6 @@
|
|||||||
}
|
}
|
||||||
const days = ["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];
|
const days = ["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];
|
||||||
const months = ["january","february","march","april",'may',"june","july","august","september","october","november","december"]
|
const months = ["january","february","march","april",'may',"june","july","august","september","october","november","december"]
|
||||||
const firstDayOfMonth = ref(getFirstDay(new Date()))
|
|
||||||
const monthDone = ref(false);
|
|
||||||
function getMonday(d) {
|
function getMonday(d) {
|
||||||
d = new Date(d);
|
d = new Date(d);
|
||||||
d.setHours(0,0,0);
|
d.setHours(0,0,0);
|
||||||
@ -577,6 +575,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="body" style="background-color:rgb(50,50,50);">{{i18n("schedule.courses")}}</div>
|
<div class="body" style="background-color:rgb(50,50,50);">{{i18n("schedule.courses")}}</div>
|
||||||
<div class="body" style="background-color:#484848;"v-for="lesson in focusLessons">
|
<div class="body" style="background-color:#484848;"v-for="lesson in focusLessons">
|
||||||
|
{{formatDate(lesson.lessonStart)}}
|
||||||
{{ getHoursMinutes(lesson.lessonStart)}}-{{getHoursMinutes(lesson.lessonEnd)}}
|
{{ getHoursMinutes(lesson.lessonStart)}}-{{getHoursMinutes(lesson.lessonEnd)}}
|
||||||
{{ lesson.local}}
|
{{ lesson.local}}
|
||||||
{{i18n(lesson.lessonType.toString())}}
|
{{i18n(lesson.lessonType.toString())}}
|
||||||
|
Loading…
Reference in New Issue
Block a user