From f2ecc1803f3ea294a0c6b7915b61348ed0395b26 Mon Sep 17 00:00:00 2001 From: Marcin Zelent Date: Wed, 16 Nov 2022 15:16:38 +0100 Subject: Remade and extended the app using React --- models/Photo.ts | 31 ------------------------------- models/Trip.ts | 46 ---------------------------------------------- models/index.ts | 4 ---- 3 files changed, 81 deletions(-) delete mode 100644 models/Photo.ts delete mode 100644 models/Trip.ts delete mode 100644 models/index.ts (limited to 'models') diff --git a/models/Photo.ts b/models/Photo.ts deleted file mode 100644 index f40d492..0000000 --- a/models/Photo.ts +++ /dev/null @@ -1,31 +0,0 @@ -export default interface Photo { - /** - * Name of the photo or the file. - */ - name: string; - - /** - * Path to the photo. - */ - src: string; - - /** - * Latitude where the photo was taken. - */ - latitude: number; - - /** - * Logitude where the photo was taken. - */ - longitude: number; - - /** - * Date and time when the photo was taken. - */ - time: string; - - /** - * Photo thumnnail. - */ - thumbnail: string; -} diff --git a/models/Trip.ts b/models/Trip.ts deleted file mode 100644 index cc01cda..0000000 --- a/models/Trip.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { GeoJsonObject } from 'geojson'; -import Photo from './Photo'; - -export default interface Trip { - /** - * Name of the trip. - */ - name: string; - - /** - * Total distance made during the trip. - */ - distance: number; - - /** - * Date and time of the beginning of the trip. - * This property is a string because Date is not serializable in Next.js. - */ - start: string; - - /** - * Date and time of the end of the trip. - * This property is a string because Date is not serializable in Next.js. - */ - end: string; - - /** - * Total duration of the trip in seconds. - */ - duration: number; - - /** - * Average speed in km/h. - */ - speed: number; - - /** - * GeoJSON object representing waypoints of the trip - */ - track: GeoJsonObject; - - /** - * Photos taken during the trip. - */ - photos: Photo[]; -} diff --git a/models/index.ts b/models/index.ts deleted file mode 100644 index 764b342..0000000 --- a/models/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import Trip from './Trip'; -import Photo from './Photo'; - -export type { Trip, Photo }; -- cgit v1.2.3