From 4a8fdea84a4df90313f8c577d77d3944a34aa149 Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 2 Nov 2024 00:25:42 +0800 Subject: [PATCH] fix(cmdk): change default cmdk search type to feed Signed-off-by: Innei --- apps/renderer/src/modules/panel/cmdk.tsx | 4 ++-- apps/renderer/src/store/search/index.ts | 2 +- locales/app/ar-DZ.json | 2 -- locales/app/ar-IQ.json | 2 -- locales/app/ar-KW.json | 2 -- locales/app/ar-MA.json | 2 -- locales/app/ar-SA.json | 2 -- locales/app/ar-TN.json | 2 -- locales/app/de.json | 2 -- locales/app/en.json | 4 ++-- locales/app/es.json | 2 -- locales/app/fi.json | 2 -- locales/app/fr.json | 2 -- locales/app/it.json | 2 -- locales/app/ja.json | 2 -- locales/app/ko.json | 2 -- locales/app/pt.json | 2 -- locales/app/ru.json | 2 -- locales/app/tr.json | 2 -- locales/app/zh-CN.json | 2 -- locales/app/zh-HK.json | 2 -- locales/app/zh-TW.json | 2 -- 22 files changed, 5 insertions(+), 43 deletions(-) diff --git a/apps/renderer/src/modules/panel/cmdk.tsx b/apps/renderer/src/modules/panel/cmdk.tsx index 60430f604..b72c67bf2 100644 --- a/apps/renderer/src/modules/panel/cmdk.tsx +++ b/apps/renderer/src/modules/panel/cmdk.tsx @@ -377,14 +377,14 @@ const SearchOptions: Component = memo(({ children }) => { value={`${SearchType.Entry}`} disabled={searchType === SearchType.Entry} > - {t("search.options.entries")} + {t("search.options.entry")} - {t("search.options.feeds")} + {t("search.options.feed")} diff --git a/apps/renderer/src/store/search/index.ts b/apps/renderer/src/store/search/index.ts index b8b5df779..dbe3bc696 100644 --- a/apps/renderer/src/store/search/index.ts +++ b/apps/renderer/src/store/search/index.ts @@ -16,7 +16,7 @@ import type { SearchResult, SearchState } from "./types" const searchTypeAtom = atomWithStorage( getStorageNS("search-type"), - SearchType.All, + SearchType.Feed, undefined, { getOnInit: true }, ) diff --git a/locales/app/ar-DZ.json b/locales/app/ar-DZ.json index 04eb81068..281225911 100644 --- a/locales/app/ar-DZ.json +++ b/locales/app/ar-DZ.json @@ -128,8 +128,6 @@ "search.group.entries": "إدخالات", "search.group.feeds": "خلاصات", "search.options.all": "الكل", - "search.options.entries": "إدخالات", - "search.options.feeds": "خلاصات", "search.options.search_type": "نوع البحث", "search.placeholder": "بحث...", "search.result_count_local_mode": "(وضع محلي)", diff --git a/locales/app/ar-IQ.json b/locales/app/ar-IQ.json index 49b2357d2..46baec406 100644 --- a/locales/app/ar-IQ.json +++ b/locales/app/ar-IQ.json @@ -132,8 +132,6 @@ "search.group.entries": "إدخالات", "search.group.feeds": "خلاصات", "search.options.all": "الكل", - "search.options.entries": "الإدخالات", - "search.options.feeds": "الخلاصات", "search.options.search_type": "نوع البحث", "search.placeholder": "بحث...", "search.result_count_local_mode": "(الوضع المحلي)", diff --git a/locales/app/ar-KW.json b/locales/app/ar-KW.json index 4913cd44d..83d9ff9c2 100644 --- a/locales/app/ar-KW.json +++ b/locales/app/ar-KW.json @@ -132,8 +132,6 @@ "search.group.entries": "إدخالات", "search.group.feeds": "تغذيات", "search.options.all": "الكل", - "search.options.entries": "إدخالات", - "search.options.feeds": "تغذيات", "search.options.search_type": "نوع البحث", "search.placeholder": "بحث...", "search.result_count_local_mode": "(وضع محلي)", diff --git a/locales/app/ar-MA.json b/locales/app/ar-MA.json index 83a9676d7..14d62ee85 100644 --- a/locales/app/ar-MA.json +++ b/locales/app/ar-MA.json @@ -128,8 +128,6 @@ "search.group.entries": "إدخالات", "search.group.feeds": "موجزات", "search.options.all": "الكل", - "search.options.entries": "إدخالات", - "search.options.feeds": "موجزات", "search.options.search_type": "نوع البحث", "search.placeholder": "بحث...", "search.result_count_local_mode": "(الوضع المحلي)", diff --git a/locales/app/ar-SA.json b/locales/app/ar-SA.json index 7fb913730..460dcf7cb 100644 --- a/locales/app/ar-SA.json +++ b/locales/app/ar-SA.json @@ -125,8 +125,6 @@ "search.group.entries": "إدخالات", "search.group.feeds": "خلاصات", "search.options.all": "الكل", - "search.options.entries": "إدخالات", - "search.options.feeds": "خلاصات", "search.options.search_type": "نوع البحث", "search.placeholder": "بحث...", "search.result_count_local_mode": "(الوضع المحلي)", diff --git a/locales/app/ar-TN.json b/locales/app/ar-TN.json index ef1164824..e47a4ab9c 100644 --- a/locales/app/ar-TN.json +++ b/locales/app/ar-TN.json @@ -129,8 +129,6 @@ "search.group.entries": "إدخالات", "search.group.feeds": "تغذيات", "search.options.all": "الكل", - "search.options.entries": "إدخالات", - "search.options.feeds": "تغذيات", "search.options.search_type": "نوع البحث", "search.placeholder": "بحث...", "search.result_count_local_mode": "(وضع محلي)", diff --git a/locales/app/de.json b/locales/app/de.json index 5fbdc871e..a3c9baaa1 100644 --- a/locales/app/de.json +++ b/locales/app/de.json @@ -132,8 +132,6 @@ "search.group.entries": "Einträge", "search.group.feeds": "Feeds", "search.options.all": "Alle", - "search.options.entries": "Einträge", - "search.options.feeds": "Feeds", "search.options.search_type": "Suchtyp", "search.placeholder": "Suche...", "search.result_count_local_mode": "(Lokaler Modus)", diff --git a/locales/app/en.json b/locales/app/en.json index 4d8d7830e..aca1bee07 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -260,8 +260,8 @@ "search.group.entries": "Entries", "search.group.feeds": "Feeds", "search.options.all": "All", - "search.options.entries": "Entries", - "search.options.feeds": "Feeds", + "search.options.entry": "Entry", + "search.options.feed": "Feed", "search.options.search_type": "Search Type", "search.placeholder": "Search...", "search.result_count_local_mode": "(Local mode)", diff --git a/locales/app/es.json b/locales/app/es.json index 4fe26cad1..e6623f8c1 100644 --- a/locales/app/es.json +++ b/locales/app/es.json @@ -81,8 +81,6 @@ "search.group.entries": "Entradas", "search.group.feeds": "Feeds", "search.options.all": "Todo", - "search.options.entries": "Entradas", - "search.options.feeds": "Feeds", "search.options.search_type": "Tipo de búsqueda", "search.placeholder": "Buscar...", "search.result_count_local_mode": "(Modo local)", diff --git a/locales/app/fi.json b/locales/app/fi.json index 1a5fa626d..5b1bcdbd1 100644 --- a/locales/app/fi.json +++ b/locales/app/fi.json @@ -125,8 +125,6 @@ "search.group.entries": "Merkinnät", "search.group.feeds": "Syötteet", "search.options.all": "Kaikki", - "search.options.entries": "Merkinnät", - "search.options.feeds": "Syötteet", "search.options.search_type": "Hakutyyppi", "search.placeholder": "Hae...", "search.result_count_local_mode": "(Paikallinen tila)", diff --git a/locales/app/fr.json b/locales/app/fr.json index 7ae8f77b1..72c141c14 100644 --- a/locales/app/fr.json +++ b/locales/app/fr.json @@ -125,8 +125,6 @@ "search.group.entries": "Entrées", "search.group.feeds": "Flux", "search.options.all": "Tous", - "search.options.entries": "Entrées", - "search.options.feeds": "Flux", "search.options.search_type": "Type de recherche", "search.placeholder": "Rechercher...", "search.result_count_local_mode": "(Mode local)", diff --git a/locales/app/it.json b/locales/app/it.json index 9f87b462c..d81d9d963 100644 --- a/locales/app/it.json +++ b/locales/app/it.json @@ -125,8 +125,6 @@ "search.group.entries": "Voci", "search.group.feeds": "Feed", "search.options.all": "Tutto", - "search.options.entries": "Voci", - "search.options.feeds": "Feed", "search.options.search_type": "Tipo di ricerca", "search.placeholder": "Cerca...", "search.result_count_local_mode": "(Modalità locale)", diff --git a/locales/app/ja.json b/locales/app/ja.json index a864aea92..0cb9f049d 100644 --- a/locales/app/ja.json +++ b/locales/app/ja.json @@ -255,8 +255,6 @@ "search.group.entries": "エントリー", "search.group.feeds": "フィード", "search.options.all": "すべて", - "search.options.entries": "エントリー", - "search.options.feeds": "フィード", "search.options.search_type": "検索タイプ", "search.placeholder": "検索...", "search.result_count_local_mode": "(ローカルモード)", diff --git a/locales/app/ko.json b/locales/app/ko.json index 7b2a1fe47..fdbd4c4be 100644 --- a/locales/app/ko.json +++ b/locales/app/ko.json @@ -148,8 +148,6 @@ "search.group.entries": "항목", "search.group.feeds": "피드", "search.options.all": "전체", - "search.options.entries": "항목", - "search.options.feeds": "피드", "search.options.search_type": "검색 유형", "search.placeholder": "검색...", "search.result_count_local_mode": "(로컬 모드)", diff --git a/locales/app/pt.json b/locales/app/pt.json index 22bc2918a..776bd3fc7 100644 --- a/locales/app/pt.json +++ b/locales/app/pt.json @@ -125,8 +125,6 @@ "search.group.entries": "エントリ", "search.group.feeds": "フィード", "search.options.all": "すべて", - "search.options.entries": "エントリ", - "search.options.feeds": "フィード", "search.options.search_type": "検索タイプ", "search.placeholder": "検索...", "search.result_count_local_mode": "(ローカルモード)", diff --git a/locales/app/ru.json b/locales/app/ru.json index da4b7aa0f..23500cb52 100644 --- a/locales/app/ru.json +++ b/locales/app/ru.json @@ -125,8 +125,6 @@ "search.group.entries": "Записи", "search.group.feeds": "Каналы", "search.options.all": "Все", - "search.options.entries": "Записи", - "search.options.feeds": "Каналы", "search.options.search_type": "Тип поиска", "search.placeholder": "Поиск...", "search.result_count_local_mode": "(Локальный режим)", diff --git a/locales/app/tr.json b/locales/app/tr.json index 886b1fca9..45cb14d9b 100644 --- a/locales/app/tr.json +++ b/locales/app/tr.json @@ -148,8 +148,6 @@ "search.group.entries": "Girişler", "search.group.feeds": "Beslemeler", "search.options.all": "Tümü", - "search.options.entries": "Girişler", - "search.options.feeds": "Beslemeler", "search.options.search_type": "Arama Türü", "search.placeholder": "Ara...", "search.result_count_local_mode": "(Yerel mod)", diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json index c3d58e6d7..cc1a9c899 100644 --- a/locales/app/zh-CN.json +++ b/locales/app/zh-CN.json @@ -258,8 +258,6 @@ "search.group.entries": "条目", "search.group.feeds": "订阅源", "search.options.all": "全部", - "search.options.entries": "条目", - "search.options.feeds": "订阅源", "search.options.search_type": "搜索类型", "search.placeholder": "搜索...", "search.result_count_local_mode": "(本地模式)", diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json index 6ab44ba23..88fa6a62f 100644 --- a/locales/app/zh-HK.json +++ b/locales/app/zh-HK.json @@ -249,8 +249,6 @@ "search.group.entries": "條目", "search.group.feeds": "訂閱源", "search.options.all": "所有", - "search.options.entries": "條目", - "search.options.feeds": "訂閱源", "search.options.search_type": "搜尋類型", "search.placeholder": "搜尋...", "search.result_count_local_mode": "(本地模式)", diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json index f97db0581..1ffb1a9eb 100644 --- a/locales/app/zh-TW.json +++ b/locales/app/zh-TW.json @@ -250,8 +250,6 @@ "search.group.entries": "項目", "search.group.feeds": "摘要", "search.options.all": "全部", - "search.options.entries": "項目", - "search.options.feeds": "摘要", "search.options.search_type": "搜尋類型", "search.placeholder": "搜尋……", "search.result_count_local_mode": "(本地模式)",