From d9c89f7ec56919531877c72f927349fea7df0a55 Mon Sep 17 00:00:00 2001 From: GCCollab Date: Tue, 19 Mar 2024 19:44:52 +0000 Subject: [PATCH] Code formatting ignore-deploy --- .../features/calendar/calendar.component.html | 46 +++++++++++-------- .../features/calendar/calendar.component.scss | 4 +- .../features/calendar/calendar.component.ts | 3 +- .../calendar-events.component.html | 18 ++------ .../calendar-events.component.scss | 2 +- .../event-card/event-card.component.spec.ts | 2 +- 6 files changed, 36 insertions(+), 39 deletions(-) diff --git a/src/app/features/calendar/calendar.component.html b/src/app/features/calendar/calendar.component.html index 2bab4a56..c1318cca 100644 --- a/src/app/features/calendar/calendar.component.html +++ b/src/app/features/calendar/calendar.component.html @@ -42,19 +42,21 @@ (click)="navigateCalendar(-1)" > - +
{{ 'Select a Month' | translate }} - - @for (month of [0,1,2,3,4,5,6,7,8,9,10,11]; track $index) { + + @for (month of [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; track $index) { {{ monthIndexToDate(month) | localizedDate: 'MMMM' | titlecase }} @@ -64,12 +66,14 @@ {{ 'Select a Year' | translate }} - + @for (year of years; track $index) { {{ year }} @@ -90,7 +94,7 @@ (click)="navigateCalendar(1)" > - +
@@ -138,11 +142,13 @@ - + diff --git a/src/app/features/calendar/calendar.component.scss b/src/app/features/calendar/calendar.component.scss index 5f2595e3..f2fc79a6 100644 --- a/src/app/features/calendar/calendar.component.scss +++ b/src/app/features/calendar/calendar.component.scss @@ -48,7 +48,7 @@ $cal-gap: 15px; .mat-mdc-form-field-infix { width: auto; } - .mdc-notched-outline__leading, + .mdc-notched-outline__leading, .mdc-notched-outline__notch, .mdc-notched-outline__trailing { border: none; @@ -167,4 +167,4 @@ app-calendar-events { align-self: flex-end; gap: 16px; } -} \ No newline at end of file +} diff --git a/src/app/features/calendar/calendar.component.ts b/src/app/features/calendar/calendar.component.ts index 39fa6d6c..74553241 100644 --- a/src/app/features/calendar/calendar.component.ts +++ b/src/app/features/calendar/calendar.component.ts @@ -135,8 +135,7 @@ export class CalendarComponent implements OnInit, OnChanges, OnDestroy { } ngOnDestroy(): void { - if (this.resizeSub) - this.resizeSub.unsubscribe(); + if (this.resizeSub) this.resizeSub.unsubscribe(); } navigateCalendar(interval: number = 1, clickedDay: ICalendarDate | undefined = undefined): void { diff --git a/src/app/features/calendar/components/calendar-events/calendar-events.component.html b/src/app/features/calendar/components/calendar-events/calendar-events.component.html index e8356cfe..8f2c127c 100644 --- a/src/app/features/calendar/components/calendar-events/calendar-events.component.html +++ b/src/app/features/calendar/components/calendar-events/calendar-events.component.html @@ -2,16 +2,10 @@ {{ isToday(calendarDate.date) ? "Today's Events" : 'Events on ' + (calendarDate.date | localizedDate) }} - - - - + + + + @@ -58,9 +52,7 @@
{{ event.eventType }}
-
- {{ event.location.address }}, {{ event.location.city }}, {{ event.location.province }} -
+
{{ event.location.address }}, {{ event.location.city }}, {{ event.location.province }}
diff --git a/src/app/features/calendar/components/calendar-events/calendar-events.component.scss b/src/app/features/calendar/components/calendar-events/calendar-events.component.scss index 43540243..6754d72e 100644 --- a/src/app/features/calendar/components/calendar-events/calendar-events.component.scss +++ b/src/app/features/calendar/components/calendar-events/calendar-events.component.scss @@ -9,7 +9,7 @@ mat-card-header { padding: 16px; align-items: center; - >span { + > span { flex: 1; font-size: 28px; font-weight: 600; diff --git a/src/app/features/events/components/event-card/event-card.component.spec.ts b/src/app/features/events/components/event-card/event-card.component.spec.ts index 3d9509e1..fea93f0c 100644 --- a/src/app/features/events/components/event-card/event-card.component.spec.ts +++ b/src/app/features/events/components/event-card/event-card.component.spec.ts @@ -58,7 +58,7 @@ describe('EventCardComponent', () => { confirmed: false, declined: false, toEventForm: event.toEventForm, - fromEventForm: event.fromEventForm + fromEventForm: event.fromEventForm, }; fixture.detectChanges();