Feat/table (#105)

* feat/table add react-table
* feat/table add protected table route
* feat/table upgrade dependencies
* feat/table support parsing of new properties

Co-authored-by: DeepSource Bot <bot@deepsource.io>
This commit is contained in:
Carlos Valente
2022-04-09 22:05:56 +02:00
committed by GitHub
parent 8841a02754
commit 67ddcd8c68
146 changed files with 7423 additions and 5780 deletions
+27 -4
View File
@@ -21,6 +21,19 @@ export const eventPlaceholderSettings = {
endMessage: '',
};
export const userFieldsPlaceholder = {
user0: '',
user1: '',
user2: '',
user3: '',
user4: '',
user5: '',
user6: '',
user7: '',
user8: '',
user9: '',
};
export const oscPlaceholderSettings = {
port: '',
portOut: '',
@@ -92,7 +105,7 @@ export const getSettings = async () => {
};
export const postSettings = async (data) => {
return await axios.post(`${ontimeURL}/settings`, data);
await axios.post(`${ontimeURL}/settings`, data);
};
export const getInfo = async () => {
@@ -101,7 +114,7 @@ export const getInfo = async () => {
};
export const postInfo = async (data) => {
return await axios.post(`${ontimeURL}/info`, data);
await axios.post(`${ontimeURL}/info`, data);
};
export const getAliases = async () => {
@@ -110,7 +123,17 @@ export const getAliases = async () => {
};
export const postAliases = async (data) => {
return await axios.post(`${ontimeURL}/aliases`, data);
await axios.post(`${ontimeURL}/aliases`, data);
};
export const getUserFields = async () => {
const res = await axios.get(`${ontimeURL}/userfields`);
return res.data;
};
export const postUserFields = async (data) => {
await axios.post(`${ontimeURL}/userfields`, data);
};
export const getOSC = async () => {
@@ -119,7 +142,7 @@ export const getOSC = async () => {
};
export const postOSC = async (data) => {
return await axios.post(`${ontimeURL}/osc`, data);
await axios.post(`${ontimeURL}/osc`, data);
};
export const downloadEvents = async () => {