[ADF-3591] spellcheck support for code (#3827)

* setup spellcheck
This commit is contained in:
Denys Vuika
2018-10-23 15:05:38 +01:00
committed by Eugenio Romano
parent 53d96679ea
commit e39a2b149b
262 changed files with 1561 additions and 1005 deletions

View File

@@ -30,11 +30,11 @@ import { AnalyticsReportListComponent } from './components/analytics-report-list
import { AnalyticsReportParametersComponent } from './components/analytics-report-parameters.component';
import { AnalyticsComponent } from './components/analytics.component';
import { CheckboxWidgetAanalyticsComponent } from './components/widgets/checkbox/checkbox.widget';
import { CheckboxWidgetAnalyticsComponent } from './components/widgets/checkbox/checkbox.widget';
import { DateRangeWidgetComponent } from './components/widgets/date-range/date-range.widget';
import { DropdownWidgetAanalyticsComponent } from './components/widgets/dropdown/dropdown.widget';
import { DropdownWidgetAnalyticsComponent } from './components/widgets/dropdown/dropdown.widget';
import { DurationWidgetComponent } from './components/widgets/duration/duration.widget';
import { NumberWidgetAanlyticsComponent } from './components/widgets/number/number.widget';
import { NumberWidgetAnalyticsComponent } from './components/widgets/number/number.widget';
import { FlexLayoutModule } from '@angular/flex-layout';
@@ -55,10 +55,10 @@ import { FlexLayoutModule } from '@angular/flex-layout';
AnalyticsReportParametersComponent,
AnalyticsGeneratorComponent,
AnalyticsReportHeatMapComponent,
DropdownWidgetAanalyticsComponent,
NumberWidgetAanlyticsComponent,
DropdownWidgetAnalyticsComponent,
NumberWidgetAnalyticsComponent,
DurationWidgetComponent,
CheckboxWidgetAanalyticsComponent,
CheckboxWidgetAnalyticsComponent,
DateRangeWidgetComponent
],
exports: [
@@ -67,10 +67,10 @@ import { FlexLayoutModule } from '@angular/flex-layout';
AnalyticsReportParametersComponent,
AnalyticsGeneratorComponent,
AnalyticsReportHeatMapComponent,
DropdownWidgetAanalyticsComponent,
NumberWidgetAanlyticsComponent,
DropdownWidgetAnalyticsComponent,
NumberWidgetAnalyticsComponent,
DurationWidgetComponent,
CheckboxWidgetAanalyticsComponent,
CheckboxWidgetAnalyticsComponent,
DateRangeWidgetComponent
]
})

View File

