Change sentence "on your local computer" to "locally"

This commit is contained in:
grossmj
2020-05-20 15:42:14 +09:30
parent 1ed8123082
commit 0cee6188fb
8 changed files with 56 additions and 56 deletions

View File

@ -7,7 +7,7 @@
<div class="default-content"> <div class="default-content">
<mat-card class="matCard"> <mat-card class="matCard">
<mat-radio-group class="radio-group"> <mat-radio-group class="radio-group">
<mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run the cloud node on your local computer</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run the cloud node locally</mat-radio-button>
<mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run the cloud node on the GNS3 VM</mat-radio-button> <mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run the cloud node on the GNS3 VM</mat-radio-button>
</mat-radio-group> </mat-radio-group>

View File

@ -7,7 +7,7 @@
<div class="default-content"> <div class="default-content">
<mat-card class="matCard"> <mat-card class="matCard">
<mat-radio-group class="radio-group"> <mat-radio-group class="radio-group">
<mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run the Ethernet Hub on your local computer</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run the Ethernet Hub locally</mat-radio-button>
<mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run the Ethernet Hub on the GNS3 VM</mat-radio-button> <mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run the Ethernet Hub on the GNS3 VM</mat-radio-button>
</mat-radio-group> </mat-radio-group>

View File

@ -7,10 +7,10 @@
<div class="default-content"> <div class="default-content">
<mat-card class="matCard"> <mat-card class="matCard">
<mat-radio-group class="radio-group"> <mat-radio-group class="radio-group">
<mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run the Ethernet switch on your local computer</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run the Ethernet switch locally</mat-radio-button>
<mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run the Ethernet switch on the GNS3 VM</mat-radio-button> <mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run the Ethernet switch on the GNS3 VM</mat-radio-button>
</mat-radio-group> </mat-radio-group>
<form [formGroup]="formGroup"> <form [formGroup]="formGroup">
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<input formControlName="templateName" matInput type="text" placeholder="Template name"> <input formControlName="templateName" matInput type="text" placeholder="Template name">

View File

@ -10,7 +10,7 @@
<mat-step label="Server type"> <mat-step label="Server type">
<mat-radio-group class="radio-group"> <mat-radio-group class="radio-group">
<!-- <mat-radio-button class="radio-button" value="1" (click)="setServerType('remote computer')">Run this Docker container on a remote computer</mat-radio-button> --> <!-- <mat-radio-button class="radio-button" value="1" (click)="setServerType('remote computer')">Run this Docker container on a remote computer</mat-radio-button> -->
<mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run this Docker container on your local computer</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run this Docker container locally</mat-radio-button>
<mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run this Docker container on the GNS3 VM</mat-radio-button> <mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run this Docker container on the GNS3 VM</mat-radio-button>
</mat-radio-group> </mat-radio-group>
</mat-step> </mat-step>
@ -20,10 +20,10 @@
<mat-radio-button class="radio-button" value="1" (click)="setDiskImage('existingImage')" checked>Existing image</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setDiskImage('existingImage')" checked>Existing image</mat-radio-button>
<mat-radio-button class="radio-button" value="2" (click)="setDiskImage('newImage')">New image</mat-radio-button> <mat-radio-button class="radio-button" value="2" (click)="setDiskImage('newImage')">New image</mat-radio-button>
</mat-radio-group> </mat-radio-group>
<mat-select <mat-select
*ngIf="!newImageSelected" *ngIf="!newImageSelected"
placeholder="Image list" placeholder="Image list"
[ngModelOptions]="{standalone: true}" [ngModelOptions]="{standalone: true}"
[(ngModel)]="selectedImage"> [(ngModel)]="selectedImage">
<mat-option *ngFor="let image of dockerImages" [value]="image"> <mat-option *ngFor="let image of dockerImages" [value]="image">
{{image.image}} {{image.image}}
@ -75,9 +75,9 @@
</mat-form-field> </mat-form-field>
</mat-step> </mat-step>
<mat-step label="Console type"> <mat-step label="Console type">
<mat-select <mat-select
placeholder="Console type" placeholder="Console type"
[ngModelOptions]="{standalone: true}" [ngModelOptions]="{standalone: true}"
[(ngModel)]="dockerTemplate.console_type"> [(ngModel)]="dockerTemplate.console_type">
<mat-option *ngFor="let type of consoleTypes" [value]="type"> <mat-option *ngFor="let type of consoleTypes" [value]="type">
{{type}} {{type}}

View File

