Refactor BooksBrowserComponent

This commit is contained in:
aditya.chandel
2024-12-25 22:01:23 -07:00
parent 383a3189bb
commit 7345f3f0ee
9 changed files with 186 additions and 170 deletions
@@ -1,8 +1,8 @@
import {Sort} from './sort.model';
import {SortOption} from './sort.model';
export interface Library {
id?: number;
name: string;
sort?: Sort;
sort?: SortOption;
paths: string[];
}
@@ -1,7 +1,7 @@
import {Sort} from './sort.model';
import {SortOption} from './sort.model';
export interface Shelf {
id?: number;
name: string;
sort?: Sort;
sort?: SortOption;
}
@@ -1,5 +0,0 @@
export interface SortOption {
label: string;
field: string;
direction: string;
}
+8 -2
View File
@@ -1,4 +1,10 @@
export interface Sort {
export enum SortDirection {
ASCENDING = 'ASCENDING',
DESCENDING = 'DESCENDING'
}
export interface SortOption {
label: string;
field: string;
direction: string;
direction: SortDirection;
}