Skip to content

Commit cb3f054

Browse files
committed
fixed lint problems
1 parent 0b0088b commit cb3f054

File tree

4 files changed

+15
-76
lines changed

4 files changed

+15
-76
lines changed

angular/src/app-initializer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class AppInitializer {
1515
private _injector: Injector,
1616
private _platformLocation: PlatformLocation,
1717
private _httpClient: HttpClient
18-
) {}
18+
) { }
1919

2020
init(): () => Promise<boolean> {
2121
return () => {
@@ -117,7 +117,7 @@ export class AppInitializer {
117117
);
118118
const token = abp.auth.getToken();
119119

120-
let requestHeaders = {
120+
const requestHeaders = {
121121
'Abp.TenantId': `${abp.multiTenancy.getTenantIdCookie()}`,
122122
'.AspNetCore.Culture': `c=${cookieLangValue}|uic=${cookieLangValue}`,
123123
};
@@ -134,7 +134,7 @@ export class AppInitializer {
134134
}
135135
)
136136
.subscribe((response) => {
137-
let result = response.result;
137+
const result = response.result;
138138

139139
_.merge(abp, result);
140140

angular/src/shared/components/validation/abp-validation.summary.component.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ export class AbpValidationSummaryComponent extends AppComponentBase implements O
4646

4747
@Input() control: AbstractControl;
4848
@Input() controlEl: ElementRef;
49+
50+
constructor(injector: Injector, public _renderer: Renderer2) {
51+
super(injector);
52+
}
53+
4954
@Input() set customValidationErrors(val: AbpValidationError[]) {
5055
if (val && val.length > 0) {
5156
const defaults = this.defaultValidationErrors.filter(
@@ -59,10 +64,6 @@ export class AbpValidationSummaryComponent extends AppComponentBase implements O
5964
}
6065
}
6166

62-
constructor(injector: Injector, public _renderer: Renderer2) {
63-
super(injector);
64-
}
65-
6667
ngOnInit() {
6768
if (this.controlEl) {
6869
this.control.valueChanges.subscribe(() => {

angular/src/shared/directives/busy.directive.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import { Directive, ElementRef, Input } from '@angular/core';
44
selector: '[busy]',
55
})
66
export class BusyDirective {
7+
8+
constructor(private _element: ElementRef) { }
9+
710
@Input() set busy(isBusy: boolean) {
811
this.refreshState(isBusy);
912
}
1013

11-
constructor(private _element: ElementRef) {}
12-
1314
refreshState(isBusy: boolean): void {
1415
if (isBusy === undefined) {
1516
return;

angular/yarn.lock

Lines changed: 4 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,27 +1062,6 @@
10621062
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-3.5.10.tgz#a1a41012012b5da9d4b205ba9eba58f6cce2ab7b"
10631063
integrity sha512-3F8qpwBAiVc5+HPJeXJpbrl+XjawGmciN5LgiO7Gv1pl1RHtjoMNqZpqEksaPJW05ViKe8snYInRs6xB25Xdew==
10641064

1065-
1066-
version "0.0.28"
1067-
resolved "https://registry.yarnpkg.com/@types/jquery.blockui/-/jquery.blockui-0.0.28.tgz#fd24a6e3330ad8ddd1f8e5b5578f3ef5608a6a92"
1068-
integrity sha512-6zkA/rYkXjd4H1diYZWxeusFsJ49R+0Q6Gv000TkQ4PCxIAAon7R9kc+OKyXo2oV6IV+i5l4usfwk9TEasbsPw==
1069-
dependencies:
1070-
"@types/jquery" "*"
1071-
1072-
"@types/jquery@*":
1073-
version "3.3.34"
1074-
resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.3.34.tgz#0d3b94057063d3854adaeb579652048fec07ba6c"
1075-
integrity sha512-lW9vsVL53Xu/Nj4gi2hNmHGc4u3KKghjqTkAlO0kF5GIOPxbqqnQpgqJBzmn3yXLrPqHb6cmNJ6URnS23Vtvbg==
1076-
dependencies:
1077-
"@types/sizzle" "*"
1078-
1079-
"@types/jquery@^3.3.37":
1080-
version "3.3.37"
1081-
resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.3.37.tgz#0e912062e00e626a7b17231cae31ae9c639c5563"
1082-
integrity sha512-4MNntGYm6xdDiz2+B92xEmWcFN9mOeMXqS854lSe7LDpBhzscUjvXjCAl6JwPBtAkqmPZq+L4I5UyXXNDZyq4Q==
1083-
dependencies:
1084-
"@types/sizzle" "*"
1085-
10861065
"@types/lodash@^4.14.150":
10871066
version "4.14.150"
10881067
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.150.tgz#649fe44684c3f1fcb6164d943c5a61977e8cf0bd"
@@ -1125,11 +1104,6 @@
11251104
resolved "https://registry.yarnpkg.com/@types/selenium-webdriver/-/selenium-webdriver-3.0.17.tgz#50bea0c3c2acc31c959c5b1e747798b3b3d06d4b"
11261105
integrity sha512-tGomyEuzSC1H28y2zlW6XPCaDaXFaD6soTdb4GNdmte2qfHtrKqhy0ZFs4r/1hpazCfEZqeTSRLvSasmEx89uw==
11271106

1128-
"@types/sizzle@*":
1129-
version "2.3.2"
1130-
resolved "https://registry.yarnpkg.com/@types/sizzle/-/sizzle-2.3.2.tgz#a811b8c18e2babab7d542b3365887ae2e4d9de47"
1131-
integrity sha512-7EJYyKTL7tFR8+gDbB6Wwz/arpGa0Mywk1TJbNzKzHtzbwVmY4HR9WqS5VV7dsBUKQmPNr192jHr/VpBluj/hg==
1132-
11331107
"@types/source-list-map@*":
11341108
version "0.1.2"
11351109
resolved "https://registry.yarnpkg.com/@types/source-list-map/-/source-list-map-0.1.2.tgz#0078836063ffaf17412349bba364087e0ac02ec9"
@@ -1782,13 +1756,6 @@ [email protected]:
17821756
resolved "https://registry.yarnpkg.com/blob/-/blob-0.0.5.tgz#d680eeef25f8cd91ad533f5b01eed48e64caf683"
17831757
integrity sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig==
17841758

1785-
block-ui@^2.70.1:
1786-
version "2.70.1"
1787-
resolved "https://registry.yarnpkg.com/block-ui/-/block-ui-2.70.1.tgz#c862d64ee6288fb78123377c6680bc7ab262103f"
1788-
integrity sha1-yGLWTuYoj7eBIzd8ZoC8erJiED8=
1789-
dependencies:
1790-
jquery ">=1.7.x"
1791-
17921759
blocking-proxy@^1.0.0:
17931760
version "1.0.1"
17941761
resolved "https://registry.yarnpkg.com/blocking-proxy/-/blocking-proxy-1.0.1.tgz#81d6fd1fe13a4c0d6957df7f91b75e98dac40cb2"
@@ -3320,11 +3287,6 @@ es-to-primitive@^1.2.1:
33203287
is-date-object "^1.0.1"
33213288
is-symbol "^1.0.2"
33223289

3323-
es6-object-assign@^1.1.0:
3324-
version "1.1.0"
3325-
resolved "https://registry.yarnpkg.com/es6-object-assign/-/es6-object-assign-1.1.0.tgz#c2c3582656247c39ea107cb1e6652b6f9f24523c"
3326-
integrity sha1-wsNYJlYkfDnqEHyx5mUrb58kUjw=
3327-
33283290
es6-promise@^4.0.3:
33293291
version "4.2.8"
33303292
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a"
@@ -4795,11 +4757,6 @@ jest-worker@^25.1.0:
47954757
merge-stream "^2.0.0"
47964758
supports-color "^7.0.0"
47974759

4798-
jquery@>=1.12.0, jquery@>=1.7.x, jquery@^3.4.1:
4799-
version "3.5.0"
4800-
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.0.tgz#9980b97d9e4194611c36530e7dc46a58d7340fc9"
4801-
integrity sha512-Xb7SVYMvygPxbFMpTFQiHh1J7HClEaThguL15N/Gg37Lri/qKyhRGZYzHRyLH8Stq3Aow0LsHO2O2ci86fCrNQ==
4802-
48034760
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
48044761
version "4.0.0"
48054762
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -6660,11 +6617,6 @@ promise-inflight@^1.0.1:
66606617
resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
66616618
integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM=
66626619

6663-
promise-polyfill@^6.0.2:
6664-
version "6.1.0"
6665-
resolved "https://registry.yarnpkg.com/promise-polyfill/-/promise-polyfill-6.1.0.tgz#dfa96943ea9c121fca4de9b5868cb39d3472e057"
6666-
integrity sha1-36lpQ+qcEh/KTem1hoyznTRy4Fc=
6667-
66686620
promise-retry@^1.1.1:
66696621
version "1.1.1"
66706622
resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-1.1.1.tgz#6739e968e3051da20ce6497fb2b50f6911df3d6d"
@@ -7709,11 +7661,6 @@ [email protected]:
77097661
dependencies:
77107662
chalk "^2.0.1"
77117663

7712-
spin.js@^2.3.2:
7713-
version "2.3.2"
7714-
resolved "https://registry.yarnpkg.com/spin.js/-/spin.js-2.3.2.tgz#6caa56d520673450fd5cfbc6971e6d0772c37a1a"
7715-
integrity sha1-bKpW1SBnNFD9XPvGlx5tB3LDeho=
7716-
77177664
split-string@^3.0.1, split-string@^3.0.2:
77187665
version "3.1.0"
77197666
resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"
@@ -8019,13 +7966,10 @@ svgo@^1.0.0:
80197966
unquote "~1.1.1"
80207967
util.promisify "~1.0.0"
80217968

8022-
sweetalert@^2.0.8:
8023-
version "2.1.2"
8024-
resolved "https://registry.yarnpkg.com/sweetalert/-/sweetalert-2.1.2.tgz#010baaa80d0dbdc86f96bfcaa96b490728594b79"
8025-
integrity sha512-iWx7X4anRBNDa/a+AdTmvAzQtkN1+s4j/JJRWlHpYE8Qimkohs8/XnFcWeYHH2lMA8LRCa5tj2d244If3S/hzA==
8026-
dependencies:
8027-
es6-object-assign "^1.1.0"
8028-
promise-polyfill "^6.0.2"
7969+
sweetalert2@^9.10.12:
7970+
version "9.14.0"
7971+
resolved "https://registry.yarnpkg.com/sweetalert2/-/sweetalert2-9.14.0.tgz#2ae59c417745ae9360e47d7745a39be3ecbee1a2"
7972+
integrity sha512-NXxaR5ZsT9JQ+pEH0lQPa6fzFr7Uqx2VNI3dcPBShwTngQkVLXzEJYB0XjWAx/oBLAIPyHlc/tc3bkojJ2HYzg==
80297973

80307974
80317975
version "1.2.0"
@@ -8210,13 +8154,6 @@ to-regex@^3.0.1, to-regex@^3.0.2:
82108154
regex-not "^1.0.2"
82118155
safe-regex "^1.1.0"
82128156

8213-
toastr@^2.1.2:
8214-
version "2.1.4"
8215-
resolved "https://registry.yarnpkg.com/toastr/-/toastr-2.1.4.tgz#8b43be64fb9d0c414871446f2db8e8ca4e95f181"
8216-
integrity sha1-i0O+ZPudDEFIcURvLbjoyk6V8YE=
8217-
dependencies:
8218-
jquery ">=1.12.0"
8219-
82208157
82218158
version "1.0.0"
82228159
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553"

0 commit comments

Comments
 (0)