WIP: Improve sorting

This commit is contained in:
aditya.chandel
2024-12-25 17:01:07 -07:00
parent 2734c9bd4a
commit affdcb95c6
18 changed files with 107 additions and 38 deletions
+2 -4
View File
@@ -1,3 +1,5 @@
import {Shelf} from './shelf.model';
export interface Book {
id: number;
libraryId: number;
@@ -32,10 +34,6 @@ export interface Category {
name: string;
}
export interface Shelf {
id?: number;
name: string;
}
export interface BookWithNeighborsDTO {
currentBook: Book;
@@ -1,5 +1,8 @@
import {Sort} from './sort.model';
export interface Library {
id?: number;
name: string;
sort?: Sort;
paths: string[];
}
@@ -0,0 +1,7 @@
import {Sort} from './sort.model';
export interface Shelf {
id?: number;
name: string;
sort?: Sort;
}
@@ -1,4 +1,5 @@
export interface SortOption {
label: string;
value: string;
field: string;
direction: string;
}
@@ -0,0 +1,4 @@
export interface Sort {
name: string;
direction: string;
}