Merge branch 'master' into feature-53938/StV_Tab_Noten_fertigstellen

This commit is contained in:
cgfhtw
2024-12-19 16:48:15 +01:00
391 changed files with 39290 additions and 5701 deletions
+12
View File
@@ -0,0 +1,12 @@
export default {
getLvMenu(lvid, studiensemester_kurzbz) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/LvMenu/getLvMenu/${lvid}/${studiensemester_kurzbz}`,
{}
);
},
}
+18
View File
@@ -0,0 +1,18 @@
export default {
open: function () {
return this.$fhcApi.get(
`/api/frontend/v1/Ampeln/open`,{});
},
all: function () {
return this.$fhcApi.get(
`/api/frontend/v1/Ampeln/all`,{});
},
confirm: function (ampel_id) {
return this.$fhcApi.get(
`/api/frontend/v1/Ampeln/confirm/${ampel_id}`,{});
},
}
+27
View File
@@ -0,0 +1,27 @@
export default {
getBookmarks: function () {
return this.$fhcApi.get(
`/api/frontend/v1/Bookmark/getBookmarks`
,{}
);
},
delete: function (bookmark_id) {
return this.$fhcApi.get(
`/api/frontend/v1/Bookmark/delete/${bookmark_id}`
,{}
);
},
insert: function ({url, title, tag}) {
return this.$fhcApi.post(
`/api/frontend/v1/Bookmark/insert`
,{
url: url,
title: title,
tag: tag
}
);
},
}
+40
View File
@@ -0,0 +1,40 @@
export default {
content(content_id, version=null, sprache=null, sichtbar=null) {
return this.$fhcApi.get(
"/api/frontend/v1/Cms/content",
{
content_id: content_id,
...(version?{version}:{}),
...(sprache?{sprache}:{}),
...(sichtbar?{sichtbar}:{}),
}
);
},
news(limit) {
return this.$fhcApi.get(
"/api/frontend/v1/Cms/news",
{
limit: limit
}
);
},
getNews(page = 1, page_size = 10) {
return this.$fhcApi.get(
"/api/frontend/v1/Cms/getNews",
{
page,
page_size,
},
);
},
getNewsRowCount: function () {
return this.$fhcApi.get(
"/api/frontend/v1/Cms/getNewsRowCount",
{}
);
},
}
+20 -2
View File
@@ -20,10 +20,19 @@ import phrasen from "./phrasen.js";
import navigation from "./navigation.js";
import filter from "./filter.js";
import studstatus from "./studstatus.js";
import profil from "./profil.js";
import profilUpdate from "./profilUpdate.js";
import stundenplan from "./stundenplan.js";
import bookmark from "./bookmark.js";
import stv from "./stv.js";
import notiz from "./notiz.js";
import betriebsmittel from "./betriebsmittel.js";
import checkperson from "./checkperson.js";
import ampeln from "./ampeln.js";
import ort from "./ort.js";
import cms from "./cms.js";
import lehre from "./lehre.js";
import addons from "./addons.js";
export default {
search,
@@ -31,8 +40,17 @@ export default {
navigation,
filter,
studstatus,
profil,
profilUpdate,
stundenplan,
bookmark,
stv,
notiz,
betriebsmittel,
checkperson
};
checkperson,
ampeln,
ort,
cms,
lehre,
addons
};
+16
View File
@@ -0,0 +1,16 @@
export default {
getStudentenMail(lehreinheit_id) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
"/api/frontend/v1/Lehre/lvStudentenMail",
{ lehreinheit_id: lehreinheit_id }
);
},
getLvInfo(studiensemester_kurzbz, lehrveranstaltung_id) {
return this.$fhcApi.get(
`/api/frontend/v1/Lehre/LV/${studiensemester_kurzbz}/${lehrveranstaltung_id}`
, {}
);
},
}
+10
View File
@@ -0,0 +1,10 @@
export default {
getContentID(ort_kurbz) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
"/api/frontend/v1/Ort/ContentID",
{ ort_kurzbz: ort_kurbz }
);
},
}
+11 -1
View File
@@ -18,5 +18,15 @@
export default {
loadCategory(category) {
return this.$fhcApi.get('/api/frontend/v1/phrasen/loadModule/' + category);
},
setLanguage(categories,language) {
const payload = {categories, language}
return this.$fhcApi.post('/api/frontend/v1/phrasen/setLanguage', payload);
},
getLanguage() {
return this.$fhcApi.get('/api/frontend/v1/phrasen/getLanguage', {});
},
getActiveDbLanguages() {
return this.$fhcApi.get('/api/frontend/v1/phrasen/getAllLanguages', {});
}
};
};
+73
View File
@@ -0,0 +1,73 @@
export default {
getView: function (uid) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/Profil/getView/${uid}`,{}
);
},
fotoSperre: function (value) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/Profil/fotoSperre/${value}`,
{}
);
},
isStudent: function (uid) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/Profil/isStudent`,
{
uid:uid,
}
);
},
isMitarbeiter: function (uid) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/Profil/isMitarbeiter/${uid}`,
{}
);
},
getZustellAdresse: function () {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/Profil/getZustellAdresse`,{}
);
},
getZustellKontakt: function () {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/Profil/getZustellKontakt`,{}
);
},
getGemeinden: function(nation,zip){
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/Profil/getGemeinden/${nation}/${zip}`,
{}
);
},
getAllNationen:function(){
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
"/api/frontend/v1/Profil/getAllNationen",{}
);
},
}
+99
View File
@@ -0,0 +1,99 @@
export default {
//! API calls for profil update requests
getStatus: function () {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/ProfilUpdate/getStatus`,{});
},
getTopic: function () {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/ProfilUpdate/getTopic`,{});
},
acceptProfilRequest: function ({profil_update_id, uid, status_message, topic, requested_change}) {
return this.$fhcApi.post(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
"/api/frontend/v1/ProfilUpdate/acceptProfilRequest",{profil_update_id, uid, status_message, topic, requested_change});
},
denyProfilRequest: function ({profil_update_id, uid, topic, status_message}) {
return this.$fhcApi.post(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
"/api/frontend/v1/ProfilUpdate/denyProfilRequest",{profil_update_id,uid,topic,status_message});
},
insertFile: function (dms, replace = null) {
return this.$fhcApi.post(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/ProfilUpdate/insertFile/${replace}`,
dms);
},
getProfilRequestFiles: function (requestID) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/ProfilUpdate/getProfilRequestFiles/${requestID}`,{});
},
selectProfilRequest: function (uid = null, id = null) {
return this.$fhcApi.get(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/ProfilUpdate/selectProfilRequest`,
{...(uid?{uid}:{}),
...(id?{id}:{})
});
},
insertProfilRequest: function (topic, payload, fileID = null) {
return this.$fhcApi.post(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
"/api/frontend/v1/ProfilUpdate/insertProfilRequest",
{
topic,
payload,
...(fileID ? { fileID } : {}),
});
},
updateProfilRequest: function (topic, payload, ID, fileID = null) {
return this.$fhcApi.post(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/ProfilUpdate/updateProfilRequest`,
{
topic,
payload,
ID,
...(fileID ? { fileID: fileID } : {}),
});
},
deleteProfilRequest: function (requestID) {
return this.$fhcApi.post(
FHC_JS_DATA_STORAGE_OBJECT.app_root +
FHC_JS_DATA_STORAGE_OBJECT.ci_router +
`/api/frontend/v1/ProfilUpdate/deleteProfilRequest`,
{
requestID,
});
},
};
+1 -5
View File
@@ -19,9 +19,5 @@ export default {
search(searchsettings) {
const url = '/api/frontend/v1/searchbar/search';
return this.$fhcApi.post(url, searchsettings);
},
searchdummy(searchsettings) {
const url = 'public/js/apps/api/dummyapi.php/Search';
return this.$fhcApi.post(url, searchsettings);
}
};
};
+39
View File
@@ -0,0 +1,39 @@
export default {
getRoomInfo(ort_kurzbz, start_date, end_date) {
return this.$fhcApi.get(
'/api/frontend/v1/Stundenplan/getRoomplan',
{ ort_kurzbz, start_date, end_date}
);
},
getStundenplan(start_date, end_date) {
return this.$fhcApi.get(
'/api/frontend/v1/Stundenplan/getStundenplan',
{ start_date, end_date }
);
},
getStunden() {
return this.$fhcApi.get(
'/api/frontend/v1/Stundenplan/Stunden',
{}
);
},
getOrtReservierungen(ort_kurzbz, start_date, end_date) {
return this.$fhcApi.get(
`/api/frontend/v1/Stundenplan/Reservierungen/${ort_kurzbz}`,
{ start_date, end_date}
);
},
getStundenplanReservierungen(start_date, end_date) {
return this.$fhcApi.get(
'/api/frontend/v1/Stundenplan/Reservierungen',
{ start_date, end_date }
);
},
getLehreinheitStudiensemester(lehreinheit_id) {
return this.$fhcApi.get(
`/api/frontend/v1/Stundenplan/getLehreinheitStudiensemester/${lehreinheit_id}`,
{}
);
},
};