From 314c44892b07670180286e1d56646bf0ac17f4e3 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 12 Feb 2019 21:36:55 -0600 Subject: [PATCH 1/3] initial commit --- src/app/app.component.html | 2 +- src/app/app.module.ts | 2 ++ src/app/app.routes.ts | 5 +++ .../hardest-questions.component.css | 32 +++++++++++++++++++ .../hardest-questions.component.html | 21 ++++++++++++ .../hardest-questions.component.spec.ts | 25 +++++++++++++++ .../hardest-questions.component.ts | 26 +++++++++++++++ 7 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 src/app/components/reports/hardest-questions/hardest-questions.component.css create mode 100644 src/app/components/reports/hardest-questions/hardest-questions.component.html create mode 100644 src/app/components/reports/hardest-questions/hardest-questions.component.spec.ts create mode 100644 src/app/components/reports/hardest-questions/hardest-questions.component.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index 61253a90..d2cf5e81 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,2 +1,2 @@ - + \ No newline at end of file diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 0d83fbe9..d70094f6 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -65,6 +65,7 @@ import { NavModule } from './nav.module'; import { RoleGuard } from './role-guard'; import { HttpClientModule } from '@angular/common/http'; import { CandidateComponent } from './components/candidate/candidate.component'; +import { HardestQuestionsComponent } from './components/reports/hardest-questions/hardest-questions.component'; @NgModule({ declarations: [ @@ -96,6 +97,7 @@ import { CandidateComponent } from './components/candidate/candidate.component'; ToolbarFilterPipe, TraineeSearch, TrainerPipePipe, + HardestQuestionsComponent, ], imports: [ BrowserModule, diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index dead3a29..98b01444 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -9,12 +9,17 @@ import { PassFailComponent } from './components/pass-fail/pass-fail.component'; import { ScreeningConfigComponent } from './components/screening-config/screening-config.component'; import { ScreeningComponent } from './components/screening/screening.component'; import { QuestionComponent } from './components/question/question.component'; +import { HardestQuestionsComponent } from './components/reports/hardest-questions/hardest-questions.component'; export const routes: Routes = [ { path: '', component: CandidatesScreeningListComponent, }, + { + path:'reports', + component: HardestQuestionsComponent, + }, { path: 'screening', component: ScreeningComponent, diff --git a/src/app/components/reports/hardest-questions/hardest-questions.component.css b/src/app/components/reports/hardest-questions/hardest-questions.component.css new file mode 100644 index 00000000..20a7f0ba --- /dev/null +++ b/src/app/components/reports/hardest-questions/hardest-questions.component.css @@ -0,0 +1,32 @@ +article { + border: 3px solid black; + font-family: "Helvetica Neue", Helvetica, sans-serif; +} + +h1 { + margin: 5px; +} + +ol { + margin: 0; + padding: 0; + list-style-type: none; +} + +ol li { + font-size: 2em; + counter-increment: step-counter; + margin: 10px; +} + +ol li::before { + list-style-type: none; + content: counter(step-counter); + font-size: 80%; + background-color: rgb(25, 107, 201); + color: white; + font-weight: bold; + padding: 7px 15px; + margin-right: 5px; + border-radius: 3px; +} \ No newline at end of file diff --git a/src/app/components/reports/hardest-questions/hardest-questions.component.html b/src/app/components/reports/hardest-questions/hardest-questions.component.html new file mode 100644 index 00000000..c9a8c2ca --- /dev/null +++ b/src/app/components/reports/hardest-questions/hardest-questions.component.html @@ -0,0 +1,21 @@ +
+ +

+ + Hardest Questions + +

+ +
    + + +
  1. + + {{hardestQuestion}} + +
  2. + +
+ +
\ No newline at end of file diff --git a/src/app/components/reports/hardest-questions/hardest-questions.component.spec.ts b/src/app/components/reports/hardest-questions/hardest-questions.component.spec.ts new file mode 100644 index 00000000..37592939 --- /dev/null +++ b/src/app/components/reports/hardest-questions/hardest-questions.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HardestQuestionsComponent } from './hardest-questions.component'; + +describe('HardestQuestionsComponent', () => { + let component: HardestQuestionsComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ HardestQuestionsComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(HardestQuestionsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/reports/hardest-questions/hardest-questions.component.ts b/src/app/components/reports/hardest-questions/hardest-questions.component.ts new file mode 100644 index 00000000..949f8d3b --- /dev/null +++ b/src/app/components/reports/hardest-questions/hardest-questions.component.ts @@ -0,0 +1,26 @@ +import { Component, OnInit, Input } from '@angular/core'; +import { Question } from 'src/app/entities/Question'; + +@Component({ + selector: 'app-hardest-questions', + templateUrl: './hardest-questions.component.html', + styleUrls: ['./hardest-questions.component.css'] +}) +export class HardestQuestionsComponent implements OnInit { + + + @Input() hardestQuestions = [ + "What are the sublanguages of SQL?", + "What are the primary JDBC interfaces?", + "What is the difference between statements and prepared statements and why would we prefer one over the other?", + "What values are falsey in JavaScript?", + "What is SOAP?" + ]; + + constructor() { + } + + ngOnInit() { + } + +} \ No newline at end of file From 509d627027c3debbd44bb390d20e65bd5d1f5735 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 13 Feb 2019 11:33:17 -0600 Subject: [PATCH 2/3] more changes --- package-lock.json | 13 +++++++++---- src/app/components/question/question.component.ts | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 07c257aa..1be67ce5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3858,7 +3858,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -4273,7 +4274,8 @@ "safe-buffer": { "version": "5.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -4329,6 +4331,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -4372,12 +4375,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, diff --git a/src/app/components/question/question.component.ts b/src/app/components/question/question.component.ts index 44b0b5dc..adcee00b 100644 --- a/src/app/components/question/question.component.ts +++ b/src/app/components/question/question.component.ts @@ -55,7 +55,7 @@ export class QuestionComponent implements OnInit { public tagsCollapsed = true; - + ngOnInit() { this.currentBucket = this.bucketService.getCurrentBucket(); this.question = new Question(); From b88cfda39319dec5dcbcc1143f03fd586bae362c Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 18 Feb 2019 14:26:31 -0600 Subject: [PATCH 3/3] committed change --- src/app/app.module.ts | 4 +- .../hardest-questions.component.ts | 21 ++-- .../reports/hardest-questions/hqlist.ts | 96 +++++++++++++++++++ 3 files changed, 109 insertions(+), 12 deletions(-) create mode 100644 src/app/components/reports/hardest-questions/hqlist.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 17f24e25..f7ee2d76 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -8,7 +8,7 @@ import { ReactiveFormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; // import { ChartModule } from 'angular2-highcharts'; -import { HighchartsChartModule} from 'highcharts-angular'; +//import { HighchartsChartModule } from 'highcharts-angular'; // Importing the routes from app routes import { routes } from './app.routes'; @@ -116,7 +116,7 @@ import { HardestQuestionsComponent } from './components/reports/hardest-question HttpClientModule, BrowserAnimationsModule, // ChartModule.forRoot(require('highcharts'))' - HighchartsChartModule + // HighchartsChartModule ], providers: [ AlertsService, diff --git a/src/app/components/reports/hardest-questions/hardest-questions.component.ts b/src/app/components/reports/hardest-questions/hardest-questions.component.ts index 949f8d3b..4754f164 100644 --- a/src/app/components/reports/hardest-questions/hardest-questions.component.ts +++ b/src/app/components/reports/hardest-questions/hardest-questions.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit, Input } from '@angular/core'; -import { Question } from 'src/app/entities/Question'; +//import { reportsService} from 'services/reports' ; @Component({ selector: 'app-hardest-questions', @@ -7,17 +7,18 @@ import { Question } from 'src/app/entities/Question'; styleUrls: ['./hardest-questions.component.css'] }) export class HardestQuestionsComponent implements OnInit { - - - @Input() hardestQuestions = [ - "What are the sublanguages of SQL?", - "What are the primary JDBC interfaces?", - "What is the difference between statements and prepared statements and why would we prefer one over the other?", - "What values are falsey in JavaScript?", - "What is SOAP?" - ]; + + + @Input() hardestQuestions = [ + "What are the sublanguages of SQL?", + "What are the primary JDBC interfaces?", + "What is the difference between statements and prepared statements and why would we prefer one over the other?", + "What values are falsey in JavaScript?", + "What is SOAP?" + ]; constructor() { + } ngOnInit() { diff --git a/src/app/components/reports/hardest-questions/hqlist.ts b/src/app/components/reports/hardest-questions/hqlist.ts new file mode 100644 index 00000000..ea92b166 --- /dev/null +++ b/src/app/components/reports/hardest-questions/hqlist.ts @@ -0,0 +1,96 @@ +export class hqlist implements OnInit { + + + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What is the difference betwwen JRE, JDK, and JVM?", + // "What are the sublanguages of SQL?", + // "What is the doctype declaration in HTML?", + // "What is ECMA script?", + // "What are template literals and arrow notation?" + // ]; + // [ + // "What is the purpose of angular?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + // [ + // "What are the sublanguages of SQL?", + // "What are the primary JDBC interfaces?", + // "What is the difference between statements and prepared statements and why would we prefer one over the other?", + // "What values are falsey in JavaScript?", + // "What is SOAP?" + // ]; + + constructor() { + + } + + ngOnInit() { + } + +} \ No newline at end of file