@ -9,7 +9,7 @@
<mat-vertical-stepper [linear]="true"> <mat-vertical-stepper [linear]="true">
<mat-step label="Server type"> <mat-step label="Server type">
<mat-radio-group class="radio-group"> <mat-radio-group class="radio-group">
<mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run this IOS router on your local computer</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run this IOS router locally</mat-radio-button>
<mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run this IOS router on the GNS3 VM</mat-radio-button> <mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run this IOS router on the GNS3 VM</mat-radio-button>
</mat-radio-group> </mat-radio-group>
</mat-step> </mat-step>
@ -26,8 +26,8 @@
<button mat-raised-button color="primary" (click)="file.click()">Click to add image</button> or create from existing one <button mat-raised-button color="primary" (click)="file.click()">Click to add image</button> or create from existing one
<form [formGroup]="iosImageForm"> <form [formGroup]="iosImageForm">
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<mat-select <mat-select
placeholder="Image" placeholder="Image"
(selectionChange)="onImageChosen($event)" (selectionChange)="onImageChosen($event)"
formControlName="imageName"> formControlName="imageName">
<mat-option *ngFor="let image of iosImages" [value]="image.filename"> <mat-option *ngFor="let image of iosImages" [value]="image.filename">
@ -40,14 +40,14 @@
<mat-step label="Name and platform"> <mat-step label="Name and platform">
<form [formGroup]="iosNameForm"> <form [formGroup]="iosNameForm">
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<input <input
matInput type="text" matInput type="text"
formControlName="templateName" formControlName="templateName"
placeholder="Name"/> placeholder="Name"/>
</mat-form-field> </mat-form-field>
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<mat-select <mat-select
placeholder="Platform" placeholder="Platform"
(selectionChange)="onPlatformChosen($event)" (selectionChange)="onPlatformChosen($event)"
formControlName="platform"> formControlName="platform">
<mat-option *ngFor="let platform of platforms" [value]="platform"> <mat-option *ngFor="let platform of platforms" [value]="platform">
@ -56,8 +56,8 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field class="form-field" *ngIf="chassis[iosNameForm.get('platform').value]"> <mat-form-field class="form-field" *ngIf="chassis[iosNameForm.get('platform').value]">
<mat-select <mat-select
placeholder="Chassis" placeholder="Chassis"
(selectionChange)="onChassisChosen($event)" (selectionChange)="onChassisChosen($event)"
formControlName="chassis"> formControlName="chassis">
<mat-option *ngFor="let chassis of chassis[iosNameForm.get('platform').value]" [value]="chassis"> <mat-option *ngFor="let chassis of chassis[iosNameForm.get('platform').value]" [value]="chassis">
@ -66,8 +66,8 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</form> </form>
<mat-checkbox <mat-checkbox
*ngIf="platformsWithEtherSwitchRouterOption[iosTemplate.platform]" *ngIf="platformsWithEtherSwitchRouterOption[iosTemplate.platform]"
[(ngModel)]="isEtherSwitchRouter"> [(ngModel)]="isEtherSwitchRouter">
This is an EtherSwitch router This is an EtherSwitch router
</mat-checkbox> </mat-checkbox>
@ -75,8 +75,8 @@
<mat-step label="Memory"> <mat-step label="Memory">
<form [formGroup]="iosMemoryForm"> <form [formGroup]="iosMemoryForm">
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<input <input
matInput type="number" matInput type="number"
formControlName="memory" formControlName="memory"
value="defaultRam[iosNameForm.get('platform').value]" value="defaultRam[iosNameForm.get('platform').value]"
placeholder="Default RAM"/> placeholder="Default RAM"/>
@ -90,51 +90,51 @@
<mat-step label="Network adapters"> <mat-step label="Network adapters">
<div *ngIf="chassis[iosNameForm.get('platform').value]"> <div *ngIf="chassis[iosNameForm.get('platform').value]">
<div *ngFor="let index of [0,1,2,3,4,5,6,7]"> <div *ngFor="let index of [0,1,2,3,4,5,6,7]">
<mat-select <mat-select
placeholder="Slot {{index}}" placeholder="Slot {{index}}"
[(ngModel)]="networkAdaptersForTemplate[index]" [(ngModel)]="networkAdaptersForTemplate[index]"
[ngModelOptions]="{standalone: true}" [ngModelOptions]="{standalone: true}"
*ngIf="networkAdapters[iosNameForm.get('chassis').value] && networkAdapters[iosNameForm.get('chassis').value][index]"> *ngIf="networkAdapters[iosNameForm.get('chassis').value] && networkAdapters[iosNameForm.get('chassis').value][index]">
<mat-option *ngFor="let option of networkAdapters[iosNameForm.get('chassis').value][index]" [value]="option"> <mat-option *ngFor="let option of networkAdapters[iosNameForm.get('chassis').value][index]" [value]="option">
{{option}} {{option}}
</mat-option> </mat-option>
</mat-select> </mat-select>
</div> </div>
</div> </div>
<div *ngIf="chassis[iosNameForm.get('platform').value]"> <div *ngIf="chassis[iosNameForm.get('platform').value]">
<div *ngFor="let index of [0,1,2,3,4,5,6,7]"> <div *ngFor="let index of [0,1,2,3,4,5,6,7]">
<mat-select <mat-select
placeholder="Slot {{index}}" placeholder="Slot {{index}}"
[(ngModel)]="networkAdaptersForTemplate[index]" [(ngModel)]="networkAdaptersForTemplate[index]"
[ngModelOptions]="{standalone: true}" [ngModelOptions]="{standalone: true}"
*ngIf="networkAdaptersForPlatform[iosNameForm.get('platform').value] && networkAdaptersForPlatform[iosNameForm.get('platform').value][index]"> *ngIf="networkAdaptersForPlatform[iosNameForm.get('platform').value] && networkAdaptersForPlatform[iosNameForm.get('platform').value][index]">
<mat-option *ngFor="let option of networkAdaptersForPlatform[iosNameForm.get('platform').value][index]" [value]="option"> <mat-option *ngFor="let option of networkAdaptersForPlatform[iosNameForm.get('platform').value][index]" [value]="option">
{{option}} {{option}}
</mat-option> </mat-option>
</mat-select> </mat-select>
</div> </div>
</div> </div>
</mat-step> </mat-step>
<mat-step label="WIC modules"> <mat-step label="WIC modules">
<div *ngIf="iosNameForm.get('platform').value"> <div *ngIf="iosNameForm.get('platform').value">
<div *ngFor="let index of [0,1,2,3]"> <div *ngFor="let index of [0,1,2,3]">
<mat-select <mat-select
placeholder="WIC {{index}}" placeholder="WIC {{index}}"
[(ngModel)]="networkModulesForTemplate[index]" [(ngModel)]="networkModulesForTemplate[index]"
[ngModelOptions]="{standalone: true}" [ngModelOptions]="{standalone: true}"
*ngIf="networkModules[iosNameForm.get('platform').value] && networkModules[iosNameForm.get('platform').value][index]"> *ngIf="networkModules[iosNameForm.get('platform').value] && networkModules[iosNameForm.get('platform').value][index]">
<mat-option *ngFor="let option of networkModules[iosNameForm.get('platform').value][index]" [value]="option"> <mat-option *ngFor="let option of networkModules[iosNameForm.get('platform').value][index]" [value]="option">
{{option}} {{option}}
</mat-option> </mat-option>
</mat-select> </mat-select>
</div> </div>
</div> </div>
</mat-step> </mat-step>
<mat-step label="Idle-PC"> <mat-step label="Idle-PC">
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<input <input
matInput type="text" matInput type="text"
[(ngModel)]="iosTemplate.idlepc" [(ngModel)]="iosTemplate.idlepc"
placeholder="Idle-PC"/> placeholder="Idle-PC"/>
</mat-form-field> </mat-form-field>
</mat-step> </mat-step>

