This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Ensure extensions/extension-types.ts remains free from other imports - Now check endpoint detail type is correct at runtime - Cf Endpoint Type is now registered in cf package - Ensure cf package tests & lint execute correctly - Ensure endpoint details components are destroyed correctly
- Loading branch information
1 parent
d6b5250
commit 650988a
Showing
18 changed files
with
175 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/frontend/packages/cloud-foundry/src/cloud-foundry.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { StratosExtension } from '../../core/src/core/extension/extension-service'; | ||
import { EndpointTypeConfig } from '../../core/src/core/extension/extension-types'; | ||
import { urlValidationExpression } from '../../core/src/core/utils.service'; | ||
import { CfEndpointDetailsComponent } from './shared/components/cf-endpoint-details/cf-endpoint-details.component'; | ||
import { CloudFoundryComponentsModule } from './shared/components/components.module'; | ||
|
||
const cloudFoundryEndpointTypes: EndpointTypeConfig[] = [{ | ||
value: 'cf', | ||
label: 'Cloud Foundry', | ||
urlValidation: urlValidationExpression, | ||
icon: 'cloud_foundry', | ||
iconFont: 'stratos-icons', | ||
imagePath: '/core/assets/endpoint-icons/cloudfoundry.png', | ||
homeLink: (guid) => ['/cloud-foundry', guid], | ||
listDetailsComponent: CfEndpointDetailsComponent | ||
}]; | ||
|
||
@StratosExtension({ | ||
endpointTypes: cloudFoundryEndpointTypes, | ||
}) | ||
@NgModule({ | ||
imports: [ | ||
CloudFoundryComponentsModule | ||
], | ||
}) | ||
export class CloudFoundryModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.../cloud-foundry/src/shared/components/cf-endpoint-details/cf-endpoint-details.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { | ||
EndpointListDetailsComponent, | ||
} from '../../../../../core/src/shared/components/list/list-types/endpoint/endpoint-list.helpers'; | ||
|
||
|
||
@Component({ | ||
selector: 'lib-cf-endpoint-details', | ||
templateUrl: './cf-endpoint-details.component.html', | ||
styleUrls: ['./cf-endpoint-details.component.scss'] | ||
}) | ||
export class CfEndpointDetailsComponent extends EndpointListDetailsComponent { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
.../components/list/list-types/endpoint/cf-endpoint-details/cf-endpoint-details.component.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.