This commit is contained in:
SimonGschnell
2025-02-17 14:40:24 +01:00
parent 3a1055d87e
commit c960b4832d
8 changed files with 33 additions and 15 deletions
+11
View File
@@ -42,4 +42,15 @@ export default {
{}
);
},
getMoodleEventsByUserid(username, timestart, timeend) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
`addons/moodle/cis/get_events_by_userid.php`,
{
username: username,
timestart: timestart,
timeend: timeend,
}
);
},
};
+8 -8
View File
@@ -2,14 +2,14 @@ import FhcDashboard from '../../components/Dashboard/Dashboard.js';
import FhcApi from '../../plugin/FhcApi.js';
import Phrasen from '../../plugin/Phrasen.js';
import contrast from '../../directives/contrast.js';
import {setScrollbarWidth} from "../../helpers/CssVarCalcHelpers";
import Stundenplan from "../../components/Cis/Stundenplan/Stundenplan";
import MylvStudent from "../../components/Cis/Mylv/Student";
import Profil from "../../components/Cis/Profil/Profil";
import CmsNews from "../../components/Cis/Cms/News";
import CmsContent from "../../components/Cis/Cms/Content";
import Info from "../../components/Cis/Mylv/Semester/Studiengang/Lv/Info";
import RoomInformation from "../../components/Cis/Mylv/RoomInformation";
import {setScrollbarWidth} from "../../helpers/CssVarCalcHelpers.js";
import Stundenplan from "../../components/Cis/Stundenplan/Stundenplan.js";
import MylvStudent from "../../components/Cis/Mylv/Student.js";
import Profil from "../../components/Cis/Profil/Profil.js";
import CmsNews from "../../components/Cis/Cms/News.js";
import CmsContent from "../../components/Cis/Cms/Content.js";
import Info from "../../components/Cis/Mylv/Semester/Studiengang/Lv/Info.js";
import RoomInformation from "../../components/Cis/Mylv/RoomInformation.js";
const ciPath = FHC_JS_DATA_STORAGE_OBJECT.app_root.replace(/(https:|)(^|\/\/)(.*?\/)/g, '') + FHC_JS_DATA_STORAGE_OBJECT.ci_router;
+3 -1
View File
@@ -197,7 +197,9 @@ export default {
'grid-template-columns': 'repeat(' + day.lanes + ', 1fr)',
'grid-template-rows': 'repeat(' + (this.hours.length * 60 / this.smallestTimeFrame) + ', 1fr)',
}
console.log(this.smallestTimeFrame,"this is the smallest timeframe")
console.log(this.hours.length,"this is the length of the hours")
console.log(this.hours.length/60, "this is the length of the hours multiplied by 60 resulting in minutes")
if(day.isPast) {
styleObj['background-color'] = '#F5E9D7'
styleObj['border-color'] = '#E8E8E8';
+1 -1
View File
@@ -1,6 +1,6 @@
import raum_contentmittitel from './Content_types/Raum_contentmittitel.js'
import general from './Content_types/General.js'
import BsConfirm from "../../Bootstrap/Confirm";
import BsConfirm from "../../Bootstrap/Confirm.js";
export default {
name: "ContentComponent",
+1 -1
View File
@@ -1,6 +1,6 @@
import Pagination from "../../Pagination/Pagination.js";
import StudiengangInformation from "./StudiengangInformation/StudiengangInformation.js";
import BsConfirm from "../../Bootstrap/Confirm";
import BsConfirm from "../../Bootstrap/Confirm.js";
export default {
name: "NewsComponent",
@@ -1,5 +1,5 @@
import StudiengangPerson from "./StudiengangPerson";
import StudiengangVertretung from "./StudiengangVertretung";
import StudiengangPerson from "./StudiengangPerson.js";
import StudiengangVertretung from "./StudiengangVertretung.js";
export default {
data(){
@@ -1,5 +1,5 @@
import BsModal from "../../Bootstrap/Modal";
import LvMenu from "./LvMenu";
import BsModal from "../../Bootstrap/Modal.js";
import LvMenu from "./LvMenu.js";
export default {
props:{
@@ -150,6 +150,11 @@ export const Stundenplan = {
},
created()
{
let time_start = Math.floor(this.eventCalendarDate.firstDayOfCalendarMonth.getTime() / 1000);
let time_end = Math.floor(this.eventCalendarDate.lastDayOfCalendarMonth.getTime() / 1000);
this.$fhcApi.factory.stundenplan.getMoodleEventsByUserid('io23m005', time_start, time_end).then((response) => {
console.log(response);
})
this.$fhcApi.factory.authinfo.getAuthUID().then((res) => res.data)
.then(data=>{
this.uid = data.uid;