Skip to content

Commit

Permalink
Duplicate content issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratikshakhandagale committed Oct 7, 2024
1 parent 21ec7e7 commit 5812e2f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions src/app/pages/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@
<div class="image-title">{{"Teacher Tara" | translate }}</div>
</div>
</div> -->
<div class="card" *ngIf="content.metaData && content.metaData.name">
<div class="card" *ngIf="content?.metaData && content?.metaData?.name">
<div class="card__img" (click)="playContent($event, content)">
<img [src]="(content?.metaData?.thumbnail && !content.metaData.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/Audio.png'" alt="" *ngIf="content.metaData.mimetype === mimeType.AUDIO">
<img loading="lazy" [src]="(content?.metaData?.thumbnail && !content?.metaData.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/Audio.png'" alt="" *ngIf="content.metaData.mimetype === mimeType.AUDIO">
<!-- <img appThumbnail [appThumbnail]="'assets/images/yt.jpeg'" alt="" *ngIf="content.metaData.mimetype === mimeType.YOUTUBE"> -->
<img appThumbnail [appThumbnail]="content?.metaData" alt="" *ngIf="content?.metaData?.mimetype === mimeType.YOUTUBE && !content.play">
<!-- <img [src]="(content?.metaData?.thumbnail && !content.metaData.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/youtube-video.png'" alt="" *ngIf="content.metaData.mimetype === mimeType.YOUTUBE"> -->
<!-- <img [src]="loadYoutubeImg(content.metaData.identifier)" alt="" *ngIf="content.metaData.mimetype === mimeType.YOUTUBE && !content.play"> -->
<img [src]="(content?.metaData?.thumbnail && !content.metaData.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/Video.png'" alt="" *ngIf="content.metaData.mimetype === mimeType.MP4">
<img [src]="(content?.metaData?.thumbnail && !content.metaData.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/PDF.png'" alt="" *ngIf="content.metaData.mimetype === mimeType.PDF">
<img [src]="(content?.metaData?.thumbnail && !content.metaData.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/LINK.png'" alt="" *ngIf="content.metaData.mimetype === mimeType.LINK">
<img loading="lazy" [src]="(content?.metaData?.thumbnail && !content?.metaData?.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/Video.png'" alt="" *ngIf="content?.metaData?.mimetype === mimeType?.MP4">
<img [src]="(content?.metaData?.thumbnail && !content?.metaData?.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/PDF.png'" alt="" *ngIf="content?.metaData?.mimetype === mimeType?.PDF">
<img loading="lazy" [src]="(content?.metaData?.thumbnail && !content?.metaData?.identifier.startsWith('do_')) ? (content?.metaData?.thumbnail) : 'assets/images/LINK.png'" alt="" *ngIf="content?.metaData?.mimetype === mimeType?.LINK">

<img [src]="(content?.metaData?.thumbnail =='' && !content.metaData.identifier.startsWith('do_')) ? 'https://ejaaduipitara.ncert.gov.in/assets/img/cards.jpg' : ''" alt="">
<img loading="lazy" [src]="(content?.metaData?.thumbnail =='' && !content.metaData.identifier.startsWith('do_')) ? 'https://ejaaduipitara.ncert.gov.in/assets/img/cards.jpg' : ''" alt="">

<!-- <ion-img *ngIf="content.metaData.thumbnail && !content.play" [src]="content.metaData.thumbnail" alt=""/>
<ion-img *ngIf="!content.metaData.thumbnail && !content.play" [src]="loadYoutubeImg(content.metaData.identifier)" alt=""/> -->
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export class HomePage implements OnInit, OnTabViewWillEnter, OnDestroy {
}

async mappUIContentList(content: Array<ContentMetaData>) {
// await this.contentService.deleteAllContents();
await this.contentService.deleteAllContents();
this.showSheenAnimation = false;
this.configContents = [];
this.contentList = [];
Expand Down Expand Up @@ -410,4 +410,4 @@ export class HomePage implements OnInit, OnTabViewWillEnter, OnDestroy {
await this.confirmService.onConfirmContent(content.metaData);
}
}
}
}
1 change: 0 additions & 1 deletion www/4392.8583a55b82822922.js

This file was deleted.

1 change: 1 addition & 0 deletions www/4392.e4d89643924592dc.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@

