mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
Merge branch 'feature-25999/C4' into feature-40309/Cis_News_widget
This commit is contained in:
@@ -20,6 +20,8 @@ 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 ort from "./ort.js";
|
||||
import cms from "./cms.js";
|
||||
|
||||
@@ -29,6 +31,8 @@ export default {
|
||||
navigation,
|
||||
filter,
|
||||
studstatus,
|
||||
profil,
|
||||
profilUpdate,
|
||||
ort,
|
||||
cms,
|
||||
};
|
||||
|
||||
Executable
+73
@@ -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",{}
|
||||
);
|
||||
},
|
||||
}
|
||||
@@ -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,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user