diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 3a97107..d857f1a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -9,6 +9,8 @@ import { SingleRecordValidatorComponent } from './pages/single-record-validator/ import {FormsModule, ReactiveFormsModule} from "@angular/forms"; import {HttpClient, HttpClientModule} from "@angular/common/http"; import {InputModule} from "./shared/utils/input/input.module"; +import {AlertModalModule} from "./shared/utils/modal/alertModal.module"; +import {IconsModule} from "./shared/utils/icons/icons.module"; @NgModule({ declarations: [ @@ -23,7 +25,9 @@ import {InputModule} from "./shared/utils/input/input.module"; FormsModule, ReactiveFormsModule, HttpClientModule, - InputModule + InputModule, + AlertModalModule, + IconsModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/pages/entities/RuleInfo.ts b/src/app/pages/entities/RuleInfo.ts new file mode 100644 index 0000000..57f605d --- /dev/null +++ b/src/app/pages/entities/RuleInfo.ts @@ -0,0 +1,15 @@ +export class RuleInfo { + name: string; + description: string; + warnings: string[]; + errors: string[]; + internalError: string; + status: Status; + score: number; +} + +export enum Status { + SUCCESS, + FAILURE, + ERROR +} diff --git a/src/app/pages/single-record-validator/single-record-validator.component.html b/src/app/pages/single-record-validator/single-record-validator.component.html index 175d97b..38ed17b 100644 --- a/src/app/pages/single-record-validator/single-record-validator.component.html +++ b/src/app/pages/single-record-validator/single-record-validator.component.html @@ -8,6 +8,19 @@
constructor(private iconsService: IconsService) {{ "{" }}
+ this.iconsService.registerIcons([edit]);
+{{ "}" }}
+ {{'<'}}icon name="edit"{{'><'}}/icon{{'>'}}
+ {{'<'}}div class="uk-text-secondary"{{'>'}}
+ {{'<'}}icon name="edit"{{'><'}}/icon{{'>'}}
+{{'<'}}/div{{'>'}}
+