MOBILE-3744 lint: Fix linting errors introduced by the update of eslint
parent
2a90fda846
commit
6ee0dfa0d4
|
@ -26,11 +26,11 @@
|
||||||
<ion-list *ngIf="!shouldIframe && (!shouldEmbed || !isOther)">
|
<ion-list *ngIf="!shouldIframe && (!shouldEmbed || !isOther)">
|
||||||
<ion-item *ngIf="shouldEmbed">
|
<ion-item *ngIf="shouldEmbed">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<img *ngIf="isImage" title="{{name}}" [src]="url">
|
<img *ngIf="isImage" [alt]="name" [src]="url">
|
||||||
<video *ngIf="isVideo" title="{{name}}" controls>
|
<video *ngIf="isVideo" [title]="name" controls>
|
||||||
<source [src]="url" [type]="mimetype">
|
<source [src]="url" [type]="mimetype">
|
||||||
</video>
|
</video>
|
||||||
<audio *ngIf="isAudio" title="{{name}}" controls>
|
<audio *ngIf="isAudio" [title]="name" controls>
|
||||||
<source [src]="url" [type]="mimetype">
|
<source [src]="url" [type]="mimetype">
|
||||||
</audio>
|
</audio>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
|
|
|
@ -659,7 +659,9 @@ export class CoreSite {
|
||||||
preSets.omitExpires = true;
|
preSets.omitExpires = true;
|
||||||
preSets.getFromCache = true;
|
preSets.getFromCache = true;
|
||||||
|
|
||||||
return this.getFromCache<T>(method, data, preSets, true).catch(() => Promise.reject(new CoreWSError(error)));
|
return this.getFromCache<T>(method, data, preSets, true).catch(() => {
|
||||||
|
throw new CoreWSError(error);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
}).then((response: any) => {
|
}).then((response: any) => {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<ng-container *ngIf="progress >= 0">
|
<ng-container *ngIf="progress >= 0">
|
||||||
<progress max="100" [value]="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100" [attr.aria-valuenow]="progress">
|
<progress max="100" [value]="progress" role="progressbar" [attr.aria-valuenow]="progress">
|
||||||
</progress>
|
</progress>
|
||||||
<div class="core-progress-text">{{ 'core.percentagenumber' | translate: {$a: text} }}</div>
|
<div class="core-progress-text">{{ 'core.percentagenumber' | translate: {$a: text} }}</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
capture="true">
|
capture="true">
|
||||||
<ion-icon *ngIf="grade.icon" name="{{grade.icon}}" slot="start" [attr.aria-label]="grade.iconAlt"></ion-icon>
|
<ion-icon *ngIf="grade.icon" name="{{grade.icon}}" slot="start" [attr.aria-label]="grade.iconAlt"></ion-icon>
|
||||||
<img *ngIf="grade.image" [src]="grade.image" slot="start" class="core-module-icon"
|
<img *ngIf="grade.image" [src]="grade.image" slot="start" class="core-module-icon"
|
||||||
[attr.aria-label]="grade.iconAlt"/>
|
[alt]="grade.iconAlt">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2><core-format-text [text]="grade.itemname" contextLevel="course" [contextInstanceId]="courseId">
|
<h2><core-format-text [text]="grade.itemname" contextLevel="course" [contextInstanceId]="courseId">
|
||||||
</core-format-text></h2>
|
</core-format-text></h2>
|
||||||
|
|
|
@ -121,8 +121,8 @@
|
||||||
<ng-template #site let-site="site">
|
<ng-template #site let-site="site">
|
||||||
<ion-item button (click)="connect($event, site.url, site)" [attr.aria-label]="site.name" detail="true">
|
<ion-item button (click)="connect($event, site.url, site)" [attr.aria-label]="site.name" detail="true">
|
||||||
<ion-thumbnail *ngIf="siteFinderSettings.displayimage" slot="start">
|
<ion-thumbnail *ngIf="siteFinderSettings.displayimage" slot="start">
|
||||||
<img [src]="site.imageurl" *ngIf="site.imageurl" onError="this.src='assets/icon/icon.png'">
|
<img [src]="site.imageurl" *ngIf="site.imageurl" onError="this.src='assets/icon/icon.png'" alt="" role="presentation">
|
||||||
<img src="assets/icon/icon.png" *ngIf="!site.imageurl" class="core-login-default-icon">
|
<img src="assets/icon/icon.png" *ngIf="!site.imageurl" class="core-login-default-icon" alt="" role="presentation">
|
||||||
</ion-thumbnail>
|
</ion-thumbnail>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h2 *ngIf="site.title" class="ion-text-wrap">{{site.title}}</h2>
|
<h2 *ngIf="site.title" class="ion-text-wrap">{{site.title}}</h2>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-list class="core-search-history" [hidden]="!historyShown">
|
<ion-list class="core-search-history" [hidden]="!historyShown">
|
||||||
<ion-item button class="ion-text-wrap" *ngFor="let item of history"
|
<ion-item button class="ion-text-wrap" *ngFor="let item of history"
|
||||||
(click)="historyClicked($event, item.searchedtext)" tabindex="1" detail>
|
(click)="historyClicked($event, item.searchedtext)" tabindex="0" detail="true">
|
||||||
<ion-icon name="fas-history" slot="start" aria-hidden="true">
|
<ion-icon name="fas-history" slot="start" aria-hidden="true">
|
||||||
</ion-icon>
|
</ion-icon>
|
||||||
<ion-label>{{item.searchedtext}}</ion-label>
|
<ion-label>{{item.searchedtext}}</ion-label>
|
||||||
|
|
Loading…
Reference in New Issue