MOBILE-3947 lint: Fix self-closing tags

main
Pau Ferrer Ocaña 2024-01-23 16:13:09 +01:00
parent b5fe5b3c9d
commit 6c9bc12d34
14 changed files with 20 additions and 20 deletions

View File

@ -1,5 +1,5 @@
<div *ngIf="!loading" @coreShowHideAnimation> <div *ngIf="!loading" @coreShowHideAnimation>
<ng-content></ng-content> <ng-content />
</div> </div>
<!-- Spinner. --> <!-- Spinner. -->

View File

@ -5,7 +5,7 @@
<ion-icon *ngIf="icon" [name]="icon" aria-hidden="true" /> <ion-icon *ngIf="icon" [name]="icon" aria-hidden="true" />
</div> </div>
<ng-content></ng-content> <ng-content />
</ion-select> </ion-select>
<ion-button *ngIf="interface === 'modal'" aria-haspopup="listbox" [attr.aria-controls]="listboxId" [attr.aria-owns]="listboxId" <ion-button *ngIf="interface === 'modal'" aria-haspopup="listbox" [attr.aria-controls]="listboxId" [attr.aria-owns]="listboxId"

View File

@ -2,4 +2,4 @@
[attr.aria-controls]="uniqueId"> [attr.aria-controls]="uniqueId">
<ion-icon [name]="icon" slot="icon-only" aria-hidden="true" /> <ion-icon [name]="icon" slot="icon-only" aria-hidden="true" />
</ion-button> </ion-button>
<ng-content></ng-content> <ng-content />

View File

@ -1,5 +1,5 @@
<!-- Content to display if no dynamic component. --> <!-- Content to display if no dynamic component. -->
<ng-content *ngIf="!instance"></ng-content> <ng-content *ngIf="!instance" />
<!-- Container of the dynamic component --> <!-- Container of the dynamic component -->
<ng-container #dynamicComponent /> <ng-container #dynamicComponent />

View File

@ -1,4 +1,4 @@
<img *ngIf="image && !icon" [src]="image" role="presentation" alt=""> <img *ngIf="image && !icon" [src]="image" role="presentation" alt="">
<ion-icon *ngIf="icon" [name]="icon" aria-hidden="true" /> <ion-icon *ngIf="icon" [name]="icon" aria-hidden="true" />
<p *ngIf="message">{{ message }}</p> <p *ngIf="message">{{ message }}</p>
<ng-content></ng-content> <ng-content />

View File

@ -2,4 +2,4 @@
<ion-spinner color="primary" aria-hidden="true" /> <ion-spinner color="primary" aria-hidden="true" />
<p class="core-loading-message" *ngIf="message" role="status">{{message}}</p> <p class="core-loading-message" *ngIf="message" role="status">{{message}}</p>
</div> </div>
<ng-content *ngIf="loaded" @coreShowHideAnimation></ng-content> <ng-content *ngIf="loaded" @coreShowHideAnimation />

View File

@ -1,3 +1,3 @@
<ng-content></ng-content> <ng-content />
<ion-icon *ngIf="coreMarkRequired" class="core-input-required-asterisk" name="fas-circle-exclamation" color="danger" <ion-icon *ngIf="coreMarkRequired" class="core-input-required-asterisk" name="fas-circle-exclamation" color="danger"
[attr.aria-label]="requiredLabel" /> [attr.aria-label]="requiredLabel" />

View File

