refactor: remove replaced component
MODIFY
src/app/app.module.ts
src/app/app.module.ts
@@ -13,7 +13,6 @@ import { HomeComponent } from './components/home/home.component';
import { MarketplaceApiTermsComponent } from './components/marketplace-api-terms/marketplace-api-terms.component';
import { MarketplaceSignupStepperComponent } from './components/marketplace-signup-stepper/marketplace-signup-stepper.component';
import { MarketplaceApiPoliciesComponent } from './components/marketplace-api-policies/marketplace-api-policies.component';
-import { MarketplaceApiConfirmationComponent } from './components/marketplace-api-confirmation/marketplace-api-confirmation.component';
import { ClipboardModule } from '@angular/cdk/clipboard';
import { MarketplaceApiDescriptionComponent } from './components/marketplace-api-description/marketplace-api-description.component';
import { PlanCardComponent } from './components/plan-card/plan-card.component';
@@ -94,7 +93,6 @@ function initializeKeycloak(keycloakHelper: KeycloakHelperService) {
MarketplaceSignupStepperComponent,
HomeComponent,
MarketplaceApiPoliciesComponent,
- MarketplaceApiConfirmationComponent,
MarketplaceApiDescriptionComponent,
PlanCardComponent,
MarketplaceComponent,

DELETE
src/app/components/marketplace-api-confirmation/marketplace-api-confirmation.component.html
-<h2>Using your API</h2>
-
-<mat-grid-list cols="2" rowHeight="8:1">
- <mat-grid-tile>
- <div class="box">
- <h3>API Key</h3>
- <p>Some useful hints...</p>
- </div>
- </mat-grid-tile>
- <mat-grid-tile>
- <mat-divider [vertical]="true"></mat-divider>
- <div class="box">
- <p>You will be provided with an API-Key...</p>
- <input value="{{ apiKey }}" />
- <button mat-icon-button [cdkCopyToClipboard]="apiKey">
- <mat-icon>content_copy</mat-icon>
- </button>
- </div>
- </mat-grid-tile>
- <mat-grid-tile>
- <div class="box">
- <h3>Endpoint</h3>
- <p>Some useful hints...</p>
- </div>
- </mat-grid-tile>
- <mat-grid-tile>
- <mat-divider [vertical]="true"></mat-divider>
- <div class="box">
- <p>You will be provided with an endpoint...</p>
- <input value="{{ apiEndpoint }}" />
- <button mat-icon-button [cdkCopyToClipboard]="apiEndpoint">
- <mat-icon>content_copy</mat-icon>
- </button>
- </div>
- </mat-grid-tile>
- <mat-grid-tile>
- <div class="box">
- <h3>Authentication</h3>
- <p>Some useful hints...</p>
- </div>
- </mat-grid-tile>
- <mat-grid-tile>
- <mat-divider [vertical]="true"></mat-divider>
- <div class="box">
- <p>You will be provided with OAuth credentials...</p>
- <input value="{{ apiEndpoint }}" />
- <button mat-icon-button [cdkCopyToClipboard]="apiEndpoint">
- <mat-icon>content_copy</mat-icon>
- </button>
- </div>
- </mat-grid-tile>
- <mat-grid-tile>
- <div class="box">
- <h3>API Documentation</h3>
- <p>Some useful hints...</p>
- </div>
- </mat-grid-tile>
- <mat-grid-tile>
- <mat-divider [vertical]="true"></mat-divider>
- <div class="box">
- <p>Further documentation</p>
- <button mat-raised-button>View API Docs &amp; Try It Now</button>
- </div>
- </mat-grid-tile>
-</mat-grid-list>

DELETE
src/app/components/marketplace-api-confirmation/marketplace-api-confirmation.component.scss
-.box{
- width: 100%;
- height: 100%;
-}
-
-mat-divider {
- height: 80%;
- margin-right: 2em;
-}

DELETE
src/app/components/marketplace-api-confirmation/marketplace-api-confirmation.component.spec.ts
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MarketplaceApiConfirmationComponent } from './marketplace-api-confirmation.component';
-
-describe('MarketplaceApiConfirmationComponent', () => {
- let component: MarketplaceApiConfirmationComponent;
- let fixture: ComponentFixture<MarketplaceApiConfirmationComponent>;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- declarations: [MarketplaceApiConfirmationComponent],
- }).compileComponents();
- });
-
- beforeEach(() => {
- fixture = TestBed.createComponent(MarketplaceApiConfirmationComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});

DELETE
src/app/components/marketplace-api-confirmation/marketplace-api-confirmation.component.ts
-import { Component, OnInit } from '@angular/core';
-
-@Component({
- selector: 'app-marketplace-api-confirmation',
- templateUrl: './marketplace-api-confirmation.component.html',
- styleUrls: ['./marketplace-api-confirmation.component.scss'],
-})
-export class MarketplaceApiConfirmationComponent implements OnInit {
- apiKey = 'My API Key';
- apiEndpoint = 'My API Key';
-
- constructor() {}
-
- ngOnInit(): void {}
-}

refactor: remove replaced component