fix: app cache and other issues (#5460)
* fixes * #[serde(untagged)] my BEHATED (still kinda broken) * remove unused hasContent ref * clean up code in fetch instance * ping 3 times for average latency * fix: pinging to be more accurate TCP_NODELAY — Set on the TCP stream right after connect, preventing Nagle's algorithm from buffering the small ping packet (could save up to ~40ms) Instant over Utc::now() — Switched to monotonic std::time::Instant for timing, which is more precise and designed for measuring elapsed time (still using chrono just for the ping magic value) * delete useFetch util and just use native fetch * rename worlds until functions for more clarity * fix lint * fix cache.rs logic * make backend ping use both impls * Add optional timeout to server ping * fix gallery appearing in nav with no items * remove EU countries and add EU option for server country * add uk to europe --------- Co-authored-by: aecsocket <aecsocket@tutanota.com>
This commit is contained in:
@@ -156,6 +156,7 @@ export interface ComboboxOption<T> {
|
||||
href?: string
|
||||
target?: string
|
||||
action?: () => void
|
||||
searchTerms?: string[]
|
||||
}
|
||||
|
||||
const DROPDOWN_VIEWPORT_MARGIN = 8
|
||||
@@ -272,7 +273,9 @@ const filteredOptions = computed(() => {
|
||||
const query = searchQuery.value.toLowerCase()
|
||||
return optionsWithKeys.value.filter((opt) => {
|
||||
if (isDivider(opt)) return false
|
||||
return opt.label.toLowerCase().includes(query)
|
||||
if (opt.label.toLowerCase().includes(query)) return true
|
||||
if (opt.searchTerms?.some((term) => term.toLowerCase().includes(query))) return true
|
||||
return false
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user