mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-21 07:51:29 +02:00
make trace disabled default and add link to report bugs and issues
This commit is contained in:
@@ -101,7 +101,7 @@ const useDebugBundle = () => {
|
||||
const [anonymize, setAnonymize] = useState(false);
|
||||
const [systemInfo, setSystemInfo] = useState(true);
|
||||
const [upload, setUpload] = useState(true);
|
||||
const [trace, setTrace] = useState(true);
|
||||
const [trace, setTrace] = useState(false);
|
||||
const [traceMinutes, setTraceMinutes] = useState(1);
|
||||
const [stage, setStage] = useState<DebugStage>({ kind: "idle" });
|
||||
const [lastBundlePath, setLastBundlePath] = useState<string>("");
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { ReactNode } from "react";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { CircleCheckBig, FolderOpen, Loader2 } from "lucide-react";
|
||||
import { Browser } from "@wailsio/runtime";
|
||||
import { Debug as DebugSvc } from "@bindings/services";
|
||||
import type { DebugBundleResult } from "@bindings/services/models.js";
|
||||
import { Button } from "@/components/buttons/Button";
|
||||
@@ -18,6 +19,8 @@ import type { DebugStage } from "@/contexts/DebugBundleContext";
|
||||
import { useDebugBundleContext } from "@/contexts/DebugBundleContext";
|
||||
import { SectionGroup, SettingsBottomBar } from "@/modules/settings/SettingsSection.tsx";
|
||||
|
||||
const SUPPORT_DOCS_URL = "https://docs.netbird.io/help/report-bug-issues";
|
||||
|
||||
export function SettingsTroubleshooting() {
|
||||
const { t } = useTranslation();
|
||||
const {
|
||||
@@ -197,9 +200,27 @@ function DoneResult({
|
||||
: t("settings.troubleshooting.done.savedTitle")}
|
||||
</DialogHeading>
|
||||
<DialogDescription>
|
||||
{showKey
|
||||
? t("settings.troubleshooting.done.uploadedDescription")
|
||||
: t("settings.troubleshooting.done.savedDescription")}
|
||||
{showKey ? (
|
||||
<Trans
|
||||
i18nKey={"settings.troubleshooting.done.uploadedDescription"}
|
||||
components={{
|
||||
docs: (
|
||||
<a
|
||||
href={SUPPORT_DOCS_URL}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
Browser.OpenURL(SUPPORT_DOCS_URL).catch(() =>
|
||||
globalThis.open(SUPPORT_DOCS_URL, "_blank"),
|
||||
);
|
||||
}}
|
||||
className={"text-netbird hover:underline"}
|
||||
/>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
t("settings.troubleshooting.done.savedDescription")
|
||||
)}
|
||||
</DialogDescription>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -750,7 +750,7 @@
|
||||
"message": "Paket gespeichert"
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "Teilen Sie den unten angezeigten Upload-Schlüssel mit dem NetBird-Support. Eine lokale Kopie wurde ebenfalls auf Ihrem Gerät gespeichert."
|
||||
"message": "Teilen Sie den unten angezeigten Upload-Schlüssel mit dem <docs>NetBird-Support</docs>. Eine lokale Kopie wurde ebenfalls auf Ihrem Gerät gespeichert."
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "Ihr Debug-Paket wurde lokal gespeichert."
|
||||
|
||||
@@ -1000,8 +1000,8 @@
|
||||
"description": "Title shown when the bundle was saved locally (not uploaded)."
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "Share the upload key below with NetBird support. A local copy was also saved on your device.",
|
||||
"description": "Body after upload, telling the user to share the upload key with support."
|
||||
"message": "Share the upload key below with <docs>NetBird support</docs>. A local copy was also saved on your device.",
|
||||
"description": "Body after upload, telling the user to share the upload key with support. '<docs>…</docs>' wraps the inline link to the NetBird support docs — keep the tags exactly and wrap the phrase that means 'NetBird support'."
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "Your debug bundle has been saved locally.",
|
||||
|
||||
@@ -750,7 +750,7 @@
|
||||
"message": "Paquete guardado"
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "Comparta la clave de subida de abajo con el soporte de NetBird. También se guardó una copia local en su dispositivo."
|
||||
"message": "Comparta la clave de subida de abajo con el <docs>soporte de NetBird</docs>. También se guardó una copia local en su dispositivo."
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "Su paquete de diagnóstico se ha guardado localmente."
|
||||
|
||||
@@ -750,7 +750,7 @@
|
||||
"message": "Lot enregistré"
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "Partagez la clé d’envoi ci-dessous avec l’assistance NetBird. Une copie locale a également été enregistrée sur votre appareil."
|
||||
"message": "Partagez la clé d’envoi ci-dessous avec l’<docs>assistance NetBird</docs>. Une copie locale a également été enregistrée sur votre appareil."
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "Votre lot de diagnostic a été enregistré localement."
|
||||
|
||||
@@ -750,7 +750,7 @@
|
||||
"message": "Csomag elmentve"
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "Ossza meg az alábbi feltöltési kulcsot a NetBird támogatással. A helyi másolat is elmentve van az eszközén."
|
||||
"message": "Ossza meg az alábbi feltöltési kulcsot a <docs>NetBird támogatással</docs>. A helyi másolat is elmentve van az eszközén."
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "A hibakeresési csomag helyileg elmentve."
|
||||
|
||||
@@ -750,7 +750,7 @@
|
||||
"message": "Pacchetto salvato"
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "Condivida la chiave di caricamento qui sotto con il supporto NetBird. Una copia locale è stata salvata anche sul suo dispositivo."
|
||||
"message": "Condivida la chiave di caricamento qui sotto con il <docs>supporto NetBird</docs>. Una copia locale è stata salvata anche sul suo dispositivo."
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "Il pacchetto di debug è stato salvato localmente."
|
||||
|
||||
@@ -750,7 +750,7 @@
|
||||
"message": "Pacote salvo"
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "Compartilhe a chave de upload abaixo com o suporte do NetBird. Uma cópia local também foi salva no seu dispositivo."
|
||||
"message": "Compartilhe a chave de upload abaixo com o <docs>suporte do NetBird</docs>. Uma cópia local também foi salva no seu dispositivo."
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "O seu pacote de depuração foi salvo localmente."
|
||||
|
||||
@@ -750,7 +750,7 @@
|
||||
"message": "Пакет сохранён"
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "Поделитесь ключом загрузки ниже с поддержкой NetBird. Локальная копия также сохранена на вашем устройстве."
|
||||
"message": "Поделитесь ключом загрузки ниже с <docs>поддержкой NetBird</docs>. Локальная копия также сохранена на вашем устройстве."
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "Отладочный пакет сохранён локально."
|
||||
|
||||
@@ -750,7 +750,7 @@
|
||||
"message": "调试包已保存"
|
||||
},
|
||||
"settings.troubleshooting.done.uploadedDescription": {
|
||||
"message": "请将下方的上传密钥分享给 NetBird 支持团队。本地也已保存了一份副本。"
|
||||
"message": "请将下方的上传密钥分享给 <docs>NetBird 支持团队</docs>。本地也已保存了一份副本。"
|
||||
},
|
||||
"settings.troubleshooting.done.savedDescription": {
|
||||
"message": "您的调试包已保存在本地。"
|
||||
|
||||
Reference in New Issue
Block a user