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,248 @@
import {MetadataRefreshOptions} from '../../features/metadata/model/request/metadata-refresh-options.model';
export interface MetadataMatchWeights {
title: number;
subtitle: number;
description: number;
authors: number;
publisher: number;
publishedDate: number;
seriesName: number;
seriesNumber: number;
seriesTotal: number;
isbn13: number;
isbn10: number;
language: number;
pageCount: number;
categories: number;
amazonRating: number;
amazonReviewCount: number;
goodreadsRating: number;
goodreadsReviewCount: number;
hardcoverRating: number;
hardcoverReviewCount: number;
doubanRating: number;
doubanReviewCount: number;
lubimyczytacRating: number;
ranobedbRating: number;
audibleRating: number;
audibleReviewCount: number;
coverImage: number;
}
export interface OidcProviderDetails {
providerName: string;
clientId: string;
clientSecret?: string;
issuerUri: string;
scopes?: string;
claimMapping: {
username: string;
email: string;
name: string;
groups: string;
};
}
export interface OidcAutoProvisionDetails {
enableAutoProvisioning: boolean;
allowLocalAccountLinking: boolean;
defaultPermissions: string[];
defaultLibraryIds: number[];
}
export interface MetadataProviderSettings {
amazon: Amazon;
google: Google;
goodReads: Goodreads;
ranobedb: Ranobedb;
hardcover: Hardcover;
comicvine: Comicvine;
douban: Douban;
lubimyczytac: Lubimyczytac;
audible: Audible;
}
export interface Amazon {
enabled: boolean;
cookie: string;
domain: string;
}
export interface Google {
enabled: boolean;
language: string;
apiKey: string;
}
export interface Goodreads {
enabled: boolean;
}
export interface Ranobedb {
enabled: boolean;
}
export interface Hardcover {
enabled: boolean;
apiKey: string;
}
export interface Comicvine {
enabled: boolean;
apiKey: string;
}
export interface Douban {
enabled: boolean;
}
export interface Lubimyczytac {
enabled: boolean;
}
export interface Audible {
enabled: boolean;
domain: string;
}
export interface FormatWriteSettings {
enabled: boolean;
maxFileSizeInMb: number;
}
export interface SaveToOriginalFileSettings {
epub: FormatWriteSettings;
pdf: FormatWriteSettings;
cbx: FormatWriteSettings;
audiobook: FormatWriteSettings;
}
export interface SidecarSettings {
enabled: boolean;
writeOnUpdate: boolean;
writeOnScan: boolean;
includeCoverFile: boolean;
}
export interface MetadataPersistenceSettings {
moveFilesToLibraryPattern: boolean;
saveToOriginalFile: SaveToOriginalFileSettings;
convertCbrCb7ToCbz: boolean;
sidecarSettings?: SidecarSettings;
}
export interface ReviewProviderConfig {
provider: string;
enabled: boolean;
maxReviews: number;
}
export interface PublicReviewSettings {
downloadEnabled: boolean;
autoDownloadEnabled: boolean;
providers: ReviewProviderConfig[];
}
export interface KoboSettings {
convertToKepub: boolean;
conversionLimitInMb: number;
conversionImageCompressionPercentage: number;
convertCbxToEpub: boolean;
conversionLimitInMbForCbx: number;
forceEnableHyphenation: boolean;
}
export interface CoverCroppingSettings {
verticalCroppingEnabled: boolean;
horizontalCroppingEnabled: boolean;
aspectRatioThreshold: number;
smartCroppingEnabled: boolean;
}
export interface OidcTestCheck {
name: string;
status: 'PASS' | 'FAIL' | 'WARN' | 'SKIP';
message: string;
}
export interface OidcTestResult {
success: boolean;
checks: OidcTestCheck[];
}
export interface AppSettings {
autoBookSearch: boolean;
similarBookRecommendation: boolean;
defaultMetadataRefreshOptions: MetadataRefreshOptions;
libraryMetadataRefreshOptions: MetadataRefreshOptions[];
uploadPattern: string;
opdsServerEnabled: boolean;
komgaApiEnabled: boolean;
komgaGroupUnknown: boolean;
remoteAuthEnabled: boolean;
oidcEnabled: boolean;
oidcProviderDetails: OidcProviderDetails;
oidcAutoProvisionDetails: OidcAutoProvisionDetails;
maxFileUploadSizeInMb: number;
metadataProviderSettings: MetadataProviderSettings;
metadataMatchWeights: MetadataMatchWeights;
metadataPersistenceSettings: MetadataPersistenceSettings;
metadataPublicReviewsSettings: PublicReviewSettings;
koboSettings: KoboSettings;
coverCroppingSettings: CoverCroppingSettings;
metadataDownloadOnBookdrop: boolean;
metadataProviderSpecificFields: MetadataProviderSpecificFields;
oidcSessionDurationHours: number | null;
oidcGroupSyncMode: string | null;
oidcForceOnlyMode: boolean;
diskType: string;
}
export interface MetadataProviderSpecificFields {
asin: boolean;
amazonRating: boolean;
amazonReviewCount: boolean;
googleId: boolean;
goodreadsId: boolean;
goodreadsRating: boolean;
goodreadsReviewCount: boolean;
hardcoverId: boolean;
hardcoverBookId: boolean;
hardcoverRating: boolean;
hardcoverReviewCount: boolean;
comicvineId: boolean;
lubimyczytacId: boolean;
lubimyczytacRating: boolean;
ranobedbId: boolean;
ranobedbRating: boolean;
audibleId: boolean;
audibleRating: boolean;
audibleReviewCount: boolean;
}
export enum AppSettingKey {
QUICK_BOOK_MATCH = 'QUICK_BOOK_MATCH',
AUTO_BOOK_SEARCH = 'AUTO_BOOK_SEARCH',
SIMILAR_BOOK_RECOMMENDATION = 'SIMILAR_BOOK_RECOMMENDATION',
LIBRARY_METADATA_REFRESH_OPTIONS = 'LIBRARY_METADATA_REFRESH_OPTIONS',
UPLOAD_FILE_PATTERN = 'UPLOAD_FILE_PATTERN',
OPDS_SERVER_ENABLED = 'OPDS_SERVER_ENABLED',
KOMGA_API_ENABLED = 'KOMGA_API_ENABLED',
KOMGA_GROUP_UNKNOWN = 'KOMGA_GROUP_UNKNOWN',
OIDC_ENABLED = 'OIDC_ENABLED',
OIDC_PROVIDER_DETAILS = 'OIDC_PROVIDER_DETAILS',
OIDC_AUTO_PROVISION_DETAILS = 'OIDC_AUTO_PROVISION_DETAILS',
MAX_FILE_UPLOAD_SIZE_IN_MB = 'MAX_FILE_UPLOAD_SIZE_IN_MB',
METADATA_PROVIDER_SETTINGS = 'METADATA_PROVIDER_SETTINGS',
METADATA_MATCH_WEIGHTS = 'METADATA_MATCH_WEIGHTS',
METADATA_PERSISTENCE_SETTINGS = 'METADATA_PERSISTENCE_SETTINGS',
METADATA_DOWNLOAD_ON_BOOKDROP = 'METADATA_DOWNLOAD_ON_BOOKDROP',
METADATA_PUBLIC_REVIEWS_SETTINGS = 'METADATA_PUBLIC_REVIEWS_SETTINGS',
KOBO_SETTINGS = 'KOBO_SETTINGS',
COVER_CROPPING_SETTINGS = 'COVER_CROPPING_SETTINGS',
METADATA_PROVIDER_SPECIFIC_FIELDS = 'METADATA_PROVIDER_SPECIFIC_FIELDS',
OIDC_SESSION_DURATION_HOURS = 'OIDC_SESSION_DURATION_HOURS',
OIDC_GROUP_SYNC_MODE = 'OIDC_GROUP_SYNC_MODE',
OIDC_FORCE_ONLY_MODE = 'OIDC_FORCE_ONLY_MODE',
}
@@ -0,0 +1,5 @@
export interface AppState {
preset?: string;
primary?: string;
surface?: string;
}
@@ -0,0 +1,23 @@
export interface CustomFont {
id: number;
fontName: string;
originalFileName: string;
format: FontFormat;
fileSize: number;
uploadedAt: string;
}
export enum FontFormat {
TTF = 'TTF',
OTF = 'OTF',
WOFF = 'WOFF',
WOFF2 = 'WOFF2'
}
export function formatFileSize(bytes: number): string {
if (bytes === 0) return '0 Bytes';
const k = 1024;
const sizes = ['Bytes', 'KB', 'MB'];
const i = Math.floor(Math.log(bytes) / Math.log(k));
return Math.round(bytes / Math.pow(k, i) * 100) / 100 + ' ' + sizes[i];
}
@@ -0,0 +1,22 @@
export enum MetadataBatchStatus {
IN_PROGRESS = 'IN_PROGRESS',
COMPLETED = 'COMPLETED',
ERROR = 'ERROR',
CANCELLED = 'CANCELLED',
}
export const MetadataBatchStatusLabels: Record<MetadataBatchStatus, string> = {
[MetadataBatchStatus.IN_PROGRESS]: 'In Progress',
[MetadataBatchStatus.COMPLETED]: 'Completed',
[MetadataBatchStatus.ERROR]: 'Error',
[MetadataBatchStatus.CANCELLED]: 'Cancelled',
};
export interface MetadataBatchProgressNotification {
taskId: string;
completed: number;
total: number;
message: string;
status: MetadataBatchStatus;
review: boolean;
}
@@ -0,0 +1,8 @@
export interface OidcGroupMapping {
id?: number;
oidcGroupClaim: string;
isAdmin: boolean;
permissions: string[];
libraryIds: number[];
description: string;
}