Skip to content

Commit b9f1694

Browse files
committed
docs: fix ts errors
1 parent e1d27de commit b9f1694

23 files changed

+41
-82
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@
4444
"@angular/platform-browser": "~11.0.9",
4545
"@angular/platform-browser-dynamic": "~11.0.9",
4646
"@angular/router": "~11.0.9",
47+
"@types/prismjs": "^1.16.2",
4748
"admin-lte-css": "^2.4.3",
4849
"angular-loading-page": "^4.0.0",
4950
"bootstrap-css-only": "^3.3.7",
5051
"font-awesome": "^4.7.0",
5152
"ionicons": "^2.0.1",
52-
"prismjs": "^1.8.4",
53+
"prismjs": "^1.23.0",
5354
"rxjs": "~6.6.0",
5455
"tslib": "^2.0.0",
5556
"zone.js": "~0.10.2"
@@ -59,9 +60,9 @@
5960
"@angular/cli": "~11.0.7",
6061
"@angular/compiler-cli": "~11.0.9",
6162
"@angular/language-service": "~11.0.9",
62-
"@types/node": "^12.11.1",
6363
"@types/jasmine": "~3.6.0",
6464
"@types/jasminewd2": "~2.0.3",
65+
"@types/node": "^12.11.1",
6566
"codelyzer": "^6.0.0",
6667
"jasmine-core": "~3.6.0",
6768
"jasmine-spec-reporter": "~5.0.0",

