mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
Revert "Im gonna push before I break anything"
This reverts commit b5b1a2848a
.
This commit is contained in:
parent
b5b1a2848a
commit
950c60ba62
5 changed files with 5 additions and 18 deletions
|
@ -40,14 +40,10 @@
|
|||
},
|
||||
"proxymodes": {
|
||||
"title": "Open in",
|
||||
"subtitle": "Choose how to open your sites on Nebula",
|
||||
"subtitle": "Choose how to open your sites",
|
||||
"embed": "Embed",
|
||||
"direct": "Direct",
|
||||
"aboutblank": "About:Blank"
|
||||
},
|
||||
"searchengines": {
|
||||
"title": "Search Engine",
|
||||
"subtitle": "Choose your search engine for Nebula"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,10 +44,6 @@
|
|||
"embed": "Incrustar",
|
||||
"direct": "Directo",
|
||||
"aboutblank": "About:Blank"
|
||||
},
|
||||
"searchengines": {
|
||||
"title": "Motor de búsqueda.",
|
||||
"subtitle": "Elija su motor de búsqueda para Nebula"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,10 +44,6 @@
|
|||
"embed": "埋め込む",
|
||||
"direct": "直接",
|
||||
"aboutblank": "About:Blank"
|
||||
},
|
||||
"searchengines": {
|
||||
"title": "検索エンジン",
|
||||
"subtitle": "ネビュラの検索エンジンを選択してください"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ declare global {
|
|||
export function ProxyFrame(props: { url: string }) {
|
||||
// pass the URL encoded with encodeURIcomponent
|
||||
const localProxy = localStorage.getItem("proxy") || "automatic";
|
||||
const proxyMode = localStorage.getItem("proxyMode") || "embed"; // Embed by default
|
||||
const proxyMode = localStorage.getItem("proxyMode") || "direct";
|
||||
const searchEngine =
|
||||
localStorage.getItem("searchEngine") || "https://google.com/search?q=%s";
|
||||
const [ProxiedUrl, setProxiedUrl] = useState<string | undefined>(undefined);
|
||||
|
|
|
@ -21,8 +21,7 @@ const Proxy = ({ id, active }) => {
|
|||
|
||||
const searchEngines = [
|
||||
{ id: "https://google.com/search?q=%s", label: "Google" },
|
||||
{ id: "https://bing.com/search?q=%s", label: "Bing" },
|
||||
{ id: "https://duckduckgo.com/%s", label: "DuckDuckGo" }
|
||||
{ id: "https://bing.com/search?q=%s", label: "Bing" }
|
||||
];
|
||||
|
||||
return (
|
||||
|
@ -53,8 +52,8 @@ const Proxy = ({ id, active }) => {
|
|||
/>
|
||||
</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="p-2 text-3xl">{t("settings.searchengines.title")}</div>
|
||||
<div class="text-md p-4">{t("settings.searchengines.subtitle")}</div>
|
||||
<div class="p-2 text-3xl">Search ENgines</div>
|
||||
<div class="text-md p-4">{t("settings.proxymodes.subtitle")}</div>
|
||||
<Dropdown
|
||||
storageKey="searchEngine"
|
||||
options={searchEngines}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue