mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
chore(deps): upgrade all dependencies, toolchains and images (#2825)
This commit is contained in:
1 parent
56e04e7b53
commit
3b552e00ef
510 files changed
+23614
-37473
No files matched your search
@@ -34,7 +34,7 @@ import MobileLayout from '@app/features/ui/state/MobileLayout';
|
||||
import {QuickSwitcherResultTypes} from '@fluxer/constants/src/QuickSwitcherConstants';
|
||||
import type {I18n} from '@lingui/core';
|
||||
import {msg} from '@lingui/core/macro';
|
||||
import {action, makeAutoObservable, runInAction} from 'mobx';
|
||||
import {makeAutoObservable, runInAction} from 'mobx';
|
||||
|
||||
const GO_TO_MESSAGE_DESCRIPTOR = msg({
|
||||
message: 'Go to message',
|
||||
@@ -157,7 +157,6 @@ class QuickSwitcher {
|
||||
return this.selectedIndex;
|
||||
}
|
||||
|
||||
@action
|
||||
show(): void {
|
||||
if (this.isOpen) return;
|
||||
this.cancelCandidateWarmup();
|
||||
@@ -215,7 +214,6 @@ class QuickSwitcher {
|
||||
);
|
||||
}
|
||||
|
||||
@action
|
||||
hide(): void {
|
||||
if (!this.isOpen) {
|
||||
return;
|
||||
@@ -291,7 +289,6 @@ class QuickSwitcher {
|
||||
return () => clearTimeout(handle);
|
||||
}
|
||||
|
||||
@action
|
||||
search(query: string): void {
|
||||
if (!this.isOpen && query.length === 0) {
|
||||
return;
|
||||
@@ -372,7 +369,6 @@ class QuickSwitcher {
|
||||
}, 300);
|
||||
}
|
||||
|
||||
@action
|
||||
select(selectedIndex: number): void {
|
||||
if (!this.isOpen) {
|
||||
return;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import {makePersistent} from '@app/features/platform/utils/MobXPersistence';
|
||||
import type {SearchHints} from '@app/features/search/utils/SearchQueryParser';
|
||||
import {action, makeAutoObservable} from 'mobx';
|
||||
import {makeAutoObservable} from 'mobx';
|
||||
|
||||
export const SEARCH_HISTORY_LIMIT = 10;
|
||||
export const SEARCH_HISTORY_DISPLAY_LIMIT = 5;
|
||||
@@ -37,7 +37,6 @@ class SearchHistory {
|
||||
return entries.filter((e) => e.query.toLowerCase().includes(t));
|
||||
}
|
||||
|
||||
@action
|
||||
add(query: string, channelId?: string, hints?: SearchHints): void {
|
||||
if (!channelId) return;
|
||||
const q = query.trim();
|
||||
@@ -58,7 +57,6 @@ class SearchHistory {
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
adoptLegacyEntries(targetKey: string | undefined, legacyKeys: ReadonlyArray<string>): void {
|
||||
if (!targetKey) return;
|
||||
if (this.getEntries(targetKey).length > 0) return;
|
||||
@@ -83,13 +81,11 @@ class SearchHistory {
|
||||
this.entriesByChannel[targetKey] = adopted;
|
||||
}
|
||||
|
||||
@action
|
||||
clear(channelId?: string): void {
|
||||
if (!channelId) return;
|
||||
delete this.entriesByChannel[channelId];
|
||||
}
|
||||
|
||||
@action
|
||||
clearAll(): void {
|
||||
this.entriesByChannel = {};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user