<script src="assets/installPrompt.js" async></script>
<noscript>Please enable JavaScript to continue using this application.</noscript>
<script src="runtime.e70e93a832b54439.js" type="module"></script><script src="polyfills.bd294e9c6a01f281.js" type="module"></script><script src="scripts.f969b614b9decf68.js" defer></script><script src="main.f160c05e338d2aa7.js" type="module"></script></body>
<script src="runtime.dd02c2482793c38d.js" type="module"></script><script src="polyfills.bd294e9c6a01f281.js" type="module"></script><script src="scripts.f969b614b9decf68.js" defer></script><script src="main.f160c05e338d2aa7.js" type="module"></script></body>

</html>
12 changes: 6 additions & 6 deletions www/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1728042966993,
"timestamp": 1728301180959,
"index": "/index.html",
"assetGroups": [
{
Expand Down Expand Up @@ -45,7 +45,7 @@
"/4183.fbaeacea2b0845b7.js",
"/4224.70311ea3fdbf63a3.js",
"/4294.7d0cfb016595919b.js",
"/4392.8583a55b82822922.js",
"/4392.e4d89643924592dc.js",
"/4406.05cf0d9efef8a3fa.js",
"/441.6bf62409b0c7ec80.js",
"/4463.d0c3d78068fad310.js",
Expand Down Expand Up @@ -106,7 +106,7 @@
"/polyfills-core-js.c76198334f717402.js",
"/polyfills-dom.bf542500b6fca113.js",
"/polyfills.bd294e9c6a01f281.js",
"/runtime.e70e93a832b54439.js",
"/runtime.dd02c2482793c38d.js",
"/scripts.f969b614b9decf68.js",
"/styles.31ee935e78782ce3.css"
],
Expand Down Expand Up @@ -528,7 +528,7 @@
"/4183.fbaeacea2b0845b7.js": "e331b71f59f6bac2fbb35662da3f9518aa735d84",
"/4224.70311ea3fdbf63a3.js": "c5da1710213bb0a5a50ef264f5dbf7a0b0cba324",
"/4294.7d0cfb016595919b.js": "4b4ed7b2a87a820d1fe6953e8508377e5114d815",
"/4392.8583a55b82822922.js": "976aeeff4b8e79a57806c2649e167846758262b0",
"/4392.e4d89643924592dc.js": "9911721f9db6b36f3ce6f5dfba6c0c792bc2f764",
"/4406.05cf0d9efef8a3fa.js": "914bc989e167052b797e58fdb8dff38c86c06b66",
"/441.6bf62409b0c7ec80.js": "aba9b8343deb1caf5f0c70230441a5b5499c103c",
"/4463.d0c3d78068fad310.js": "b65fbf8cbdcd6285d14fb49f5833d8470e783dc5",
Expand Down Expand Up @@ -951,13 +951,13 @@
"/assets/timer.svg": "57b27e5d93af2aabd1077ecd4c70bcab678f4472",
"/assets/user.svg": "2dc572771661b2ccd3ea4ae06bf768778144cbec",
"/common.6fb368d54d6a7f3d.js": "be07a45ebe95bc3a1fc57cc6d28f471f0505c026",
"/index.html": "12b29dfd811041a5b1595ef72fa821332f6fd9ab",
"/index.html": "4a71de3f56345cfd489d54d8b1ac232d4a42295d",
"/main.f160c05e338d2aa7.js": "8ea79d8914be08d83a455b7ccaf20ca8037235eb",
"/manifest.webmanifest": "5a927f2c991153c4e1fb8dd9fd7845bbe00ba537",
"/polyfills-core-js.c76198334f717402.js": "d6e270a2944b6a95a9b97dafd25599ba825e8d7f",
"/polyfills-dom.bf542500b6fca113.js": "3fa333db66c8050f12e99d977f5098a6de8dd593",
"/polyfills.bd294e9c6a01f281.js": "23b8d991df9f329be21888e9c445ce411f6fc678",
"/runtime.e70e93a832b54439.js": "3b6562f21c311dd9b2cacec3cb878a0f56900801",
"/runtime.dd02c2482793c38d.js": "5d67bcf5d8463f9eb7164d0bddf78c5d3b07d949",
"/scripts.f969b614b9decf68.js": "467091cacab9e36440117d8c26effba07c491af9",
"/styles.31ee935e78782ce3.css": "70b012057dbff3cec42eff7de81a4ef851316e86"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5812e2f

Please sign in to comment.