diff --git a/backend/models/Entry.js b/backend/models/Entry.js index 55ed19f..feaec93 100644 --- a/backend/models/Entry.js +++ b/backend/models/Entry.js @@ -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) }, diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 97fe649..7257849 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -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 diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 09afadd..8b40ec0 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -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], diff --git a/frontend/src/app/core/components/sidebar/sidebar.component.html b/frontend/src/app/core/components/sidebar/sidebar.component.html index a1104db..5fa1a2a 100644 --- a/frontend/src/app/core/components/sidebar/sidebar.component.html +++ b/frontend/src/app/core/components/sidebar/sidebar.component.html @@ -74,7 +74,7 @@ -
  • +
  • format_list_bulleted diff --git a/frontend/src/app/features/entry/entry-page/entry-page.component.css b/frontend/src/app/features/entry/entry-page/entry-page.component.css index 31eb069..c5b6499 100644 --- a/frontend/src/app/features/entry/entry-page/entry-page.component.css +++ b/frontend/src/app/features/entry/entry-page/entry-page.component.css @@ -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); } diff --git a/frontend/src/app/features/library/library.component.ts b/frontend/src/app/features/library/library.component.ts index 8c60a81..f048b0d 100644 --- a/frontend/src/app/features/library/library.component.ts +++ b/frontend/src/app/features/library/library.component.ts @@ -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 diff --git a/frontend/src/app/shared/components/cards/main-card/main-card.component.ts b/frontend/src/app/shared/components/cards/main-card/main-card.component.ts index 2cd40be..3d27009 100644 --- a/frontend/src/app/shared/components/cards/main-card/main-card.component.ts +++ b/frontend/src/app/shared/components/cards/main-card/main-card.component.ts @@ -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() {