From c681c5d881d3141b53cd0684035f15780aeca8af Mon Sep 17 00:00:00 2001 From: VLE2FE Date: Wed, 12 Aug 2020 15:15:31 +0200 Subject: [PATCH] added prediction prototype --- src/app/app-routing.module.ts | 2 + src/app/app.component.html | 1 + src/app/app.module.ts | 4 +- src/app/prediction/prediction.component.html | 20 +++++ src/app/prediction/prediction.component.scss | 4 + .../prediction/prediction.component.spec.ts | 25 +++++++ src/app/prediction/prediction.component.ts | 74 +++++++++++++++++++ src/app/sample/sample.component.html | 2 +- src/app/services/api.service.ts | 17 ++++- 9 files changed, 143 insertions(+), 6 deletions(-) create mode 100644 src/app/prediction/prediction.component.html create mode 100644 src/app/prediction/prediction.component.scss create mode 100644 src/app/prediction/prediction.component.spec.ts create mode 100644 src/app/prediction/prediction.component.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d3701e4..4a0fcd0 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -10,11 +10,13 @@ import {SettingsComponent} from './settings/settings.component'; import {UsersComponent} from './users/users.component'; import {ChangelogComponent} from './changelog/changelog.component'; import {DocumentationDatabaseComponent} from './documentation-database/documentation-database.component'; +import {PredictionComponent} from './prediction/prediction.component'; const routes: Routes = [ {path: '', component: HomeComponent}, {path: 'home', component: HomeComponent}, + {path: 'prediction', component: PredictionComponent}, {path: 'samples', component: SamplesComponent, canActivate: [LoginService]}, {path: 'samples/new', component: SampleComponent, canActivate: [LoginService]}, {path: 'samples/edit/:id', component: SampleComponent, canActivate: [LoginService]}, diff --git a/src/app/app.component.html b/src/app/app.component.html index 59d68bc..29b9944 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,6 +1,7 @@