lints
This commit is contained in:
parent
45622e7fd6
commit
f140f1fc16
@ -160,7 +160,9 @@ section.settings {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: var(--iqser-background);
|
background: var(--iqser-background);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: width ease-in-out 0.2s, min-width ease-in-out 0.2s;
|
transition:
|
||||||
|
width ease-in-out 0.2s,
|
||||||
|
min-width ease-in-out 0.2s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|||||||
@ -7,18 +7,26 @@
|
|||||||
0%,
|
0%,
|
||||||
20% {
|
20% {
|
||||||
color: rgba(var(--iqser-accent-rgb), 0);
|
color: rgba(var(--iqser-accent-rgb), 0);
|
||||||
text-shadow: 0.25em 0 0 rgba(var(--iqser-accent-rgb), 0), 0.5em 0 0 rgba(var(--iqser-accent-rgb), 0);
|
text-shadow:
|
||||||
|
0.25em 0 0 rgba(var(--iqser-accent-rgb), 0),
|
||||||
|
0.5em 0 0 rgba(var(--iqser-accent-rgb), 0);
|
||||||
}
|
}
|
||||||
40% {
|
40% {
|
||||||
color: var(--iqser-accent);
|
color: var(--iqser-accent);
|
||||||
text-shadow: 0.25em 0 0 rgba(var(--iqser-accent-rgb), 0), 0.5em 0 0 rgba(var(--iqser-accent-rgb), 0);
|
text-shadow:
|
||||||
|
0.25em 0 0 rgba(var(--iqser-accent-rgb), 0),
|
||||||
|
0.5em 0 0 rgba(var(--iqser-accent-rgb), 0);
|
||||||
}
|
}
|
||||||
60% {
|
60% {
|
||||||
text-shadow: 0.25em 0 0 var(--iqser-accent), 0.5em 0 0 rgba(var(--iqser-accent-rgb), 0);
|
text-shadow:
|
||||||
|
0.25em 0 0 var(--iqser-accent),
|
||||||
|
0.5em 0 0 rgba(var(--iqser-accent-rgb), 0);
|
||||||
}
|
}
|
||||||
80%,
|
80%,
|
||||||
100% {
|
100% {
|
||||||
text-shadow: 0.25em 0 0 var(--iqser-accent), 0.5em 0 0 var(--iqser-accent);
|
text-shadow:
|
||||||
|
0.25em 0 0 var(--iqser-accent),
|
||||||
|
0.5em 0 0 var(--iqser-accent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,10 @@ export abstract class BaseDialogComponent implements AfterViewInit, OnDestroy {
|
|||||||
readonly #dialog = inject(MatDialog);
|
readonly #dialog = inject(MatDialog);
|
||||||
#hasErrors = false;
|
#hasErrors = false;
|
||||||
|
|
||||||
protected constructor(protected readonly _dialogRef: MatDialogRef<BaseDialogComponent>, private readonly _isInEditMode = false) {}
|
protected constructor(
|
||||||
|
protected readonly _dialogRef: MatDialogRef<BaseDialogComponent>,
|
||||||
|
private readonly _isInEditMode = false,
|
||||||
|
) {}
|
||||||
|
|
||||||
get valid(): boolean {
|
get valid(): boolean {
|
||||||
return !this.form || this.form.valid;
|
return !this.form || this.form.valid;
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
<div *ngIf="config.checkboxes.length > 0" class="mt-24 checkboxes-wrapper">
|
<div *ngIf="config.checkboxes.length > 0" class="mt-24 checkboxes-wrapper">
|
||||||
<ng-container *ngFor="let checkbox of config.checkboxes">
|
<ng-container *ngFor="let checkbox of config.checkboxes">
|
||||||
<mat-checkbox [(ngModel)]="checkbox.value" [class.error]="!checkbox.value && showToast" color="primary">
|
<mat-checkbox [(ngModel)]="checkbox.value" [class.error]="!checkbox.value && showToast" color="primary">
|
||||||
{{ checkbox.label | translate : config.translateParams }}
|
{{ checkbox.label | translate: config.translateParams }}
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
<ng-container *ngTemplateOutlet="checkbox.extraContent; context: { data: checkbox.extraContentData }"></ng-container>
|
<ng-container *ngTemplateOutlet="checkbox.extraContent; context: { data: checkbox.extraContentData }"></ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@ -7,7 +7,10 @@ import { ChangeDetectorRef, Directive, ElementRef, HostBinding, HostListener, On
|
|||||||
export class HasScrollbarDirective implements OnInit, OnChanges {
|
export class HasScrollbarDirective implements OnInit, OnChanges {
|
||||||
@HostBinding('class') class = '';
|
@HostBinding('class') class = '';
|
||||||
|
|
||||||
constructor(protected readonly _elementRef: ElementRef, protected readonly _changeDetector: ChangeDetectorRef) {}
|
constructor(
|
||||||
|
protected readonly _elementRef: ElementRef,
|
||||||
|
protected readonly _changeDetector: ChangeDetectorRef,
|
||||||
|
) {}
|
||||||
|
|
||||||
get hasScrollbar() {
|
get hasScrollbar() {
|
||||||
const element = this._elementRef?.nativeElement as HTMLElement;
|
const element = this._elementRef?.nativeElement as HTMLElement;
|
||||||
|
|||||||
@ -13,7 +13,10 @@ import { CircleButtonTypes } from '../../buttons';
|
|||||||
export class HelpModeComponent {
|
export class HelpModeComponent {
|
||||||
readonly circleButtonTypes = CircleButtonTypes;
|
readonly circleButtonTypes = CircleButtonTypes;
|
||||||
|
|
||||||
constructor(private readonly _dialog: MatDialog, readonly helpModeService: HelpModeService) {}
|
constructor(
|
||||||
|
private readonly _dialog: MatDialog,
|
||||||
|
readonly helpModeService: HelpModeService,
|
||||||
|
) {}
|
||||||
|
|
||||||
@HostListener('document:keydown.escape', ['$event'])
|
@HostListener('document:keydown.escape', ['$event'])
|
||||||
onEscKeydownHandler(event: KeyboardEvent): void {
|
onEscKeydownHandler(event: KeyboardEvent): void {
|
||||||
|
|||||||
@ -14,8 +14,8 @@
|
|||||||
<mat-icon [svgIcon]="option.icon" class="icon"></mat-icon>
|
<mat-icon [svgIcon]="option.icon" class="icon"></mat-icon>
|
||||||
|
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<label class="details-radio-label pointer">{{ option.label | translate : option.descriptionParams }}</label>
|
<label class="details-radio-label pointer">{{ option.label | translate: option.descriptionParams }}</label>
|
||||||
<span class="hint">{{ option.description | translate : option.descriptionParams | replaceNbsp }}</span>
|
<span class="hint">{{ option.description | translate: option.descriptionParams | replaceNbsp }}</span>
|
||||||
|
|
||||||
<div *ngIf="option.extraOption && !option.extraOption.hidden && isSelected(option)" class="iqser-input-group">
|
<div *ngIf="option.extraOption && !option.extraOption.hidden && isSelected(option)" class="iqser-input-group">
|
||||||
<mat-checkbox
|
<mat-checkbox
|
||||||
|
|||||||
@ -34,7 +34,10 @@ export class PageHeaderComponent<T extends IListable> {
|
|||||||
readonly filters$ = this.filterService?.filterGroups$.pipe(filterEach(f => !!f.icon));
|
readonly filters$ = this.filterService?.filterGroups$.pipe(filterEach(f => !!f.icon));
|
||||||
readonly showResetFilters$ = this.#showResetFilters$;
|
readonly showResetFilters$ = this.#showResetFilters$;
|
||||||
|
|
||||||
constructor(@Optional() readonly filterService: FilterService, @Optional() readonly searchService: SearchService<T>) {}
|
constructor(
|
||||||
|
@Optional() readonly filterService: FilterService,
|
||||||
|
@Optional() readonly searchService: SearchService<T>,
|
||||||
|
) {}
|
||||||
|
|
||||||
get filterHelpModeKey() {
|
get filterHelpModeKey() {
|
||||||
return this.helpModeKey ? `filter_${this.helpModeKey}_list` : '';
|
return this.helpModeKey ? `filter_${this.helpModeKey}_list` : '';
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
></iqser-round-checkbox>
|
></iqser-round-checkbox>
|
||||||
|
|
||||||
<span class="all-caps-label">
|
<span class="all-caps-label">
|
||||||
{{ tableHeaderLabel | translate : { length: totalSize || (listingService.displayedLength$ | async) } }}
|
{{ tableHeaderLabel | translate: { length: totalSize || (listingService.displayedLength$ | async) } }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,10 @@ export class ColumnHeaderComponent<T extends IListable, K extends string> extend
|
|||||||
|
|
||||||
@ViewChild('bulkActionsContainer') bulkActionsContainer?: ElementRef;
|
@ViewChild('bulkActionsContainer') bulkActionsContainer?: ElementRef;
|
||||||
|
|
||||||
constructor(readonly listingService: ListingService<T>, private readonly _changeRef: ChangeDetectorRef) {
|
constructor(
|
||||||
|
readonly listingService: ListingService<T>,
|
||||||
|
private readonly _changeRef: ChangeDetectorRef,
|
||||||
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -116,7 +116,9 @@
|
|||||||
|
|
||||||
.item,
|
.item,
|
||||||
.add-btn {
|
.add-btn {
|
||||||
transition: background-color 0.2s, box-shadow 0.2s;
|
transition:
|
||||||
|
background-color 0.2s,
|
||||||
|
box-shadow 0.2s;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
margin: 0 8px 4px 8px;
|
margin: 0 8px 4px 8px;
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,11 @@ interface T {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class PruningTranslationLoader implements TranslateLoader {
|
export class PruningTranslationLoader implements TranslateLoader {
|
||||||
constructor(private readonly _http: HttpClient, private readonly _prefix: string, private readonly _suffix: string) {}
|
constructor(
|
||||||
|
private readonly _http: HttpClient,
|
||||||
|
private readonly _prefix: string,
|
||||||
|
private readonly _suffix: string,
|
||||||
|
) {}
|
||||||
|
|
||||||
getTranslation(lang: string): Observable<T> {
|
getTranslation(lang: string): Observable<T> {
|
||||||
return this._http.get(`${this._prefix}${lang}${this._suffix}`).pipe(map(result => this._process(result as T)));
|
return this._http.get(`${this._prefix}${lang}${this._suffix}`).pipe(map(result => this._process(result as T)));
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
<div *ngIf="_user && _user | name : namePipeOptions as userName" class="wrapper">
|
<div *ngIf="_user && _user | name: namePipeOptions as userName" class="wrapper">
|
||||||
<div
|
<div
|
||||||
[className]="colorClass + ' oval ' + size + (hasBorder ? ' border' : '')"
|
[className]="colorClass + ' oval ' + size + (hasBorder ? ' border' : '')"
|
||||||
[matTooltipPosition]="tooltipPosition"
|
[matTooltipPosition]="tooltipPosition"
|
||||||
[matTooltip]="showTooltip ? userName : ''"
|
[matTooltip]="showTooltip ? userName : ''"
|
||||||
>
|
>
|
||||||
{{ _user | name : { showInitials: true } }}
|
{{ _user | name: { showInitials: true } }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="withName" [class.disabled]="disabled" class="clamp-1 username" id="avatarUsername">
|
<div *ngIf="withName" [class.disabled]="disabled" class="clamp-1 username" id="avatarUsername">
|
||||||
|
|||||||
@ -24,7 +24,10 @@ export class InitialsAvatarComponent<Interface extends IIqserUser = IIqserUser,
|
|||||||
colorClass?: string;
|
colorClass?: string;
|
||||||
namePipeOptions?: NamePipeOptions;
|
namePipeOptions?: NamePipeOptions;
|
||||||
|
|
||||||
constructor(private readonly _userService: IqserUserService<Interface, Class>, private readonly _translateService: TranslateService) {}
|
constructor(
|
||||||
|
private readonly _userService: IqserUserService<Interface, Class>,
|
||||||
|
private readonly _translateService: TranslateService,
|
||||||
|
) {}
|
||||||
|
|
||||||
_user?: Class;
|
_user?: Class;
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,10 @@ import { KeycloakLoginOptions } from 'keycloak-js';
|
|||||||
export class IqserAuthGuard extends KeycloakAuthGuard {
|
export class IqserAuthGuard extends KeycloakAuthGuard {
|
||||||
readonly #config = getConfig();
|
readonly #config = getConfig();
|
||||||
|
|
||||||
constructor(protected readonly _router: Router, protected readonly _keycloak: KeycloakService) {
|
constructor(
|
||||||
|
protected readonly _router: Router,
|
||||||
|
protected readonly _keycloak: KeycloakService,
|
||||||
|
) {
|
||||||
super(_router, _keycloak);
|
super(_router, _keycloak);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,11 @@ export class IqserUser implements IIqserUser, IListable {
|
|||||||
|
|
||||||
constructor(user: KeycloakProfile | IIqserUser, ...args: unknown[]);
|
constructor(user: KeycloakProfile | IIqserUser, ...args: unknown[]);
|
||||||
|
|
||||||
constructor(user: KeycloakProfile | IIqserUser, readonly roles: List, readonly userId: string) {
|
constructor(
|
||||||
|
user: KeycloakProfile | IIqserUser,
|
||||||
|
readonly roles: List,
|
||||||
|
readonly userId: string,
|
||||||
|
) {
|
||||||
this.hasAnyRole = this.roles.length > 0;
|
this.hasAnyRole = this.roles.length > 0;
|
||||||
this.email = user.email;
|
this.email = user.email;
|
||||||
this.username = user.username ?? this.email ?? 'unknown user';
|
this.username = user.username ?? this.email ?? 'unknown user';
|
||||||
|
|||||||
@ -26,7 +26,10 @@ export class NamePipe implements PipeTransform {
|
|||||||
showInitials: false,
|
showInitials: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(private readonly _userService: IqserUserService, private readonly _translateService: TranslateService) {}
|
constructor(
|
||||||
|
private readonly _userService: IqserUserService,
|
||||||
|
private readonly _translateService: TranslateService,
|
||||||
|
) {}
|
||||||
|
|
||||||
transform(value: IqserUser | string, options: NamePipeOptions = this._defaultOptions): string {
|
transform(value: IqserUser | string, options: NamePipeOptions = this._defaultOptions): string {
|
||||||
if (!value || value === 'undefined') {
|
if (!value || value === 'undefined') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user