This commit is contained in:
2025-07-28 16:38:09 +03:00
parent ac128e32f9
commit 6c0b430685
12 changed files with 40 additions and 26 deletions

View File

@@ -202,6 +202,8 @@ export const NotAuthenticated = ({
hasLocalNodeRef.current = hasLocalNode; hasLocalNodeRef.current = hasLocalNode;
}, [hasLocalNode]); }, [hasLocalNode]);
console.log('apiKey', apiKey);
const validateApiKey = useCallback(async (key, fromStartUp) => { const validateApiKey = useCallback(async (key, fromStartUp) => {
try { try {
if (key === 'isGateway') return; if (key === 'isGateway') return;
@@ -1142,9 +1144,11 @@ export const NotAuthenticated = ({
url: 'http://127.0.0.1:12391', url: 'http://127.0.0.1:12391',
}); });
setUseLocalNode(false); setUseLocalNode(false);
setApiKey(null);
handleSetGlobalApikey(null);
}} }}
> >
{t('core:action.remove', { {t('auth:apikey.clear_storage', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
})} })}
</Button> </Button>

View File

@@ -44,7 +44,8 @@
"enter": "إدخال مفتاح API", "enter": "إدخال مفتاح API",
"import": "استيراد مفتاح API", "import": "استيراد مفتاح API",
"key": "مفتاح API", "key": "مفتاح API",
"select_valid": "اختر مفتاح API صالح" "select_valid": "اختر مفتاح API صالح",
"clear_storage": "إزالة من التخزين"
}, },
"authentication": "المصادقة", "authentication": "المصادقة",
"blocked_users": "المستخدمون المحظورون", "blocked_users": "المستخدمون المحظورون",

View File

@@ -44,7 +44,8 @@
"enter": "API-Schlüssel eingeben", "enter": "API-Schlüssel eingeben",
"import": "API-Schlüssel importieren", "import": "API-Schlüssel importieren",
"key": "API-Schlüssel", "key": "API-Schlüssel",
"select_valid": "Gültigen API-Schlüssel auswählen" "select_valid": "Gültigen API-Schlüssel auswählen",
"clear_storage": "aus dem Speicher löschen"
}, },
"authentication": "Authentifizierung", "authentication": "Authentifizierung",
"blocked_users": "blockierte Benutzer", "blocked_users": "blockierte Benutzer",

View File

@@ -44,7 +44,8 @@
"enter": "enter APIkey", "enter": "enter APIkey",
"import": "import APIkey", "import": "import APIkey",
"key": "API key", "key": "API key",
"select_valid": "select a valid apikey" "select_valid": "select a valid apikey",
"clear_storage": "clear from storage"
}, },
"authentication": "authentication", "authentication": "authentication",
"blocked_users": "blocked users", "blocked_users": "blocked users",

View File

@@ -1,21 +1,21 @@
{ {
"1_getting_started": "1. Primeiros Passos", "1_getting_started": "1. Getting Started",
"2_overview": "2. Visão Geral", "2_overview": "2. Overview",
"3_groups": "3. Grupos do Qortal", "3_groups": "3. Qortal Groups",
"4_obtain_qort": "4. Obtendo QORT", "4_obtain_qort": "4. Obtaining Qort",
"account_creation": "criação de conta", "account_creation": "account creation",
"important_info": "informações importantes", "important_info": "important information",
"apps": { "apps": {
"dashboard": "1. Painel de Aplicativos", "dashboard": "1. Apps Dashboard",
"navigation": "2. Navegação de Aplicativos" "navigation": "2. Apps Navigation"
}, },
"initial": { "initial": {
"recommended_qort_qty": "tenha pelo menos {{ quantity }} QORT na sua carteira", "recommended_qort_qty": "have at least {{ quantity }} QORT in your wallet",
"explore": "explorar", "explore": "explore",
"general_chat": "chat geral", "general_chat": "general chat",
"getting_started": "primeiros passos", "getting_started": "getting started",
"register_name": "registrar um nome", "register_name": "register a name",
"see_apps": "ver aplicativos", "see_apps": "see apps",
"trade_qort": "trocar QORT" "trade_qort": "trade QORT"
} }
} }

