add logo to collection list + minor changes
This commit is contained in:
1 parent
c3294a1ab9
commit
3076406b58
13 files changed
+49
-35
No files matched your search
@@ -580,19 +580,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<hr class="dropdown-divider">
|
<hr class="dropdown-divider">
|
||||||
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;"><i
|
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;">
|
||||||
class="material-icons-outlined">person_outline</i>Profile</a>
|
<i class="material-icons-outlined">person_outline</i>Profile</a>
|
||||||
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;"><i
|
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;">
|
||||||
class="material-icons-outlined">local_bar</i>Setting</a>
|
<i class="material-icons-outlined">local_bar</i>Setting</a>
|
||||||
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;"><i
|
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;">
|
||||||
class="material-icons-outlined">dashboard</i>Dashboard</a>
|
<i class="material-icons-outlined">dashboard</i>Dashboard</a>
|
||||||
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;"><i
|
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;">
|
||||||
class="material-icons-outlined">account_balance</i>Earning</a>
|
<i class="material-icons-outlined">account_balance</i>Earning</a>
|
||||||
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;"><i
|
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;">
|
||||||
class="material-icons-outlined">cloud_download</i>Downloads</a>
|
<i class="material-icons-outlined">cloud_download</i>Downloads</a>
|
||||||
<hr class="dropdown-divider">
|
<hr class="dropdown-divider">
|
||||||
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;"><i
|
<a class="dropdown-item d-flex align-items-center gap-2 py-2" href="javascript:;">
|
||||||
class="material-icons-outlined">power_settings_new</i>Logout</a>
|
<i class="material-icons-outlined">power_settings_new</i>Logout</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-wrapper .sidebar-header .logo-img {
|
.sidebar-wrapper .sidebar-header .logo-img {
|
||||||
width: 48px;
|
height: 40px;
|
||||||
|
width: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-wrapper .sidebar-header,
|
.sidebar-wrapper .sidebar-header,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<img src="assets/images/logo3.png" class="logo-img" alt="">
|
<img src="assets/images/logo3.png" class="logo-img" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="logo-name flex-grow-1">
|
<div class="logo-name flex-grow-1">
|
||||||
<h5 class="mb-0">ShowzY</h5>
|
<h5 class="mb-0">Showy</h5>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="sidebar-close">
|
<!-- <div class="sidebar-close">
|
||||||
<span class="material-icons-outlined">close</span>
|
<span class="material-icons-outlined">close</span>
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<div class="d-flex align-items-center gap-3">
|
<div class="d-flex align-items-center gap-3">
|
||||||
<div class="product-box">
|
<div class="product-box">
|
||||||
<img src="https://picsum.photos/70" width="70" class="rounded-3" alt="">
|
<img [src]="getLogoPath()" width="80" class="rounded-3" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="product-info">
|
<div class="product-info">
|
||||||
<a href="javascript:;" class="product-title">{{entry.title}}</a>
|
<a href="javascript:;" class="product-title">{{entry.title}}</a>
|
||||||
|
|||||||
+22
@@ -64,6 +64,28 @@ export class CollectionTableLineComponent implements OnInit {
|
|||||||
return `https://image.tmdb.org/t/p/w500` + this.entry.poster_path;
|
return `https://image.tmdb.org/t/p/w500` + this.entry.poster_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getLogoPath() {
|
||||||
|
// * Is in library: use a local logo
|
||||||
|
if (this.entry.medias) {
|
||||||
|
const selectedLogos = this.entry.medias.filter(
|
||||||
|
(m) => m.type == 'logo' && m.is_selected
|
||||||
|
);
|
||||||
|
|
||||||
|
if (
|
||||||
|
selectedLogos.length &&
|
||||||
|
selectedLogos[0] &&
|
||||||
|
selectedLogos[0].path
|
||||||
|
) {
|
||||||
|
const name = selectedLogos[0].path.split('.')[0];
|
||||||
|
const extention = selectedLogos[0].path.split('.')[1];
|
||||||
|
return `http://localhost:4000/api/v1/media/entries/logos/${name}.${extention}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// * No poster found, use default poster image as a last stand
|
||||||
|
return 'assets/images/default/default-logo.png';
|
||||||
|
}
|
||||||
|
|
||||||
removeEntryFromList() {
|
removeEntryFromList() {
|
||||||
const dialogRef = this.dialog.open(ConfirmModalComponent, {
|
const dialogRef = this.dialog.open(ConfirmModalComponent, {
|
||||||
width: '400px',
|
width: '400px',
|
||||||
|
|||||||
@@ -297,7 +297,7 @@
|
|||||||
<div class="">
|
<div class="">
|
||||||
<p class="mb-1 fs-6 fw-bold">Movies</p>
|
<p class="mb-1 fs-6 fw-bold">Movies</p>
|
||||||
<h2 class="mb-0">{{this.watchCount.moviesTotal}}</h2>
|
<h2 class="mb-0">{{this.watchCount.moviesTotal}}</h2>
|
||||||
<p class="mb-0"><span class="text-success me-2 fw-medium">16.5%</span><span>55.21 USD</span></p>
|
<!-- <p class="mb-0"><span class="text-success me-2 fw-medium">16.5%</span><span>55.21 USD</span></p> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="vr"></div>
|
<div class="vr"></div>
|
||||||
@@ -319,7 +319,7 @@
|
|||||||
<div class="">
|
<div class="">
|
||||||
<p class="mb-1 fs-6 fw-bold">Tv-Series</p>
|
<p class="mb-1 fs-6 fw-bold">Tv-Series</p>
|
||||||
<h2 class="mb-0">{{this.watchCount.seriesTotal}}</h2>
|
<h2 class="mb-0">{{this.watchCount.seriesTotal}}</h2>
|
||||||
<p class="mb-0"><span class="text-success me-2 fw-medium">24.9%</span><span>267.35 USD</span></p>
|
<!-- <p class="mb-0"><span class="text-success me-2 fw-medium">24.9%</span><span>267.35 USD</span></p> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import ApexCharts from 'apexcharts';
|
|||||||
import { EntrySeenService } from '../../core/services/entry-seen.service';
|
import { EntrySeenService } from '../../core/services/entry-seen.service';
|
||||||
import { LibraryService } from '../../core/services/library.service';
|
import { LibraryService } from '../../core/services/library.service';
|
||||||
import { EpisodeSeenService } from '../../core/services/episode-seen.service';
|
import { EpisodeSeenService } from '../../core/services/episode-seen.service';
|
||||||
import { Observable, forkJoin } from 'rxjs';
|
import { forkJoin } from 'rxjs';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-home-page',
|
selector: 'app-home-page',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div class="movie-card" [@fadeInOut]="animationDirection">
|
<div class="movie-card" [@fadeInOut]="animationDirection">
|
||||||
<div class="card-head">
|
<div class="card-head">
|
||||||
<img class="card-img" [src]="posterPath" alt="Movie Poster">
|
<img class="card-img" [src]="posterPath" alt="Movie Poster" onerror="this.src='assets/images/default/default-poster.png'">
|
||||||
|
|
||||||
<div class="loading-overlay" *ngIf="lockActions" @animateDestroy>
|
<div class="loading-overlay" *ngIf="lockActions" @animateDestroy>
|
||||||
<div class="d-flex justify-content-center align-items-center" style="height: 100%;">
|
<div class="d-flex justify-content-center align-items-center" style="height: 100%;">
|
||||||
@@ -37,8 +37,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- card body : title, -->
|
<!-- card body : title, -->
|
||||||
<div class="card-body">
|
<div class="card-body" (click)="cardClick()">
|
||||||
<a (click)="cardClick()" rel="noopener noreferrer">
|
<a rel="noopener noreferrer">
|
||||||
<h3 class="card-title">{{ entry.title }}</h3>
|
<h3 class="card-title">{{ entry.title }}</h3>
|
||||||
</a>
|
</a>
|
||||||
<div class="card-info">
|
<div class="card-info">
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { ChangeDetectorRef, Component, Inject, OnInit } from '@angular/core';
|
import { Component, Inject, OnInit } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { FormBuilder } from '@angular/forms';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-confirm-modal',
|
selector: 'app-confirm-modal',
|
||||||
|
|||||||
@@ -5,14 +5,6 @@ import { format } from 'date-fns';
|
|||||||
name: 'dateFormat',
|
name: 'dateFormat',
|
||||||
})
|
})
|
||||||
export class DateFormatPipe implements PipeTransform {
|
export class DateFormatPipe implements PipeTransform {
|
||||||
// transform(value: string): string {
|
|
||||||
// if (!value) return '';
|
|
||||||
|
|
||||||
// const date = new Date(value);
|
|
||||||
// const formatter = new Intl.DateTimeFormat('en-US', { month: 'long', day: '2-digit', year: 'numeric' });
|
|
||||||
// return formatter.format(date);
|
|
||||||
// }
|
|
||||||
|
|
||||||
transform(
|
transform(
|
||||||
value: Date | string | number,
|
value: Date | string | number,
|
||||||
formatString: string = 'yyyy-MM-dd'
|
formatString: string = 'yyyy-MM-dd'
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
@@ -528,7 +528,7 @@ footer {
|
|||||||
|
|
||||||
.main-wrapper {
|
.main-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: calc(100vh - 70px);
|
height: calc(100vh - 50px);
|
||||||
/* overflow: hidden; */
|
/* overflow: hidden; */
|
||||||
|
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
|
|||||||
@@ -475,10 +475,10 @@ $dropdownAnimation: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1
|
|||||||
$border-color_1: initial;
|
$border-color_1: initial;
|
||||||
|
|
||||||
.sidebar-nav {
|
.sidebar-nav {
|
||||||
margin-top: 70px;
|
margin-top: 50px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
height: calc(100% - 140px);
|
height: calc(100% - 70px);
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
@@ -647,7 +647,7 @@ $dropdownAnimation: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s normal forwards 1
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1199px) {
|
@media screen and (min-width: 199px) {
|
||||||
body.toggled {
|
body.toggled {
|
||||||
.sidebar-wrapper {
|
.sidebar-wrapper {
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
Reference in new issue
Block a user