-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from Daellhin/dev
chore: improve mocking support
- Loading branch information
Showing
30 changed files
with
156 additions
and
103 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
import type { AnnouncementJson } from "$lib/domain/Announcement" | ||
import { Timestamp } from "firebase/firestore" | ||
|
||
export const ANNOUNCEMENT: AnnouncementJson = { | ||
// id: "0", | ||
createdAt: new Timestamp(Math.round(Date.now() / 1000), 0), | ||
title: "Mock Announcement", | ||
content: "Mock announcement content", | ||
visible: true, | ||
dismissible: true | ||
} | ||
|
||
export const ANNOUNCEMENTS_JSON: AnnouncementJson[] = [ANNOUNCEMENT] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,21 @@ | ||
import type { CalendarEventJson } from '$lib/domain/CalendarEvent' | ||
import { Timestamp } from 'firebase/firestore' | ||
|
||
export const EVENTS_JSON: CalendarEventJson[] = [ | ||
{ | ||
id: "0", | ||
date: Timestamp.fromDate(new Date("2023-03-19")), | ||
duration: "10:30 - 12:00", | ||
location: "Blauwenhoek 76, 1840 Londerzeel", | ||
title: "Thematraining- Spurt", | ||
info: "" | ||
}, | ||
{ | ||
id: "1", | ||
date: Timestamp.fromDate(new Date("2023-03-26")), | ||
duration: "08:00 - 17:00", | ||
location: "J. Van Doorslaerstraat 22, 1840 Steenhuffel", | ||
title: "Pegasusloop", | ||
info: "" | ||
}, | ||
{ | ||
id: "2", | ||
date: Timestamp.fromDate(new Date("2023-05-07")), | ||
duration: "Gehele dag", | ||
location: "", | ||
title: "Interclub AC", | ||
info: "" | ||
}, | ||
{ | ||
id: "3", | ||
date: Timestamp.fromDate(new Date("2023-05-13")), | ||
duration: "08:00 - 17:00", | ||
location: "Blauwenhoek 76, 1840 Londerzeel", | ||
title: "Interclub PUP en MIN", | ||
info: "De interclub is een groepsgebeuren. Een atleet neemt deel aan één of meerdere van de individuele nummers, de geleverde prestaties" | ||
}, | ||
{ | ||
id: "4", | ||
date: Timestamp.fromDate(new Date("2023-05-18")), | ||
duration: "11:00 - 18:00", | ||
location: "Blauwenhoek 76, 1840 Londerzeel", | ||
title: "3de Pegasus jeugdmeeting", | ||
info: "Inschrijvingen via 'Atletiek.nu'" | ||
}, | ||
] | ||
export const CALENDAR_EVENT: CalendarEventJson = { | ||
id: "0", | ||
date: Timestamp.fromDate(new Date("2023-03-19")), | ||
duration: "10:30 - 12:00", | ||
location: "Blauwenhoek 76, 1840 Londerzeel", | ||
title: "Thematraining- Spurt", | ||
info: "", | ||
endDate: undefined | ||
} | ||
|
||
|
||
export const CALENDAR_EVENTS_JSON: CalendarEventJson[] = Array(5).fill(CALENDAR_EVENT) | ||
.map((e: CalendarEventJson) => { | ||
const newObj = Object.assign({}, e) | ||
newObj.id += 1 | ||
return newObj | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { SponsorJson } from "$lib/domain/Sponsor" | ||
|
||
export const SPONSOR: SponsorJson = { | ||
// id: "0", | ||
name: "Mock Sponsor", | ||
url: "https://www.google.com/", | ||
imageUrl: "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png", | ||
visible: true, | ||
} | ||
|
||
export const SPONSORS_JSON: SponsorJson[] = [SPONSOR] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ export const PAGE: PageJson = { | |
content: "<h1><strong>1. Leeftijd</strong></h1><ul><li>Minimum: <strong>5 jaar zijn</strong> (geboren in 2017)</li></ul><ul><li>Maximum: zolang de gezondheid het toelaat</li></ul><h1><br><strong></strong></h1><h1><strong>2. Aansluiting</strong></h1><p>Een aansluiting ( 01 Nov Y tot 31 Okt Y+1) omvat</p><ul><li>Begeleide trainingen</li><li>Verzekering tegen sportongevallen</li><li>Aansluiting bij de Vlaamse Atletiekliga (VAL), wedstrijdnummer inbegrepen voor wedstrijdatleten</li></ul><h1><br><strong></strong></h1><h1><strong>3. Lidgelden</strong></h1><p>Aansluiting <strong>wedstrijdatleet</strong>: </p><ul><li>kinderen tot en met cadetten (geboortejaar 2017 tot 2008) : 100 euro<br></li><li>vanaf scholieren (geboortejaar 2007 en vroeger): 115 euro<br></li></ul><p>Aansluiting <strong>recreant/jogger</strong> (<strong>NIET</strong> voor kinderen)</p><ul><li> recreanten (geboortejaar 2007 en vroeger) : 80 euro<br></li></ul><p><strong>Familiekorting</strong>: Vanaf 4de aansluiting, – 20 euro voor 4de lid, 5de lid, …..(Gedomicilieerd op zelfde adres)</p><p><strong>Atletiekstagekorting</strong>: Nieuwe aansluitingen die hebben deelgenomen aan de atletiekstage krijgen een éénmalige korting van 10 euro. (NIET van toepassing bij hernieuwing van een bestaand lidmaatschap)</p><h1><br><strong></strong></h1><h1><strong>4.Inschijving pas definitief als volgende stappen zijn doorlopen!</strong></h1><ol><li>Inschrijven online: inschrijving via dit <a>formulier</a></li><li>Betalen lidgeld: Overschrijving van het lidgeld op het rekeningnummer van AC Pegasus : <ul><li>vzw: BE64 9731 8193 5052 BIC : ARSPBE22 .</li><li>Vermeld de naam en voornaam van het lid te vermelden bij de betaling.</li></ul></li><li>Vergunningsaanvraag: in te vullen en te ondertekenen, voor minderjarigen dient dit door één van ouders te gebeuren. <br>Dit document kan u downloaden door op deze <a>link</a> te klikken of bij het bestuur worden bekomen. Gelieve dit formulier in gevuld te mailen naar <a>[email protected]</a>, of worden bezorgd aan de trainer.</li></ol>" | ||
} | ||
|
||
export const PAGES_JSON: PageJson[] = [PAGE] | ||
export const PAGES_JSON: PageJson[] = [PAGE] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { PhotoAlbumJson } from "$lib/domain/PhotoAlbum" | ||
import { Timestamp } from "firebase/firestore" | ||
|
||
export const PHOTO_ALBUM: PhotoAlbumJson = { | ||
// id: "0", | ||
createdAt: new Timestamp(Math.round(Date.now() / 1000), 0), | ||
date: new Timestamp(Math.round(Date.now() / 1000), 0), | ||
author: "Author", | ||
authorUrl: "https://www.google.com/", | ||
title: "Mock Photo Album", | ||
imageIds: Array(20).fill(0).map((_, i) => i.toString()), | ||
visible: true, | ||
} | ||
|
||
export const PHOTO_ALBUMS_JSON: PhotoAlbumJson[] = [PHOTO_ALBUM] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.