Skip to content

Commit

Permalink
chore: Performance improvements on the TV Details page
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar authored Mar 5, 2024
1 parent 6d6890d commit 43fe449
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Ombi/ClientApp/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -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',
},
},
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,13 @@ <h3>{{ 'MediaDetails.NotEnoughInfo' | translate }}</h3>
</div>

<div class="col-12 col-md-10">
@defer {
<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 class="col-12 col-md-2">
Expand All @@ -210,11 +216,17 @@ <h3>{{ 'MediaDetails.NotEnoughInfo' | translate }}</h3>
</mat-panel-title>
</mat-expansion-panel-header>

@defer (on viewport) {
<tv-requests-panel
[tvRequest]="tvRequest"
[isAdmin]="isAdmin"
[manageOwnRequests]="manageOwnRequests"
></tv-requests-panel>
} @placeholder {
<div class="loading-spinner">
<mat-spinner [color]="'accent'"></mat-spinner>
</div>
}
</mat-expansion-panel>
</mat-accordion>
</div>
Expand Down

0 comments on commit 43fe449

Please sign in to comment.