Revert "Im gonna push before I break anything"

This reverts commit b5b1a2848a.
This commit is contained in:
rift 2023-12-26 17:58:59 -06:00
parent b5b1a2848a
commit 950c60ba62
5 changed files with 5 additions and 18 deletions

View file

@ -40,14 +40,10 @@
}, },
"proxymodes": { "proxymodes": {
"title": "Open in", "title": "Open in",
"subtitle": "Choose how to open your sites on Nebula", "subtitle": "Choose how to open your sites",
"embed": "Embed", "embed": "Embed",
"direct": "Direct", "direct": "Direct",
"aboutblank": "About:Blank" "aboutblank": "About:Blank"
},
"searchengines": {
"title": "Search Engine",
"subtitle": "Choose your search engine for Nebula"
} }
} }
} }

View file

@ -44,10 +44,6 @@
"embed": "Incrustar", "embed": "Incrustar",
"direct": "Directo", "direct": "Directo",
"aboutblank": "About:Blank" "aboutblank": "About:Blank"
},
"searchengines": {
"title": "Motor de búsqueda.",
"subtitle": "Elija su motor de búsqueda para Nebula"
} }
} }
} }

View file

@ -44,10 +44,6 @@
"embed": "埋め込む", "embed": "埋め込む",
"direct": "直接", "direct": "直接",
"aboutblank": "About:Blank" "aboutblank": "About:Blank"
},
"searchengines": {
"title": "検索エンジン",
"subtitle": "ネビュラの検索エンジンを選択してください"
} }
} }
} }

View file

@ -14,7 +14,7 @@ declare global {
export function ProxyFrame(props: { url: string }) { export function ProxyFrame(props: { url: string }) {
// pass the URL encoded with encodeURIcomponent // pass the URL encoded with encodeURIcomponent
const localProxy = localStorage.getItem("proxy") || "automatic"; const localProxy = localStorage.getItem("proxy") || "automatic";
const proxyMode = localStorage.getItem("proxyMode") || "embed"; // Embed by default const proxyMode = localStorage.getItem("proxyMode") || "direct";
const searchEngine = const searchEngine =
localStorage.getItem("searchEngine") || "https://google.com/search?q=%s"; localStorage.getItem("searchEngine") || "https://google.com/search?q=%s";
const [ProxiedUrl, setProxiedUrl] = useState<string | undefined>(undefined); const [ProxiedUrl, setProxiedUrl] = useState<string | undefined>(undefined);

View file

@ -21,8 +21,7 @@ const Proxy = ({ id, active }) => {
const searchEngines = [ const searchEngines = [
{ id: "https://google.com/search?q=%s", label: "Google" }, { id: "https://google.com/search?q=%s", label: "Google" },
{ id: "https://bing.com/search?q=%s", label: "Bing" }, { id: "https://bing.com/search?q=%s", label: "Bing" }
{ id: "https://duckduckgo.com/%s", label: "DuckDuckGo" }
]; ];
return ( return (
@ -53,8 +52,8 @@ const Proxy = ({ id, active }) => {
/> />
</div> </div>
<div class="flex h-64 w-80 flex-col flex-wrap content-center items-center rounded-lg border border-input-border-color bg-lighter p-7 text-center"> <div class="flex h-64 w-80 flex-col flex-wrap content-center items-center rounded-lg border border-input-border-color bg-lighter p-7 text-center">
<div class="p-2 text-3xl">{t("settings.searchengines.title")}</div> <div class="p-2 text-3xl">Search ENgines</div>
<div class="text-md p-4">{t("settings.searchengines.subtitle")}</div> <div class="text-md p-4">{t("settings.proxymodes.subtitle")}</div>
<Dropdown <Dropdown
storageKey="searchEngine" storageKey="searchEngine"
options={searchEngines} options={searchEngines}