View File

@ -9,7 +9,7 @@
<mat-vertical-stepper [linear]="true"> <mat-vertical-stepper [linear]="true">
<mat-step label="Server type"> <mat-step label="Server type">
<mat-radio-group class="radio-group"> <mat-radio-group class="radio-group">
<mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run this IOU device on your local computer</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run this IOU device locally</mat-radio-button>
<mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run this IOU device on the GNS3 VM</mat-radio-button> <mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run this IOU device on the GNS3 VM</mat-radio-button>
</mat-radio-group> </mat-radio-group>
</mat-step> </mat-step>
@ -27,8 +27,8 @@
<mat-radio-button class="radio-button" value="2" (click)="setDiskImage('newImage')">New image</mat-radio-button> <mat-radio-button class="radio-button" value="2" (click)="setDiskImage('newImage')">New image</mat-radio-button>
</mat-radio-group> </mat-radio-group>
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<mat-select <mat-select
placeholder="Type" placeholder="Type"
[(ngModel)]="selectedType" [(ngModel)]="selectedType"
[ngModelOptions]="{standalone: true}"> [ngModelOptions]="{standalone: true}">
<mat-option *ngFor="let type of types" [value]="type"> <mat-option *ngFor="let type of types" [value]="type">
@ -37,8 +37,8 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field class="form-field" *ngIf="!newImageSelected"> <mat-form-field class="form-field" *ngIf="!newImageSelected">
<mat-select <mat-select
placeholder="IOU image" placeholder="IOU image"
[(ngModel)]="iouTemplate.path" [(ngModel)]="iouTemplate.path"
[ngModelOptions]="{standalone: true}"> [ngModelOptions]="{standalone: true}">
<mat-option *ngFor="let image of iouImages" [value]="image.path"> <mat-option *ngFor="let image of iouImages" [value]="image.path">

