From 85a7b10fcde1d461b138c0e0ad5507df66959162 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Mon, 7 Apr 2025 14:35:32 +0900 Subject: refactor serach index generator code (#15772) * refactor: flatten search index * chore: use Function() to simplify parsing attribute * chore: remove comment handling * chore: simplify processing SearchLabel and SearchKeyword element * chore: use SearchLabel in mutedUsers * chore: small improvements * chore: remove a fallback path and simplify the entire code * fix: result path is not correct * chore: inline function --- packages/frontend/src/components/MkSuperMenu.vue | 58 ++++++++++++++---------- 1 file changed, 34 insertions(+), 24 deletions(-) (limited to 'packages/frontend/src/components') diff --git a/packages/frontend/src/components/MkSuperMenu.vue b/packages/frontend/src/components/MkSuperMenu.vue index 4156fa2732..3f8d92a61d 100644 --- a/packages/frontend/src/components/MkSuperMenu.vue +++ b/packages/frontend/src/components/MkSuperMenu.vue @@ -93,11 +93,11 @@ export type SuperMenuDef = {