Skip to content

Commit

Permalink
✔ Dark R18+
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Sep 18, 2024
1 parent bc35a11 commit 0b07b14
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ export class AnimeDetailComponent implements OnInit, OnDestroy {
Proyek: r.project_type_.name,
// Image: r.image_url,
Tanggal: r.created_at,
'Nama Berkas': r.name
'Nama Berkas': r.name,
DARK: r.r18
});
}
this.tabData[1].data.row = this.berkasAnime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export class BerkasListComponent implements OnInit, OnDestroy {
Tanggal: r.created_at,
Kunjungan: r.view_count,
Pemilik: r.user_.username,
'Nama Berkas': r.name
'Nama Berkas': r.name,
DARK: r.r18
});
}
this.tabData[0].data.row = this.berkasData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ export class DoramaDetailComponent implements OnInit, OnDestroy {
Proyek: r.project_type_.name,
// Image: r.image_url,
Tanggal: r.created_at,
'Nama Berkas': r.name
'Nama Berkas': r.name,
DARK: r.r18
});
}
this.tabData[1].data.row = this.berkasDorama;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ export class FansubDetailComponent implements OnInit, OnDestroy {
Proyek: r.project_type_.name,
// Image: r.image_url,
Tanggal: r.created_at,
'Nama Berkas': r.name
'Nama Berkas': r.name,
DARK: r.r18
});
}
this.tabData[2].data.row = this.berkasFansub;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ export class UserDetailComponent implements OnInit, OnDestroy {
Tanggal: r.created_at,
Kunjungan: r.view_count,
Pemilik: r.user_.username,
'Nama Berkas': r.name
'Nama Berkas': r.name,
DARK: r.r18
});
}
this.tabData[0].data.row = this.berkasUser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ <h3 class="m-0" [style.color]="'#ff4081'">{{ tdc.toUpperCase() }}</h3>
tdc.toUpperCase() === 'JUDUL ANIME' || tdc.toUpperCase() === 'JUDUL DORAMA'
) ? 'text-truncate' : ''
}}">
<img matListAvatar [src]="row.foto" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" class="me-1" *ngIf="tdc.toUpperCase() === 'PEMILIK' || tdc.toUpperCase() === 'PENULIS'" />
<img matListAvatar [src]="row.foto_korban" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" class="me-1" *ngIf="tdc.toUpperCase() === 'KORBAN'" />
<img matListAvatar [src]="row.foto_pelaku" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" class="me-1" *ngIf="tdc.toUpperCase() === 'PELAKU'" />
<img matListAvatar [src]="row.foto_fansub" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" class="me-1" *ngIf="tdc.toUpperCase() === 'FANSUB'" />
<img matListAvatar [src]="row.foto_anggota" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" class="me-1" *ngIf="tdc.toUpperCase() === 'ANGGOTA'" />
<img matListAvatar [src]="row[tdc]" style="width: 64px; height: 64px; object-fit: cover; border-radius: 0;" *ngIf="tdc.toUpperCase() === 'LOGO'" />
<img matListAvatar [src]="row[tdc]" style="width: 64px; height: 48px; object-fit: cover; border-radius: 0;" *ngIf="tdc.toUpperCase() === 'IMAGE'" />
<img matListAvatar [src]="row[tdc]" style="width: 64px; height: 100%; object-fit: cover; border-radius: 0;" *ngIf="tdc.toUpperCase() === 'POSTER'" />
<span *ngIf="tdc.toUpperCase() === 'TANGGAL'" matTooltip="{{ row[tdc] | date:'d MMMM y, hh:mm:ss a z' }}">{{ row[tdc] | dateAgo }}</span>
<span *ngIf="tdc.toUpperCase() === 'DEADLINE'">{{ row[tdc] | date:'d/M/yy, HH:mm:ss' }}</span>
<span *ngIf="tdc.toUpperCase() === 'ANIME'">{{ row[tdc] || 0 }} Anime</span>
<span *ngIf="tdc.toUpperCase() === 'DORAMA'">{{ row[tdc] || 0 }} Dorama</span>
<span *ngIf="tdc.toUpperCase() === 'KUNJUNGAN'">{{ row[tdc] }}x Dilihat</span>
<span *ngIf="
<img matListAvatar [src]="row.foto" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" [style.filter]="row.DARK ? 'brightness(0.75)' : ''" class="me-1" *ngIf="tdc.toUpperCase() === 'PEMILIK' || tdc.toUpperCase() === 'PENULIS'" />
<img matListAvatar [src]="row.foto_korban" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" [style.filter]="row.DARK ? 'brightness(0.75)' : ''" class="me-1" *ngIf="tdc.toUpperCase() === 'KORBAN'" />
<img matListAvatar [src]="row.foto_pelaku" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" [style.filter]="row.DARK ? 'brightness(0.75)' : ''" class="me-1" *ngIf="tdc.toUpperCase() === 'PELAKU'" />
<img matListAvatar [src]="row.foto_fansub" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" [style.filter]="row.DARK ? 'brightness(0.75)' : ''" class="me-1" *ngIf="tdc.toUpperCase() === 'FANSUB'" />
<img matListAvatar [src]="row.foto_anggota" style="width: 32px; height: 32px; object-fit: cover; border-radius: 0;" [style.filter]="row.DARK ? 'brightness(0.75)' : ''" class="me-1" *ngIf="tdc.toUpperCase() === 'ANGGOTA'" />
<img class="{{ row.DARK ? 'text-muted' : '' }}" matListAvatar [src]="row[tdc]" style="width: 64px; height: 64px; object-fit: cover; border-radius: 0;" *ngIf="tdc.toUpperCase() === 'LOGO'" />
<img class="{{ row.DARK ? 'text-muted' : '' }}" matListAvatar [src]="row[tdc]" style="width: 64px; height: 48px; object-fit: cover; border-radius: 0;" *ngIf="tdc.toUpperCase() === 'IMAGE'" />
<img class="{{ row.DARK ? 'text-muted' : '' }}" matListAvatar [src]="row[tdc]" style="width: 64px; height: 100%; object-fit: cover; border-radius: 0;" *ngIf="tdc.toUpperCase() === 'POSTER'" />
<span class="{{ row.DARK ? 'text-muted' : '' }}" *ngIf="tdc.toUpperCase() === 'TANGGAL'" matTooltip="{{ row[tdc] | date:'d MMMM y, hh:mm:ss a z' }}">{{ row[tdc] | dateAgo }}</span>
<span class="{{ row.DARK ? 'text-muted' : '' }}" *ngIf="tdc.toUpperCase() === 'DEADLINE'">{{ row[tdc] | date:'d/M/yy, HH:mm:ss' }}</span>
<span class="{{ row.DARK ? 'text-muted' : '' }}" *ngIf="tdc.toUpperCase() === 'ANIME'">{{ row[tdc] || 0 }} Anime</span>
<span class="{{ row.DARK ? 'text-muted' : '' }}" *ngIf="tdc.toUpperCase() === 'DORAMA'">{{ row[tdc] || 0 }} Dorama</span>
<span class="{{ row.DARK ? 'text-muted' : '' }}" *ngIf="tdc.toUpperCase() === 'KUNJUNGAN'">{{ row[tdc] }}x Dilihat</span>
<span class="{{ row.DARK ? 'text-muted' : '' }}" *ngIf="
tdc.toUpperCase() !== 'POSTER' && tdc.toUpperCase() !== 'LOGO' && tdc.toUpperCase() !== 'IMAGE' &&
tdc.toUpperCase() !== 'TANGGAL' && tdc.toUpperCase() !== 'DEADLINE' && tdc.toUpperCase() !== 'ANIME' &&
tdc.toUpperCase() !== 'DORAMA' && tdc.toUpperCase() !== 'KUNJUNGAN'
Expand Down
1 change: 1 addition & 0 deletions projects/main-site/src/models/req-res.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export interface BerkasModel {
name?: string;
description?: string;
private?: boolean;
r18?: boolean;
download_url?: string;
image_url?: string;
sn_code?: string;
Expand Down

0 comments on commit 0b07b14

Please sign in to comment.