WIP: Improve sorting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user