Skip to content

Commit dd4e2e7

Browse files
committed
fix: broken search
* refactor cards and template gallery logic * rename 'Overview' to 'Home' * remove autogenerated tests CU-86c37j4ah CU-86c37j4dk
1 parent b646662 commit dd4e2e7

19 files changed

+108
-273
lines changed

website/src/app/app.component.spec.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

website/src/app/features/platform-view/platform-view.component.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ <h5 class="ms-3 card-title fw-bold align-self-center">
1515

1616
<ng-container *ngIf="templates$ | async as templates">
1717
<h2 class="fw-bold">{{ platform.title }} building block definitions</h2>
18-
<p class="mt-2 mb-5" *ngIf="templates.length; else noTemplates">These <b>{{ platform.title }} building block
19-
definitions</b> provide pre-configured Terraform modules
20-
for automating common cloud tasks</p>
18+
<p class="mt-2 mb-5" *ngIf="templates.length; else noTemplates">
19+
These
20+
<b>{{ platform.title }} building block definitions</b>
21+
provide pre-configured Terraform modules for automating common cloud tasks
22+
</p>
2123
<ng-template #noTemplates>
2224
<p class="mt-2">No building block definitions</p>
2325
</ng-template>
@@ -28,4 +30,4 @@ <h2 class="fw-bold">{{ platform.title }} building block definitions</h2>
2830
</div>
2931
</div>
3032
</ng-container>
31-
</div>
33+
</div>

website/src/app/features/platform-view/platform-view.component.spec.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

website/src/app/features/platform-view/platform-view.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { BreadcrumbItem } from 'app/shared/breadcrumb/breadcrumb';
1010
import { CardComponent } from 'app/shared/card';
1111
import { DefinitionCard } from 'app/shared/definition-card/definition-card';
1212
import { DefinitionCardComponent } from 'app/shared/definition-card/definition-card.component';
13-
import { LogoCircleComponent } from 'app/shared/logo-circle/logo-circle.component';
13+
import { LogoCircleComponent } from 'app/shared/logo-circle';
1414
import { PlatformData, PlatformService } from 'app/shared/platform-logo';
1515
import { TemplateService } from 'app/shared/template';
1616

website/src/app/features/template-details/template-details.component.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
<mst-breadcrumb [breadcrumbs]="breadcrumbs"></mst-breadcrumb>
66
</ng-container>
77
<div class="pt-5">
8-
<div class="row ">
8+
<div class="row">
99
<div class="col-12 col-md-auto text-center mb-3 mb-md-0">
10-
<img *ngIf="template.imageUrl; else unknownLogo" class="logo img-fluid" [src]="template.imageUrl"
11-
[alt]="template.platformType" />
10+
<img
11+
*ngIf="template.imageUrl; else unknownLogo"
12+
class="logo img-fluid"
13+
[src]="template.imageUrl"
14+
[alt]="template.platformType"
15+
/>
1216
<ng-template #unknownLogo>
1317
<img src="assets/meshstack-logo.png" class="logo img-fluid" alt="Unknown Logo" />
1418
</ng-template>
@@ -27,8 +31,15 @@ <h2 class="fw-bold h4">
2731
<i class="fa-solid fa-code pe-2"></i>
2832
Source
2933
</h2>
30-
<div class="d-flex flex-column flex-md-row align-items-start align-items-md-center p-2 bg-light border rounded shadow-sm">
31-
<a [href]="template.source" target="_blank" rel="noopener noreferrer" class="mb-2 mb-md-0 me-md-3 flex-grow-1">
34+
<div
35+
class="d-flex flex-column flex-md-row align-items-start align-items-md-center p-2 bg-light border rounded shadow-sm"
36+
>
37+
<a
38+
[href]="template.source"
39+
target="_blank"
40+
rel="noopener noreferrer"
41+
class="mb-2 mb-md-0 me-md-3 flex-grow-1"
42+
>
3243
{{ template.source }}
3344
</a>
3445
<button type="button" (click)="copyToClipboard(template.source)" class="btn btn-light btn-sm">
@@ -81,4 +92,4 @@ <h3 class="fw-bold h6">Option 2: Copy the Files into your own Repository</h3>
8192
</div>
8293
</ng-container>
8394
</div>
84-
</div>
95+
</div>

website/src/app/features/template-details/template-details.component.spec.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export interface PlatformCard {
2+
cardLogo: string | null;
3+
title: string;
4+
routePath: string;
5+
}

website/src/app/features/template-gallery/platform-cards/platform-cards.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="row" *ngIf="cards$ | async as cards">
1+
<div class="row">
22
<div class="col-md-3 mb-3" *ngFor="let card of cards; let i = index">
33
<mst-card [routePath]="card.routePath" [label]="card.title" [borderColorSourceImage]="card.cardLogo">
44
<div

website/src/app/features/template-gallery/platform-cards/platform-cards.component.scss

Lines changed: 0 additions & 27 deletions
This file was deleted.

website/src/app/features/template-gallery/platform-cards/platform-cards.component.spec.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)