minor changes + changed some routes

This commit is contained in:
X4Lo committed 2024-04-30 22:23:43 +01:00
1 parent cea1b207a3
commit 537763ff7d
7 files changed
+15 -14

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ const Entry = sequelize.define("entry",
release_date: { type: DataTypes.DATE }, release_date: { type: DataTypes.DATE },
runtime: { type: DataTypes.INTEGER }, runtime: { type: DataTypes.INTEGER },
tagline: { type: DataTypes.STRING(100) }, tagline: { type: DataTypes.STRING(200) },
storyline: { type: DataTypes.STRING(1000) }, storyline: { type: DataTypes.STRING(1000) },
country: { type: DataTypes.STRING(30) }, country: { type: DataTypes.STRING(30) },
+2 -2
View File
@@ -20,12 +20,12 @@ const routes: Routes = [
{ path: 'watchlist', component: WatchlistComponent }, { path: 'watchlist', component: WatchlistComponent },
// { path: 'entry', component: LibraryComponent }, // { path: 'entry', component: LibraryComponent },
{ {
path: 'entry', path: 'entries',
loadChildren: () => loadChildren: () =>
import('./features/entry/entries.module').then((m) => m.EntriesModule), import('./features/entry/entries.module').then((m) => m.EntriesModule),
}, },
{ {
path: 'user-collections', path: 'collections',
loadChildren: () => loadChildren: () =>
import('./features/collections/user-collections.module').then( import('./features/collections/user-collections.module').then(
(m) => m.UserCollectionsModule (m) => m.UserCollectionsModule
-2
View File
@@ -8,7 +8,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { DragDropModule } from '@angular/cdk/drag-drop'; import { DragDropModule } from '@angular/cdk/drag-drop';
import { CoreModule } from './core/core.module'; import { CoreModule } from './core/core.module';
import { CommonModule, DatePipe } from '@angular/common'; import { CommonModule, DatePipe } from '@angular/common';
@@ -56,7 +55,6 @@ import { WatchlistComponent } from './features/watchlist/watchlist.component';
ReactiveFormsModule, ReactiveFormsModule,
FormsModule, FormsModule,
DragDropModule, DragDropModule,
], ],
providers: [DatePipe], providers: [DatePipe],
@@ -74,7 +74,7 @@
<div class="menu-title">Watchlist</div> <div class="menu-title">Watchlist</div>
</a> </a>
</li> </li>
<li routerLink="/user-collections" routerLinkActive="mm-active"> <li routerLink="/collections" routerLinkActive="mm-active">
<a> <a>
<div class="parent-icon"><span class="material-symbols-outlined"> <div class="parent-icon"><span class="material-symbols-outlined">
format_list_bulleted format_list_bulleted
@@ -112,6 +112,10 @@
color: black; color: black;
} }
[data-bs-theme=dark] .right-col .entry-actions span {
color: white;
}
.right-col .entry-actions span:hover { .right-col .entry-actions span:hover {
color: var(--shz-blue-default); color: var(--shz-blue-default);
} }
@@ -24,13 +24,12 @@ export class LibraryComponent {
ngOnInit() { ngOnInit() {
this.pageSize = this.getDefaultPageSize(); this.pageSize = this.getDefaultPageSize();
this.getEntries(true); this.getEntries(true);
// this.router.events.subscribe((event) => {
this.router.events.subscribe((event) => { // if (event instanceof NavigationEnd && event.url === '/library') {
if (event instanceof NavigationEnd && event.url === '/library') { // this.pageSize = this.getDefaultPageSize();
this.pageSize = this.getDefaultPageSize(); // this.getEntries(true);
this.getEntries(true); // }
} // });
});
} }
// ? uses libraryService to get library all entries // ? uses libraryService to get library all entries
@@ -116,7 +116,7 @@ export class MainCardComponent implements OnInit {
cardClick() { cardClick() {
if (this.entry.isInLibrary) if (this.entry.isInLibrary)
this.router.navigate([`/entry/${this.entry.id}`]); this.router.navigate([`/entries/${this.entry.id}`]);
} }
getTmdbLink() { getTmdbLink() {