-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from naturalsolutions/lint/apply-frontend-linting
lint: apply frontend linting
- Loading branch information
Showing
76 changed files
with
1,616 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<mat-expansion-panel [expanded]="expanded"> | ||
<mat-expansion-panel-header> | ||
<mat-panel-title> {{ title }} </mat-panel-title> | ||
<mat-panel-title>{{ title }}</mat-panel-title> | ||
</mat-expansion-panel-header> | ||
<ng-content></ng-content> | ||
</mat-expansion-panel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "../../../app.module"; | ||
@import '../../../app.module'; | ||
|
||
mat-expansion-panel { | ||
margin: 28px 0 !important; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/app/commonComponents/delete-modal/delete-modal.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "../../../app.module"; | ||
@import '../../../app.module'; | ||
|
||
.modal-body { | ||
padding: 20px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/app/commonComponents/imageTable/image-table.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "../../../app.module"; | ||
@import '../../../app.module'; | ||
|
||
.item { | ||
list-style: none; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "../../../app.module"; | ||
@import '../../../app.module'; | ||
|
||
.label { | ||
font-weight: 600; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "../../../app.module"; | ||
@import '../../../app.module'; | ||
|
||
.item { | ||
list-style: none; | ||
|
141 changes: 77 additions & 64 deletions
141
frontend/app/commonComponents/zh-multiselect/zh-multiselect.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,78 @@ | ||
<small>{{ label }}</small> | ||
<ng-select class="Multiselect" | ||
#zhMultiselect | ||
[ngClass]="{'Multiselect--multiple': multiple, 'Multiselect--hightlightValue': hightlightValue}" | ||
[items]="values" | ||
[bindLabel]="keyLabel" | ||
[bindValue]="keyValue" | ||
[placeholder]="placeholder" | ||
[multiple]="multiple" | ||
[clearable]="true" | ||
[virtualScroll]="true" | ||
[formControl]="parentFormControl" | ||
(add)="onChange.emit($event)" | ||
(remove)="onDelete.emit($event)" | ||
(open)="onOpen.emit($event)" | ||
[closeOnSelect]="!multiple" | ||
[groupBy]="groupBy" | ||
[selectableGroup]="true" | ||
[selectableGroupAsModel]="false" | ||
> | ||
<ng-template ng-header-tmp> | ||
<div class="MultiselectHeader"> | ||
<input type="text" | ||
class="MultiselectHeader__search" | ||
id="inputValidation" | ||
placeholder="Search" | ||
(input)="zhMultiselect.filter($event.target.value)" /> | ||
<button *ngIf="zhMultiselect.multiple" | ||
class="MultiselectHeader__selectAll" | ||
mat-flat-button | ||
color="#219653" | ||
(click)="selectAllFiltered(zhMultiselect)"> | ||
Select all | ||
</button> | ||
</div> | ||
</ng-template> | ||
<ng-template ng-optgroup-tmp | ||
let-item="item" | ||
let-item$="item$" | ||
let-index="index" | ||
class="MultiselectOption"> | ||
<div class="MultiselectOptionItem"> | ||
<input class="MultiselectOptionItem__checkbox" | ||
id="item-{{index}}" | ||
type="checkbox" | ||
[ngModel]="item$.selected" | ||
[ngModelOptions]="{standalone: true}" /> | ||
<div class="MultiselectOptionItem__text">{{ item[groupBy] }}</div> | ||
</div> | ||
</ng-template> | ||
<ng-template ng-option-tmp | ||
let-item="item" | ||
let-item$="item$" | ||
let-index="index" | ||
class="MultiselectOption"> | ||
<div class="MultiselectOptionItem"> | ||
<input class="MultiselectOptionItem__checkbox" | ||
id="item-{{index}}" | ||
type="checkbox" | ||
[ngModel]="item$.selected" | ||
[ngModelOptions]="{standalone: true}" /> | ||
<div class="MultiselectOptionItem__text">{{ item[keyLabel] }}</div> | ||
</div> | ||
</ng-template> | ||
</ng-select> | ||
<ng-select | ||
class="Multiselect" | ||
#zhMultiselect | ||
[ngClass]="{ 'Multiselect--multiple': multiple, 'Multiselect--hightlightValue': hightlightValue }" | ||
[items]="values" | ||
[bindLabel]="keyLabel" | ||
[bindValue]="keyValue" | ||
[placeholder]="placeholder" | ||
[multiple]="multiple" | ||
[clearable]="true" | ||
[virtualScroll]="true" | ||
[formControl]="parentFormControl" | ||
(add)="onChange.emit($event)" | ||
(remove)="onDelete.emit($event)" | ||
(open)="onOpen.emit($event)" | ||
[closeOnSelect]="!multiple" | ||
[groupBy]="groupBy" | ||
[selectableGroup]="true" | ||
[selectableGroupAsModel]="false" | ||
> | ||
<ng-template ng-header-tmp> | ||
<div class="MultiselectHeader"> | ||
<input | ||
type="text" | ||
class="MultiselectHeader__search" | ||
id="inputValidation" | ||
placeholder="Search" | ||
(input)="zhMultiselect.filter($event.target.value)" | ||
/> | ||
<button | ||
*ngIf="zhMultiselect.multiple" | ||
class="MultiselectHeader__selectAll" | ||
mat-flat-button | ||
color="#219653" | ||
(click)="selectAllFiltered(zhMultiselect)" | ||
> | ||
Select all | ||
</button> | ||
</div> | ||
</ng-template> | ||
<ng-template | ||
ng-optgroup-tmp | ||
let-item="item" | ||
let-item$="item$" | ||
let-index="index" | ||
class="MultiselectOption" | ||
> | ||
<div class="MultiselectOptionItem"> | ||
<input | ||
class="MultiselectOptionItem__checkbox" | ||
id="item-{{ index }}" | ||
type="checkbox" | ||
[ngModel]="item$.selected" | ||
[ngModelOptions]="{ standalone: true }" | ||
/> | ||
<div class="MultiselectOptionItem__text">{{ item[groupBy] }}</div> | ||
</div> | ||
</ng-template> | ||
<ng-template | ||
ng-option-tmp | ||
let-item="item" | ||
let-item$="item$" | ||
let-index="index" | ||
class="MultiselectOption" | ||
> | ||
<div class="MultiselectOptionItem"> | ||
<input | ||
class="MultiselectOptionItem__checkbox" | ||
id="item-{{ index }}" | ||
type="checkbox" | ||
[ngModel]="item$.selected" | ||
[ngModelOptions]="{ standalone: true }" | ||
/> | ||
<div class="MultiselectOptionItem__text">{{ item[keyLabel] }}</div> | ||
</div> | ||
</ng-template> | ||
</ng-select> |
Oops, something went wrong.