mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 19:33:46 +00:00
feat: draggable events
This commit is contained in:
@@ -30,6 +30,13 @@ export const requestPatch = async (data) => {
|
||||
return res;
|
||||
};
|
||||
|
||||
export const requestReorder = async (data) => {
|
||||
const reorder = 'reorder';
|
||||
console.log('debug got reorder with payload', data);
|
||||
const res = await axios.patch(eventsURL + '/' + reorder, data);
|
||||
return res;
|
||||
};
|
||||
|
||||
export const requestDelete = async (eventId) => {
|
||||
const res = await axios.delete(eventsURL + '/' + eventId);
|
||||
return res;
|
||||
|
||||
@@ -12,7 +12,6 @@ export const sampleData = {
|
||||
events: [
|
||||
{
|
||||
id: '1',
|
||||
order: 1,
|
||||
title: 'Is the internet a fad?',
|
||||
subtitle: 'It is',
|
||||
presenter: 'Carlos Valente',
|
||||
@@ -24,13 +23,11 @@ export const sampleData = {
|
||||
},
|
||||
{
|
||||
id: 0.4849093424577693,
|
||||
order: 2,
|
||||
duration: 25*60000,
|
||||
type: 'delay',
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
order: 3,
|
||||
title: 'Is reddit a dictatorship?',
|
||||
subtitle: 'It is',
|
||||
presenter: 'Carlos Valente',
|
||||
@@ -42,7 +39,6 @@ export const sampleData = {
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
order: 4,
|
||||
title: 'Out of words',
|
||||
subtitle: '',
|
||||
presenter: 'Carlos Valente',
|
||||
|
||||
Reference in New Issue
Block a user