src/app/+accordion/accordion.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class AccordionComponent implements AfterViewInit {
1818
/**
1919
* @method ngAfterViewInit
2020
*/
21-
ngAfterViewInit() {
21+
ngAfterViewInit(): void {
2222
Prism.highlightAll();
2323

2424
this.ngZone.runOutsideAngular(() => {

src/app/+alert/alert.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class AlertComponent implements AfterViewInit {
1111
/**
1212
* @method ngAfterViewInit
1313
*/
14-
ngAfterViewInit() {
14+
ngAfterViewInit(): void {
1515
Prism.highlightAll();
1616
}
1717
}

src/app/+boxs/box-default/box-default.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class BoxDefaultComponent implements AfterViewInit {
1111
/**
1212
* @method ngAfterViewInit
1313
*/
14-
ngAfterViewInit() {
14+
ngAfterViewInit(): void {
1515
Prism.highlightAll();
1616
}
1717
}

src/app/+boxs/box-info/box-info.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
2323

2424
<div class="row">
2525
<div class="col-md-3 col-xs-12">
26-
<mk-box-info header="Bookmarks" footer="70% Increase in 30 Days" progressWidth="70" backgroundColor="aqua" iconStyleClass="fa fa-bookmark-o">
26+
<mk-box-info header="Bookmarks" footer="70% Increase in 30 Days" [progressWidth]="70" backgroundColor="aqua" iconStyleClass="fa fa-bookmark-o">
2727
41,410
2828
</mk-box-info>
2929
</div>
3030
<div class="col-md-3 col-xs-12">
31-
<mk-box-info header="Likes" footer="70% Increase in 30 Days" progressWidth="70" backgroundColor="green" iconStyleClass="fa fa-thumbs-o-up">
31+
<mk-box-info header="Likes" footer="70% Increase in 30 Days" [progressWidth]="70" backgroundColor="green" iconStyleClass="fa fa-thumbs-o-up">
3232
41,410
3333
</mk-box-info>
3434
</div>
3535
<div class="col-md-3 col-xs-12">
36-
<mk-box-info header="Events" footer="70% Increase in 30 Days" progressWidth="70" backgroundColor="yellow" iconStyleClass="fa fa-calendar">
36+
<mk-box-info header="Events" footer="70% Increase in 30 Days" [progressWidth]="70" backgroundColor="yellow" iconStyleClass="fa fa-calendar">
3737
41,410
3838
</mk-box-info>
3939
</div>
4040
<div class="col-md-3 col-xs-12">
41-
<mk-box-info header="Comments" footer="70% Increase in 30 Days" progressWidth="70" backgroundColor="yellow" iconStyleClass="fa fa-comments-o">
41+
<mk-box-info header="Comments" footer="70% Increase in 30 Days" [progressWidth]="70" backgroundColor="yellow" iconStyleClass="fa fa-comments-o">
4242
41,410
4343
</mk-box-info>
4444
</div>
@@ -47,14 +47,14 @@
4747
<div class="row">
4848
<div class="col-md-6 col-xs-12">
4949
<mk-box header="Info Box with text header & footer" [isRemovable]="false">
50-
<pre><code class="language-html">&lt;mk-box-info header="Header text" footer="Footer text" progressWidth="70" backgroundColor="yellow" iconStyleClass="fa fa-comments-o"&gt;
50+
<pre><code class="language-html">&lt;mk-box-info header="Header text" footer="Footer text" [progressWidth]="70" backgroundColor="yellow" iconStyleClass="fa fa-comments-o"&gt;
5151
Content text
5252
&lt;/mk-box-info&gt;</code></pre>
5353
</mk-box>
5454
</div>
5555
<div class="col-md-6 col-xs-12">
5656
<mk-box header="Info Box with HTML header & footer" [isRemovable]="false">
57-
<pre><code class="language-html">&lt;mk-box-info progressWidth="70" backgroundColor="yellow" iconStyleClass="fa fa-comments-o"&gt;
57+
<pre><code class="language-html">&lt;mk-box-info [progressWidth]="70" backgroundColor="yellow" iconStyleClass="fa fa-comments-o"&gt;
5858
&lt;mk-box-info-header&gt;Header HTML&lt;/mk-box-info-header&gt;
5959
&lt;mk-box-info-content&gt;Content HTML&lt;/mk-box-info-content&gt;
6060
&lt;mk-box-info-footer&gt;Footer HTML&lt;/mk-box-info-footer&gt;

src/app/+boxs/box-info/box-info.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class BoxInfoComponent implements AfterViewInit {
1212
/**
1313
* @method ngAfterViewInit
1414
*/
15-
ngAfterViewInit() {
15+
ngAfterViewInit(): void {
1616
Prism.highlightAll();
1717
}
1818
}

src/app/+boxs/box-small/box-small.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class BoxSmallComponent implements AfterViewInit {
1212
/**
1313
* @method ngAfterViewInit
1414
*/
15-
ngAfterViewInit() {
15+
ngAfterViewInit(): void {
1616
Prism.highlightAll();
1717
}
1818
}

src/app/+dropdown/dropdown.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class DropdownComponent implements AfterViewInit {
1212
/**
1313
*
1414
*/
15-
ngAfterViewInit() {
15+
ngAfterViewInit(): void {
1616
Prism.highlightAll();
1717
}
1818
}

src/app/+form/input-text/input-text.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
66
styleUrls: ['./input-text.component.css']
77
})
88
export class InputTextComponent implements OnInit {
9-
userForm: FormGroup;
9+
userForm!: FormGroup;
1010

1111
constructor(private formBuilder: FormBuilder) {}
1212

13-
ngOnInit() {
13+
ngOnInit(): void {
1414
this.userForm = this.formBuilder.group({
1515
firstName: ['', [Validators.required, Validators.email]]
1616
});
1717
}
1818

19-
onSubmitForm() {
19+
onSubmitForm(): void {
2020
console.log(this.userForm);
2121
}
2222
}

src/app/+layout/configuration/configuration.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class ConfigurationComponent implements AfterViewInit {
1010
/**
1111
* @method ngAfterViewInit
1212
*/
13-
ngAfterViewInit() {
13+
ngAfterViewInit(): void {
1414
Prism.highlightAll();
1515
}
1616
}

0 commit comments

Comments
 (0)