forked from fabric8-ui/fabric8-runtime-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(apps page): adds a new apps page
this new page shows a summary of all the apps in each environment, the version, numnber of pods and their states and the links to test out the apps in a single, simple view that folks can use to keep an eye on things fabric8-ui#454
- Loading branch information
Showing
24 changed files
with
834 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {NgModule} from "@angular/core"; | ||
import {RouterModule, Routes} from "@angular/router"; | ||
import {AppListPageComponent} from "./list-page/list-page.app.component"; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: AppListPageComponent, | ||
// Can't use lazy loading here as we need to import in to another module, and that doesn't work yet | ||
children: [ | ||
], | ||
}, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
RouterModule.forChild(routes), | ||
], | ||
exports: [ | ||
RouterModule, | ||
], | ||
}) | ||
export class AppRoutingModule { | ||
} |
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,65 @@ | ||
import {ServiceModule} from "./../service/service.module"; | ||
import {ReplicaSetModule} from "./../replicaset/replicaset.module"; | ||
import {PodModule} from "./../pod/pod.module"; | ||
import {EventModule} from "./../event/event.module"; | ||
import {ConfigMapModule} from "./../configmap/configmap.module"; | ||
import {DeploymentModule} from "./../deployment/deployment.module"; | ||
import {ConfigMapStore} from "./../../store/configmap.store"; | ||
import {NamespaceStore} from "./../../store/namespace.store"; | ||
import {NgModule} from "@angular/core"; | ||
import {DropdownConfig, DropdownModule} from "ng2-bootstrap"; | ||
import {CommonModule} from "@angular/common"; | ||
import {FormsModule} from "@angular/forms"; | ||
import {RouterModule} from "@angular/router"; | ||
import {ModalModule} from "ng2-modal"; | ||
import {ToolbarModule} from "ngx-widgets"; | ||
import {Fabric8CommonModule} from "../../../common/common.module"; | ||
import {MomentModule} from "angular2-moment"; | ||
import {KubernetesComponentsModule} from "../../components/components.module"; | ||
import {ConfigMapService} from "../../service/configmap.service"; | ||
import {NamespaceScope} from "../../service/namespace.scope"; | ||
import {NamespaceService} from "../../service/namespace.service"; | ||
import {AppListPageComponent} from "./list-page/list-page.app.component"; | ||
import {AppListComponent} from "./list/list.app.component"; | ||
import {AppListToolbarComponent} from "./list-toolbar/list-toolbar.app.component"; | ||
import {AppRoutingModule} from "./app-routing.module"; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
DropdownModule, | ||
FormsModule, | ||
ModalModule, | ||
MomentModule, | ||
RouterModule, | ||
Fabric8CommonModule, | ||
KubernetesComponentsModule, | ||
ToolbarModule, | ||
// Our Routing MUST go before the other Kuberenetes UI modules, so our routes take precedence | ||
AppRoutingModule, | ||
DeploymentModule, | ||
ConfigMapModule, | ||
EventModule, | ||
PodModule, | ||
ReplicaSetModule, | ||
ServiceModule, | ||
], | ||
declarations: [ | ||
AppListPageComponent, | ||
AppListToolbarComponent, | ||
AppListComponent, | ||
], | ||
providers: [ | ||
DropdownConfig, | ||
NamespaceStore, | ||
ConfigMapService, | ||
ConfigMapStore, | ||
NamespaceScope, | ||
NamespaceService, | ||
], | ||
exports: [ | ||
AppListPageComponent, | ||
], | ||
}) | ||
export class AppModule { | ||
} |
6 changes: 6 additions & 0 deletions
6
src/app/kubernetes/ui/app/list-page/list-page.app.component.html
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,6 @@ | ||
<div class="container-fluid"> | ||
<div class='environments list'> | ||
<fabric8-apps-list-toolbar></fabric8-apps-list-toolbar> | ||
<fabric8-apps-list [apps]="apps | async" [space]="space | async" [loading]="loading | async"></fabric8-apps-list> | ||
</div> | ||
</div> |
Empty file.
Oops, something went wrong.