-
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(spie-ui): restructure app to add support to plotter view
- Loading branch information
Showing
52 changed files
with
1,245 additions
and
560 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
import { type Routes } from '@angular/router'; | ||
|
||
import { HomeComponent } from './pages/home/home.component'; | ||
|
||
export const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: HomeComponent, | ||
}, | ||
{ | ||
path: '**', | ||
redirectTo: '', | ||
pathMatch: 'full', | ||
loadChildren: () => | ||
import('./pages/home/home.routes').then((m) => m.routes), | ||
}, | ||
]; |
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
81 changes: 81 additions & 0 deletions
81
apps/spie-ui/src/app/components/connection/connection.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,81 @@ | ||
<ion-accordion-group value="connection"> | ||
<ion-accordion value="connection" toggleIconSlot="start"> | ||
<ion-item slot="header" color="primary"> | ||
<ion-label>Connection</ion-label> | ||
</ion-item> | ||
|
||
<ion-card slot="content"> | ||
<ion-card-content> | ||
<ion-grid> | ||
<ion-row> | ||
<ion-col size="6"> | ||
<ion-item> | ||
<ion-select | ||
label="Serial Port" | ||
placeholder="Select Serial Port" | ||
[disabled]="isOpen()" | ||
[value]="openOptions().path" | ||
(click)="onClickSerialPort($event)" | ||
(ionChange)="onChangeSerialPort($event)" | ||
> | ||
@for (serialPort of serialPorts(); track $index) { | ||
<ion-select-option [value]="serialPort.path"> | ||
{{ serialPort.path }} - {{ serialPort.manufacturer }} | ||
</ion-select-option> | ||
} | ||
</ion-select> | ||
</ion-item> | ||
</ion-col> | ||
|
||
<ion-col size="6"> | ||
<ion-item> | ||
<ion-select | ||
label="Baud Rate" | ||
placeholder="Select Baud Rate" | ||
[value]="openOptions().baudRate" | ||
(ionChange)="onChangeBaudRate($event)" | ||
> | ||
@for (baudRate of baudRates; track $index) { | ||
<ion-select-option [value]="baudRate">{{ | ||
baudRate | ||
}}</ion-select-option> | ||
} | ||
</ion-select> | ||
</ion-item> | ||
</ion-col> | ||
</ion-row> | ||
|
||
<ion-row> | ||
<ion-col> | ||
<ion-button | ||
expand="block" | ||
[color]="isOpen() ? 'danger' : 'secondary'" | ||
[disabled]="!isOpen() && openOptions().path === ''" | ||
(click)="onClickConnect()" | ||
> | ||
<ion-icon | ||
slot="start" | ||
[name]="isOpen() ? 'log-out-outline' : 'log-in-outline'" | ||
></ion-icon> | ||
{{ isOpen() ? 'Disconnect' : 'Connect' }} | ||
</ion-button> | ||
</ion-col> | ||
<ion-col size="auto"> | ||
<ion-button | ||
fill="clear" | ||
color="secondary" | ||
(click)="onClickConnectionAdvancedModal()" | ||
> | ||
<ion-icon name="settings-outline"></ion-icon> | ||
</ion-button> | ||
</ion-col> | ||
</ion-row> | ||
</ion-grid> | ||
|
||
<app-connection-advanced-modal-component | ||
[reconnectSubject]="reconnectSubject" | ||
/> | ||
</ion-card-content> | ||
</ion-card> | ||
</ion-accordion> | ||
</ion-accordion-group> |
File renamed without changes.
Oops, something went wrong.