View File

@ -9,7 +9,7 @@
<mat-vertical-stepper [linear]="true"> <mat-vertical-stepper [linear]="true">
<mat-step label="Server type"> <mat-step label="Server type">
<mat-radio-group class="radio-group"> <mat-radio-group class="radio-group">
<mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run this QEMU VM on your local computer</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run this QEMU VM locally</mat-radio-button>
<mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run this QEMU VM on the GNS3 VM</mat-radio-button> <mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run this QEMU VM on the GNS3 VM</mat-radio-button>
</mat-radio-group> </mat-radio-group>
</mat-step> </mat-step>
@ -17,8 +17,8 @@
<mat-step label="QEMU VM Name"> <mat-step label="QEMU VM Name">
<form [formGroup]="nameForm"> <form [formGroup]="nameForm">
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<input <input
matInput type="text" matInput type="text"
formControlName="templateName" formControlName="templateName"
placeholder="Please choose a descriptive name for your new QEMU virtual machine" placeholder="Please choose a descriptive name for your new QEMU virtual machine"
ngDefaultContro/> ngDefaultContro/>
@ -31,7 +31,7 @@
<mat-step label="QEMU binary and memory"> <mat-step label="QEMU binary and memory">
<form [formGroup]="memoryForm"> <form [formGroup]="memoryForm">
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<mat-select <mat-select
placeholder="Qemu binary" placeholder="Qemu binary"
[(ngModel)]="selectedBinary" [(ngModel)]="selectedBinary"
[ngModelOptions]="{standalone: true}"> [ngModelOptions]="{standalone: true}">
@ -41,9 +41,9 @@
</mat-select> </mat-select>
</mat-form-field><br/> </mat-form-field><br/>
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<input <input
matInput type="number" matInput type="number"
placeholder="RAM" placeholder="RAM"
formControlName="ramMemory" formControlName="ramMemory"
ngDefaultContro/> ngDefaultContro/>
<span matSuffix>MB</span> <span matSuffix>MB</span>
@ -52,8 +52,8 @@
</mat-step> </mat-step>
<mat-step label="Console type"> <mat-step label="Console type">
<mat-form-field class="form-field"> <mat-form-field class="form-field">
<mat-select <mat-select
placeholder="Console type" placeholder="Console type"
[(ngModel)]="qemuTemplate.console_type" [(ngModel)]="qemuTemplate.console_type"
[ngModelOptions]="{standalone: true}" > [ngModelOptions]="{standalone: true}" >
<mat-option *ngFor="let type of consoleTypes" [value]="type"> <mat-option *ngFor="let type of consoleTypes" [value]="type">
@ -68,10 +68,10 @@
<mat-radio-button class="radio-button" value="1" (click)="setDiskImage('existingImage')" checked>Existing image</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setDiskImage('existingImage')" checked>Existing image</mat-radio-button>
<mat-radio-button class="radio-button" value="2" (click)="setDiskImage('newImage')">New image</mat-radio-button> <mat-radio-button class="radio-button" value="2" (click)="setDiskImage('newImage')">New image</mat-radio-button>
</mat-radio-group><br/><br/> </mat-radio-group><br/><br/>
<mat-select <mat-select
*ngIf="!newImageSelected" *ngIf="!newImageSelected"
placeholder="Disk image (hda)" placeholder="Disk image (hda)"
[ngModelOptions]="{standalone: true}" [ngModelOptions]="{standalone: true}"
[(ngModel)]="selectedImage"> [(ngModel)]="selectedImage">
<mat-option *ngFor="let image of qemuImages" [value]="image"> <mat-option *ngFor="let image of qemuImages" [value]="image">
{{image.filename}} {{image.filename}}

View File

@ -7,7 +7,7 @@
<div class="default-content"> <div class="default-content">
<mat-card class="matCard"> <mat-card class="matCard">
<mat-radio-group class="radio-group"> <mat-radio-group class="radio-group">
<mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run the VPCS node on your local computer</mat-radio-button> <mat-radio-button class="radio-button" value="1" (click)="setServerType('local')" checked>Run the VPCS node locally</mat-radio-button>
<mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run the VPCS node on the GNS3 VM</mat-radio-button> <mat-radio-button [disabled]="!isGns3VmAvailable" class="radio-button" value="2" (click)="setServerType('gns3 vm')">Run the VPCS node on the GNS3 VM</mat-radio-button>
</mat-radio-group> </mat-radio-group>