diff --git a/README.md b/README.md index 0d5a238..5efb671 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ bun build:firefox Once the extension is installed, you can open the sidebar via context menu or keyboard shortcut. -Default Keyboard Shortcut: `Ctrl+Shift+P` +Default Keyboard Shortcut: `Ctrl+Shift+Y` ### Web UI diff --git a/src/assets/locale/en/settings.json b/src/assets/locale/en/settings.json index d32dccf..20eb45c 100644 --- a/src/assets/locale/en/settings.json +++ b/src/assets/locale/en/settings.json @@ -74,6 +74,9 @@ "braveApi": { "label": "Brave API Key", "placeholder": "Enter your Brave API key" + }, + "googleDomain": { + "label": "Google Domain" } }, "system": { diff --git a/src/components/Common/Playground/Message.tsx b/src/components/Common/Playground/Message.tsx index 925fe4c..1d76280 100644 --- a/src/components/Common/Playground/Message.tsx +++ b/src/components/Common/Playground/Message.tsx @@ -68,7 +68,7 @@ export const PlaygroundMessage = (props: Props) => { )} -
+
{props.isBot ? props.name === "chrome::gemini-nano::page-assist" @@ -212,7 +212,9 @@ export const PlaygroundMessage = (props: Props) => { {props.generationInfo && ( + } title={t("generationInfo")}>
{!isAtBottom && ( diff --git a/src/components/Option/Playground/PlaygroundForm.tsx b/src/components/Option/Playground/PlaygroundForm.tsx index 5f19861..00eef04 100644 --- a/src/components/Option/Playground/PlaygroundForm.tsx +++ b/src/components/Option/Playground/PlaygroundForm.tsx @@ -192,7 +192,7 @@ export const PlaygroundForm = ({ dropedFile }: Props) => { return (
{
-
+
{ stopListening() @@ -275,17 +276,17 @@ export const PlaygroundForm = ({ dropedFile }: Props) => { className="px-2 py-2 w-full resize-none bg-transparent focus-within:outline-none focus:ring-0 focus-visible:ring-0 ring-0 dark:ring-0 border-0 dark:text-gray-100" onPaste={handlePaste} rows={1} - style={{ minHeight: "40px" }} + style={{ minHeight: "30px" }} tabIndex={0} placeholder={t("form.textarea.placeholder")} {...form.getInputProps("message")} /> -
+
{!selectedKnowledge && (
- + setWebSearch(e)} diff --git a/src/components/Option/Settings/search-mode.tsx b/src/components/Option/Settings/search-mode.tsx index 932632b..f77149c 100644 --- a/src/components/Option/Settings/search-mode.tsx +++ b/src/components/Option/Settings/search-mode.tsx @@ -1,5 +1,6 @@ import { SaveButton } from "@/components/Common/SaveButton" import { getSearchSettings, setSearchSettings } from "@/services/search" +import { ALL_GOOGLE_DOMAINS } from "@/utils/google-domains" import { SUPPORTED_SERACH_PROVIDERS } from "@/utils/search-provider" import { useForm } from "@mantine/form" import { useQuery } from "@tanstack/react-query" @@ -18,6 +19,7 @@ export const SearchModeSettings = () => { searxngURL: "", searxngJSONMode: false, braveApiKey: "", + googleDomain: "" } }) @@ -82,6 +84,32 @@ export const SearchModeSettings = () => {
)} + {form.values.searchProvider === "google" && ( + <> +
+ + {t("generalSettings.webSearch.googleDomain.label")} + +
+