mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-10 09:03:37 +00:00
class cleanup
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<div class="h-full flex flex-col">
|
||||
<div class="flex items-center">
|
||||
<div class="text-white">Config Preview</div>
|
||||
<div class="flex-grow"></div>
|
||||
<div class="grow"></div>
|
||||
<div>
|
||||
<button mat-icon-button matTooltip="Download Config" (click)="downloadConfig()">
|
||||
<mat-icon class="!text-white">download</mat-icon>
|
||||
<mat-icon class="text-white!">download</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}
|
||||
<div class="text-white">Modules</div>
|
||||
</div>
|
||||
<div class="flex-grow overflow-x-hidden overflow-y-auto gap-1.5">
|
||||
<div class="grow overflow-x-hidden overflow-y-auto gap-1.5">
|
||||
@for (module of modules(); track module.id; let i = $index) {
|
||||
<div class="m-2">
|
||||
<app-module
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
<div class="text-white">
|
||||
{{ schema().title || module()?.type }}
|
||||
</div>
|
||||
<div class="flex-grow"></div>
|
||||
<div class="grow"></div>
|
||||
<div class="flex items-center justify-center hover:bg-gray-700 hover:cursor-pointer" (click)="delete.emit()">
|
||||
<mat-icon class="!text-red-500">close</mat-icon>
|
||||
<mat-icon class="text-red-500!">close</mat-icon>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="bg-gray-600 h-0.5 border-0">
|
||||
@@ -29,7 +29,7 @@
|
||||
[placeholder]="'module-1'"
|
||||
[formControlName]="'id'"
|
||||
/>
|
||||
<mat-icon class="!text-white" matTooltip="String">abc</mat-icon>
|
||||
<mat-icon class="text-white!" matTooltip="String">abc</mat-icon>
|
||||
@if (!formGroup.controls['id'].valid) {
|
||||
<!-- TODO(jwetzell): better error displaying -->
|
||||
<div class="ml-2 text-red-500">{{ formGroup.controls['id'].errors | json }}</div>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
}
|
||||
</select>
|
||||
}
|
||||
<mat-icon class="!text-white">123</mat-icon>
|
||||
<mat-icon class="text-white!">123</mat-icon>
|
||||
}
|
||||
@case ('integer') {
|
||||
@if (!paramInfo.options) {
|
||||
@@ -62,7 +62,7 @@
|
||||
}
|
||||
</select>
|
||||
}
|
||||
<mat-icon class="!text-white" matTooltip="Number">123</mat-icon>
|
||||
<mat-icon class="text-white!" matTooltip="Number">123</mat-icon>
|
||||
}
|
||||
@case ('string') {
|
||||
@if (!paramInfo.options) {
|
||||
@@ -84,14 +84,14 @@
|
||||
}
|
||||
</select>
|
||||
}
|
||||
<mat-icon class="!text-white" matTooltip="String">abc</mat-icon>
|
||||
<mat-icon class="text-white!" matTooltip="String">abc</mat-icon>
|
||||
}
|
||||
@case ('array') {
|
||||
<app-array-form
|
||||
[paramFormControl]="paramsFormInfo.formGroup.get(paramInfo.key)"
|
||||
[paramInfo]="paramInfo"
|
||||
></app-array-form>
|
||||
<mat-icon class="!text-white" matTooltip="Item list">data_array</mat-icon>
|
||||
<mat-icon class="text-white!" matTooltip="Item list">data_array</mat-icon>
|
||||
}
|
||||
@case ('object') {
|
||||
<!-- TODO(jwetzell): figure out how to display objects-->
|
||||
@@ -100,7 +100,7 @@
|
||||
[formControlName]="paramInfo.key"
|
||||
[placeholder]="paramInfo.placeholder"
|
||||
/>
|
||||
<mat-icon class="!text-white" matTooltip="JSON">data_object</mat-icon>
|
||||
<mat-icon class="text-white!" matTooltip="JSON">data_object</mat-icon>
|
||||
}
|
||||
@default {
|
||||
<input
|
||||
@@ -111,7 +111,7 @@
|
||||
}
|
||||
@if (paramInfo.hint) {
|
||||
<div class="flex items-center justify-center">
|
||||
<mat-icon [matTooltip]="paramInfo.hint" class="ml-2 !text-white">
|
||||
<mat-icon [matTooltip]="paramInfo.hint" class="ml-2 text-white!">
|
||||
help_outline
|
||||
</mat-icon>
|
||||
</div>
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
}} border-solid w-fit h-full"
|
||||
>
|
||||
<div class="flex items-center justify-center">
|
||||
<div class="flex-grow ml-1 mr-3 text-white">
|
||||
<div class="grow ml-1 mr-3 text-white">
|
||||
{{ schema()?.title || processor()?.type }}
|
||||
</div>
|
||||
<div class="flex items-center justify-center hover:bg-gray-700 hover:cursor-pointer" (click)="delete.emit()">
|
||||
<mat-icon class="!text-red-500">close</mat-icon>
|
||||
<mat-icon class="text-red-500!">close</mat-icon>
|
||||
</div>
|
||||
</div>
|
||||
@if (hasParams()) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="text-white">Routes</div>
|
||||
</div>
|
||||
<div class="flex-grow overflow-x-hidden overflow-y-auto gap-1.5">
|
||||
<div class="grow overflow-x-hidden overflow-y-auto gap-1.5">
|
||||
@for (route of routes(); track $index; let i = $index) {
|
||||
<div class="m-2">
|
||||
<app-route
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
<div class="flex items-center">
|
||||
<mat-icon [style.color]="indicatorColor()" matTooltip="Route Indicator">chevron_right</mat-icon>
|
||||
</div>
|
||||
<div class="flex-grow text-left ml-2 text-white">Route {{ index() }}</div>
|
||||
<div class="grow text-left ml-2 text-white">Route {{ index() }}</div>
|
||||
<div class="flex items-center justify-center hover:bg-gray-700 hover:cursor-pointer" (click)="delete.emit()">
|
||||
<mat-icon class="!text-red-500">close</mat-icon>
|
||||
<mat-icon class="text-red-500!">close</mat-icon>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="bg-gray-600 h-0.5 border-0">
|
||||
|
||||
Reference in New Issue
Block a user