* chore: upgrade dependencies
* feat/mac: draft pipeline
* feat/mac: use public folder for transient files
* feat/mac: set app fullscreen
* feat/mac: cmd + , toggles menu
* feat/mac: update readme
* refact: easier login process
* refact prevent style issues with safari
* refact reduce css download
* style: cleanup paginator design
* style: studio clock is responsive
* style: fix spacing style issues with safari
This commit is contained in:
Carlos Valente
2022-04-17 20:30:39 +02:00
committed by GitHub
parent 20d3ddbc18
commit db0eee3b9c
140 changed files with 10160 additions and 2139 deletions
+7 -22
View File
@@ -6,31 +6,16 @@ export const fetchAllEvents = async () => {
return res.data;
};
export const requestPost = async (data) => {
await axios.post(eventsURL, data);
};
export const requestPost = async (data) => axios.post(eventsURL, data);
export const requestPut = async (data) => {
await axios.put(eventsURL, data);
};
export const requestPut = async (data) => axios.put(eventsURL, data);
export const requestPatch = async (data) => {
await axios.patch(eventsURL, data);
};
export const requestPatch = async (data) => axios.patch(eventsURL, data);
export const requestReorder = async (data) => {
await axios.patch(`${eventsURL}/reorder`, data);
};
export const requestReorder = async (data) => axios.patch(`${eventsURL}/reorder`, data);
export const requestApplyDelay = async (eventId) => {
const action = 'applydelay';
return await axios.patch(`${eventsURL}/${action}/${eventId}`);
};
export const requestApplyDelay = async (eventId) => axios.patch(`${eventsURL}/applydelay/${eventId}`);
export const requestDelete = async (eventId) => {
await axios.delete(`${eventsURL}/${eventId}`);
};
export const requestDelete = async (eventId) => axios.delete(`${eventsURL}/${eventId}`);
export const requestDeleteAll = async () => {
await axios.delete(`${eventsURL}/all`);
};
export const requestDeleteAll = async () => axios.delete(`${eventsURL}/all`);