This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Angular Material and CLI (#362)
* Update Angular Material and CLI Updating to the latest version of CLI which fixes AOT build failures Updating Material to the latest version which removes MaterialModule (requiring individual modules to be manually imported) and also switches to the "Mat" prefix since "Md" is now deprecated. * Fix migration to mat prefixes on input and tabs * Fix missing mat component imports
- Loading branch information
Showing
45 changed files
with
815 additions
and
444 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
70 changes: 37 additions & 33 deletions
70
src/ui/src/app/chart-details/chart-details-usage/chart-details-usage.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 |
---|---|---|
@@ -1,37 +1,41 @@ | ||
<app-panel class="chart-details-usage" [border]=true> | ||
<h1>Install</h1> | ||
<md-tab-group> | ||
<md-tab *ngIf="config.releasesEnabled" label="One Click installation"> | ||
<button color="primary" md-raised-button | ||
(click)="installDeployment(chart.id, currentVersion)" | ||
*ngIf="!installing"> | ||
Install {{ chart.attributes.name }} v{{ currentVersion }} | ||
<mat-tab-group> | ||
<mat-tab *ngIf="config.releasesEnabled" label="One Click installation"> | ||
<button color="primary" mat-raised-button | ||
(click)="installDeployment(chart.id, currentVersion)" | ||
*ngIf="!installing"> | ||
Install {{ chart.attributes.name }} v{{ currentVersion }} | ||
</button> | ||
<p *ngIf="installing"><mat-progress-bar mode="indeterminate"></mat-progress-bar></p> | ||
</mat-tab> | ||
<mat-tab label="Helm CLI"> | ||
<div *ngIf=!showRepoInstructions class="chart-details-usage__repository"> | ||
<h2 class="chart-details-usage__label">Add {{ chart.attributes.repo.name }} repository</h2> | ||
<mat-form-field> | ||
<input matInput floatingPlaceholder=false [value]=repoAddInstructions> | ||
</mat-form-field> | ||
<button mat-button ngxClipboard [cbContent]="repoAddInstructions" (cbOnSuccess)="showSnackBar()" | ||
angulartics2On="click" angularticsEvent="RepositoryCopy" angularticsCategory="{{ chart.id }}" | ||
[angularticsProperties]="{ label: currentVersion }"> | ||
<mat-icon svgIcon="content-copy"></mat-icon> | ||
</button> | ||
<p *ngIf="installing"><md-progress-bar mode="indeterminate"></md-progress-bar></p> | ||
</md-tab> | ||
<md-tab label="Helm CLI"> | ||
<div *ngIf=showRepoInstructions class="chart-details-usage__repository"> | ||
<h2 class="chart-details-usage__label">Add {{ chart.attributes.repo.name }} repository</h2> | ||
<input mdInput floatingPlaceholder=false [value]=repoAddInstructions> | ||
<button md-button ngxClipboard [cbContent]="repoAddInstructions" (cbOnSuccess)="showSnackBar()" | ||
angulartics2On="click" angularticsEvent="RepositoryCopy" angularticsCategory="{{ chart.id }}" | ||
[angularticsProperties]="{ label: currentVersion }"> | ||
<md-icon svgIcon="content-copy"></md-icon> | ||
</button> | ||
</div> | ||
<div> | ||
<h2 class="chart-details-usage__label">Install chart</h2> | ||
<input mdInput readonly floatingPlaceholder=false [value]=installInstructions> | ||
<button md-button ngxClipboard [cbContent]="installInstructions" (cbOnSuccess)="showSnackBar()" | ||
angulartics2On="click" angularticsEvent="ChartInstallationCopy" | ||
angularticsCategory="{{ chart.id }}" [angularticsProperties]="{ label: currentVersion }"> | ||
<md-icon svgIcon="content-copy"></md-icon> | ||
</button> | ||
</div> | ||
<p class="help-link"> | ||
<a href="https://github.com/kubernetes/helm/blob/master/docs/quickstart.md" | ||
target="_blank" title="How to install Helm">Need Helm?</a> | ||
</p> | ||
</md-tab> | ||
</md-tab-group> | ||
</div> | ||
<div> | ||
<h2 class="chart-details-usage__label">Install chart</h2> | ||
<mat-form-field> | ||
<input matInput readonly floatingPlaceholder=false [value]=installInstructions> | ||
</mat-form-field> | ||
<button mat-button ngxClipboard [cbContent]="installInstructions" (cbOnSuccess)="showSnackBar()" | ||
angulartics2On="click" angularticsEvent="ChartInstallationCopy" | ||
angularticsCategory="{{ chart.id }}" [angularticsProperties]="{ label: currentVersion }"> | ||
<mat-icon svgIcon="content-copy"></mat-icon> | ||
</button> | ||
</div> | ||
<p class="help-link"> | ||
<a href="https://github.com/kubernetes/helm/blob/master/docs/quickstart.md" | ||
target="_blank" title="How to install Helm">Need Helm?</a> | ||
</p> | ||
</mat-tab> | ||
</mat-tab-group> | ||
</app-panel> |
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
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
6 changes: 3 additions & 3 deletions
6
src/ui/src/app/deployment-controls/deployment-controls.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<p *ngIf="deleting"><md-progress-bar mode="indeterminate"></md-progress-bar></p> | ||
<button *ngIf="!deleting" md-button [color]="'warn'" | ||
(click)="deleteDeployment(deployment.id)" md-raised-button> | ||
<p *ngIf="deleting"><mat-progress-bar mode="indeterminate"></mat-progress-bar></p> | ||
<button *ngIf="!deleting" mat-button [color]="'warn'" | ||
(click)="deleteDeployment(deployment.id)" mat-raised-button> | ||
Delete deployment | ||
</button> |
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
Oops, something went wrong.