diff --git a/frontend/src/app/features/about/about-page.component.html b/frontend/src/app/features/about/about-page.component.html
index 46fa9ea..fd9f03d 100644
--- a/frontend/src/app/features/about/about-page.component.html
+++ b/frontend/src/app/features/about/about-page.component.html
@@ -49,7 +49,9 @@
}
}
diff --git a/frontend/src/app/features/admin/pages/admin-home-media.component.scss b/frontend/src/app/features/admin/pages/admin-home-media.component.scss
index ba00c1f..4b9d6ce 100644
--- a/frontend/src/app/features/admin/pages/admin-home-media.component.scss
+++ b/frontend/src/app/features/admin/pages/admin-home-media.component.scss
@@ -214,7 +214,7 @@
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-2);
margin-top: var(--space-2);
- margin-bottom: var(--space-3)
+ margin-bottom: var(--space-3);
}
.form-field {
diff --git a/frontend/src/app/features/admin/pages/admin-home-media.component.ts b/frontend/src/app/features/admin/pages/admin-home-media.component.ts
index 01f658d..5f0901b 100644
--- a/frontend/src/app/features/admin/pages/admin-home-media.component.ts
+++ b/frontend/src/app/features/admin/pages/admin-home-media.component.ts
@@ -145,7 +145,10 @@ export class AdminHomeMediaComponent implements OnInit, OnDestroy {
}
get activeImageCount(): number {
- return this.sections.reduce((total, section) => total + section.items.length, 0);
+ return this.sections.reduce(
+ (total, section) => total + section.items.length,
+ 0,
+ );
}
ngOnInit(): void {
@@ -170,11 +173,13 @@ export class AdminHomeMediaComponent implements OnInit, OnDestroy {
items: this.buildSectionItems(assets, config),
}));
this.loading = false;
- (Object.keys(this.formStateByKey) as HomeSectionKey[]).forEach((key) => {
- if (!this.formStateByKey[key].saving) {
- this.resetForm(key);
- }
- });
+ (Object.keys(this.formStateByKey) as HomeSectionKey[]).forEach(
+ (key) => {
+ if (!this.formStateByKey[key].saving) {
+ this.resetForm(key);
+ }
+ },
+ );
},
error: (error) => {
this.loading = false;
@@ -236,7 +241,9 @@ export class AdminHomeMediaComponent implements OnInit, OnDestroy {
this.errorMessage = null;
this.successMessage = null;
- const createUsagePayload = (mediaAssetId: string): AdminCreateMediaUsagePayload => ({
+ const createUsagePayload = (
+ mediaAssetId: string,
+ ): AdminCreateMediaUsagePayload => ({
usageType: section.usageType,
usageKey: section.usageKey,
mediaAssetId,
@@ -259,10 +266,13 @@ export class AdminHomeMediaComponent implements OnInit, OnDestroy {
if (!formState.replacingUsageId) {
return of(null);
}
- return this.adminMediaService.updateUsage(formState.replacingUsageId, {
- isActive: false,
- isPrimary: false,
- });
+ return this.adminMediaService.updateUsage(
+ formState.replacingUsageId,
+ {
+ isActive: false,
+ isPrimary: false,
+ },
+ );
}),
)
.subscribe({
@@ -371,7 +381,9 @@ export class AdminHomeMediaComponent implements OnInit, OnDestroy {
return this.actingUsageIds.has(usageId);
}
- getSectionsForGroup(groupId: HomeMediaSectionGroup['id']): HomeMediaSectionView[] {
+ getSectionsForGroup(
+ groupId: HomeMediaSectionGroup['id'],
+ ): HomeMediaSectionView[] {
return this.sections.filter((section) => section.groupId === groupId);
}
@@ -455,8 +467,7 @@ export class AdminHomeMediaComponent implements OnInit, OnDestroy {
private resetForm(sectionKey: HomeSectionKey): void {
const formState = this.getFormState(sectionKey);
const section = this.sections.find((item) => item.usageKey === sectionKey);
- const nextSortOrder =
- (section?.items.at(-1)?.sortOrder ?? -1) + 1;
+ const nextSortOrder = (section?.items.at(-1)?.sortOrder ?? -1) + 1;
this.revokePreviewUrl(formState.previewUrl);
this.formStateByKey[sectionKey] = {
diff --git a/frontend/src/app/features/home/home.component.html b/frontend/src/app/features/home/home.component.html
index 0bb653e..f4e6b08 100644
--- a/frontend/src/app/features/home/home.component.html
+++ b/frontend/src/app/features/home/home.component.html
@@ -207,7 +207,9 @@
diff --git a/frontend/src/app/features/home/home.component.ts b/frontend/src/app/features/home/home.component.ts
index 0f4fcef..d7b8fb8 100644
--- a/frontend/src/app/features/home/home.component.ts
+++ b/frontend/src/app/features/home/home.component.ts
@@ -117,21 +117,20 @@ export class HomeComponent {
),
);
- readonly founderImages = computed(
- () =>
- (
- this.mediaByUsage()[
- buildPublicMediaUsageScopeKey('HOME_SECTION', 'founders-gallery')
- ] ?? []
+ readonly founderImages = computed(() =>
+ (
+ this.mediaByUsage()[
+ buildPublicMediaUsageScopeKey('HOME_SECTION', 'founders-gallery')
+ ] ?? []
+ )
+ .map((item: PublicMediaImage) =>
+ this.publicMediaService.toDisplayImage(item, 'hero'),
)
- .map((item: PublicMediaImage) =>
- this.publicMediaService.toDisplayImage(item, 'hero'),
- )
- .filter(
- (
- item: PublicMediaDisplayImage | null,
- ): item is PublicMediaDisplayImage => item !== null,
- ),
+ .filter(
+ (
+ item: PublicMediaDisplayImage | null,
+ ): item is PublicMediaDisplayImage => item !== null,
+ ),
);
readonly capabilityCards = computed(() =>
@@ -139,13 +138,15 @@ export class HomeComponent {
);
readonly founderImageIndex = signal(0);
- readonly currentFounderImage = computed(() => {
- const images = this.founderImages();
- if (images.length === 0) {
- return null;
- }
- return images[this.founderImageIndex()] ?? images[0] ?? null;
- });
+ readonly currentFounderImage = computed(
+ () => {
+ const images = this.founderImages();
+ if (images.length === 0) {
+ return null;
+ }
+ return images[this.founderImageIndex()] ?? images[0] ?? null;
+ },
+ );
constructor() {
effect(() => {