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:
@@ -0,0 +1,73 @@
|
||||
<ng-container *transloco="let t; prefix: 'readerEbook.selectionPopup'">
|
||||
@if (visible) {
|
||||
<div class="popup-backdrop" (click)="onDismiss($event)"></div>
|
||||
<div class="text-selection-popup"
|
||||
[class.show-below]="showBelow"
|
||||
[style.left.px]="position.x"
|
||||
[style.top.px]="position.y">
|
||||
|
||||
<button class="action-btn" (click)="onSelect()" [title]="t('copyText')">
|
||||
<app-reader-icon name="copy" [size]="16"></app-reader-icon>
|
||||
</button>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<button class="action-btn" (click)="onSearch()" [title]="t('searchInBook')">
|
||||
<app-reader-icon name="search" [size]="16"></app-reader-icon>
|
||||
</button>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="annotation-container">
|
||||
<button class="action-btn" [class.active]="showAnnotationOptions" (click)="toggleAnnotationOptions()" [title]="t('annotate')">
|
||||
<app-reader-icon name="edit" [size]="16"></app-reader-icon>
|
||||
<app-reader-icon name="chevron-down" class="chevron" [class.open]="showAnnotationOptions" [size]="10"></app-reader-icon>
|
||||
</button>
|
||||
|
||||
@if (showAnnotationOptions) {
|
||||
<div class="annotation-options" [class.above]="!showBelow" [class.below]="showBelow">
|
||||
<div class="style-buttons">
|
||||
@for (style of styles; track style.value) {
|
||||
<button
|
||||
class="style-btn"
|
||||
[class.selected]="selectedStyle === style.value"
|
||||
[class.highlight-style]="style.value === 'highlight'"
|
||||
[class.underline-style]="style.value === 'underline'"
|
||||
[class.squiggly-style]="style.value === 'squiggly'"
|
||||
[class.strikethrough-style]="style.value === 'strikethrough'"
|
||||
[title]="style.label"
|
||||
(click)="selectStyle(style.value)">
|
||||
<span class="style-text">{{ style.icon }}</span>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
<div class="color-buttons">
|
||||
@for (color of colors; track color.value) {
|
||||
<button
|
||||
class="color-btn"
|
||||
[style.--color]="color.value"
|
||||
[class.selected]="selectedColor === color.value"
|
||||
[title]="color.label"
|
||||
(click)="selectColor(color.value)">
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<button class="action-btn" (click)="onNote()" [title]="t('addNote')">
|
||||
<app-reader-icon name="note" [size]="16"></app-reader-icon>
|
||||
</button>
|
||||
|
||||
@if (overlappingAnnotationId) {
|
||||
<div class="divider"></div>
|
||||
<button class="action-btn delete-btn" (click)="onDelete()" [title]="t('deleteAnnotation')">
|
||||
<app-reader-icon name="trash" [size]="16"></app-reader-icon>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</ng-container>
|
||||
Reference in New Issue
Block a user