mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 02:52:07 +08:00
feat(proxy): unify filter search box and sync filter options (#5819)
* feat(proxy): unify filter search box and sync filter options * docs: fix JSDoc placement * refactor(search): unify string matcher and stabilize regex filtering * fix(search): treat invalid regex as matching nothing * docs: update changelog to include advanced filter search feature for proxy page --------- Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,9 @@ export interface HeadState {
|
||||
showType: boolean;
|
||||
sortType: ProxySortType;
|
||||
filterText: string;
|
||||
filterMatchCase?: boolean;
|
||||
filterMatchWholeWord?: boolean;
|
||||
filterUseRegularExpression?: boolean;
|
||||
textState: "url" | "filter" | null;
|
||||
testUrl: string;
|
||||
}
|
||||
@@ -21,6 +24,9 @@ export const DEFAULT_STATE: HeadState = {
|
||||
showType: true,
|
||||
sortType: 0,
|
||||
filterText: "",
|
||||
filterMatchCase: false,
|
||||
filterMatchWholeWord: false,
|
||||
filterUseRegularExpression: false,
|
||||
textState: null,
|
||||
testUrl: "",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user