-
Notifications
You must be signed in to change notification settings - Fork 761
WEB-377-fix/content-render-timing #2722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
shubhamkumar9199
wants to merge
1
commit into
openMF:dev
from
shubhamkumar9199:fix/content-render-timing
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,86 +1,99 @@ | ||
| <div class="container m-b-10 layout-row layout-lt-md-column align-end gap-1percent"> | ||
| <button mat-raised-button color="primary" class="m-r-10" [routerLink]="['/system', 'roles-and-permissions']"> | ||
| <fa-icon icon="check" class="m-r-10"></fa-icon> | ||
| {{ 'labels.buttons.Permissions' | translate }} | ||
| </button> | ||
| <button mat-raised-button color="primary" class="m-r-10" (click)="changeUserPassword()"> | ||
| <fa-icon icon="cog" class="m-r-10"></fa-icon> | ||
| {{ 'labels.buttons.Change Password' | translate }} | ||
| </button> | ||
| <!-- Skeleton Loader --> | ||
| <div *ngIf="isLoadingTranslations" class="skeleton-wrapper"> | ||
| <mifosx-skeleton-loader type="profile" [showButtons]="true" [buttonCount]="2" [tableRows]="3" [tableColumns]="2"> | ||
| </mifosx-skeleton-loader> | ||
| </div> | ||
| <div class="container layout-column gap-1percent"> | ||
| <mat-card> | ||
| <div class="layout-row-wrap"> | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.Tenant Id' | translate }} | ||
|
|
||
| <!-- Actual Content --> | ||
| <div *ngIf="!isLoadingTranslations"> | ||
| <div class="container m-b-10 layout-row layout-lt-md-column align-end gap-1percent"> | ||
| <button mat-raised-button color="primary" class="m-r-10" [routerLink]="['/system', 'roles-and-permissions']"> | ||
| <fa-icon icon="check" class="m-r-10"></fa-icon> | ||
| {{ 'labels.buttons.Permissions' | translate }} | ||
| </button> | ||
| <button mat-raised-button color="primary" class="m-r-10" (click)="changeUserPassword()"> | ||
| <fa-icon icon="cog" class="m-r-10"></fa-icon> | ||
| {{ 'labels.buttons.Change Password' | translate }} | ||
| </button> | ||
| </div> | ||
| <div class="container layout-column gap-1percent"> | ||
| <mat-card> | ||
| <div class="layout-row-wrap"> | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.Tenant Id' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ tenantIdentifier }} | ||
| </div> | ||
| </div> | ||
| <div> | ||
| {{ tenantIdentifier }} | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.User Id' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ profileData.userId }} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.User Id' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ profileData.userId }} | ||
| </div> | ||
| </div> | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.User Name' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ profileData.username }} | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.User Name' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ profileData.username }} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.Office' | translate }} | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.Office' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ profileData.officeName }} | ||
| </div> | ||
| </div> | ||
| <div> | ||
| {{ profileData.officeName }} | ||
| </div> | ||
| </div> | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.Status' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ profileData.authenticated ? 'Authenticated' : 'Not Authenticated' }} | ||
| </div> | ||
| </div> | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.Language' | translate }} | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.Status' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ | ||
| profileData.authenticated | ||
| ? ('labels.states.Authenticated' | translate) | ||
| : ('labels.states.Not Authenticated' | translate) | ||
| }} | ||
| </div> | ||
| </div> | ||
| <div> | ||
| {{ language }} | ||
| <div class="info-box"> | ||
| <div class="header"> | ||
| {{ 'labels.inputs.Language' | translate }} | ||
| </div> | ||
| <div> | ||
| {{ language }} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </mat-card> | ||
| <mat-card> | ||
| <table class="mat-elevation-z1" mat-table [dataSource]="dataSource"> | ||
| <ng-container matColumnDef="role"> | ||
| <th mat-header-cell *matHeaderCellDef> | ||
| {{ 'labels.inputs.Role' | translate }} | ||
| </th> | ||
| <td mat-cell *matCellDef="let role"> | ||
| {{ role.name }} | ||
| </td> | ||
| </ng-container> | ||
| <ng-container matColumnDef="description"> | ||
| <th mat-header-cell *matHeaderCellDef> | ||
| {{ 'labels.inputs.Description' | translate }} | ||
| </th> | ||
| <td mat-cell *matCellDef="let role"> | ||
| {{ role.description }} | ||
| </td> | ||
| </ng-container> | ||
| <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||
| <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr> | ||
| </table> | ||
| </mat-card> | ||
| </mat-card> | ||
| <mat-card> | ||
| <table class="mat-elevation-z1" mat-table [dataSource]="dataSource"> | ||
| <ng-container matColumnDef="role"> | ||
| <th mat-header-cell *matHeaderCellDef> | ||
| {{ 'labels.inputs.Role' | translate }} | ||
| </th> | ||
| <td mat-cell *matCellDef="let role"> | ||
| {{ role.name }} | ||
| </td> | ||
| </ng-container> | ||
| <ng-container matColumnDef="description"> | ||
| <th mat-header-cell *matHeaderCellDef> | ||
| {{ 'labels.inputs.Description' | translate }} | ||
| </th> | ||
| <td mat-cell *matCellDef="let role"> | ||
| {{ role.description }} | ||
| </td> | ||
| </ng-container> | ||
| <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||
| <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr> | ||
| </table> | ||
| </mat-card> | ||
| </div> | ||
| </div> |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { SkeletonLoaderComponent } from './skeleton-loader.component'; |
88 changes: 88 additions & 0 deletions
88
src/app/shared/skeleton-loader/skeleton-loader.component.html
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| <!-- Profile Type Skeleton --> | ||
| <div *ngIf="type === 'profile'" class="skeleton-loader-profile"> | ||
| <!-- Buttons --> | ||
| <div class="skeleton-buttons" *ngIf="showButtons"> | ||
| <div | ||
| class="skeleton-button" | ||
| *ngFor="let i of createArray(buttonCount); let idx = index; trackBy: trackByIndex" | ||
| ></div> | ||
| </div> | ||
|
|
||
| <!-- Info Boxes Card --> | ||
| <div class="skeleton-card"> | ||
| <div class="layout-row-wrap"> | ||
| <div class="skeleton-info-box" *ngFor="let i of createArray(6); let idx = index; trackBy: trackByIndex"> | ||
| <div class="skeleton-header"></div> | ||
| <div class="skeleton-text"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Table Card --> | ||
| <div class="skeleton-card"> | ||
| <div class="skeleton-table" [style.--columns]="tableColumns"> | ||
| <div class="skeleton-table-header"> | ||
| <div | ||
| class="skeleton-cell" | ||
| *ngFor="let i of createArray(tableColumns); let idx = index; trackBy: trackByIndex" | ||
| ></div> | ||
| </div> | ||
| <div class="skeleton-table-row" *ngFor="let i of createArray(tableRows); let idx = index; trackBy: trackByIndex"> | ||
| <div | ||
| class="skeleton-cell" | ||
| *ngFor="let j of createArray(tableColumns); let idx2 = index; trackBy: trackByIndex" | ||
| ></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Table Type Skeleton --> | ||
| <div *ngIf="type === 'table'" class="skeleton-loader-table"> | ||
| <div class="skeleton-table" [style.--columns]="tableColumns"> | ||
| <div class="skeleton-table-header"> | ||
| <div | ||
| class="skeleton-cell" | ||
| *ngFor="let i of createArray(tableColumns); let idx = index; trackBy: trackByIndex" | ||
| ></div> | ||
| </div> | ||
| <div class="skeleton-table-row" *ngFor="let i of createArray(tableRows); let idx = index; trackBy: trackByIndex"> | ||
| <div | ||
| class="skeleton-cell" | ||
| *ngFor="let j of createArray(tableColumns); let idx2 = index; trackBy: trackByIndex" | ||
| ></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Card Type Skeleton --> | ||
| <div *ngIf="type === 'card'" class="skeleton-loader-card"> | ||
| <div class="skeleton-card-item" *ngFor="let i of createArray(items); let idx = index; trackBy: trackByIndex"> | ||
| <div class="skeleton-card-header"> | ||
| <div class="skeleton-avatar"></div> | ||
| <div class="skeleton-card-title"></div> | ||
| </div> | ||
| <div class="skeleton-card-content"> | ||
| <div class="skeleton-line skeleton-line-90"></div> | ||
| <div class="skeleton-line skeleton-line-70"></div> | ||
| <div class="skeleton-line skeleton-line-85"></div> | ||
| </div> | ||
| <div class="skeleton-card-footer"></div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- List Type Skeleton --> | ||
| <div *ngIf="type === 'list'" class="skeleton-loader-list"> | ||
| <div class="skeleton-list-item" *ngFor="let i of createArray(items); let idx = index; trackBy: trackByIndex"> | ||
| <div class="skeleton-avatar"></div> | ||
| <div class="skeleton-list-content"> | ||
| <div class="skeleton-line skeleton-line-60"></div> | ||
| <div class="skeleton-line skeleton-line-40"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Custom Type Skeleton --> | ||
| <div *ngIf="type === 'custom'" class="skeleton-loader-custom" [ngClass]="cssClass"> | ||
| <ng-content></ng-content> | ||
| </div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean up subscription and timeout on component destroy.
The translation subscription and setTimeout are not cleaned up, which can cause memory leaks and errors if the component is destroyed before they complete.
Apply this diff to add proper cleanup:
🤖 Prompt for AI Agents