MOBILE-3744 lint: Fix linting errors introduced by the update of eslint
parent
2a90fda846
commit
6ee0dfa0d4
|
@ -90,7 +90,7 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
|
|||
entriesRendered = '';
|
||||
extraImports: Type<unknown>[] = [AddonModDataComponentsCompileModule];
|
||||
|
||||
jsData? : {
|
||||
jsData?: {
|
||||
fields: Record<number, AddonModDataField>;
|
||||
entries: Record<number, AddonModDataEntry>;
|
||||
database: AddonModDataData;
|
||||
|
@ -100,7 +100,7 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
|
|||
};
|
||||
|
||||
// Data for found records translation.
|
||||
foundRecordsTranslationData? : {
|
||||
foundRecordsTranslationData?: {
|
||||
num: number;
|
||||
max: number;
|
||||
reseturl: string;
|
||||
|
|
|
@ -52,7 +52,7 @@ export class AddonModDataSearchComponent implements OnInit {
|
|||
extraImports: Type<unknown>[] = [AddonModDataComponentsCompileModule];
|
||||
|
||||
searchForm: FormGroup;
|
||||
jsData? : {
|
||||
jsData?: {
|
||||
fields: Record<number, AddonModDataField>;
|
||||
form: FormGroup;
|
||||
search: CoreFormFields;
|
||||
|
|
|
@ -77,7 +77,7 @@ export class AddonModDataEditPage implements OnInit {
|
|||
editFormRender = '';
|
||||
editForm: FormGroup;
|
||||
extraImports: Type<unknown>[] = [AddonModDataComponentsCompileModule];
|
||||
jsData? : {
|
||||
jsData?: {
|
||||
fields: Record<number, AddonModDataField>;
|
||||
database?: AddonModDataData;
|
||||
contents: AddonModDataEntryFields;
|
||||
|
|
|
@ -78,7 +78,7 @@ export class AddonModDataEntryPage implements OnInit, OnDestroy {
|
|||
entryHtml = '';
|
||||
siteId: string;
|
||||
extraImports: Type<unknown>[] = [AddonModDataComponentsCompileModule];
|
||||
jsData? : {
|
||||
jsData?: {
|
||||
fields: Record<number, AddonModDataField>;
|
||||
entries: Record<number, AddonModDataEntry>;
|
||||
database: AddonModDataData;
|
||||
|
|
|
@ -26,11 +26,11 @@
|
|||
<ion-list *ngIf="!shouldIframe && (!shouldEmbed || !isOther)">
|
||||
<ion-item *ngIf="shouldEmbed">
|
||||
<ion-label>
|
||||
<img *ngIf="isImage" title="{{name}}" [src]="url">
|
||||
<video *ngIf="isVideo" title="{{name}}" controls>
|
||||
<img *ngIf="isImage" [alt]="name" [src]="url">
|
||||
<video *ngIf="isVideo" [title]="name" controls>
|
||||
<source [src]="url" [type]="mimetype">
|
||||
</video>
|
||||
<audio *ngIf="isAudio" title="{{name}}" controls>
|
||||
<audio *ngIf="isAudio" [title]="name" controls>
|
||||
<source [src]="url" [type]="mimetype">
|
||||
</audio>
|
||||
</ion-label>
|
||||
|
|
|
@ -659,7 +659,9 @@ export class CoreSite {
|
|||
preSets.omitExpires = 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
|
||||
}).then((response: any) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<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>
|
||||
<div class="core-progress-text">{{ 'core.percentagenumber' | translate: {$a: text} }}</div>
|
||||
</ng-container>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
capture="true">
|
||||
<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"
|
||||
[attr.aria-label]="grade.iconAlt"/>
|
||||
[alt]="grade.iconAlt">
|
||||
<ion-label>
|
||||
<h2><core-format-text [text]="grade.itemname" contextLevel="course" [contextInstanceId]="courseId">
|
||||
</core-format-text></h2>
|
||||
|
|
|
@ -121,8 +121,8 @@
|
|||
<ng-template #site let-site="site">
|
||||
<ion-item button (click)="connect($event, site.url, site)" [attr.aria-label]="site.name" detail="true">
|
||||
<ion-thumbnail *ngIf="siteFinderSettings.displayimage" slot="start">
|
||||
<img [src]="site.imageurl" *ngIf="site.imageurl" onError="this.src='assets/icon/icon.png'">
|
||||
<img src="assets/icon/icon.png" *ngIf="!site.imageurl" class="core-login-default-icon">
|
||||
<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" alt="" role="presentation">
|
||||
</ion-thumbnail>
|
||||
<ion-label>
|
||||
<h2 *ngIf="site.title" class="ion-text-wrap">{{site.title}}</h2>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</ion-item>
|
||||
<ion-list class="core-search-history" [hidden]="!historyShown">
|
||||
<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>
|
||||
<ion-label>{{item.searchedtext}}</ion-label>
|
||||
|
|
Loading…
Reference in New Issue