forked from Github/frigate
Semantic Search Frontend (#12112)
* Add basic search page * Abstract filters to separate components * Make searching functional * Add loading and no results indicators * Implement searching * Combine account and settings menus on mobile * Support using thumbnail for in progress detections * Fetch previews * Move recordings view and open recordings when search is selected * Implement detail pane * Implement saving of description * Implement similarity search * Fix clicking * Add date range picker * Fix * Fix iOS zoom bug * Mobile fixes * Use text area * Fix spacing for drawer * Fix fetching previews incorrectly
This commit is contained in:
@@ -398,6 +398,10 @@ export interface FrigateConfig {
|
||||
enabled: boolean;
|
||||
};
|
||||
|
||||
semantic_search: {
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
snapshots: {
|
||||
bounding_box: boolean;
|
||||
clean_copy: boolean;
|
||||
|
||||
20
web/src/types/search.ts
Normal file
20
web/src/types/search.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export type SearchResult = {
|
||||
id: string;
|
||||
camera: string;
|
||||
description?: string;
|
||||
start_time: number;
|
||||
end_time?: number;
|
||||
score: number;
|
||||
label: string;
|
||||
sub_label?: string;
|
||||
thumb_path?: string;
|
||||
zones: string[];
|
||||
};
|
||||
|
||||
export type SearchFilter = {
|
||||
cameras?: string[];
|
||||
labels?: string[];
|
||||
zones?: string[];
|
||||
before?: number;
|
||||
after?: number;
|
||||
};
|
||||
Reference in New Issue
Block a user