From 906575df563b7c648462bc32d231d44c9e39cb7f Mon Sep 17 00:00:00 2001 From: "aditya.chandel" <> Date: Sun, 29 Dec 2024 23:44:50 -0700 Subject: [PATCH] File renamings --- booklore-ui/src/app/app-routing.module.ts | 6 +++--- booklore-ui/src/app/app.module.ts | 4 ++-- .../book-browser.component.html} | 0 .../book-browser.component.scss} | 0 .../book-browser.component.ts} | 2 +- .../book-metadata-dialog.component.html} | 0 .../book-metadata-dialog.component.scss} | 0 .../book-metadata-dialog.component.ts} | 2 +- .../book/component/book-metadata/book-metadata.component.ts | 4 ++-- .../component}/configurator/configurator.component.html | 0 .../component}/configurator/configurator.component.scss | 0 .../component}/configurator/configurator.component.ts | 2 +- .../src/app/book/component/layout/app.topbar.component.ts | 2 +- 13 files changed, 11 insertions(+), 11 deletions(-) rename booklore-ui/src/app/book/component/{books-browser/books-browser.component.html => book-browser/book-browser.component.html} (100%) rename booklore-ui/src/app/book/component/{books-browser/books-browser.component.scss => book-browser/book-browser.component.scss} (100%) rename booklore-ui/src/app/book/component/{books-browser/books-browser.component.ts => book-browser/book-browser.component.ts} (99%) rename booklore-ui/src/app/book/component/{books-metadata-dialog/books-metadata-dialog.component.html => book-metadata-dialog/book-metadata-dialog.component.html} (100%) rename booklore-ui/src/app/book/component/{books-metadata-dialog/books-metadata-dialog.component.scss => book-metadata-dialog/book-metadata-dialog.component.scss} (100%) rename booklore-ui/src/app/book/component/{books-metadata-dialog/books-metadata-dialog.component.ts => book-metadata-dialog/book-metadata-dialog.component.ts} (97%) rename booklore-ui/src/app/{ => book/component}/configurator/configurator.component.html (100%) rename booklore-ui/src/app/{ => book/component}/configurator/configurator.component.scss (100%) rename booklore-ui/src/app/{ => book/component}/configurator/configurator.component.ts (99%) diff --git a/booklore-ui/src/app/app-routing.module.ts b/booklore-ui/src/app/app-routing.module.ts index cb201c5f1..a40af3580 100644 --- a/booklore-ui/src/app/app-routing.module.ts +++ b/booklore-ui/src/app/app-routing.module.ts @@ -3,7 +3,7 @@ import {RouterModule, Routes} from '@angular/router'; import {PdfViewerComponent} from './book/component/pdf-viewer/pdf-viewer.component'; import {DashboardComponent} from './book/component/dashboard/dashboard.component'; import {BookMetadataComponent} from './book/component/book-metadata/book-metadata.component'; -import {BooksBrowserComponent} from './book/component/books-browser/books-browser.component'; +import {BookBrowserComponent} from './book/component/book-browser/book-browser.component'; import {AppLayoutComponent} from './book/component/layout/app.layout.component'; const routes: Routes = [ @@ -14,10 +14,10 @@ const routes: Routes = [ path: '', component: DashboardComponent, }, { - path: 'library/:libraryId/books', component: BooksBrowserComponent, + path: 'library/:libraryId/books', component: BookBrowserComponent, }, { - path: 'shelf/:shelfId/books', component: BooksBrowserComponent, + path: 'shelf/:shelfId/books', component: BookBrowserComponent, }, { path: 'library/:libraryId/book/:bookId/info', component: BookMetadataComponent, diff --git a/booklore-ui/src/app/app.module.ts b/booklore-ui/src/app/app.module.ts index 22b75827b..e2801ac87 100644 --- a/booklore-ui/src/app/app.module.ts +++ b/booklore-ui/src/app/app.module.ts @@ -30,7 +30,7 @@ import {ShelfAssignerComponent} from './book/component/shelf-assigner/shelf-assi import {CheckboxModule} from 'primeng/checkbox'; import {DividerModule} from 'primeng/divider'; import {DialogModule} from 'primeng/dialog'; -import {BooksBrowserComponent} from './book/component/books-browser/books-browser.component'; +import {BookBrowserComponent} from './book/component/book-browser/book-browser.component'; import {BookCardComponent} from './book/component/book-card/book-card.component'; import {SpeedDialModule} from 'primeng/speeddial'; import {RouteReuseStrategy} from '@angular/router'; @@ -48,7 +48,7 @@ import Aura from '@primeng/themes/aura'; DirectoryPickerComponent, LibraryCreatorComponent, ShelfAssignerComponent, - BooksBrowserComponent + BookBrowserComponent ], imports: [ BrowserModule, diff --git a/booklore-ui/src/app/book/component/books-browser/books-browser.component.html b/booklore-ui/src/app/book/component/book-browser/book-browser.component.html similarity index 100% rename from booklore-ui/src/app/book/component/books-browser/books-browser.component.html rename to booklore-ui/src/app/book/component/book-browser/book-browser.component.html diff --git a/booklore-ui/src/app/book/component/books-browser/books-browser.component.scss b/booklore-ui/src/app/book/component/book-browser/book-browser.component.scss similarity index 100% rename from booklore-ui/src/app/book/component/books-browser/books-browser.component.scss rename to booklore-ui/src/app/book/component/book-browser/book-browser.component.scss diff --git a/booklore-ui/src/app/book/component/books-browser/books-browser.component.ts b/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts similarity index 99% rename from booklore-ui/src/app/book/component/books-browser/books-browser.component.ts rename to booklore-ui/src/app/book/component/book-browser/book-browser.component.ts index 007c65305..f6cddd7db 100644 --- a/booklore-ui/src/app/book/component/books-browser/books-browser.component.ts +++ b/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts @@ -22,7 +22,7 @@ import {Book} from '../../model/book.model'; templateUrl: './books-browser.component.html', styleUrls: ['./books-browser.component.scss'] }) -export class BooksBrowserComponent implements OnInit { +export class BookBrowserComponent implements OnInit { bookState$: Observable | undefined; entity$: Observable | undefined; entityType$: Observable | undefined; diff --git a/booklore-ui/src/app/book/component/books-metadata-dialog/books-metadata-dialog.component.html b/booklore-ui/src/app/book/component/book-metadata-dialog/book-metadata-dialog.component.html similarity index 100% rename from booklore-ui/src/app/book/component/books-metadata-dialog/books-metadata-dialog.component.html rename to booklore-ui/src/app/book/component/book-metadata-dialog/book-metadata-dialog.component.html diff --git a/booklore-ui/src/app/book/component/books-metadata-dialog/books-metadata-dialog.component.scss b/booklore-ui/src/app/book/component/book-metadata-dialog/book-metadata-dialog.component.scss similarity index 100% rename from booklore-ui/src/app/book/component/books-metadata-dialog/books-metadata-dialog.component.scss rename to booklore-ui/src/app/book/component/book-metadata-dialog/book-metadata-dialog.component.scss diff --git a/booklore-ui/src/app/book/component/books-metadata-dialog/books-metadata-dialog.component.ts b/booklore-ui/src/app/book/component/book-metadata-dialog/book-metadata-dialog.component.ts similarity index 97% rename from booklore-ui/src/app/book/component/books-metadata-dialog/books-metadata-dialog.component.ts rename to booklore-ui/src/app/book/component/book-metadata-dialog/book-metadata-dialog.component.ts index d6c250b12..bb9341b2d 100644 --- a/booklore-ui/src/app/book/component/books-metadata-dialog/books-metadata-dialog.component.ts +++ b/booklore-ui/src/app/book/component/book-metadata-dialog/book-metadata-dialog.component.ts @@ -18,7 +18,7 @@ import {BookService} from '../../service/book.service'; ], styleUrls: ['./books-metadata-dialog.component.scss'] }) -export class BooksMetadataDialogComponent implements OnInit { +export class BookMetadataDialogComponent implements OnInit { bookMetadataList: BookMetadata[] = []; isLoading = true; errorMessage: string | null = null; diff --git a/booklore-ui/src/app/book/component/book-metadata/book-metadata.component.ts b/booklore-ui/src/app/book/component/book-metadata/book-metadata.component.ts index 29093aace..12954929e 100644 --- a/booklore-ui/src/app/book/component/book-metadata/book-metadata.component.ts +++ b/booklore-ui/src/app/book/component/book-metadata/book-metadata.component.ts @@ -3,7 +3,7 @@ import {ActivatedRoute, Router} from '@angular/router'; import {Book} from '../../model/book.model'; import {Button} from 'primeng/button'; import {NgForOf, NgIf} from '@angular/common'; -import {BooksMetadataDialogComponent} from '../books-metadata-dialog/books-metadata-dialog.component'; +import {BookMetadataDialogComponent} from '../book-metadata-dialog/book-metadata-dialog.component'; import {DialogService, DynamicDialogRef} from 'primeng/dynamicdialog'; import {Subscription} from 'rxjs'; import {TagModule} from 'primeng/tag'; @@ -76,7 +76,7 @@ export class BookMetadataComponent implements OnInit, OnDestroy { } openEditDialog(bookId: number | undefined, libraryId: number | undefined) { - this.dialogRef = this.dialogService.open(BooksMetadataDialogComponent, { + this.dialogRef = this.dialogService.open(BookMetadataDialogComponent, { header: 'Metadata: Google Books', modal: true, width: '65%', diff --git a/booklore-ui/src/app/configurator/configurator.component.html b/booklore-ui/src/app/book/component/configurator/configurator.component.html similarity index 100% rename from booklore-ui/src/app/configurator/configurator.component.html rename to booklore-ui/src/app/book/component/configurator/configurator.component.html diff --git a/booklore-ui/src/app/configurator/configurator.component.scss b/booklore-ui/src/app/book/component/configurator/configurator.component.scss similarity index 100% rename from booklore-ui/src/app/configurator/configurator.component.scss rename to booklore-ui/src/app/book/component/configurator/configurator.component.scss diff --git a/booklore-ui/src/app/configurator/configurator.component.ts b/booklore-ui/src/app/book/component/configurator/configurator.component.ts similarity index 99% rename from booklore-ui/src/app/configurator/configurator.component.ts rename to booklore-ui/src/app/book/component/configurator/configurator.component.ts index dd8153c54..2dced1b67 100644 --- a/booklore-ui/src/app/configurator/configurator.component.ts +++ b/booklore-ui/src/app/book/component/configurator/configurator.component.ts @@ -12,7 +12,7 @@ import {InputSwitchModule} from 'primeng/inputswitch'; import {RadioButtonModule} from 'primeng/radiobutton'; import {SelectButton} from 'primeng/selectbutton'; import {ToggleSwitchModule} from 'primeng/toggleswitch'; -import {AppConfigService} from '../book/service/app-config.service'; +import {AppConfigService} from '../../service/app-config.service'; interface ColorPalette { [key: string]: string; diff --git a/booklore-ui/src/app/book/component/layout/app.topbar.component.ts b/booklore-ui/src/app/book/component/layout/app.topbar.component.ts index f1c2e1cb9..2c5459cc9 100644 --- a/booklore-ui/src/app/book/component/layout/app.topbar.component.ts +++ b/booklore-ui/src/app/book/component/layout/app.topbar.component.ts @@ -13,7 +13,7 @@ import {NgIf} from '@angular/common'; import {EventService} from '../../service/event.service'; import {LogNotification} from '../../model/log-notification.model'; import {Button} from 'primeng/button'; -import {AppConfiguratorComponent} from '../../../configurator/configurator.component'; +import {AppConfiguratorComponent} from '../configurator/configurator.component'; import {StyleClass} from 'primeng/styleclass'; @Component({