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