Skip to content

Commit

Permalink
fixed merge conflicts
Browse files Browse the repository at this point in the history
Co-authored-by: Mityai <[email protected]>
  • Loading branch information
mikedegeofroy and mityaiii committed Jun 16, 2024
1 parent ec0301d commit 9b241da
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/api/event.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export const updateICalOnServer = async (event_id: number, updatedIcal: string)
}
};

export const postEvent = async(event: AdminEvent) => {
// export const postEvent = async(event: AdminEvent) => {

}
// }

export async function getEventById(id: number): Promise<AdminEvent> {
const response = await axios.get<AdminEvent>(
Expand Down
3 changes: 2 additions & 1 deletion src/interfaces/ical.interface.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export interface IEventTime {
id: number;
event_id: number;
title: string;
rrule: string;
rrule: string | null;
start: string;
end: string;
}
11 changes: 0 additions & 11 deletions src/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import PlacePage from '@/pages/place.page.vue';
import PaymentPage from '@/pages/payment.page.vue';
import NotFoundPage from '@/pages/not-found.page.vue';
import BookingPage from '@/pages/booking.page.vue';
import HomePage from '@/pages/home.page.vue';
import BillingsPage from '@/pages/billings.page.vue';

import { createRouter, createWebHistory } from 'vue-router';
Expand Down Expand Up @@ -72,16 +71,6 @@ const routes = [
component: BillingsPage,
},
],
},
{
path: '/admin/calendar',
name: 'Calendar',
component: CalendarTempPage,
},
{
path: '/admin/buyers',
name: 'Buyers',
component: BuyerPage
}
];

Expand Down
2 changes: 1 addition & 1 deletion src/store/auth.store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { reactive } from 'vue';

export const auth = reactive({
authenticated: false
authenticated: true
})
2 changes: 1 addition & 1 deletion src/utils/ical.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const generateRandomId = () => {
return Math.floor(Math.random() * 1000000);
};

export const getICalData = (event_id: number, title: string, icalData: string): IEventTime => {
export const getICalData = (event_id: number, title: string, icalData: string): IEventTime[] => {
const events = [];
const eventRegex = /BEGIN:VEVENT[\s\S]*?END:VEVENT/g;

Expand Down

0 comments on commit 9b241da

Please sign in to comment.