refactor(ui): create shared grid layout for author/series/book browser (#1193)
This commit is contained in:
+22
-15
@@ -48,19 +48,28 @@
|
|||||||
}
|
}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@if (!isMobile()) {
|
<button
|
||||||
<button class="display-settings-btn" (click)="displaySettingsPopover.toggle($event)">
|
type="button"
|
||||||
<i class="pi pi-sliders-h"></i>
|
class="display-settings-btn"
|
||||||
</button>
|
[attr.aria-label]="'common.displaySettings' | transloco"
|
||||||
<p-popover #displaySettingsPopover>
|
[title]="'common.displaySettings' | transloco"
|
||||||
<div class="display-settings-content">
|
(click)="displaySettingsPopover.toggle($event)">
|
||||||
<span class="display-settings-label">{{ t('cardSize') }}</span>
|
<i class="pi pi-sliders-h"></i>
|
||||||
<app-grid-density-buttons (densityChange)="adjustDesktopGridDensity($event)"/>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</p-popover>
|
</div>
|
||||||
}
|
|
||||||
|
|
||||||
<p-popover #filterPopover>
|
<p-popover #displaySettingsPopover>
|
||||||
|
<div class="display-settings-content">
|
||||||
|
<span class="display-settings-label">{{ 'common.cardSize' | transloco }}</span>
|
||||||
|
<app-grid-density-buttons
|
||||||
|
[smallerDisabled]="gridDensitySmallerDisabled()"
|
||||||
|
[largerDisabled]="gridDensityLargerDisabled()"
|
||||||
|
(densityChange)="adjustGridDensity($event)"/>
|
||||||
|
</div>
|
||||||
|
</p-popover>
|
||||||
|
|
||||||
|
<p-popover #filterPopover>
|
||||||
<div class="filter-popover-content">
|
<div class="filter-popover-content">
|
||||||
<div class="filter-group">
|
<div class="filter-group">
|
||||||
<span class="filter-label">{{ t('filters.matchStatus') }}</span>
|
<span class="filter-label">{{ t('filters.matchStatus') }}</span>
|
||||||
@@ -172,9 +181,7 @@
|
|||||||
</p-button>
|
</p-button>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</p-popover>
|
</p-popover>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (filteredAuthors(); as authorList) {
|
@if (filteredAuthors(); as authorList) {
|
||||||
|
|||||||
+18
-9
@@ -1,5 +1,7 @@
|
|||||||
|
@use "../../../../../assets/layout/styles/layout/variables";
|
||||||
|
|
||||||
.author-browser-page {
|
.author-browser-page {
|
||||||
--browser-gutter-inline: 2.1rem;
|
--browser-gutter-inline: var(--page-gutter-inline);
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -150,7 +152,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
@media (width <= 768px) {
|
@media #{variables.$mobile-shell-media-query} {
|
||||||
padding-block: 0.5rem;
|
padding-block: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -201,7 +203,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (width <= 768px) {
|
@media #{variables.$mobile-shell-media-query} {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
@@ -245,16 +247,16 @@
|
|||||||
|
|
||||||
.action-buttons-group {
|
.action-buttons-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.5rem;
|
gap: 1.5rem;
|
||||||
|
|
||||||
@media (width >= 768px) {
|
@media #{variables.$mobile-shell-media-query} {
|
||||||
gap: 1.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (width <= 767px) {
|
@media #{variables.$mobile-shell-media-query} {
|
||||||
.author-browser-page {
|
.author-browser-page {
|
||||||
--browser-gutter-inline: 0.5rem;
|
--browser-gutter-inline: var(--space-4);
|
||||||
|
|
||||||
padding: 1.5rem 0 0;
|
padding: 1.5rem 0 0;
|
||||||
}
|
}
|
||||||
@@ -272,11 +274,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.filter-sort-wrapper {
|
.filter-sort-wrapper {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) repeat(3, 36px);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-dropdown {
|
.sort-dropdown {
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sort-direction-btn,
|
||||||
|
.filter-btn,
|
||||||
|
.display-settings-btn {
|
||||||
|
width: 36px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+50
-36
@@ -7,7 +7,7 @@ import {Popover} from 'primeng/popover';
|
|||||||
import {Button} from 'primeng/button';
|
import {Button} from 'primeng/button';
|
||||||
import {Divider} from 'primeng/divider';
|
import {Divider} from 'primeng/divider';
|
||||||
import {Tooltip} from 'primeng/tooltip';
|
import {Tooltip} from 'primeng/tooltip';
|
||||||
import {TranslocoDirective, TranslocoService} from '@jsverse/transloco';
|
import {TranslocoDirective, TranslocoPipe, TranslocoService} from '@jsverse/transloco';
|
||||||
import {RouteScrollPositionService} from '../../../../shared/service/route-scroll-position.service';
|
import {RouteScrollPositionService} from '../../../../shared/service/route-scroll-position.service';
|
||||||
import {MessageService} from 'primeng/api';
|
import {MessageService} from 'primeng/api';
|
||||||
import {AuthorService} from '../../service/author.service';
|
import {AuthorService} from '../../service/author.service';
|
||||||
@@ -19,10 +19,12 @@ import {ActivatedRoute, Router} from '@angular/router';
|
|||||||
import {UserService} from '../../../settings/user-management/user.service';
|
import {UserService} from '../../../settings/user-management/user.service';
|
||||||
import {BookService} from '../../../book/service/book.service';
|
import {BookService} from '../../../book/service/book.service';
|
||||||
import {Book, ReadStatus} from '../../../book/model/book.model';
|
import {Book, ReadStatus} from '../../../book/model/book.model';
|
||||||
import {createVirtualGrid, scaleForGridColumns} from '../../../../shared/util/virtual-grid.util';
|
import {createVirtualGrid} from '../../../../shared/util/virtual-grid.util';
|
||||||
import {GridDensityButtonsComponent} from '../../../../shared/components/grid-density-buttons/grid-density-buttons.component';
|
import {GridDensityButtonsComponent, type GridDensityDirection} from '../../../../shared/components/grid-density-buttons/grid-density-buttons.component';
|
||||||
import {LocalStorageService} from '../../../../shared/service/local-storage.service';
|
import {LocalStorageService} from '../../../../shared/service/local-storage.service';
|
||||||
import {ScalePreference} from '../../../../shared/util/scale-preference.util';
|
import {ScalePreference} from '../../../../shared/util/scale-preference.util';
|
||||||
|
import {LayoutService} from '../../../../shared/layout/layout.service';
|
||||||
|
import {createGridDensity} from '../../../../shared/util/grid-density.util';
|
||||||
|
|
||||||
type SortDirection = 'asc' | 'desc';
|
type SortDirection = 'asc' | 'desc';
|
||||||
|
|
||||||
@@ -63,6 +65,7 @@ const DEFAULT_SORT_DIRECTIONS: Record<string, SortDirection> = {
|
|||||||
Divider,
|
Divider,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
TranslocoDirective,
|
TranslocoDirective,
|
||||||
|
TranslocoPipe,
|
||||||
GridDensityButtonsComponent,
|
GridDensityButtonsComponent,
|
||||||
AuthorCardComponent,
|
AuthorCardComponent,
|
||||||
]
|
]
|
||||||
@@ -73,7 +76,11 @@ export class AuthorBrowserComponent implements OnInit {
|
|||||||
private static readonly BASE_HEIGHT = 290;
|
private static readonly BASE_HEIGHT = 290;
|
||||||
private static readonly MOBILE_BASE_WIDTH = 140;
|
private static readonly MOBILE_BASE_WIDTH = 140;
|
||||||
private static readonly MOBILE_BASE_HEIGHT = 250;
|
private static readonly MOBILE_BASE_HEIGHT = 250;
|
||||||
|
private static readonly DEFAULT_MOBILE_GRID_COLUMNS = 3;
|
||||||
|
private static readonly MIN_MOBILE_GRID_COLUMNS = 2;
|
||||||
|
private static readonly MAX_MOBILE_GRID_COLUMNS = 4;
|
||||||
private static readonly SCALE_STORAGE_KEY = 'authorScalePreference';
|
private static readonly SCALE_STORAGE_KEY = 'authorScalePreference';
|
||||||
|
private static readonly MOBILE_COLUMNS_STORAGE_KEY = 'authorMobileColumnsPreference';
|
||||||
private static readonly MIN_SCALE = 0.7;
|
private static readonly MIN_SCALE = 0.7;
|
||||||
private static readonly MAX_SCALE = 1.3;
|
private static readonly MAX_SCALE = 1.3;
|
||||||
|
|
||||||
@@ -87,9 +94,23 @@ export class AuthorBrowserComponent implements OnInit {
|
|||||||
private activatedRoute = inject(ActivatedRoute);
|
private activatedRoute = inject(ActivatedRoute);
|
||||||
private destroyRef = inject(DestroyRef);
|
private destroyRef = inject(DestroyRef);
|
||||||
private localStorageService = inject(LocalStorageService);
|
private localStorageService = inject(LocalStorageService);
|
||||||
|
private layoutService = inject(LayoutService);
|
||||||
protected userService = inject(UserService);
|
protected userService = inject(UserService);
|
||||||
protected selectionService = inject(AuthorSelectionService);
|
protected selectionService = inject(AuthorSelectionService);
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
effect(() => {
|
||||||
|
const authors = this.authorService.allAuthors();
|
||||||
|
if (authors !== null) {
|
||||||
|
this.allAuthorsState.set(authors);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
effect(() => {
|
||||||
|
this.selectionService.setCurrentAuthors(this.filteredAuthors());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private static readonly GRID_GAP = 20;
|
private static readonly GRID_GAP = 20;
|
||||||
private readonly scrollElement = viewChild<ElementRef<HTMLElement>>('scrollElement');
|
private readonly scrollElement = viewChild<ElementRef<HTMLElement>>('scrollElement');
|
||||||
private readonly initialScrollOffset = () => this.scrollService.getPosition(this.scrollService.keyFor(this.activatedRoute)) ?? 0;
|
private readonly initialScrollOffset = () => this.scrollService.getPosition(this.scrollService.keyFor(this.activatedRoute)) ?? 0;
|
||||||
@@ -172,39 +193,50 @@ export class AuthorBrowserComponent implements OnInit {
|
|||||||
result = this.applyFilters(result, this.filters());
|
result = this.applyFilters(result, this.filters());
|
||||||
return this.applySort(result, this.sortBy(), this.sortDirection());
|
return this.applySort(result, this.sortBy(), this.sortDirection());
|
||||||
});
|
});
|
||||||
private readonly syncAuthorsEffect = effect(() => {
|
|
||||||
const authors = this.authorService.allAuthors();
|
|
||||||
if (authors !== null) {
|
|
||||||
this.allAuthorsState.set(authors);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
private readonly syncSelectionEffect = effect(() => {
|
|
||||||
this.selectionService.setCurrentAuthors(this.filteredAuthors());
|
|
||||||
});
|
|
||||||
|
|
||||||
@HostListener('window:resize')
|
@HostListener('window:resize')
|
||||||
onResize(): void {
|
onResize(): void {
|
||||||
this.screenWidth.set(window.innerWidth);
|
this.screenWidth.set(window.innerWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly isMobile = computed(() => this.screenWidth() <= 767);
|
readonly isMobile = computed(() => !this.layoutService.isDesktop());
|
||||||
private readonly baseCardWidth = computed(() => this.isMobile()
|
private readonly baseCardWidth = computed(() => this.isMobile()
|
||||||
? AuthorBrowserComponent.MOBILE_BASE_WIDTH
|
? AuthorBrowserComponent.MOBILE_BASE_WIDTH
|
||||||
: AuthorBrowserComponent.BASE_WIDTH
|
: AuthorBrowserComponent.BASE_WIDTH
|
||||||
);
|
);
|
||||||
|
private readonly gridDensity = createGridDensity(this.localStorageService, {
|
||||||
|
useFixedColumns: this.isMobile,
|
||||||
|
screenWidth: this.screenWidth,
|
||||||
|
storageKey: AuthorBrowserComponent.MOBILE_COLUMNS_STORAGE_KEY,
|
||||||
|
defaultColumns: AuthorBrowserComponent.DEFAULT_MOBILE_GRID_COLUMNS,
|
||||||
|
minColumns: AuthorBrowserComponent.MIN_MOBILE_GRID_COLUMNS,
|
||||||
|
maxColumns: AuthorBrowserComponent.MAX_MOBILE_GRID_COLUMNS,
|
||||||
|
scale: this.scaleFactor,
|
||||||
|
minScale: AuthorBrowserComponent.MIN_SCALE,
|
||||||
|
maxScale: AuthorBrowserComponent.MAX_SCALE,
|
||||||
|
gap: AuthorBrowserComponent.GRID_GAP,
|
||||||
|
baseWidth: this.baseCardWidth,
|
||||||
|
setScale: scale => this.scalePreference.setScale(scale),
|
||||||
|
});
|
||||||
|
readonly gridDensitySmallerDisabled = this.gridDensity.smallerDisabled;
|
||||||
|
readonly gridDensityLargerDisabled = this.gridDensity.largerDisabled;
|
||||||
private readonly cardAspectRatio = computed(() => {
|
private readonly cardAspectRatio = computed(() => {
|
||||||
const baseHeight = this.isMobile()
|
const baseHeight = this.isMobile()
|
||||||
? AuthorBrowserComponent.MOBILE_BASE_HEIGHT
|
? AuthorBrowserComponent.MOBILE_BASE_HEIGHT
|
||||||
: AuthorBrowserComponent.BASE_HEIGHT;
|
: AuthorBrowserComponent.BASE_HEIGHT;
|
||||||
return baseHeight / this.baseCardWidth();
|
return baseHeight / this.baseCardWidth();
|
||||||
});
|
});
|
||||||
private readonly minCardWidth = computed(() => Math.round(this.baseCardWidth() * this.scaleFactor()));
|
private readonly minCardWidth = computed(() => this.isMobile()
|
||||||
|
? 1
|
||||||
|
: Math.round(this.baseCardWidth() * this.scaleFactor())
|
||||||
|
);
|
||||||
readonly virtualGrid = createVirtualGrid({
|
readonly virtualGrid = createVirtualGrid({
|
||||||
items: this.filteredAuthors,
|
items: this.filteredAuthors,
|
||||||
scrollElement: this.scrollElement,
|
scrollElement: this.scrollElement,
|
||||||
minItemWidth: this.minCardWidth,
|
minItemWidth: this.minCardWidth,
|
||||||
gap: AuthorBrowserComponent.GRID_GAP,
|
gap: this.gridDensity.gap,
|
||||||
|
columns: this.gridDensity.columns,
|
||||||
initialOffset: this.initialScrollOffset,
|
initialOffset: this.initialScrollOffset,
|
||||||
|
fillItemWidth: true,
|
||||||
estimateItemHeight: itemWidth => Math.round(itemWidth * this.cardAspectRatio()),
|
estimateItemHeight: itemWidth => Math.round(itemWidth * this.cardAspectRatio()),
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -246,26 +278,8 @@ export class AuthorBrowserComponent implements OnInit {
|
|||||||
this.destroyRef.onDestroy(() => this.selectionService.deselectAll());
|
this.destroyRef.onDestroy(() => this.selectionService.deselectAll());
|
||||||
}
|
}
|
||||||
|
|
||||||
adjustDesktopGridDensity(direction: 'smaller' | 'larger'): void {
|
adjustGridDensity(direction: GridDensityDirection): void {
|
||||||
const currentColumns = this.virtualGrid.gridColumns();
|
this.gridDensity.adjust(direction, this.virtualGrid);
|
||||||
const columns = Math.max(1, direction === 'smaller'
|
|
||||||
? currentColumns + 1
|
|
||||||
: currentColumns - 1);
|
|
||||||
const viewportWidth = this.virtualGrid.viewportWidth() || this.screenWidth();
|
|
||||||
this.virtualGrid.updatePreservingScrollPosition(() => {
|
|
||||||
this.setScale(scaleForGridColumns(
|
|
||||||
viewportWidth,
|
|
||||||
AuthorBrowserComponent.GRID_GAP,
|
|
||||||
columns,
|
|
||||||
this.baseCardWidth(),
|
|
||||||
AuthorBrowserComponent.MIN_SCALE,
|
|
||||||
AuthorBrowserComponent.MAX_SCALE
|
|
||||||
));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private setScale(scale: number): void {
|
|
||||||
this.scalePreference.setScale(scale);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onSearchChange(value: string): void {
|
onSearchChange(value: string): void {
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
tabindex="0"
|
tabindex="0"
|
||||||
(click)="seriesCollapseOverlay.toggle($event)"
|
(click)="seriesCollapseOverlay.toggle($event)"
|
||||||
(keydown.enter)="seriesCollapseOverlay.toggle($event)"
|
(keydown.enter)="seriesCollapseOverlay.toggle($event)"
|
||||||
[pTooltip]="t('tooltip.displaySettings')"
|
[pTooltip]="'common.displaySettings' | transloco"
|
||||||
tooltipPosition="top">
|
tooltipPosition="top">
|
||||||
<i class="pi pi-cog"></i>
|
<i class="pi pi-cog"></i>
|
||||||
</a>
|
</a>
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="display-settings-section">
|
<div class="display-settings-section">
|
||||||
<span class="display-settings-label">{{ t('labels.gridItemSize') }}</span>
|
<span class="display-settings-label">{{ 'common.cardSize' | transloco }}</span>
|
||||||
<app-grid-density-buttons
|
<app-grid-density-buttons
|
||||||
[smallerDisabled]="gridDensitySmallerDisabled()"
|
[smallerDisabled]="gridDensitySmallerDisabled()"
|
||||||
[largerDisabled]="gridDensityLargerDisabled()"
|
[largerDisabled]="gridDensityLargerDisabled()"
|
||||||
|
|||||||
+1
-1
@@ -255,7 +255,7 @@ function createHarness(options?: {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{provide: AppSettingsService, useValue: {appSettings: vi.fn(() => null)}},
|
{provide: AppSettingsService, useValue: {appSettings: vi.fn(() => null)}},
|
||||||
{provide: LayoutService, useValue: {sidebarTransitioning: signal(false)}},
|
{provide: LayoutService, useValue: {isDesktop: signal(true), sidebarTransitioning: signal(false)}},
|
||||||
{
|
{
|
||||||
provide: ActivatedRoute,
|
provide: ActivatedRoute,
|
||||||
useValue: {
|
useValue: {
|
||||||
|
|||||||
@@ -49,14 +49,15 @@ import {BookBrowserEntityService, EntityInfo} from './book-browser-entity.servic
|
|||||||
import {RouteScrollPositionService} from '../../../../shared/service/route-scroll-position.service';
|
import {RouteScrollPositionService} from '../../../../shared/service/route-scroll-position.service';
|
||||||
import {AppSettingsService} from '../../../../shared/service/app-settings.service';
|
import {AppSettingsService} from '../../../../shared/service/app-settings.service';
|
||||||
import {MultiSortPopoverComponent} from './sorting/multi-sort-popover/multi-sort-popover.component';
|
import {MultiSortPopoverComponent} from './sorting/multi-sort-popover/multi-sort-popover.component';
|
||||||
import {TranslocoDirective, TranslocoService} from '@jsverse/transloco';
|
import {TranslocoDirective, TranslocoPipe, TranslocoService} from '@jsverse/transloco';
|
||||||
|
|
||||||
import {SortService} from '../../service/sort.service';
|
import {SortService} from '../../service/sort.service';
|
||||||
import {createVirtualGrid, scaleForGridColumns, type VirtualGridMetrics} from '../../../../shared/util/virtual-grid.util';
|
import {createVirtualGrid, type VirtualGridMetrics} from '../../../../shared/util/virtual-grid.util';
|
||||||
import {GridDensityButtonsComponent, type GridDensityDirection} from '../../../../shared/components/grid-density-buttons/grid-density-buttons.component';
|
import {GridDensityButtonsComponent, type GridDensityDirection} from '../../../../shared/components/grid-density-buttons/grid-density-buttons.component';
|
||||||
import {filterBooksBySearchTerm} from './filters/HeaderFilter';
|
import {filterBooksBySearchTerm} from './filters/HeaderFilter';
|
||||||
import {filterBooksByFilters} from './filters/sidebar-filter';
|
import {filterBooksByFilters} from './filters/sidebar-filter';
|
||||||
import {LayoutService} from '../../../../shared/layout/layout.service';
|
import {LayoutService} from '../../../../shared/layout/layout.service';
|
||||||
|
import {createGridDensity} from '../../../../shared/util/grid-density.util';
|
||||||
|
|
||||||
export enum EntityType {
|
export enum EntityType {
|
||||||
LIBRARY = 'Library',
|
LIBRARY = 'Library',
|
||||||
@@ -81,7 +82,7 @@ const MOBILE_COLUMNS_STORAGE_KEY = 'mobileColumnsPreference';
|
|||||||
imports: [
|
imports: [
|
||||||
Button, BookCardComponent, Menu, InputText, FormsModule,
|
Button, BookCardComponent, Menu, InputText, FormsModule,
|
||||||
BookTableComponent, BookFilterComponent, Tooltip, NgClass, Popover,
|
BookTableComponent, BookFilterComponent, Tooltip, NgClass, Popover,
|
||||||
Checkbox, Divider, MultiSelect, TieredMenu, Badge, MultiSortPopoverComponent, TranslocoDirective, GridDensityButtonsComponent,
|
Checkbox, Divider, MultiSelect, TieredMenu, Badge, MultiSortPopoverComponent, TranslocoDirective, TranslocoPipe, GridDensityButtonsComponent,
|
||||||
],
|
],
|
||||||
providers: [SeriesCollapseFilter],
|
providers: [SeriesCollapseFilter],
|
||||||
})
|
})
|
||||||
@@ -117,7 +118,6 @@ export class BookBrowserComponent implements AfterViewInit {
|
|||||||
private readonly destroyRef = inject(DestroyRef);
|
private readonly destroyRef = inject(DestroyRef);
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.loadMobileColumnsPreference();
|
|
||||||
this.setupRouteChangeHandlers();
|
this.setupRouteChangeHandlers();
|
||||||
this.setupQueryParamSubscription();
|
this.setupQueryParamSubscription();
|
||||||
this.scrollService.trackRoute({
|
this.scrollService.trackRoute({
|
||||||
@@ -166,7 +166,6 @@ export class BookBrowserComponent implements AfterViewInit {
|
|||||||
readonly visibleSortOptions = signal<SortOption[]>([]);
|
readonly visibleSortOptions = signal<SortOption[]>([]);
|
||||||
readonly currentFilterLabel = signal<string | null>(null);
|
readonly currentFilterLabel = signal<string | null>(null);
|
||||||
readonly rawFilterParamFromUrl = signal<string | null>(null);
|
readonly rawFilterParamFromUrl = signal<string | null>(null);
|
||||||
readonly gridMobileColumnCount = signal(DEFAULT_MOBILE_GRID_COLUMNS);
|
|
||||||
private readonly seriesCollapsed = this.seriesCollapseFilter.seriesCollapsed;
|
private readonly seriesCollapsed = this.seriesCollapseFilter.seriesCollapsed;
|
||||||
readonly selectedBooks = this.bookSelectionService.selectedBooks;
|
readonly selectedBooks = this.bookSelectionService.selectedBooks;
|
||||||
readonly selectedCount = this.bookSelectionService.selectedCount;
|
readonly selectedCount = this.bookSelectionService.selectedCount;
|
||||||
@@ -229,9 +228,7 @@ export class BookBrowserComponent implements AfterViewInit {
|
|||||||
readonly booksError = this.bookService.booksError;
|
readonly booksError = this.bookService.booksError;
|
||||||
|
|
||||||
private readonly GRID_GAP = 21;
|
private readonly GRID_GAP = 21;
|
||||||
private readonly MOBILE_BREAKPOINT = 768;
|
|
||||||
private readonly CARD_ASPECT_RATIO = 7 / 5;
|
private readonly CARD_ASPECT_RATIO = 7 / 5;
|
||||||
private readonly MOBILE_GAP = 8;
|
|
||||||
private readonly MOBILE_TITLE_BAR_HEIGHT = 32;
|
private readonly MOBILE_TITLE_BAR_HEIGHT = 32;
|
||||||
private readonly DESKTOP_CARD_BASE_WIDTH = 135;
|
private readonly DESKTOP_CARD_BASE_WIDTH = 135;
|
||||||
private readonly DESKTOP_CARD_BASE_HEIGHT = 220;
|
private readonly DESKTOP_CARD_BASE_HEIGHT = 220;
|
||||||
@@ -240,18 +237,31 @@ export class BookBrowserComponent implements AfterViewInit {
|
|||||||
private readonly AUDIOBOOK_TITLE_BAR_HEIGHT = 31;
|
private readonly AUDIOBOOK_TITLE_BAR_HEIGHT = 31;
|
||||||
private readonly scrollElement = viewChild<ElementRef<HTMLElement>>('scrollElement');
|
private readonly scrollElement = viewChild<ElementRef<HTMLElement>>('scrollElement');
|
||||||
private readonly initialScrollOffset = () => this.scrollService.getPosition(this.scrollService.keyFor(this.activatedRoute, 'grid')) ?? 0;
|
private readonly initialScrollOffset = () => this.scrollService.getPosition(this.scrollService.keyFor(this.activatedRoute, 'grid')) ?? 0;
|
||||||
|
readonly isMobile = computed(() => !this.layoutService.isDesktop());
|
||||||
private readonly desktopBaseCardWidth = computed(() =>
|
private readonly desktopBaseCardWidth = computed(() =>
|
||||||
this.isAudiobookOnlyLibrary()
|
this.isAudiobookOnlyLibrary()
|
||||||
? this.DESKTOP_CARD_BASE_WIDTH * 1.1
|
? this.DESKTOP_CARD_BASE_WIDTH * 1.1
|
||||||
: this.DESKTOP_CARD_BASE_WIDTH
|
: this.DESKTOP_CARD_BASE_WIDTH
|
||||||
);
|
);
|
||||||
|
private readonly gridDensity = createGridDensity(this.localStorageService, {
|
||||||
|
useFixedColumns: this.isMobile,
|
||||||
|
screenWidth: this.screenWidth,
|
||||||
|
storageKey: MOBILE_COLUMNS_STORAGE_KEY,
|
||||||
|
defaultColumns: DEFAULT_MOBILE_GRID_COLUMNS,
|
||||||
|
minColumns: MIN_MOBILE_GRID_COLUMNS,
|
||||||
|
maxColumns: MAX_MOBILE_GRID_COLUMNS,
|
||||||
|
scale: this.coverScalePreferenceService.scaleFactor,
|
||||||
|
minScale: this.DESKTOP_MIN_SCALE,
|
||||||
|
maxScale: this.DESKTOP_MAX_SCALE,
|
||||||
|
gap: this.GRID_GAP,
|
||||||
|
baseWidth: this.desktopBaseCardWidth,
|
||||||
|
setScale: scale => this.coverScalePreferenceService.setScale(scale),
|
||||||
|
});
|
||||||
private readonly minCardWidth = computed(() =>
|
private readonly minCardWidth = computed(() =>
|
||||||
this.isMobile()
|
this.isMobile()
|
||||||
? 1
|
? 1
|
||||||
: Math.round(this.desktopBaseCardWidth() * this.coverScalePreferenceService.scaleFactor())
|
: Math.round(this.desktopBaseCardWidth() * this.coverScalePreferenceService.scaleFactor())
|
||||||
);
|
);
|
||||||
private readonly virtualGridGap = computed(() => this.isMobile() ? this.MOBILE_GAP : this.GRID_GAP);
|
|
||||||
private readonly virtualGridColumns = computed(() => this.isMobile() ? this.gridMobileColumnCount() : undefined);
|
|
||||||
readonly virtualRowCount = computed(() => this.bookCountIncludingUnloadedPages(this.books().length));
|
readonly virtualRowCount = computed(() => this.bookCountIncludingUnloadedPages(this.books().length));
|
||||||
private readonly hasUnloadedBooks = computed(() => this.books().length < this.virtualRowCount());
|
private readonly hasUnloadedBooks = computed(() => this.books().length < this.virtualRowCount());
|
||||||
readonly loadedBookCount = computed(() => this.books().length);
|
readonly loadedBookCount = computed(() => this.books().length);
|
||||||
@@ -259,8 +269,8 @@ export class BookBrowserComponent implements AfterViewInit {
|
|||||||
items: this.books,
|
items: this.books,
|
||||||
scrollElement: this.scrollElement,
|
scrollElement: this.scrollElement,
|
||||||
minItemWidth: this.minCardWidth,
|
minItemWidth: this.minCardWidth,
|
||||||
gap: this.virtualGridGap,
|
gap: this.gridDensity.gap,
|
||||||
columns: this.virtualGridColumns,
|
columns: this.gridDensity.columns,
|
||||||
count: this.virtualRowCount,
|
count: this.virtualRowCount,
|
||||||
minimumCount: metrics => this.minimumLoadingGridItemCount(metrics),
|
minimumCount: metrics => this.minimumLoadingGridItemCount(metrics),
|
||||||
initialOffset: this.initialScrollOffset,
|
initialOffset: this.initialScrollOffset,
|
||||||
@@ -414,13 +424,8 @@ export class BookBrowserComponent implements AfterViewInit {
|
|||||||
this.screenWidth.set(window.innerWidth);
|
this.screenWidth.set(window.innerWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly isMobile = computed(() => this.screenWidth() < this.MOBILE_BREAKPOINT);
|
readonly gridDensitySmallerDisabled = this.gridDensity.smallerDisabled;
|
||||||
readonly gridDensitySmallerDisabled = computed(() =>
|
readonly gridDensityLargerDisabled = this.gridDensity.largerDisabled;
|
||||||
this.isMobile() && this.gridMobileColumnCount() >= MAX_MOBILE_GRID_COLUMNS
|
|
||||||
);
|
|
||||||
readonly gridDensityLargerDisabled = computed(() =>
|
|
||||||
this.isMobile() && this.gridMobileColumnCount() <= MIN_MOBILE_GRID_COLUMNS
|
|
||||||
);
|
|
||||||
|
|
||||||
private cardSizeForWidth(width: number): { width: number; height: number } {
|
private cardSizeForWidth(width: number): { width: number; height: number } {
|
||||||
const cardWidth = Math.round(width);
|
const cardWidth = Math.round(width);
|
||||||
@@ -1051,58 +1056,6 @@ export class BookBrowserComponent implements AfterViewInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
adjustGridDensity(direction: GridDensityDirection): void {
|
adjustGridDensity(direction: GridDensityDirection): void {
|
||||||
if (this.isMobile()) {
|
this.gridDensity.adjust(direction, this.virtualGrid);
|
||||||
this.adjustMobileGridDensity(direction);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.adjustDesktopGridDensity(direction);
|
|
||||||
}
|
|
||||||
|
|
||||||
private adjustMobileGridDensity(direction: GridDensityDirection): void {
|
|
||||||
const currentColumns = this.gridMobileColumnCount();
|
|
||||||
const nextColumns = direction === 'smaller'
|
|
||||||
? currentColumns + 1
|
|
||||||
: currentColumns - 1;
|
|
||||||
|
|
||||||
this.setMobileColumns(this.toMobileGridColumns(nextColumns));
|
|
||||||
}
|
|
||||||
|
|
||||||
private setMobileColumns(columns: number): void {
|
|
||||||
this.gridMobileColumnCount.set(columns);
|
|
||||||
this.localStorageService.set(MOBILE_COLUMNS_STORAGE_KEY, columns);
|
|
||||||
}
|
|
||||||
|
|
||||||
private adjustDesktopGridDensity(direction: GridDensityDirection): void {
|
|
||||||
const currentColumns = this.virtualGrid.gridColumns();
|
|
||||||
const columns = Math.max(1, direction === 'smaller'
|
|
||||||
? currentColumns + 1
|
|
||||||
: currentColumns - 1);
|
|
||||||
const viewportWidth = this.virtualGrid.viewportWidth() || this.screenWidth();
|
|
||||||
this.virtualGrid.updatePreservingScrollPosition(() => {
|
|
||||||
this.coverScalePreferenceService.setScale(scaleForGridColumns(
|
|
||||||
viewportWidth,
|
|
||||||
this.GRID_GAP,
|
|
||||||
columns,
|
|
||||||
this.desktopBaseCardWidth(),
|
|
||||||
this.DESKTOP_MIN_SCALE,
|
|
||||||
this.DESKTOP_MAX_SCALE
|
|
||||||
));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private loadMobileColumnsPreference(): void {
|
|
||||||
const saved = this.localStorageService.get<unknown>(MOBILE_COLUMNS_STORAGE_KEY);
|
|
||||||
if (saved !== null) {
|
|
||||||
this.setMobileColumns(this.toMobileGridColumns(saved));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private toMobileGridColumns(value: unknown): number {
|
|
||||||
const columns = Number(value);
|
|
||||||
if (!Number.isFinite(columns)) {
|
|
||||||
return DEFAULT_MOBILE_GRID_COLUMNS;
|
|
||||||
}
|
|
||||||
return Math.min(MAX_MOBILE_GRID_COLUMNS, Math.max(MIN_MOBILE_GRID_COLUMNS, Math.round(columns)));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+22
-20
@@ -46,19 +46,25 @@
|
|||||||
class="sort-dropdown">
|
class="sort-dropdown">
|
||||||
</p-select>
|
</p-select>
|
||||||
|
|
||||||
@if (!isMobile()) {
|
<button
|
||||||
<button class="display-settings-btn" (click)="displaySettingsPopover.toggle($event)">
|
type="button"
|
||||||
<i class="pi pi-sliders-h"></i>
|
class="display-settings-btn"
|
||||||
</button>
|
[attr.aria-label]="'common.displaySettings' | transloco"
|
||||||
<p-popover #displaySettingsPopover>
|
[title]="'common.displaySettings' | transloco"
|
||||||
<div class="display-settings-content">
|
(click)="displaySettingsPopover.toggle($event)">
|
||||||
<span class="display-settings-label">{{ t('cardSize') }}</span>
|
<i class="pi pi-sliders-h"></i>
|
||||||
<app-grid-density-buttons (densityChange)="adjustDesktopGridDensity($event)"/>
|
</button>
|
||||||
</div>
|
|
||||||
</p-popover>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<p-popover #displaySettingsPopover>
|
||||||
|
<div class="display-settings-content">
|
||||||
|
<span class="display-settings-label">{{ 'common.cardSize' | transloco }}</span>
|
||||||
|
<app-grid-density-buttons
|
||||||
|
[smallerDisabled]="gridDensitySmallerDisabled()"
|
||||||
|
[largerDisabled]="gridDensityLargerDisabled()"
|
||||||
|
(densityChange)="adjustGridDensity($event)"/>
|
||||||
|
</div>
|
||||||
|
</p-popover>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (filteredSeries(); as seriesList) {
|
@if (filteredSeries(); as seriesList) {
|
||||||
@@ -77,15 +83,11 @@
|
|||||||
[style.width.px]="virtualGrid.itemWidth()"
|
[style.width.px]="virtualGrid.itemWidth()"
|
||||||
[style.height.px]="virtualItem.size"
|
[style.height.px]="virtualItem.size"
|
||||||
[style.transform]="virtualGrid.itemTransform(virtualItem)">
|
[style.transform]="virtualGrid.itemTransform(virtualItem)">
|
||||||
<div class="virtual-scroller-item"
|
<app-series-card
|
||||||
[style.width.px]="virtualGrid.itemWidth()"
|
[series]="series"
|
||||||
[style.height.px]="virtualGrid.itemHeight()"
|
[style.--card-scale]="currentCardScale()"
|
||||||
[style.--card-scale]="currentCardScale()">
|
(cardClick)="navigateToSeries($event)">
|
||||||
<app-series-card
|
</app-series-card>
|
||||||
[series]="series"
|
|
||||||
(cardClick)="navigateToSeries($event)">
|
|
||||||
</app-series-card>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-11
@@ -1,5 +1,7 @@
|
|||||||
|
@use "../../../../../assets/layout/styles/layout/variables";
|
||||||
|
|
||||||
.series-browser-page {
|
.series-browser-page {
|
||||||
--browser-gutter-inline: 2.1rem;
|
--browser-gutter-inline: var(--page-gutter-inline);
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -117,17 +119,11 @@
|
|||||||
overflow: hidden auto;
|
overflow: hidden auto;
|
||||||
scrollbar-gutter: stable;
|
scrollbar-gutter: stable;
|
||||||
|
|
||||||
@media (width <= 768px) {
|
@media #{variables.$mobile-shell-media-query} {
|
||||||
padding-block: 0.5rem;
|
padding-block: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.virtual-scroller-item {
|
|
||||||
position: relative;
|
|
||||||
overflow: visible;
|
|
||||||
transition: width 0.2s ease, height 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Empty state
|
// Empty state
|
||||||
.empty-state {
|
.empty-state {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -150,9 +146,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (width <= 767px) {
|
@media #{variables.$mobile-shell-media-query} {
|
||||||
.series-browser-page {
|
.series-browser-page {
|
||||||
--browser-gutter-inline: 0.5rem;
|
--browser-gutter-inline: var(--space-4);
|
||||||
|
|
||||||
padding: 1.5rem 0 0;
|
padding: 1.5rem 0 0;
|
||||||
}
|
}
|
||||||
@@ -170,12 +166,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.filter-sort-wrapper {
|
.filter-sort-wrapper {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-dropdown,
|
.filter-dropdown,
|
||||||
.sort-dropdown {
|
.sort-dropdown {
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.display-settings-btn {
|
||||||
|
width: 36px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+41
-31
@@ -4,7 +4,7 @@ import {ProgressSpinner} from 'primeng/progressspinner';
|
|||||||
import {InputText} from 'primeng/inputtext';
|
import {InputText} from 'primeng/inputtext';
|
||||||
import {Select} from 'primeng/select';
|
import {Select} from 'primeng/select';
|
||||||
import {Popover} from 'primeng/popover';
|
import {Popover} from 'primeng/popover';
|
||||||
import {TranslocoDirective, TranslocoService} from '@jsverse/transloco';
|
import {TranslocoDirective, TranslocoPipe, TranslocoService} from '@jsverse/transloco';
|
||||||
import {SeriesDataService} from '../../service/series-data.service';
|
import {SeriesDataService} from '../../service/series-data.service';
|
||||||
import {SeriesSummary} from '../../model/series.model';
|
import {SeriesSummary} from '../../model/series.model';
|
||||||
import {SeriesCardComponent} from '../series-card/series-card.component';
|
import {SeriesCardComponent} from '../series-card/series-card.component';
|
||||||
@@ -12,11 +12,13 @@ import {BookService} from '../../../book/service/book.service';
|
|||||||
import {ReadStatus} from '../../../book/model/book.model';
|
import {ReadStatus} from '../../../book/model/book.model';
|
||||||
import {PageTitleService} from '../../../../shared/service/page-title.service';
|
import {PageTitleService} from '../../../../shared/service/page-title.service';
|
||||||
import {ActivatedRoute, Router} from '@angular/router';
|
import {ActivatedRoute, Router} from '@angular/router';
|
||||||
import {createVirtualGrid, scaleForGridColumns} from '../../../../shared/util/virtual-grid.util';
|
import {createVirtualGrid} from '../../../../shared/util/virtual-grid.util';
|
||||||
import {RouteScrollPositionService} from '../../../../shared/service/route-scroll-position.service';
|
import {RouteScrollPositionService} from '../../../../shared/service/route-scroll-position.service';
|
||||||
import {GridDensityButtonsComponent} from '../../../../shared/components/grid-density-buttons/grid-density-buttons.component';
|
import {GridDensityButtonsComponent, type GridDensityDirection} from '../../../../shared/components/grid-density-buttons/grid-density-buttons.component';
|
||||||
import {LocalStorageService} from '../../../../shared/service/local-storage.service';
|
import {LocalStorageService} from '../../../../shared/service/local-storage.service';
|
||||||
import {ScalePreference} from '../../../../shared/util/scale-preference.util';
|
import {ScalePreference} from '../../../../shared/util/scale-preference.util';
|
||||||
|
import {LayoutService} from '../../../../shared/layout/layout.service';
|
||||||
|
import {createGridDensity} from '../../../../shared/util/grid-density.util';
|
||||||
|
|
||||||
interface FilterOption {
|
interface FilterOption {
|
||||||
label: string;
|
label: string;
|
||||||
@@ -40,6 +42,7 @@ interface SortOption {
|
|||||||
Select,
|
Select,
|
||||||
Popover,
|
Popover,
|
||||||
TranslocoDirective,
|
TranslocoDirective,
|
||||||
|
TranslocoPipe,
|
||||||
GridDensityButtonsComponent,
|
GridDensityButtonsComponent,
|
||||||
SeriesCardComponent,
|
SeriesCardComponent,
|
||||||
]
|
]
|
||||||
@@ -51,7 +54,11 @@ export class SeriesBrowserComponent implements OnInit {
|
|||||||
private static readonly MOBILE_BASE_WIDTH = 180;
|
private static readonly MOBILE_BASE_WIDTH = 180;
|
||||||
private static readonly MOBILE_BASE_HEIGHT = 250;
|
private static readonly MOBILE_BASE_HEIGHT = 250;
|
||||||
private static readonly GRID_GAP = 20;
|
private static readonly GRID_GAP = 20;
|
||||||
|
private static readonly DEFAULT_MOBILE_GRID_COLUMNS = 2;
|
||||||
|
private static readonly MIN_MOBILE_GRID_COLUMNS = 2;
|
||||||
|
private static readonly MAX_MOBILE_GRID_COLUMNS = 3;
|
||||||
private static readonly SCALE_STORAGE_KEY = 'seriesScalePreference';
|
private static readonly SCALE_STORAGE_KEY = 'seriesScalePreference';
|
||||||
|
private static readonly MOBILE_COLUMNS_STORAGE_KEY = 'seriesMobileColumnsPreference';
|
||||||
private static readonly MIN_SCALE = 0.7;
|
private static readonly MIN_SCALE = 0.7;
|
||||||
private static readonly MAX_SCALE = 1.3;
|
private static readonly MAX_SCALE = 1.3;
|
||||||
|
|
||||||
@@ -64,6 +71,7 @@ export class SeriesBrowserComponent implements OnInit {
|
|||||||
private destroyRef = inject(DestroyRef);
|
private destroyRef = inject(DestroyRef);
|
||||||
private scrollService = inject(RouteScrollPositionService);
|
private scrollService = inject(RouteScrollPositionService);
|
||||||
private localStorageService = inject(LocalStorageService);
|
private localStorageService = inject(LocalStorageService);
|
||||||
|
private layoutService = inject(LayoutService);
|
||||||
|
|
||||||
readonly isBooksLoading = this.bookService.isBooksLoading;
|
readonly isBooksLoading = this.bookService.isBooksLoading;
|
||||||
private readonly searchTerm = signal('');
|
private readonly searchTerm = signal('');
|
||||||
@@ -93,6 +101,27 @@ export class SeriesBrowserComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
private readonly scaleFactor = this.scalePreference.scaleFactor;
|
private readonly scaleFactor = this.scalePreference.scaleFactor;
|
||||||
readonly screenWidth = signal(typeof window !== 'undefined' ? window.innerWidth : 1024);
|
readonly screenWidth = signal(typeof window !== 'undefined' ? window.innerWidth : 1024);
|
||||||
|
readonly isMobile = computed(() => !this.layoutService.isDesktop());
|
||||||
|
private readonly baseCardWidth = computed(() => this.isMobile()
|
||||||
|
? SeriesBrowserComponent.MOBILE_BASE_WIDTH
|
||||||
|
: SeriesBrowserComponent.BASE_WIDTH
|
||||||
|
);
|
||||||
|
private readonly gridDensity = createGridDensity(this.localStorageService, {
|
||||||
|
useFixedColumns: this.isMobile,
|
||||||
|
screenWidth: this.screenWidth,
|
||||||
|
storageKey: SeriesBrowserComponent.MOBILE_COLUMNS_STORAGE_KEY,
|
||||||
|
defaultColumns: SeriesBrowserComponent.DEFAULT_MOBILE_GRID_COLUMNS,
|
||||||
|
minColumns: SeriesBrowserComponent.MIN_MOBILE_GRID_COLUMNS,
|
||||||
|
maxColumns: SeriesBrowserComponent.MAX_MOBILE_GRID_COLUMNS,
|
||||||
|
scale: this.scaleFactor,
|
||||||
|
minScale: SeriesBrowserComponent.MIN_SCALE,
|
||||||
|
maxScale: SeriesBrowserComponent.MAX_SCALE,
|
||||||
|
gap: SeriesBrowserComponent.GRID_GAP,
|
||||||
|
baseWidth: this.baseCardWidth,
|
||||||
|
setScale: scale => this.scalePreference.setScale(scale),
|
||||||
|
});
|
||||||
|
readonly gridDensitySmallerDisabled = this.gridDensity.smallerDisabled;
|
||||||
|
readonly gridDensityLargerDisabled = this.gridDensity.largerDisabled;
|
||||||
filterOptions: FilterOption[] = [];
|
filterOptions: FilterOption[] = [];
|
||||||
sortOptions: SortOption[] = [];
|
sortOptions: SortOption[] = [];
|
||||||
|
|
||||||
@@ -101,25 +130,24 @@ export class SeriesBrowserComponent implements OnInit {
|
|||||||
this.screenWidth.set(window.innerWidth);
|
this.screenWidth.set(window.innerWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly isMobile = computed(() => this.screenWidth() <= 767);
|
|
||||||
|
|
||||||
private readonly baseCardWidth = computed(() => this.isMobile()
|
|
||||||
? SeriesBrowserComponent.MOBILE_BASE_WIDTH
|
|
||||||
: SeriesBrowserComponent.BASE_WIDTH
|
|
||||||
);
|
|
||||||
private readonly cardAspectRatio = computed(() => {
|
private readonly cardAspectRatio = computed(() => {
|
||||||
const baseHeight = this.isMobile()
|
const baseHeight = this.isMobile()
|
||||||
? SeriesBrowserComponent.MOBILE_BASE_HEIGHT
|
? SeriesBrowserComponent.MOBILE_BASE_HEIGHT
|
||||||
: SeriesBrowserComponent.BASE_HEIGHT;
|
: SeriesBrowserComponent.BASE_HEIGHT;
|
||||||
return baseHeight / this.baseCardWidth();
|
return baseHeight / this.baseCardWidth();
|
||||||
});
|
});
|
||||||
private readonly minCardWidth = computed(() => Math.round(this.baseCardWidth() * this.scaleFactor()));
|
private readonly minCardWidth = computed(() => this.isMobile()
|
||||||
|
? 1
|
||||||
|
: Math.round(this.baseCardWidth() * this.scaleFactor())
|
||||||
|
);
|
||||||
readonly virtualGrid = createVirtualGrid({
|
readonly virtualGrid = createVirtualGrid({
|
||||||
items: this.filteredSeries,
|
items: this.filteredSeries,
|
||||||
scrollElement: this.scrollElement,
|
scrollElement: this.scrollElement,
|
||||||
minItemWidth: this.minCardWidth,
|
minItemWidth: this.minCardWidth,
|
||||||
gap: SeriesBrowserComponent.GRID_GAP,
|
gap: this.gridDensity.gap,
|
||||||
|
columns: this.gridDensity.columns,
|
||||||
initialOffset: this.initialScrollOffset,
|
initialOffset: this.initialScrollOffset,
|
||||||
|
fillItemWidth: true,
|
||||||
estimateItemHeight: itemWidth => Math.round(itemWidth * this.cardAspectRatio()),
|
estimateItemHeight: itemWidth => Math.round(itemWidth * this.cardAspectRatio()),
|
||||||
});
|
});
|
||||||
readonly currentCardScale = computed(() => this.virtualGrid.itemWidth() / this.baseCardWidth());
|
readonly currentCardScale = computed(() => this.virtualGrid.itemWidth() / this.baseCardWidth());
|
||||||
@@ -174,26 +202,8 @@ export class SeriesBrowserComponent implements OnInit {
|
|||||||
this.sortBy.set(value);
|
this.sortBy.set(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
adjustDesktopGridDensity(direction: 'smaller' | 'larger'): void {
|
adjustGridDensity(direction: GridDensityDirection): void {
|
||||||
const currentColumns = this.virtualGrid.gridColumns();
|
this.gridDensity.adjust(direction, this.virtualGrid);
|
||||||
const columns = Math.max(1, direction === 'smaller'
|
|
||||||
? currentColumns + 1
|
|
||||||
: currentColumns - 1);
|
|
||||||
const viewportWidth = this.virtualGrid.viewportWidth() || this.screenWidth();
|
|
||||||
this.virtualGrid.updatePreservingScrollPosition(() => {
|
|
||||||
this.setScale(scaleForGridColumns(
|
|
||||||
viewportWidth,
|
|
||||||
SeriesBrowserComponent.GRID_GAP,
|
|
||||||
columns,
|
|
||||||
this.baseCardWidth(),
|
|
||||||
SeriesBrowserComponent.MIN_SCALE,
|
|
||||||
SeriesBrowserComponent.MAX_SCALE
|
|
||||||
));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private setScale(scale: number): void {
|
|
||||||
this.scalePreference.setScale(scale);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
navigateToSeries(series: SeriesSummary): void {
|
navigateToSeries(series: SeriesSummary): void {
|
||||||
|
|||||||
@@ -0,0 +1,80 @@
|
|||||||
|
import {Signal, computed, signal} from '@angular/core';
|
||||||
|
import {LocalStorageService} from '../service/local-storage.service';
|
||||||
|
import {scaleForGridColumns} from './virtual-grid.util';
|
||||||
|
|
||||||
|
const FIXED_COLUMN_GAP = 8;
|
||||||
|
|
||||||
|
type GridDensityDirection = 'smaller' | 'larger';
|
||||||
|
|
||||||
|
interface GridDensityOptions {
|
||||||
|
useFixedColumns: Signal<boolean>;
|
||||||
|
screenWidth: Signal<number>;
|
||||||
|
storageKey: string;
|
||||||
|
defaultColumns: number;
|
||||||
|
minColumns: number;
|
||||||
|
maxColumns: number;
|
||||||
|
scale: Signal<number>;
|
||||||
|
minScale: number;
|
||||||
|
maxScale: number;
|
||||||
|
gap: number;
|
||||||
|
baseWidth: Signal<number>;
|
||||||
|
setScale: (scale: number) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface GridDensityGrid {
|
||||||
|
gridColumns: Signal<number>;
|
||||||
|
viewportWidth: Signal<number>;
|
||||||
|
updatePreservingScrollPosition: (update: () => void) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function createGridDensity(localStorageService: LocalStorageService, options: GridDensityOptions) {
|
||||||
|
const defaultColumns = clampColumns(options.defaultColumns, options.minColumns, options.maxColumns);
|
||||||
|
const toColumns = (value: unknown) => {
|
||||||
|
const columns = Number(value);
|
||||||
|
return Number.isFinite(columns)
|
||||||
|
? clampColumns(columns, options.minColumns, options.maxColumns)
|
||||||
|
: defaultColumns;
|
||||||
|
};
|
||||||
|
const savedColumns = localStorageService.get<unknown>(options.storageKey);
|
||||||
|
const fixedColumns = signal(savedColumns === null ? defaultColumns : toColumns(savedColumns));
|
||||||
|
|
||||||
|
const adjustFixedColumns = (direction: GridDensityDirection): void => {
|
||||||
|
const columns = toColumns(fixedColumns() + (direction === 'smaller' ? 1 : -1));
|
||||||
|
fixedColumns.set(columns);
|
||||||
|
localStorageService.set(options.storageKey, columns);
|
||||||
|
};
|
||||||
|
|
||||||
|
const adjustScale = (direction: GridDensityDirection, grid: GridDensityGrid): void => {
|
||||||
|
const columns = Math.max(1, grid.gridColumns() + (direction === 'smaller' ? 1 : -1));
|
||||||
|
const viewportWidth = grid.viewportWidth() || options.screenWidth();
|
||||||
|
grid.updatePreservingScrollPosition(() => {
|
||||||
|
options.setScale(scaleForGridColumns(
|
||||||
|
viewportWidth,
|
||||||
|
options.gap,
|
||||||
|
columns,
|
||||||
|
options.baseWidth(),
|
||||||
|
options.minScale,
|
||||||
|
options.maxScale
|
||||||
|
));
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
gap: computed(() => options.useFixedColumns() ? FIXED_COLUMN_GAP : options.gap),
|
||||||
|
columns: computed(() => options.useFixedColumns() ? fixedColumns() : undefined),
|
||||||
|
smallerDisabled: computed(() => options.useFixedColumns()
|
||||||
|
? fixedColumns() >= options.maxColumns
|
||||||
|
: options.scale() <= options.minScale
|
||||||
|
),
|
||||||
|
largerDisabled: computed(() => options.useFixedColumns()
|
||||||
|
? fixedColumns() <= options.minColumns
|
||||||
|
: options.scale() >= options.maxScale
|
||||||
|
),
|
||||||
|
adjust: (direction: GridDensityDirection, grid: GridDensityGrid) =>
|
||||||
|
options.useFixedColumns() ? adjustFixedColumns(direction) : adjustScale(direction, grid),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function clampColumns(value: number, min: number, max: number): number {
|
||||||
|
return Math.min(max, Math.max(min, Math.round(value)));
|
||||||
|
}
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "",
|
"browseAllAuthors": "",
|
||||||
"searchPlaceholder": "",
|
"searchPlaceholder": "",
|
||||||
"noAuthorsFound": "",
|
"noAuthorsFound": "",
|
||||||
"cardSize": "",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"bookCount": "",
|
"bookCount": "",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "",
|
"save": "",
|
||||||
"collapseSeries": "",
|
"collapseSeries": "",
|
||||||
"gridColumns": "",
|
"gridColumns": "",
|
||||||
"gridItemSize": "",
|
|
||||||
"bookTypeOverlay": "",
|
"bookTypeOverlay": "",
|
||||||
"noBooks": "",
|
"noBooks": "",
|
||||||
"failedLibrary": "",
|
"failedLibrary": "",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "",
|
"clearFilters": "",
|
||||||
"visibleColumns": "",
|
"visibleColumns": "",
|
||||||
"displaySettings": "",
|
|
||||||
"selectSorting": "",
|
"selectSorting": "",
|
||||||
"toggleView": "",
|
"toggleView": "",
|
||||||
"search": "",
|
"search": "",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "",
|
"discard": "",
|
||||||
"review": "",
|
"review": "",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "",
|
||||||
|
"cardSize": "",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "",
|
"booksRead": "",
|
||||||
"noSeriesFound": "",
|
"noSeriesFound": "",
|
||||||
"noSeriesInCategory": "",
|
"noSeriesInCategory": "",
|
||||||
"cardSize": "",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "",
|
"all": "",
|
||||||
"notStarted": "",
|
"notStarted": "",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Speichern",
|
"save": "Speichern",
|
||||||
"collapseSeries": "Serien zusammenklappen",
|
"collapseSeries": "Serien zusammenklappen",
|
||||||
"gridColumns": "Rasterspalten",
|
"gridColumns": "Rasterspalten",
|
||||||
"gridItemSize": "Rasterelementgröße",
|
|
||||||
"bookTypeOverlay": "Dateiformat-Overlay",
|
"bookTypeOverlay": "Dateiformat-Overlay",
|
||||||
"noBooks": "Diese Sammlung enthält keine Bücher!",
|
"noBooks": "Diese Sammlung enthält keine Bücher!",
|
||||||
"failedLibrary": "Bücher der Bibliothek konnten nicht geladen werden!",
|
"failedLibrary": "Bücher der Bibliothek konnten nicht geladen werden!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Angewendete Filter löschen",
|
"clearFilters": "Angewendete Filter löschen",
|
||||||
"visibleColumns": "Sichtbare Spalten",
|
"visibleColumns": "Sichtbare Spalten",
|
||||||
"displaySettings": "Anzeigeeinstellungen",
|
|
||||||
"selectSorting": "Sortierung auswählen",
|
"selectSorting": "Sortierung auswählen",
|
||||||
"toggleView": "Zwischen Raster- und Tabellenansicht wechseln",
|
"toggleView": "Zwischen Raster- und Tabellenansicht wechseln",
|
||||||
"search": "Suchen",
|
"search": "Suchen",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Verwerfen",
|
"discard": "Verwerfen",
|
||||||
"review": "Überprüfen",
|
"review": "Überprüfen",
|
||||||
"libraryPathInaccessible": "Der Pfad zur Bibliothek ist nicht zugreifbar",
|
"libraryPathInaccessible": "Der Pfad zur Bibliothek ist nicht zugreifbar",
|
||||||
|
"displaySettings": "Anzeigeeinstellungen",
|
||||||
|
"cardSize": "Kartengröße",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "Bücher gelesen",
|
"booksRead": "Bücher gelesen",
|
||||||
"noSeriesFound": "Keine Serien entsprechen Ihrer Suche oder Ihren Filtern.",
|
"noSeriesFound": "Keine Serien entsprechen Ihrer Suche oder Ihren Filtern.",
|
||||||
"noSeriesInCategory": "Keine Serien in dieser Kategorie gefunden.",
|
"noSeriesInCategory": "Keine Serien in dieser Kategorie gefunden.",
|
||||||
"cardSize": "Kartengröße",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Alle",
|
"all": "Alle",
|
||||||
"notStarted": "Nicht begonnen",
|
"notStarted": "Nicht begonnen",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "Browse All Authors",
|
"browseAllAuthors": "Browse All Authors",
|
||||||
"searchPlaceholder": "Search by author name...",
|
"searchPlaceholder": "Search by author name...",
|
||||||
"noAuthorsFound": "No authors match your search.",
|
"noAuthorsFound": "No authors match your search.",
|
||||||
"cardSize": "Card Size",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"bookCount": "Book Count",
|
"bookCount": "Book Count",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Save",
|
"save": "Save",
|
||||||
"collapseSeries": "Collapse series",
|
"collapseSeries": "Collapse series",
|
||||||
"gridColumns": "Grid columns",
|
"gridColumns": "Grid columns",
|
||||||
"gridItemSize": "Grid item size",
|
|
||||||
"bookTypeOverlay": "File format overlay",
|
"bookTypeOverlay": "File format overlay",
|
||||||
"noBooks": "This collection has no books!",
|
"noBooks": "This collection has no books!",
|
||||||
"failedLibrary": "Failed to load library's books!",
|
"failedLibrary": "Failed to load library's books!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Clear applied filters",
|
"clearFilters": "Clear applied filters",
|
||||||
"visibleColumns": "Visible columns",
|
"visibleColumns": "Visible columns",
|
||||||
"displaySettings": "Display settings",
|
|
||||||
"selectSorting": "Select sorting",
|
"selectSorting": "Select sorting",
|
||||||
"toggleView": "Toggle between Grid and Table view",
|
"toggleView": "Toggle between Grid and Table view",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Discard",
|
"discard": "Discard",
|
||||||
"review": "Review",
|
"review": "Review",
|
||||||
"libraryPathInaccessible": "Library path inaccessible",
|
"libraryPathInaccessible": "Library path inaccessible",
|
||||||
|
"displaySettings": "Display settings",
|
||||||
|
"cardSize": "Card size",
|
||||||
"decreaseCardSize": "Decrease card size",
|
"decreaseCardSize": "Decrease card size",
|
||||||
"increaseCardSize": "Increase card size",
|
"increaseCardSize": "Increase card size",
|
||||||
"cardSizeControls": "Card size controls",
|
"cardSizeControls": "Card size controls",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "books read",
|
"booksRead": "books read",
|
||||||
"noSeriesFound": "No series match your search or filters.",
|
"noSeriesFound": "No series match your search or filters.",
|
||||||
"noSeriesInCategory": "No series found in this category.",
|
"noSeriesInCategory": "No series found in this category.",
|
||||||
"cardSize": "Card Size",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "All",
|
"all": "All",
|
||||||
"notStarted": "Not Started",
|
"notStarted": "Not Started",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "Explorar todos los autores",
|
"browseAllAuthors": "Explorar todos los autores",
|
||||||
"searchPlaceholder": "Buscar por nombre de autor...",
|
"searchPlaceholder": "Buscar por nombre de autor...",
|
||||||
"noAuthorsFound": "Ningún autor coincide con tu búsqueda.",
|
"noAuthorsFound": "Ningún autor coincide con tu búsqueda.",
|
||||||
"cardSize": "Tamaño de tarjeta",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "Nombre",
|
"name": "Nombre",
|
||||||
"bookCount": "Cantidad de libros",
|
"bookCount": "Cantidad de libros",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Guardar",
|
"save": "Guardar",
|
||||||
"collapseSeries": "Contraer series",
|
"collapseSeries": "Contraer series",
|
||||||
"gridColumns": "Columnas de cuadrícula",
|
"gridColumns": "Columnas de cuadrícula",
|
||||||
"gridItemSize": "Tamaño de elemento",
|
|
||||||
"bookTypeOverlay": "Indicador de formato de archivo",
|
"bookTypeOverlay": "Indicador de formato de archivo",
|
||||||
"noBooks": "¡Esta colección no tiene libros!",
|
"noBooks": "¡Esta colección no tiene libros!",
|
||||||
"failedLibrary": "¡Error al cargar los libros de la biblioteca!",
|
"failedLibrary": "¡Error al cargar los libros de la biblioteca!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Limpiar filtros aplicados",
|
"clearFilters": "Limpiar filtros aplicados",
|
||||||
"visibleColumns": "Columnas visibles",
|
"visibleColumns": "Columnas visibles",
|
||||||
"displaySettings": "Ajustes de visualización",
|
|
||||||
"selectSorting": "Seleccionar ordenamiento",
|
"selectSorting": "Seleccionar ordenamiento",
|
||||||
"toggleView": "Alternar entre vista de cuadrícula y tabla",
|
"toggleView": "Alternar entre vista de cuadrícula y tabla",
|
||||||
"search": "Buscar",
|
"search": "Buscar",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Descartar",
|
"discard": "Descartar",
|
||||||
"review": "Revisar",
|
"review": "Revisar",
|
||||||
"libraryPathInaccessible": "Ruta de biblioteca inaccesible",
|
"libraryPathInaccessible": "Ruta de biblioteca inaccesible",
|
||||||
|
"displaySettings": "Ajustes de visualización",
|
||||||
|
"cardSize": "Tamaño de tarjeta",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "libros leídos",
|
"booksRead": "libros leídos",
|
||||||
"noSeriesFound": "Ninguna serie coincide con tu búsqueda o filtros.",
|
"noSeriesFound": "Ninguna serie coincide con tu búsqueda o filtros.",
|
||||||
"noSeriesInCategory": "No se encontraron series en esta categoría.",
|
"noSeriesInCategory": "No se encontraron series en esta categoría.",
|
||||||
"cardSize": "Tamaño de tarjeta",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Todas",
|
"all": "Todas",
|
||||||
"notStarted": "Sin empezar",
|
"notStarted": "Sin empezar",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Enregistrer",
|
"save": "Enregistrer",
|
||||||
"collapseSeries": "Regrouper les séries",
|
"collapseSeries": "Regrouper les séries",
|
||||||
"gridColumns": "Colonnes de la grille",
|
"gridColumns": "Colonnes de la grille",
|
||||||
"gridItemSize": "Taille des éléments",
|
|
||||||
"bookTypeOverlay": "Superposition du type de livre",
|
"bookTypeOverlay": "Superposition du type de livre",
|
||||||
"noBooks": "Cette collection ne contient aucun livre !",
|
"noBooks": "Cette collection ne contient aucun livre !",
|
||||||
"failedLibrary": "Échec du chargement des livres de la bibliothèque !",
|
"failedLibrary": "Échec du chargement des livres de la bibliothèque !",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Effacer les filtres appliqués",
|
"clearFilters": "Effacer les filtres appliqués",
|
||||||
"visibleColumns": "Colonnes visibles",
|
"visibleColumns": "Colonnes visibles",
|
||||||
"displaySettings": "Paramètres d'affichage",
|
|
||||||
"selectSorting": "Sélectionner le tri",
|
"selectSorting": "Sélectionner le tri",
|
||||||
"toggleView": "Basculer entre vue grille et tableau",
|
"toggleView": "Basculer entre vue grille et tableau",
|
||||||
"search": "Rechercher",
|
"search": "Rechercher",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Abandonner",
|
"discard": "Abandonner",
|
||||||
"review": "Vérifier",
|
"review": "Vérifier",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "Paramètres d'affichage",
|
||||||
|
"cardSize": "Taille des cartes",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "livres lus",
|
"booksRead": "livres lus",
|
||||||
"noSeriesFound": "Aucune série ne correspond à votre recherche ou vos filtres.",
|
"noSeriesFound": "Aucune série ne correspond à votre recherche ou vos filtres.",
|
||||||
"noSeriesInCategory": "Aucune série trouvée dans cette catégorie.",
|
"noSeriesInCategory": "Aucune série trouvée dans cette catégorie.",
|
||||||
"cardSize": "Taille des cartes",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Tout",
|
"all": "Tout",
|
||||||
"notStarted": "Non commencées",
|
"notStarted": "Non commencées",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Spremi",
|
"save": "Spremi",
|
||||||
"collapseSeries": "Skupi serijale",
|
"collapseSeries": "Skupi serijale",
|
||||||
"gridColumns": "Stupci mreže",
|
"gridColumns": "Stupci mreže",
|
||||||
"gridItemSize": "Veličina stavke mreže",
|
|
||||||
"bookTypeOverlay": "Prekrivanje formata datoteke",
|
"bookTypeOverlay": "Prekrivanje formata datoteke",
|
||||||
"noBooks": "Ova kolekcija nema knjiga!",
|
"noBooks": "Ova kolekcija nema knjiga!",
|
||||||
"failedLibrary": "Učitavanje knjiga zbirke nije uspjelo!",
|
"failedLibrary": "Učitavanje knjiga zbirke nije uspjelo!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Očisti primijenjene filtere",
|
"clearFilters": "Očisti primijenjene filtere",
|
||||||
"visibleColumns": "Vidljivi stupci",
|
"visibleColumns": "Vidljivi stupci",
|
||||||
"displaySettings": "Postavke prikaza",
|
|
||||||
"selectSorting": "Odaberi sortiranje",
|
"selectSorting": "Odaberi sortiranje",
|
||||||
"toggleView": "Prebaci između prikaza mreže i tablice",
|
"toggleView": "Prebaci između prikaza mreže i tablice",
|
||||||
"search": "Pretraži",
|
"search": "Pretraži",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Odbaci",
|
"discard": "Odbaci",
|
||||||
"review": "Pregledaj",
|
"review": "Pregledaj",
|
||||||
"libraryPathInaccessible": "Put do zbirke nije dostupan",
|
"libraryPathInaccessible": "Put do zbirke nije dostupan",
|
||||||
|
"displaySettings": "Postavke prikaza",
|
||||||
|
"cardSize": "Veličina kartice",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "pročitanih knjiga",
|
"booksRead": "pročitanih knjiga",
|
||||||
"noSeriesFound": "Nijedan serijal ne odgovara vašoj pretrazi ili filterima.",
|
"noSeriesFound": "Nijedan serijal ne odgovara vašoj pretrazi ili filterima.",
|
||||||
"noSeriesInCategory": "Nema pronađenih serijala u ovoj kategoriji.",
|
"noSeriesInCategory": "Nema pronađenih serijala u ovoj kategoriji.",
|
||||||
"cardSize": "Veličina kartice",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Svi",
|
"all": "Svi",
|
||||||
"notStarted": "Nezapočeto",
|
"notStarted": "Nezapočeto",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "",
|
"browseAllAuthors": "",
|
||||||
"searchPlaceholder": "",
|
"searchPlaceholder": "",
|
||||||
"noAuthorsFound": "",
|
"noAuthorsFound": "",
|
||||||
"cardSize": "",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"bookCount": "",
|
"bookCount": "",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Mentés",
|
"save": "Mentés",
|
||||||
"collapseSeries": "Sorozatok összevonása",
|
"collapseSeries": "Sorozatok összevonása",
|
||||||
"gridColumns": "Rácsnézet oszlopai",
|
"gridColumns": "Rácsnézet oszlopai",
|
||||||
"gridItemSize": "Rácsnézet elem mérete",
|
|
||||||
"bookTypeOverlay": "Fájlformátum overlay",
|
"bookTypeOverlay": "Fájlformátum overlay",
|
||||||
"noBooks": "Ebben a gyűjteményben nem találhatóak könyvek!",
|
"noBooks": "Ebben a gyűjteményben nem találhatóak könyvek!",
|
||||||
"failedLibrary": "Nem sikerült betölteni a könyvtárban lévő könyveket!",
|
"failedLibrary": "Nem sikerült betölteni a könyvtárban lévő könyveket!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Szűrők eltávolítása",
|
"clearFilters": "Szűrők eltávolítása",
|
||||||
"visibleColumns": "Látható oszlopok",
|
"visibleColumns": "Látható oszlopok",
|
||||||
"displaySettings": "Megjelenítés beállításai",
|
|
||||||
"selectSorting": "Rendezés kiválasztása",
|
"selectSorting": "Rendezés kiválasztása",
|
||||||
"toggleView": "Válts Rácsos és Táblázatos megjelenítés között",
|
"toggleView": "Válts Rácsos és Táblázatos megjelenítés között",
|
||||||
"search": "Keresés",
|
"search": "Keresés",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Elvetés",
|
"discard": "Elvetés",
|
||||||
"review": "Felülvizsgálat",
|
"review": "Felülvizsgálat",
|
||||||
"libraryPathInaccessible": "Könyvtár elérési útvonal elérhetetlen",
|
"libraryPathInaccessible": "Könyvtár elérési útvonal elérhetetlen",
|
||||||
|
"displaySettings": "Megjelenítés beállításai",
|
||||||
|
"cardSize": "",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "",
|
"booksRead": "",
|
||||||
"noSeriesFound": "",
|
"noSeriesFound": "",
|
||||||
"noSeriesInCategory": "",
|
"noSeriesInCategory": "",
|
||||||
"cardSize": "",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "",
|
"all": "",
|
||||||
"notStarted": "",
|
"notStarted": "",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "",
|
"browseAllAuthors": "",
|
||||||
"searchPlaceholder": "",
|
"searchPlaceholder": "",
|
||||||
"noAuthorsFound": "",
|
"noAuthorsFound": "",
|
||||||
"cardSize": "",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"bookCount": "",
|
"bookCount": "",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Simpan",
|
"save": "Simpan",
|
||||||
"collapseSeries": "",
|
"collapseSeries": "",
|
||||||
"gridColumns": "",
|
"gridColumns": "",
|
||||||
"gridItemSize": "",
|
|
||||||
"bookTypeOverlay": "",
|
"bookTypeOverlay": "",
|
||||||
"noBooks": "Tidak ada buku di koleksi ini!",
|
"noBooks": "Tidak ada buku di koleksi ini!",
|
||||||
"failedLibrary": "Gagal memuat buku perpustakaan!",
|
"failedLibrary": "Gagal memuat buku perpustakaan!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Bersikan saringan yang diterapkan",
|
"clearFilters": "Bersikan saringan yang diterapkan",
|
||||||
"visibleColumns": "",
|
"visibleColumns": "",
|
||||||
"displaySettings": "Pengaturan tampilan",
|
|
||||||
"selectSorting": "Pilih pengurutan",
|
"selectSorting": "Pilih pengurutan",
|
||||||
"toggleView": "",
|
"toggleView": "",
|
||||||
"search": "Cari",
|
"search": "Cari",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Buang",
|
"discard": "Buang",
|
||||||
"review": "Tinjau",
|
"review": "Tinjau",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "Pengaturan tampilan",
|
||||||
|
"cardSize": "",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "",
|
"booksRead": "",
|
||||||
"noSeriesFound": "",
|
"noSeriesFound": "",
|
||||||
"noSeriesInCategory": "",
|
"noSeriesInCategory": "",
|
||||||
"cardSize": "",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "",
|
"all": "",
|
||||||
"notStarted": "",
|
"notStarted": "",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Salva",
|
"save": "Salva",
|
||||||
"collapseSeries": "Comprimi serie",
|
"collapseSeries": "Comprimi serie",
|
||||||
"gridColumns": "Colonne griglia",
|
"gridColumns": "Colonne griglia",
|
||||||
"gridItemSize": "Dimensione elemento griglia",
|
|
||||||
"bookTypeOverlay": "Overlay tipo libro",
|
"bookTypeOverlay": "Overlay tipo libro",
|
||||||
"noBooks": "Questa collezione non ha libri!",
|
"noBooks": "Questa collezione non ha libri!",
|
||||||
"failedLibrary": "Impossibile caricare i libri della libreria!",
|
"failedLibrary": "Impossibile caricare i libri della libreria!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Cancella filtri applicati",
|
"clearFilters": "Cancella filtri applicati",
|
||||||
"visibleColumns": "Colonne visibili",
|
"visibleColumns": "Colonne visibili",
|
||||||
"displaySettings": "Impostazioni visualizzazione",
|
|
||||||
"selectSorting": "Seleziona ordinamento",
|
"selectSorting": "Seleziona ordinamento",
|
||||||
"toggleView": "Alterna tra vista a griglia e tabella",
|
"toggleView": "Alterna tra vista a griglia e tabella",
|
||||||
"search": "Cerca",
|
"search": "Cerca",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Scarta",
|
"discard": "Scarta",
|
||||||
"review": "Rivedi",
|
"review": "Rivedi",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "Impostazioni visualizzazione",
|
||||||
|
"cardSize": "Dimensione scheda",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "libri letti",
|
"booksRead": "libri letti",
|
||||||
"noSeriesFound": "Nessuna serie corrisponde alla tua ricerca o ai filtri.",
|
"noSeriesFound": "Nessuna serie corrisponde alla tua ricerca o ai filtri.",
|
||||||
"noSeriesInCategory": "Nessuna serie trovata in questa categoria.",
|
"noSeriesInCategory": "Nessuna serie trovata in questa categoria.",
|
||||||
"cardSize": "Dimensione scheda",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Tutte",
|
"all": "Tutte",
|
||||||
"notStarted": "Non iniziate",
|
"notStarted": "Non iniziate",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "保存",
|
"save": "保存",
|
||||||
"collapseSeries": "シリーズを折りたたむ",
|
"collapseSeries": "シリーズを折りたたむ",
|
||||||
"gridColumns": "グリッド列数",
|
"gridColumns": "グリッド列数",
|
||||||
"gridItemSize": "グリッドアイテムサイズ",
|
|
||||||
"bookTypeOverlay": "本の種類オーバーレイ",
|
"bookTypeOverlay": "本の種類オーバーレイ",
|
||||||
"noBooks": "このコレクションには本がありません!",
|
"noBooks": "このコレクションには本がありません!",
|
||||||
"failedLibrary": "ライブラリの本の読み込みに失敗しました!",
|
"failedLibrary": "ライブラリの本の読み込みに失敗しました!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "適用されたフィルターをクリア",
|
"clearFilters": "適用されたフィルターをクリア",
|
||||||
"visibleColumns": "表示列",
|
"visibleColumns": "表示列",
|
||||||
"displaySettings": "表示設定",
|
|
||||||
"selectSorting": "ソートを選択",
|
"selectSorting": "ソートを選択",
|
||||||
"toggleView": "グリッドとテーブル表示を切替",
|
"toggleView": "グリッドとテーブル表示を切替",
|
||||||
"search": "検索",
|
"search": "検索",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "破棄",
|
"discard": "破棄",
|
||||||
"review": "確認",
|
"review": "確認",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "表示設定",
|
||||||
|
"cardSize": "カードサイズ",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "冊読了",
|
"booksRead": "冊読了",
|
||||||
"noSeriesFound": "検索やフィルターに一致するシリーズがありません。",
|
"noSeriesFound": "検索やフィルターに一致するシリーズがありません。",
|
||||||
"noSeriesInCategory": "このカテゴリにシリーズが見つかりません。",
|
"noSeriesInCategory": "このカテゴリにシリーズが見つかりません。",
|
||||||
"cardSize": "カードサイズ",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "すべて",
|
"all": "すべて",
|
||||||
"notStarted": "未開始",
|
"notStarted": "未開始",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "",
|
"browseAllAuthors": "",
|
||||||
"searchPlaceholder": "",
|
"searchPlaceholder": "",
|
||||||
"noAuthorsFound": "",
|
"noAuthorsFound": "",
|
||||||
"cardSize": "",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"bookCount": "",
|
"bookCount": "",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "",
|
"save": "",
|
||||||
"collapseSeries": "",
|
"collapseSeries": "",
|
||||||
"gridColumns": "",
|
"gridColumns": "",
|
||||||
"gridItemSize": "",
|
|
||||||
"bookTypeOverlay": "",
|
"bookTypeOverlay": "",
|
||||||
"noBooks": "",
|
"noBooks": "",
|
||||||
"failedLibrary": "",
|
"failedLibrary": "",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Toegepaste filters wissen",
|
"clearFilters": "Toegepaste filters wissen",
|
||||||
"visibleColumns": "Zichtbare kolommen",
|
"visibleColumns": "Zichtbare kolommen",
|
||||||
"displaySettings": "Weergave-instellingen",
|
|
||||||
"selectSorting": "Selecteer sortering",
|
"selectSorting": "Selecteer sortering",
|
||||||
"toggleView": "Schakel tussen raster- en tabelweergave",
|
"toggleView": "Schakel tussen raster- en tabelweergave",
|
||||||
"search": "Zoeken",
|
"search": "Zoeken",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Verwerpen",
|
"discard": "Verwerpen",
|
||||||
"review": "Beoordelen",
|
"review": "Beoordelen",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "Weergave-instellingen",
|
||||||
|
"cardSize": "",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "",
|
"booksRead": "",
|
||||||
"noSeriesFound": "",
|
"noSeriesFound": "",
|
||||||
"noSeriesInCategory": "",
|
"noSeriesInCategory": "",
|
||||||
"cardSize": "",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "",
|
"all": "",
|
||||||
"notStarted": "",
|
"notStarted": "",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Zapisz",
|
"save": "Zapisz",
|
||||||
"collapseSeries": "Zwiń serie",
|
"collapseSeries": "Zwiń serie",
|
||||||
"gridColumns": "Kolumny siatki",
|
"gridColumns": "Kolumny siatki",
|
||||||
"gridItemSize": "Rozmiar elementu siatki",
|
|
||||||
"bookTypeOverlay": "Nakładka typu książki",
|
"bookTypeOverlay": "Nakładka typu książki",
|
||||||
"noBooks": "Ta kolekcja nie zawiera książek!",
|
"noBooks": "Ta kolekcja nie zawiera książek!",
|
||||||
"failedLibrary": "Nie udało się załadować książek biblioteki!",
|
"failedLibrary": "Nie udało się załadować książek biblioteki!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Wyczyść zastosowane filtry",
|
"clearFilters": "Wyczyść zastosowane filtry",
|
||||||
"visibleColumns": "Widoczne kolumny",
|
"visibleColumns": "Widoczne kolumny",
|
||||||
"displaySettings": "Ustawienia wyświetlania",
|
|
||||||
"selectSorting": "Wybierz sortowanie",
|
"selectSorting": "Wybierz sortowanie",
|
||||||
"toggleView": "Przełącz między widokiem siatki i tabeli",
|
"toggleView": "Przełącz między widokiem siatki i tabeli",
|
||||||
"search": "Szukaj",
|
"search": "Szukaj",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Odrzuć",
|
"discard": "Odrzuć",
|
||||||
"review": "Przegląd",
|
"review": "Przegląd",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "Ustawienia wyświetlania",
|
||||||
|
"cardSize": "Rozmiar karty",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "przeczytanych książek",
|
"booksRead": "przeczytanych książek",
|
||||||
"noSeriesFound": "Żadne serie nie pasują do wyszukiwania lub filtrów.",
|
"noSeriesFound": "Żadne serie nie pasują do wyszukiwania lub filtrów.",
|
||||||
"noSeriesInCategory": "Nie znaleziono serii w tej kategorii.",
|
"noSeriesInCategory": "Nie znaleziono serii w tej kategorii.",
|
||||||
"cardSize": "Rozmiar karty",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Wszystkie",
|
"all": "Wszystkie",
|
||||||
"notStarted": "Nierozpoczęte",
|
"notStarted": "Nierozpoczęte",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Salvar",
|
"save": "Salvar",
|
||||||
"collapseSeries": "Recolher séries",
|
"collapseSeries": "Recolher séries",
|
||||||
"gridColumns": "Colunas da grade",
|
"gridColumns": "Colunas da grade",
|
||||||
"gridItemSize": "Tamanho do item da grade",
|
|
||||||
"bookTypeOverlay": "Sobreposição de tipo de livro",
|
"bookTypeOverlay": "Sobreposição de tipo de livro",
|
||||||
"noBooks": "Esta coleção não possui livros!",
|
"noBooks": "Esta coleção não possui livros!",
|
||||||
"failedLibrary": "Falha ao carregar os livros da biblioteca!",
|
"failedLibrary": "Falha ao carregar os livros da biblioteca!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Limpar filtros aplicados",
|
"clearFilters": "Limpar filtros aplicados",
|
||||||
"visibleColumns": "Colunas visíveis",
|
"visibleColumns": "Colunas visíveis",
|
||||||
"displaySettings": "Configurações de exibição",
|
|
||||||
"selectSorting": "Selecionar ordenação",
|
"selectSorting": "Selecionar ordenação",
|
||||||
"toggleView": "Alternar entre visualização em Grade e Tabela",
|
"toggleView": "Alternar entre visualização em Grade e Tabela",
|
||||||
"search": "Pesquisar",
|
"search": "Pesquisar",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Descartar",
|
"discard": "Descartar",
|
||||||
"review": "Revisar",
|
"review": "Revisar",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "Configurações de exibição",
|
||||||
|
"cardSize": "Tamanho do Cartão",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "livros lidos",
|
"booksRead": "livros lidos",
|
||||||
"noSeriesFound": "Nenhuma série corresponde à sua pesquisa ou filtros.",
|
"noSeriesFound": "Nenhuma série corresponde à sua pesquisa ou filtros.",
|
||||||
"noSeriesInCategory": "Nenhuma série encontrada nesta categoria.",
|
"noSeriesInCategory": "Nenhuma série encontrada nesta categoria.",
|
||||||
"cardSize": "Tamanho do Cartão",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Todas",
|
"all": "Todas",
|
||||||
"notStarted": "Não Iniciadas",
|
"notStarted": "Não Iniciadas",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Сохранить",
|
"save": "Сохранить",
|
||||||
"collapseSeries": "Свернуть серии",
|
"collapseSeries": "Свернуть серии",
|
||||||
"gridColumns": "Столбцы сетки",
|
"gridColumns": "Столбцы сетки",
|
||||||
"gridItemSize": "Размер элемента сетки",
|
|
||||||
"bookTypeOverlay": "Наложение типа книги",
|
"bookTypeOverlay": "Наложение типа книги",
|
||||||
"noBooks": "В этой коллекции нет книг!",
|
"noBooks": "В этой коллекции нет книг!",
|
||||||
"failedLibrary": "Не удалось загрузить книги библиотеки!",
|
"failedLibrary": "Не удалось загрузить книги библиотеки!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Очистить применённые фильтры",
|
"clearFilters": "Очистить применённые фильтры",
|
||||||
"visibleColumns": "Видимые столбцы",
|
"visibleColumns": "Видимые столбцы",
|
||||||
"displaySettings": "Настройки отображения",
|
|
||||||
"selectSorting": "Выбрать сортировку",
|
"selectSorting": "Выбрать сортировку",
|
||||||
"toggleView": "Переключить между видом сетки и таблицы",
|
"toggleView": "Переключить между видом сетки и таблицы",
|
||||||
"search": "Поиск",
|
"search": "Поиск",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Отменить изменения",
|
"discard": "Отменить изменения",
|
||||||
"review": "Просмотреть",
|
"review": "Просмотреть",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "Настройки отображения",
|
||||||
|
"cardSize": "Размер карточки",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "книг прочитано",
|
"booksRead": "книг прочитано",
|
||||||
"noSeriesFound": "Серии не найдены по вашему запросу или фильтрам.",
|
"noSeriesFound": "Серии не найдены по вашему запросу или фильтрам.",
|
||||||
"noSeriesInCategory": "Серии не найдены в этой категории.",
|
"noSeriesInCategory": "Серии не найдены в этой категории.",
|
||||||
"cardSize": "Размер карточки",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Все",
|
"all": "Все",
|
||||||
"notStarted": "Не начато",
|
"notStarted": "Не начато",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "Prehliadať všetkých autorov",
|
"browseAllAuthors": "Prehliadať všetkých autorov",
|
||||||
"searchPlaceholder": "",
|
"searchPlaceholder": "",
|
||||||
"noAuthorsFound": "",
|
"noAuthorsFound": "",
|
||||||
"cardSize": "",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"bookCount": "",
|
"bookCount": "",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "",
|
"save": "",
|
||||||
"collapseSeries": "",
|
"collapseSeries": "",
|
||||||
"gridColumns": "",
|
"gridColumns": "",
|
||||||
"gridItemSize": "",
|
|
||||||
"bookTypeOverlay": "",
|
"bookTypeOverlay": "",
|
||||||
"noBooks": "",
|
"noBooks": "",
|
||||||
"failedLibrary": "",
|
"failedLibrary": "",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "",
|
"clearFilters": "",
|
||||||
"visibleColumns": "",
|
"visibleColumns": "",
|
||||||
"displaySettings": "",
|
|
||||||
"selectSorting": "",
|
"selectSorting": "",
|
||||||
"toggleView": "",
|
"toggleView": "",
|
||||||
"search": "",
|
"search": "",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "",
|
"discard": "",
|
||||||
"review": "",
|
"review": "",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "",
|
||||||
|
"cardSize": "",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "",
|
"booksRead": "",
|
||||||
"noSeriesFound": "",
|
"noSeriesFound": "",
|
||||||
"noSeriesInCategory": "",
|
"noSeriesInCategory": "",
|
||||||
"cardSize": "",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "",
|
"all": "",
|
||||||
"notStarted": "",
|
"notStarted": "",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "Brskaj po vseh avtorjih",
|
"browseAllAuthors": "Brskaj po vseh avtorjih",
|
||||||
"searchPlaceholder": "Iskanje po imenu avtorja...",
|
"searchPlaceholder": "Iskanje po imenu avtorja...",
|
||||||
"noAuthorsFound": "Noben avtor ne ustreza vašemu iskanju.",
|
"noAuthorsFound": "Noben avtor ne ustreza vašemu iskanju.",
|
||||||
"cardSize": "Velikost kartice",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "Naziv",
|
"name": "Naziv",
|
||||||
"bookCount": "Število knjig",
|
"bookCount": "Število knjig",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Shrani",
|
"save": "Shrani",
|
||||||
"collapseSeries": "Strni zbirke",
|
"collapseSeries": "Strni zbirke",
|
||||||
"gridColumns": "Stolpci mreže",
|
"gridColumns": "Stolpci mreže",
|
||||||
"gridItemSize": "Velikost elementov",
|
|
||||||
"bookTypeOverlay": "Oznaka formata knjige",
|
"bookTypeOverlay": "Oznaka formata knjige",
|
||||||
"noBooks": "Ta zbirka nima knjig!",
|
"noBooks": "Ta zbirka nima knjig!",
|
||||||
"failedLibrary": "Napaka pri nalaganju knjig iz knjižnice!",
|
"failedLibrary": "Napaka pri nalaganju knjig iz knjižnice!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Počisti uporabljene filtre",
|
"clearFilters": "Počisti uporabljene filtre",
|
||||||
"visibleColumns": "Vidni stolpci",
|
"visibleColumns": "Vidni stolpci",
|
||||||
"displaySettings": "Nastavitve prikaza",
|
|
||||||
"selectSorting": "Izberi razvrščanje",
|
"selectSorting": "Izberi razvrščanje",
|
||||||
"toggleView": "Preklopi med mrežnim in tabelarnim prikazom",
|
"toggleView": "Preklopi med mrežnim in tabelarnim prikazom",
|
||||||
"search": "Išči",
|
"search": "Išči",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Zavrzi",
|
"discard": "Zavrzi",
|
||||||
"review": "Preglej",
|
"review": "Preglej",
|
||||||
"libraryPathInaccessible": "Pot do knjižnice ni dostopna",
|
"libraryPathInaccessible": "Pot do knjižnice ni dostopna",
|
||||||
|
"displaySettings": "Nastavitve prikaza",
|
||||||
|
"cardSize": "Velikost kartice",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "prebranih knjig",
|
"booksRead": "prebranih knjig",
|
||||||
"noSeriesFound": "Nobena zbirka ne ustreza tvojemu iskanju ali filtrom.",
|
"noSeriesFound": "Nobena zbirka ne ustreza tvojemu iskanju ali filtrom.",
|
||||||
"noSeriesInCategory": "V tej kategoriji ni najdenih zbirk.",
|
"noSeriesInCategory": "V tej kategoriji ni najdenih zbirk.",
|
||||||
"cardSize": "Velikost kartice",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Vse",
|
"all": "Vse",
|
||||||
"notStarted": "Še nezačeto",
|
"notStarted": "Še nezačeto",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Spara",
|
"save": "Spara",
|
||||||
"collapseSeries": "Kollapsa serier",
|
"collapseSeries": "Kollapsa serier",
|
||||||
"gridColumns": "Rutnätskolumner",
|
"gridColumns": "Rutnätskolumner",
|
||||||
"gridItemSize": "Rutnätsstorlek",
|
|
||||||
"bookTypeOverlay": "Filformats-overlay",
|
"bookTypeOverlay": "Filformats-overlay",
|
||||||
"noBooks": "Denna samling har inga böcker!",
|
"noBooks": "Denna samling har inga böcker!",
|
||||||
"failedLibrary": "Kunde inte ladda bibliotekets böcker!",
|
"failedLibrary": "Kunde inte ladda bibliotekets böcker!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Rensa tillämpade filter",
|
"clearFilters": "Rensa tillämpade filter",
|
||||||
"visibleColumns": "Synliga kolumner",
|
"visibleColumns": "Synliga kolumner",
|
||||||
"displaySettings": "Visningsinställningar",
|
|
||||||
"selectSorting": "Välj sortering",
|
"selectSorting": "Välj sortering",
|
||||||
"toggleView": "Växla mellan rutnäts- och tabellvy",
|
"toggleView": "Växla mellan rutnäts- och tabellvy",
|
||||||
"search": "Sök",
|
"search": "Sök",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Förkasta",
|
"discard": "Förkasta",
|
||||||
"review": "Granska",
|
"review": "Granska",
|
||||||
"libraryPathInaccessible": "Bibliotekssökvägen är otillgänglig",
|
"libraryPathInaccessible": "Bibliotekssökvägen är otillgänglig",
|
||||||
|
"displaySettings": "Visningsinställningar",
|
||||||
|
"cardSize": "Kortstorlek",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "böcker lästa",
|
"booksRead": "böcker lästa",
|
||||||
"noSeriesFound": "Inga serier matchar din sökning eller dina filter.",
|
"noSeriesFound": "Inga serier matchar din sökning eller dina filter.",
|
||||||
"noSeriesInCategory": "Inga serier hittades i denna kategori.",
|
"noSeriesInCategory": "Inga serier hittades i denna kategori.",
|
||||||
"cardSize": "Kortstorlek",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Alla",
|
"all": "Alla",
|
||||||
"notStarted": "Ej påbörjad",
|
"notStarted": "Ej påbörjad",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"browseAllAuthors": "Переглянути всіх авторів",
|
"browseAllAuthors": "Переглянути всіх авторів",
|
||||||
"searchPlaceholder": "Пошук за іменем автора...",
|
"searchPlaceholder": "Пошук за іменем автора...",
|
||||||
"noAuthorsFound": "Авторів за вашим запитом не знайдено.",
|
"noAuthorsFound": "Авторів за вашим запитом не знайдено.",
|
||||||
"cardSize": "Розмір картки",
|
|
||||||
"sort": {
|
"sort": {
|
||||||
"name": "Ім'я",
|
"name": "Ім'я",
|
||||||
"bookCount": "Кількість книг",
|
"bookCount": "Кількість книг",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "Зберегти",
|
"save": "Зберегти",
|
||||||
"collapseSeries": "Згорнути серії",
|
"collapseSeries": "Згорнути серії",
|
||||||
"gridColumns": "Стовпці сітки",
|
"gridColumns": "Стовпці сітки",
|
||||||
"gridItemSize": "Розмір елементів сітки",
|
|
||||||
"bookTypeOverlay": "Накладення типу книги",
|
"bookTypeOverlay": "Накладення типу книги",
|
||||||
"noBooks": "У цій колекції немає книг!",
|
"noBooks": "У цій колекції немає книг!",
|
||||||
"failedLibrary": "Не вдалося завантажити книги з бібліотеки!",
|
"failedLibrary": "Не вдалося завантажити книги з бібліотеки!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "Очистити застосовані фільтри",
|
"clearFilters": "Очистити застосовані фільтри",
|
||||||
"visibleColumns": "Видимі стовпці",
|
"visibleColumns": "Видимі стовпці",
|
||||||
"displaySettings": "Налаштування відображення",
|
|
||||||
"selectSorting": "Вибрати сортування",
|
"selectSorting": "Вибрати сортування",
|
||||||
"toggleView": "Переключити вигляд (сітка/таблиця)",
|
"toggleView": "Переключити вигляд (сітка/таблиця)",
|
||||||
"search": "Пошук",
|
"search": "Пошук",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "Відкинути",
|
"discard": "Відкинути",
|
||||||
"review": "Перевірити",
|
"review": "Перевірити",
|
||||||
"libraryPathInaccessible": "Шлях до бібліотеки недоступний",
|
"libraryPathInaccessible": "Шлях до бібліотеки недоступний",
|
||||||
|
"displaySettings": "Налаштування відображення",
|
||||||
|
"cardSize": "Розмір картки",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "книг прочитано",
|
"booksRead": "книг прочитано",
|
||||||
"noSeriesFound": "Немає серій, що відповідають вашому пошуку або фільтрам.",
|
"noSeriesFound": "Немає серій, що відповідають вашому пошуку або фільтрам.",
|
||||||
"noSeriesInCategory": "У цій категорії серій не знайдено.",
|
"noSeriesInCategory": "У цій категорії серій не знайдено.",
|
||||||
"cardSize": "Розмір картки",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "Усі",
|
"all": "Усі",
|
||||||
"notStarted": "Не розпочато",
|
"notStarted": "Не розпочато",
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
"save": "保存",
|
"save": "保存",
|
||||||
"collapseSeries": "折叠系列",
|
"collapseSeries": "折叠系列",
|
||||||
"gridColumns": "网格列数",
|
"gridColumns": "网格列数",
|
||||||
"gridItemSize": "网格项大小",
|
|
||||||
"bookTypeOverlay": "图书类型标识",
|
"bookTypeOverlay": "图书类型标识",
|
||||||
"noBooks": "此集合没有图书!",
|
"noBooks": "此集合没有图书!",
|
||||||
"failedLibrary": "加载书库图书失败!",
|
"failedLibrary": "加载书库图书失败!",
|
||||||
@@ -54,7 +53,6 @@
|
|||||||
"tooltip": {
|
"tooltip": {
|
||||||
"clearFilters": "清除已应用的筛选条件",
|
"clearFilters": "清除已应用的筛选条件",
|
||||||
"visibleColumns": "可见列",
|
"visibleColumns": "可见列",
|
||||||
"displaySettings": "显示设置",
|
|
||||||
"selectSorting": "选择排序",
|
"selectSorting": "选择排序",
|
||||||
"toggleView": "在网格视图和表格视图之间切换",
|
"toggleView": "在网格视图和表格视图之间切换",
|
||||||
"search": "搜索",
|
"search": "搜索",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
"discard": "丢弃",
|
"discard": "丢弃",
|
||||||
"review": "审查",
|
"review": "审查",
|
||||||
"libraryPathInaccessible": "",
|
"libraryPathInaccessible": "",
|
||||||
|
"displaySettings": "显示设置",
|
||||||
|
"cardSize": "卡片大小",
|
||||||
"decreaseCardSize": "",
|
"decreaseCardSize": "",
|
||||||
"increaseCardSize": "",
|
"increaseCardSize": "",
|
||||||
"cardSizeControls": "",
|
"cardSizeControls": "",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"booksRead": "已读书籍",
|
"booksRead": "已读书籍",
|
||||||
"noSeriesFound": "没有与搜索或筛选条件匹配的系列。",
|
"noSeriesFound": "没有与搜索或筛选条件匹配的系列。",
|
||||||
"noSeriesInCategory": "此分类中未找到系列。",
|
"noSeriesInCategory": "此分类中未找到系列。",
|
||||||
"cardSize": "卡片大小",
|
|
||||||
"filters": {
|
"filters": {
|
||||||
"all": "全部",
|
"all": "全部",
|
||||||
"notStarted": "未开始",
|
"notStarted": "未开始",
|
||||||
|
|||||||
Reference in New Issue
Block a user