From 433572f81924b664d071acc42ad5bd3c49e9427a Mon Sep 17 00:00:00 2001 From: VLE2FE Date: Thu, 20 Aug 2020 10:42:02 +0200 Subject: [PATCH 1/2] added help component, improved prediction with model templates --- src/app/app-routing.module.ts | 2 + src/app/app.component.html | 16 +++- src/app/app.component.scss | 1 + src/app/app.component.ts | 18 ++++- src/app/app.module.ts | 6 +- src/app/help/help.component.html | 14 ++++ src/app/help/help.component.scss | 0 src/app/help/help.component.spec.ts | 25 ++++++ src/app/help/help.component.ts | 24 ++++++ .../model-templates.component.html | 65 ++++++++++++++++ .../model-templates.component.scss | 0 .../model-templates.component.spec.ts | 25 ++++++ .../model-templates.component.ts | 74 ++++++++++++++++++ src/app/models/model-item.model.spec.ts | 7 ++ src/app/models/model-item.model.ts | 10 +++ src/app/models/template.model.ts | 6 -- src/app/prediction/prediction.component.html | 53 +++++++++++-- src/app/prediction/prediction.component.scss | 14 ++++ src/app/prediction/prediction.component.ts | 78 ++++++++++++++----- src/app/sample/sample.component.ts | 6 -- src/app/samples/samples.component.html | 13 ++-- src/app/samples/samples.component.scss | 14 +++- src/app/services/api.service.ts | 1 + src/app/services/data.service.ts | 44 ++++++----- src/app/services/validation.service.ts | 8 ++ 25 files changed, 459 insertions(+), 65 deletions(-) create mode 100644 src/app/help/help.component.html create mode 100644 src/app/help/help.component.scss create mode 100644 src/app/help/help.component.spec.ts create mode 100644 src/app/help/help.component.ts create mode 100644 src/app/model-templates/model-templates.component.html create mode 100644 src/app/model-templates/model-templates.component.scss create mode 100644 src/app/model-templates/model-templates.component.spec.ts create mode 100644 src/app/model-templates/model-templates.component.ts create mode 100644 src/app/models/model-item.model.spec.ts create mode 100644 src/app/models/model-item.model.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 4a0fcd0..dfa38f6 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -11,12 +11,14 @@ 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'; +import {ModelTemplatesComponent} from './model-templates/model-templates.component'; const routes: Routes = [ {path: '', component: HomeComponent}, {path: 'home', component: HomeComponent}, {path: 'prediction', component: PredictionComponent}, + {path: 'models', component: ModelTemplatesComponent}, {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 29b9944..e32372c 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,7 +1,8 @@ + +