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,56 @@
import {ChangeDetectionStrategy, Component, Input} from '@angular/core';
import {Tooltip} from 'primeng/tooltip';
export type DocType = 'kobo' | 'opds' | 'metadataManager' | 'koReader' | 'email'
| 'amazonCookie' | 'fetchConfig' | 'hardcover' | 'taskManagement' | 'fileNamePatterns'
| 'authentication';
@Component({
selector: 'app-external-doc-link',
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [Tooltip],
template: `
<i class="pi pi-external-link external-link-icon"
[pTooltip]="tooltip"
[tooltipPosition]="tooltipPosition"
[style.font-size]="size"
(click)="openLink()"
style="cursor: pointer;">
</i>
`,
styles: [`
.external-link-icon {
color: #0ea5e9 !important;
}
`]
})
export class ExternalDocLinkComponent {
private readonly BASE_URL = 'https://grimmory.org/docs';
private readonly DOC_URLS: Record<DocType, string> = {
kobo: `${this.BASE_URL}/integration/kobo`,
opds: `${this.BASE_URL}/integration/opds`,
metadataManager: `${this.BASE_URL}/metadata/metadata-manager`,
koReader: `${this.BASE_URL}/integration/koreader`,
email: `${this.BASE_URL}/email-setup`,
amazonCookie: `${this.BASE_URL}/metadata/amazon-cookie`,
hardcover: `${this.BASE_URL}/metadata/hardcover-token`,
fetchConfig: `${this.BASE_URL}/metadata/metadata-fetch-configuration`,
taskManagement: `${this.BASE_URL}/tools/task-manager`,
fileNamePatterns: `${this.BASE_URL}/metadata/file-naming-patterns`,
authentication: `${this.BASE_URL}/authentication/overview#setting-up-oidc`
};
@Input() docType!: DocType;
@Input() tooltip: string = 'View documentation';
@Input() tooltipPosition: 'top' | 'bottom' | 'left' | 'right' = 'right';
@Input() size: string = '1rem';
openLink(): void {
const url = this.DOC_URLS[this.docType];
if (url) {
window.open(url, '_blank');
}
}
}