refactor(frontend): rename booklore-ui to frontend

- Frontend path:
  - rename the tracked Angular app tree from `booklore-ui/` to `frontend/`
  - preserve file contents during the move so this commit stays focused on the path change itself
- Frontend docs:
  - update the moved frontend README and contribution guide where they refer to the renamed folder
  - keep those edits limited to path references introduced by the directory rename
This commit is contained in:
James Cox
2026-04-22 17:26:39 -04:00
committed by Zach Yale
parent c99aa87877
commit 874b013f75
1493 changed files with 3 additions and 3 deletions
@@ -0,0 +1,26 @@
<ng-container *transloco="let t; prefix: 'bookdrop.filesWidget'">
<div class="staging-border">
<div class="widget-row">
<div class="widget-info">
<p class="widget-title">{{ t('title') }}</p>
<p class="widget-count">{{ pendingCount }}</p>
@if (lastUpdatedAt) {
<p class="widget-date">
{{ t('lastUpdated') }} {{ lastUpdatedAt | date: 'short' }}
</p>
}
</div>
<div class="widget-actions">
<p-button
size="small"
outlined
severity="info"
(click)="openReviewDialog()">
{{ t('reviewBtn') }}
</p-button>
</div>
</div>
</div>
</ng-container>
@@ -0,0 +1,40 @@
.staging-border {
background: var(--card-background);
border: 1px solid var(--primary-color);
border-radius: 0.5rem;
padding: 1rem;
}
.widget-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.widget-info {
display: flex;
flex-direction: column;
justify-content: center;
}
.widget-title {
font-weight: 700;
color: #d4d4d8;
}
.widget-count {
font-size: 1.125rem;
font-weight: 700;
color: var(--primary-color);
}
.widget-date {
font-size: 0.75rem;
color: #a1a1aa;
margin-top: 0.25rem;
}
.widget-actions {
display: flex;
align-items: center;
}
@@ -0,0 +1,48 @@
import {Component, inject, OnDestroy, OnInit} from '@angular/core';
import {Subject} from 'rxjs';
import {takeUntil} from 'rxjs/operators';
import {BookdropFileNotification, BookdropFileService} from '../../service/bookdrop-file.service';
import {DatePipe} from '@angular/common';
import {Router} from '@angular/router';
import {Button} from 'primeng/button';
import {TranslocoDirective} from '@jsverse/transloco';
@Component({
selector: 'app-bookdrop-files-widget-component',
standalone: true,
templateUrl: './bookdrop-files-widget.component.html',
styleUrl: './bookdrop-files-widget.component.scss',
imports: [
DatePipe,
Button,
TranslocoDirective
]
})
export class BookdropFilesWidgetComponent implements OnInit, OnDestroy {
pendingCount = 0;
totalCount = 0;
lastUpdatedAt?: string;
private destroy$ = new Subject<void>();
private bookdropFileService = inject(BookdropFileService);
private router = inject(Router);
ngOnInit(): void {
this.bookdropFileService.summary$
.pipe(takeUntil(this.destroy$))
.subscribe((summary: BookdropFileNotification) => {
this.pendingCount = summary.pendingCount;
this.totalCount = summary.totalCount;
this.lastUpdatedAt = summary.lastUpdatedAt;
});
}
openReviewDialog(): void {
this.router.navigate(['/bookdrop'], {queryParams: {reload: Date.now()}});
}
ngOnDestroy(): void {
this.destroy$.next();
this.destroy$.complete();
}
}