Add Kagi search provider

This commit is contained in:
TEC 2024-10-27 03:42:15 +08:00
parent 7cbba1ff90
commit 98e6107e27
No known key found for this signature in database
3 changed files with 9 additions and 3 deletions

View File

@ -389,7 +389,7 @@ quicklaunch:
hideInternetSearch: true
showSearchSuggestions: true
hideVisitURL: true
provider: google # google, duckduckgo, bing, baidu, brave or custom
provider: google # google, duckduckgo, bing, baidu, brave, kagi or custom
```
or for a custom search:

View File

@ -3,7 +3,7 @@ title: Search
description: Search Information Widget Configuration
---
You can add a search bar to your top widget area that can search using Google, Duckduckgo, Bing, Baidu, Brave or any other custom provider that supports the basic `?q=` search query param.
You can add a search bar to your top widget area that can search using Google, Duckduckgo, Bing, Baidu, Brave, Kagi or any other custom provider that supports the basic `?q=` search query param.
```yaml
- search:

View File

@ -1,7 +1,7 @@
import { useState, useEffect, Fragment } from "react";
import { useTranslation } from "next-i18next";
import { FiSearch } from "react-icons/fi";
import { SiDuckduckgo, SiMicrosoftbing, SiGoogle, SiBaidu, SiBrave } from "react-icons/si";
import { SiDuckduckgo, SiMicrosoftbing, SiGoogle, SiBaidu, SiBrave, SiKagi } from "react-icons/si";
import { Listbox, Transition, Combobox } from "@headlessui/react";
import classNames from "classnames";
@ -39,6 +39,12 @@ export const searchProviders = {
suggestionUrl: "https://search.brave.com/api/suggest?&rich=false&q=",
icon: SiBrave,
},
kagi: {
name: "Kagi",
url: "https://kagi.com/search?q=",
suggestionUrl: "https://kagi.com/api/autosuggest?q=",
icon: SiKagi,
},
custom: {
name: "Custom",
url: false,