chore: Performance improvements on the TV Details page

pull/5085/head
Jamie 9 months ago committed by GitHub
parent 6d6890d0dd
commit 43fe449e32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,18 @@
module.exports = {
...require('@exclaimer/prettier-config'),
overrides: [
{
files: ['*.yaml', '*.yml'],
options: {
tabWidth: 2,
singleQuote: false,
},
},
{
files: 'index.html',
options: {
parser: 'html',
},
},
],
};

@ -192,7 +192,13 @@
</div> </div>
<div class="col-12 col-md-10"> <div class="col-12 col-md-10">
@defer {
<tv-request-grid id="requests-grid" [tvRequest]="tvRequest" [isAdmin]="isAdmin" [tv]="tv"></tv-request-grid> <tv-request-grid id="requests-grid" [tvRequest]="tvRequest" [isAdmin]="isAdmin" [tv]="tv"></tv-request-grid>
} @placeholder {
<div class="loading-spinner">
<mat-spinner [color]="'accent'"></mat-spinner>
</div>
}
</div> </div>
<div class="col-12 col-md-2"> <div class="col-12 col-md-2">
@ -210,11 +216,17 @@
</mat-panel-title> </mat-panel-title>
</mat-expansion-panel-header> </mat-expansion-panel-header>
@defer (on viewport) {
<tv-requests-panel <tv-requests-panel
[tvRequest]="tvRequest" [tvRequest]="tvRequest"
[isAdmin]="isAdmin" [isAdmin]="isAdmin"
[manageOwnRequests]="manageOwnRequests" [manageOwnRequests]="manageOwnRequests"
></tv-requests-panel> ></tv-requests-panel>
} @placeholder {
<div class="loading-spinner">
<mat-spinner [color]="'accent'"></mat-spinner>
</div>
}
</mat-expansion-panel> </mat-expansion-panel>
</mat-accordion> </mat-accordion>
</div> </div>

Loading…
Cancel
Save