@ -52,7 +52,7 @@ const BUTTON_HIDDEN_CLASS = 'core-navbar-button-hidden';
*/ */
@Component({ @Component({
selector: 'core-navbar-buttons', selector: 'core-navbar-buttons',
template: '<ng-content></ng-content><template #contextMenuContainer>-</template>', template: '<ng-content/><template #contextMenuContainer>-</template>',
styleUrls: ['navbar-buttons.scss'], styleUrls: ['navbar-buttons.scss'],
}) })
export class CoreNavBarButtonsComponent implements OnInit, OnDestroy { export class CoreNavBarButtonsComponent implements OnInit, OnDestroy {

View File

@ -1,5 +1,5 @@
<ion-content class="menu"> <ion-content class="menu">
<ng-content></ng-content> <ng-content />
</ion-content> </ion-content>
<ion-router-outlet class="content-outlet" /> <ion-router-outlet class="content-outlet" />
<core-empty-box class="content-placeholder" icon="fas-circle-arrow-left" [message]="placeholderText | translate" [flipIconRtl]="true" /> <core-empty-box class="content-placeholder" icon="fas-circle-arrow-left" [message]="placeholderText | translate" [flipIconRtl]="true" />

View File

@ -33,5 +33,5 @@
</ng-container> </ng-container>
</ion-tab-bar> </ion-tab-bar>
<div class="core-tabs-content-container" #originalTabs> <div class="core-tabs-content-container" #originalTabs>
<ng-content></ng-content> <ng-content />
</div> </div>

View File

@ -26,4 +26,4 @@
<span *ngIf="checkOnline && isOnline()" class="contact-status online" role="status" [attr.aria-label]="'core.online' | translate"> <span *ngIf="checkOnline && isOnline()" class="contact-status online" role="status" [attr.aria-label]="'core.online' | translate">
</span> </span>
<ng-content></ng-content> <ng-content />

View File

@ -7,7 +7,7 @@
<ion-icon name="fas-lock" *ngIf="module.visible === 0 || module.uservisible === false" <ion-icon name="fas-lock" *ngIf="module.visible === 0 || module.uservisible === false"
[attr.aria-label]="'core.restricted' | translate" /> [attr.aria-label]="'core.restricted' | translate" />
</h1> </h1>
<ng-content select="[title]"></ng-content> <ng-content select="[title]" />
</ion-label> </ion-label>
</ion-item> </ion-item>
@ -37,10 +37,10 @@
<core-format-text [text]="description" [component]="component" [componentId]="componentId" contextLevel="module" <core-format-text [text]="description" [component]="component" [componentId]="componentId" contextLevel="module"
[contextInstanceId]="module.id" [courseId]="courseId" [collapsible-item]="expandDescription ? null : ''" /> [contextInstanceId]="module.id" [courseId]="courseId" [collapsible-item]="expandDescription ? null : ''" />
</div> </div>
<ng-content select="[description]"></ng-content> <ng-content select="[description]" />
</div> </div>
<ng-content></ng-content> <ng-content />
<!-- Activity has something offline. --> <!-- Activity has something offline. -->
<ion-card class="core-warning-card" *ngIf="hasDataToSync"> <ion-card class="core-warning-card" *ngIf="hasDataToSync">

View File

@ -3,7 +3,7 @@
<ion-icon name="fas-triangle-exclamation" slot="start" aria-hidden="true" /> <ion-icon name="fas-triangle-exclamation" slot="start" aria-hidden="true" />
<ion-label> <ion-label>
<p> <p>
<ng-content></ng-content> <ng-content />
</p> </p>
<ion-button *ngIf="canContactSupport" fill="outline" color="medium" (click)="contactSupport()"> <ion-button *ngIf="canContactSupport" fill="outline" color="medium" (click)="contactSupport()">
{{ 'core.contactsupport' | translate }} {{ 'core.contactsupport' | translate }}

View File

@ -26,19 +26,19 @@
<ng-container *ngFor="let item of items"> <ng-container *ngFor="let item of items">
<ng-container [ngSwitch]="item"> <ng-container [ngSwitch]="item">
<ng-container *ngSwitchCase="'LIST_OF_COURSE'"> <ng-container *ngSwitchCase="'LIST_OF_COURSE'">
<ng-template *ngTemplateOutlet="allCourseList"></ng-template> <ng-template *ngTemplateOutlet="allCourseList" />
</ng-container> </ng-container>
<ng-container *ngSwitchCase="'LIST_OF_CATEGORIES'"> <ng-container *ngSwitchCase="'LIST_OF_CATEGORIES'">
<ng-template *ngTemplateOutlet="categories"></ng-template> <ng-template *ngTemplateOutlet="categories" />
</ng-container> </ng-container>
<ng-container *ngSwitchCase="'COURSE_SEARCH_BOX'"> <ng-container *ngSwitchCase="'COURSE_SEARCH_BOX'">
<ng-template *ngTemplateOutlet="courseSearch"></ng-template> <ng-template *ngTemplateOutlet="courseSearch" />
</ng-container> </ng-container>
<ng-container *ngSwitchCase="'ENROLLED_COURSES'"> <ng-container *ngSwitchCase="'ENROLLED_COURSES'">
<ng-template *ngTemplateOutlet="enrolledCourseList"></ng-template> <ng-template *ngTemplateOutlet="enrolledCourseList" />
</ng-container> </ng-container>
<ng-container *ngSwitchCase="'NEWS_ITEMS'"> <ng-container *ngSwitchCase="'NEWS_ITEMS'">
<ng-template *ngTemplateOutlet="news"></ng-template> <ng-template *ngTemplateOutlet="news" />
</ng-container> </ng-container>
</ng-container> </ng-container>
</ng-container> </ng-container>