Skip to content

Commit

Permalink
fix(*): add missing map thumbnails (#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc authored Mar 12, 2023
1 parent 657e8bb commit 4ca063c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/shared/map-thumbnail.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ describe('MapThumbnailService', () => {
'koth_proot_b4b',
'pl_problitz_rc2',
'pl_divulgence_b4b',
'cp_caldera_rc1',
'pl_cornwater_b8b',
'cp_croissant_final',
'pl_eruption_b10_test2',
].forEach(map =>
it(`should return valid thumbnail for ${map}`, inject(
[MapThumbnailService],
Expand Down
4 changes: 4 additions & 0 deletions src/app/shared/map-thumbnail.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export class MapThumbnailService {
{ regex: /koth_proot/, thumbnailName: 'proot' },
{ regex: /pl_problitz/, thumbnailName: 'problitz' },
{ regex: /pl_divulgence/, thumbnailName: 'divulgence' },
{ regex: /cp_caldera/, thumbnailName: 'caldera' },
{ regex: /cp_croissant/, thumbnailName: 'croissant' },
{ regex: /pl_cornwater/, thumbnailName: 'cornwater' },
{ regex: /pl_eruption/, thumbnailName: 'eruption' },
];

getMapThumbnail(map: string) {
Expand Down
Binary file added src/assets/map-thumbnails/caldera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/map-thumbnails/cornwater.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/map-thumbnails/croissant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/map-thumbnails/eruption.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4ca063c

Please sign in to comment.