View File

@@ -44,7 +44,8 @@
"enter": "ingresar clave API", "enter": "ingresar clave API",
"import": "importar clave API", "import": "importar clave API",
"key": "clave API", "key": "clave API",
"select_valid": "selecciona una clave API válida" "select_valid": "selecciona una clave API válida",
"clear_storage": "borrar del almacenamiento"
}, },
"authentication": "autenticación", "authentication": "autenticación",
"blocked_users": "usuarios bloqueados", "blocked_users": "usuarios bloqueados",

View File

@@ -44,7 +44,8 @@
"enter": "entrer la clé API", "enter": "entrer la clé API",
"import": "importer la clé API", "import": "importer la clé API",
"key": "clé API", "key": "clé API",
"select_valid": "sélectionner une clé API valide" "select_valid": "sélectionner une clé API valide",
"clear_storage": "effacer du stockage"
}, },
"authentication": "authentification", "authentication": "authentification",
"blocked_users": "utilisateurs bloqués", "blocked_users": "utilisateurs bloqués",

View File

@@ -44,7 +44,8 @@
"enter": "inserisci Apikey", "enter": "inserisci Apikey",
"import": "importa apikey", "import": "importa apikey",
"key": "chiave API", "key": "chiave API",
"select_valid": "seleziona una apikey valida" "select_valid": "seleziona una apikey valida",
"clear_storage": "rimuovi dalla memoria"
}, },
"authentication": "autenticazione", "authentication": "autenticazione",
"blocked_users": "utenti bloccati", "blocked_users": "utenti bloccati",

View File

@@ -44,7 +44,8 @@
"enter": "APIキーを入力", "enter": "APIキーを入力",
"import": "APIキーをインポート", "import": "APIキーをインポート",
"key": "APIキー", "key": "APIキー",
"select_valid": "有効なAPIキーを選択してください" "select_valid": "有効なAPIキーを選択してください",
"clear_storage": "ストレージから削除"
}, },
"authentication": "認証", "authentication": "認証",
"blocked_users": "ブロックされたユーザー", "blocked_users": "ブロックされたユーザー",

View File

@@ -44,7 +44,8 @@
"enter": "digitar APIkey", "enter": "digitar APIkey",
"import": "importar APIkey", "import": "importar APIkey",
"key": "API key", "key": "API key",
"select_valid": "selecionar uma APIkey válida" "select_valid": "selecionar uma APIkey válida",
"clear_storage": "limpar do armazenamento"
}, },
"authentication": "autenticação", "authentication": "autenticação",
"blocked_users": "usuarios bloqueados", "blocked_users": "usuarios bloqueados",

View File

@@ -44,7 +44,8 @@
"enter": "введите API-ключ", "enter": "введите API-ключ",
"import": "импортировать API-ключ", "import": "импортировать API-ключ",
"key": "API-ключ", "key": "API-ключ",
"select_valid": "выберите допустимый API-ключ" "select_valid": "выберите допустимый API-ключ",
"clear_storage": "удалить из хранилища"
}, },
"authentication": "аутентификация", "authentication": "аутентификация",
"blocked_users": "заблокированные пользователи", "blocked_users": "заблокированные пользователи",

View File

@@ -44,7 +44,8 @@
"enter": "输入 API 密钥", "enter": "输入 API 密钥",
"import": "导入 API 密钥", "import": "导入 API 密钥",
"key": "API 密钥", "key": "API 密钥",
"select_valid": "请选择一个有效的 API 密钥" "select_valid": "请选择一个有效的 API 密钥",
"clear_storage": "从存储中清除"
}, },
"authentication": "身份验证", "authentication": "身份验证",
"blocked_users": "已屏蔽用户", "blocked_users": "已屏蔽用户",