feat(ui): New sidebar & search UI (#831)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
import { IconSelection } from '../../shared/service/icon-picker.service';
|
||||
|
||||
export type PaletteItemKind =
|
||||
| 'action'
|
||||
| 'page'
|
||||
| 'book'
|
||||
| 'author'
|
||||
| 'series'
|
||||
| 'shelf'
|
||||
| 'magicShelf'
|
||||
| 'library';
|
||||
|
||||
export interface PaletteBookMeta {
|
||||
thumbnailUrl: string | null;
|
||||
authors: string[];
|
||||
seriesName: string | null;
|
||||
seriesNumber: number | null;
|
||||
year: string | null;
|
||||
}
|
||||
|
||||
export interface PaletteItem {
|
||||
id: string;
|
||||
kind: PaletteItemKind;
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
icon?: IconSelection;
|
||||
searchText: string;
|
||||
route?: unknown[];
|
||||
queryParams?: Record<string, string>;
|
||||
command?: () => void;
|
||||
bookMeta?: PaletteBookMeta;
|
||||
}
|
||||
|
||||
export interface PaletteGroup {
|
||||
kind: PaletteItemKind;
|
||||
items: PaletteItem[];
|
||||
}
|
||||
Reference in New Issue
Block a user