From c3374144ea74e1398fb7aad1db4a636a3f2771ee Mon Sep 17 00:00:00 2001 From: REDDERD <143699981+REDDERD@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:07:11 +0200 Subject: [PATCH] Cornelius/dev (#94) * Implemented Tooltips: - file format explanations - info that n dimensions are being supported - info that t-SNE and PCA is used - info that local execution can push a device to its limits - info that the download file format is png Deleted unnecessary routeToLogin() method. * Changes by cedricpurwin * Update input.component.html Correction of previous commit: Made the expert options disable again when no file is uploaded * Update input.component.html Fixed syntax error (missing ") * Update input.component.html Made more precise tooltop regarding PCA and t-SNE * Update input.component.html Made even more precise tooltip regarding t-SNE and PCA on request of Klaus --------- Co-authored-by: cookie.exe Co-authored-by: Cornelius Daemberg <108803070+Splashed01@users.noreply.github.com> --- src/app/app.module.ts | 4 +++- .../chart/chart.component.html | 2 +- src/app/home/home.component.ts | 4 ---- src/app/home/input/input.component.css | 3 +++ src/app/home/input/input.component.html | 20 +++++++++++++------ 5 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index fc81d11..cf0a339 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -23,6 +23,7 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle' import { TableComponent } from './home/chart-container/table/table.component' import { MatTabsModule } from '@angular/material/tabs' import { MatTableModule } from '@angular/material/table' +import { MatTooltipModule } from '@angular/material/tooltip' const routes: Routes = [{ path: 'home', component: HomeComponent }, { path: '', redirectTo: '/home', pathMatch: 'full' }] @@ -53,7 +54,8 @@ const routes: Routes = [{ path: 'home', component: HomeComponent }, MatExpansionModule, MatSlideToggleModule, MatTabsModule, - MatTableModule + MatTableModule, + MatTooltipModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/home/chart-container/chart/chart.component.html b/src/app/home/chart-container/chart/chart.component.html index 464b244..7e2d8c3 100644 --- a/src/app/home/chart-container/chart/chart.component.html +++ b/src/app/home/chart-container/chart/chart.component.html @@ -3,7 +3,7 @@ {{ chart }} - + diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 54d7131..fd25ba2 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -29,8 +29,4 @@ export class HomeComponent { public handleLoading (status: boolean): void { this.isLoading = status } - - public routeToLogin (): void { - void this.router.navigate(['/login']) - } } diff --git a/src/app/home/input/input.component.css b/src/app/home/input/input.component.css index 57fd426..973403d 100644 --- a/src/app/home/input/input.component.css +++ b/src/app/home/input/input.component.css @@ -33,6 +33,9 @@ .button-row{ horiz-align: center; + display: grid; + text-align: left; + grid-template-columns: 20% 60% 20%; } } .dropzone:hover{ diff --git a/src/app/home/input/input.component.html b/src/app/home/input/input.component.html index fdac853..3aefce2 100644 --- a/src/app/home/input/input.component.html +++ b/src/app/home/input/input.component.html @@ -2,16 +2,21 @@

K-Means durchführen

-
+

Ziehe eine .csv / .xlsx Datei per Drag & Drop hierher

oder

- +
+
+
@@ -31,17 +36,20 @@

oder

Spaltenauswahl
+ + [class.has-error]="clusterInputFormGroup.get('selectedColumns')?.hasError('twoColumnsRequired')" > Spalten - + {{column}} - + Bitte mindestens 2 Spalten auswählen. + +
Anzahl der Cluster (optional)
@@ -69,7 +77,7 @@

oder

- Lokal im Browser ausführen
+ Lokal im Browser ausführen