fix(cmdk): change default cmdk search type to feed

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2024-11-02 00:25:42 +08:00
parent 539ec03293
commit 4a8fdea84a
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
22 changed files with 5 additions and 43 deletions

View File

@ -377,14 +377,14 @@ const SearchOptions: Component = memo(({ children }) => {
value={`${SearchType.Entry}`}
disabled={searchType === SearchType.Entry}
>
{t("search.options.entries")}
{t("search.options.entry")}
</SelectItem>
<SelectItem
className="hover:bg-theme-item-hover"
value={`${SearchType.Feed}`}
disabled={searchType === SearchType.Feed}
>
{t("search.options.feeds")}
{t("search.options.feed")}
</SelectItem>
</SelectContent>
</Select>

View File

@ -16,7 +16,7 @@ import type { SearchResult, SearchState } from "./types"
const searchTypeAtom = atomWithStorage<SearchType>(
getStorageNS("search-type"),
SearchType.All,
SearchType.Feed,
undefined,
{ getOnInit: true },
)

View File

@ -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": "(وضع محلي)",

View File

@ -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": "(الوضع المحلي)",

View File

@ -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": "(وضع محلي)",

View File

@ -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": "(الوضع المحلي)",

View File

@ -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": "(الوضع المحلي)",

View File

@ -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": "(وضع محلي)",

View File

@ -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)",

View File

@ -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)",

View File

@ -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)",

View File

@ -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)",

View File

@ -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)",

View File

@ -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)",

View File

@ -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": "(ローカルモード)",

View File

@ -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": "(로컬 모드)",

View File

@ -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": "(ローカルモード)",

View File

@ -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": "(Локальный режим)",

View File

@ -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)",

View File

@ -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": "(本地模式)",

View File

@ -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": "(本地模式)",

View File

@ -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": "(本地模式)",