mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(web): remember search context (#16614)
* Retain search context in LocalStorage. * Remove debug logging * Prettier * Added QueryType and VALID_QUERY_TYPES to $lib/constants * Prettier * Renamed VALID_QUERY_TYPES to fit the codestyle. Ran prettier * show current search type on search bar * fix: linting --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
2f8e89c7ec
commit
70a08707d2
3 changed files with 83 additions and 4 deletions
|
|
@ -119,6 +119,14 @@ export const fallbackLocale = {
|
|||
name: 'English (US)',
|
||||
};
|
||||
|
||||
export enum QueryType {
|
||||
SMART = 'smart',
|
||||
METADATA = 'metadata',
|
||||
DESCRIPTION = 'description',
|
||||
}
|
||||
|
||||
export const validQueryTypes = new Set([QueryType.SMART, QueryType.METADATA, QueryType.DESCRIPTION]);
|
||||
|
||||
export const locales = [
|
||||
{ code: 'af-ZA', name: 'Afrikaans (South Africa)' },
|
||||
{ code: 'sq-AL', name: 'Albanian (Albania)' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue