-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c0e960
commit efc4753
Showing
8 changed files
with
111 additions
and
148 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
121 changes: 37 additions & 84 deletions
121
ui/src/app/shared/components/orb/agent/agent-provisioning/agent-provisioning.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,89 +1,42 @@ | ||
<nb-card style="max-height: 500px;"> | ||
<nb-card *ngIf="provisioningTypeMode.default"> | ||
<nb-card-header> | ||
Provisioning Commands | ||
<nb-select [(selected)]="selectedOS" | ||
appearance="filled" | ||
class="float-right" | ||
data-orb-qa-id="selected_OS"> | ||
<nb-option *ngFor="let option of availableOS" | ||
[value]="option"> | ||
{{ option | titlecase }} | ||
</nb-option> | ||
</nb-select> | ||
<button | ||
style="color: #3089fc; float: none;" | ||
ghost="true" | ||
nbButton | ||
(click)="toggleProvisioningCommand('hideCommand')"> | ||
<nb-icon [icon]="hideCommand ? 'plus-outline': 'minus-outline'" | ||
pack="eva"> | ||
</nb-icon> | ||
</button> | ||
Default Provisioning Command | ||
</nb-card-header> | ||
<nb-card-body [hidden]="hideCommand"> | ||
<nb-card style=" border: transparent; | ||
border-radius: 0.5rem;"> | ||
<nb-card-header> | ||
Default Provisioning Command | ||
<button | ||
style="color: #3089fc" | ||
ghost="true" | ||
nbButton | ||
(click)="toggleProvisioningCommand('hideCommand2')"> | ||
<nb-icon [icon]="hideCommand2 ? 'plus-outline': 'minus-outline'" | ||
pack="eva"> | ||
</nb-icon> | ||
</button> | ||
</nb-card-header> | ||
<nb-card-body [hidden]="hideCommand2" style="margin: 0 !important; background-color: #1c2339 !important;"> | ||
<pre> | ||
<button [cdkCopyToClipboard]="defaultCommandCopy" class="copy" | ||
nbTooltip="Copy Provisioning Command"> | ||
<nb-icon (click)="toggleIcon('command')" [icon]="copyCommandIcon" pack="eva"> | ||
</nb-icon> | ||
</button> | ||
<code [innerHtml]="defaultCommandShow"> | ||
{{ defaultCommandShow }} | ||
</code> | ||
</pre> | ||
</nb-card-body> | ||
</nb-card> | ||
<nb-card style=" border: transparent; | ||
border-radius: 0.5rem;"> | ||
<nb-card-header> | ||
Provisioning Command with Configuration File | ||
<button | ||
style="color: #3089fc" | ||
ghost="true" | ||
nbButton | ||
(click)="toggleProvisioningCommand('hideCommand3')"> | ||
<nb-icon [icon]="hideCommand3 ? 'plus-outline': 'minus-outline'" | ||
pack="eva"> | ||
<nb-card-body> | ||
<pre> | ||
<button [cdkCopyToClipboard]="defaultCommandCopy" | ||
nbTooltip="Copy Provisioning Command"> | ||
<nb-icon (click)="toggleIcon('command')" [icon]="copyCommandIcon" pack="eva"> | ||
</nb-icon> | ||
</button> | ||
<nb-icon icon="info-outline" style="margin-top: 10px; margin-right: 10px;" | ||
nbTooltip="This command requires that a configuration file named "agent.yaml" exist in your current working directory"> | ||
</nb-icon> | ||
</nb-card-header> | ||
<nb-card-body [hidden]="hideCommand3" style="margin: 0 !important; background-color: #1c2339 !important;"> | ||
<pre> | ||
<button [cdkCopyToClipboard]="fileConfigCommandCopy" class="copy" | ||
nbTooltip="Copy Provisioning Command"> | ||
<nb-icon (click)="toggleIcon('command')" [icon]="copyCommandIcon" pack="eva"> | ||
</nb-icon> | ||
</button> | ||
<code [innerHtml]="fileConfigCommandShow"> | ||
{{ fileConfigCommandShow }} | ||
</code> | ||
</pre> | ||
</nb-card-body> | ||
</nb-card> | ||
<p style="margin-left: 1rem;" *ngIf="!hideCommand3"> | ||
<a href="https://orb.community/documentation/running_orb_agent/#configuration-files" | ||
target="_blank" | ||
style="background-color: #ff9f05 !important;">Click here | ||
</a> | ||
<span style="color: #ff9f05 !important;">to learn more about how create and apply configuration files.</span> | ||
</p> | ||
</nb-card-body> | ||
<code [innerHtml]="defaultCommandShow"> | ||
{{ defaultCommandShow }} | ||
</code> | ||
</pre> | ||
</nb-card-body> | ||
</nb-card> | ||
|
||
<nb-card *ngIf="provisioningTypeMode.configFile"> | ||
<nb-card-header> | ||
Provisioning Command with Configuration File | ||
<a href="https://orb.community/documentation/running_orb_agent/#configuration-files" target="_blank"> | ||
<nb-icon icon="info-outline" style="margin-top: 3px; margin-right: 10px;" | ||
nbTooltip="This command requires that a configuration file named "agent.yaml" exist in your current working directory. Click to go to documentation."> | ||
</nb-icon> | ||
</a> | ||
|
||
</nb-card-header> | ||
<nb-card-body> | ||
<pre> | ||
<button [cdkCopyToClipboard]="fileConfigCommandCopy" | ||
nbTooltip="Copy Provisioning Command"> | ||
<nb-icon (click)="toggleIcon('command')" [icon]="copyCommandIcon" pack="eva"> | ||
</nb-icon> | ||
</button> | ||
<code [innerHtml]="fileConfigCommandShow"> | ||
{{ fileConfigCommandShow }} | ||
</code> | ||
</pre> | ||
</nb-card-body> | ||
</nb-card> | ||
|
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