@@ -90,7 +90,7 @@ describe('AnalyticsGeneratorComponent', () => {
});
});
it('Should render the Process definition overview report when onchanges is called ', (done) => {
it('Should render the Process definition overview report when [onChanges] is called ', (done) => {
component.success.subscribe((res) => {
expect(res).toBeDefined();
expect(res.length).toEqual(3);

View File

@@ -28,8 +28,8 @@ describe('AnalyticsReportHeatMapComponent', () => {
let fixture: ComponentFixture<AnalyticsReportHeatMapComponent>;
let element: HTMLElement;
let totalCountPerc: any = { 'sid-fake-id': 0, 'fake-start-event': 100 };
let totalTimePerc: any = { 'sid-fake-id': 10, 'fake-start-event': 30 };
let totalCountPercent: any = { 'sid-fake-id': 0, 'fake-start-event': 100 };
let totalTimePercent: any = { 'sid-fake-id': 10, 'fake-start-event': 30 };
let avgTimePercentages: any = { 'sid-fake-id': 5, 'fake-start-event': 50 };
let totalCountValues: any = { 'sid-fake-id': 2, 'fake-start-event': 3 };
@@ -46,9 +46,9 @@ describe('AnalyticsReportHeatMapComponent', () => {
element = fixture.nativeElement;
component.report = {
totalCountsPercentages: totalCountPerc,
totalCountsPercentages: totalCountPercent,
totalCountValues: totalCountValues,
totalTimePercentages: totalTimePerc,
totalTimePercentages: totalTimePercent,
totalTimeValues: totalTimeValues,
avgTimeValues: avgTimeValues,
avgTimePercentages: avgTimePercentages
@@ -90,21 +90,21 @@ describe('AnalyticsReportHeatMapComponent', () => {
expect(component.hasMetric()).toBeTruthy();
}));
it('should change the currentmetric width totalCount', async(() => {
it('should change the currentMetric width totalCount', async(() => {
let field = { value: 'totalCount' };
component.onMetricChanges(field);
expect(component.currentMetric).toEqual(totalCountValues);
expect(component.currentMetricColors).toEqual(totalCountPerc);
expect(component.currentMetricColors).toEqual(totalCountPercent);
}));
it('should change the currentmetric width totalTime', async(() => {
it('should change the currentMetric width totalTime', async(() => {
let field = { value: 'totalTime' };
component.onMetricChanges(field);
expect(component.currentMetric).toEqual(totalTimeValues);
expect(component.currentMetricColors).toEqual(totalTimePerc);
expect(component.currentMetricColors).toEqual(totalTimePercent);
}));
it('should change the currentmetric width avgTime', async(() => {
it('should change the currentMetric width avgTime', async(() => {
let field = { value: 'avgTime' };
component.onMetricChanges(field);
expect(component.currentMetric).toEqual(avgTimeValues);

View File

@@ -10,6 +10,6 @@
<adf-analytics-generator [reportId]="reportId"
[reportParamQuery]="reportParamQuery"
#analyticsgenerator>
#analyticsGenerator>
</adf-analytics-generator>
</div>

View File

@@ -45,21 +45,21 @@ export class AnalyticsComponent implements OnChanges {
@Output()
reportDeleted = new EventEmitter();
@ViewChild('analyticsgenerator')
analyticsgenerator: AnalyticsGeneratorComponent;
@ViewChild('analyticsGenerator')
analyticsGenerator: AnalyticsGeneratorComponent;
reportParamQuery: ReportQuery;
ngOnChanges(changes: SimpleChanges) {
this.analyticsgenerator.reset();
this.analyticsGenerator.reset();
}
public showReport($event) {
this.analyticsgenerator.generateReport(this.reportId, $event);
this.analyticsGenerator.generateReport(this.reportId, $event);
}
public reset() {
this.analyticsgenerator.reset();
this.analyticsGenerator.reset();
}
public onEditReport(name: string) {

View File

@@ -26,7 +26,7 @@
templateUrl: './checkbox.widget.html',
encapsulation: ViewEncapsulation.None
})
export class CheckboxWidgetAanalyticsComponent extends WidgetComponent {
export class CheckboxWidgetAnalyticsComponent extends WidgetComponent {
@Input()
field: any;

View File

@@ -62,7 +62,7 @@ export class DateRangeWidgetComponent implements OnInit {
this.dateAdapter.setLocale(locale);
});
let momentDateAdapter = <MomentDateAdapter> this.dateAdapter;
momentDateAdapter.overrideDisplyaFormat = this.SHOW_FORMAT;
momentDateAdapter.overrideDisplayFormat = this.SHOW_FORMAT;
if (this.field) {
if (this.field.value && this.field.value.startDate) {

View File

@@ -27,7 +27,7 @@ import { WidgetComponent } from './../widget.component';
styleUrls: ['./dropdown.widget.scss'],
encapsulation: ViewEncapsulation.None
})
export class DropdownWidgetAanalyticsComponent extends WidgetComponent implements OnInit {
export class DropdownWidgetAnalyticsComponent extends WidgetComponent implements OnInit {
@Input()
field: any;

View File

@@ -21,7 +21,7 @@ import { Component, ElementRef, Input, OnInit, ViewEncapsulation } from '@angula
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ParameterValueModel } from '../../../../diagram/models/report/parameterValue.model';
import { ReportParameterDetailsModel } from '../../../../diagram/models/report/reportParameterDetails.model';
import { NumberWidgetAanlyticsComponent } from './../number/number.widget';
import { NumberWidgetAnalyticsComponent } from './../number/number.widget';
@Component({
selector: 'duration-widget',
@@ -29,7 +29,7 @@ import { NumberWidgetAanlyticsComponent } from './../number/number.widget';
styleUrls: ['./duration.widget.scss'],
encapsulation: ViewEncapsulation.None
})
export class DurationWidgetComponent extends NumberWidgetAanlyticsComponent implements OnInit {
export class DurationWidgetComponent extends NumberWidgetAnalyticsComponent implements OnInit {
@Input()
field: any;

View File

@@ -27,7 +27,7 @@ import { WidgetComponent } from './../widget.component';
styleUrls: ['./number.widget.scss'],
encapsulation: ViewEncapsulation.None
})
export class NumberWidgetAanlyticsComponent extends WidgetComponent implements OnInit {
export class NumberWidgetAnalyticsComponent extends WidgetComponent implements OnInit {
@Input()
field: any;