mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-13 12:42:47 +02:00
feat: add extra warning for admin keys (#4063)
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
parent
b5454f3a18
commit
9177e2262a
21 changed files with 90 additions and 15 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
20
lnbits/static/bundle.min.js
vendored
20
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -99,6 +99,10 @@ window.localisation.br = {
|
|||
view_swagger_docs: 'Ver a documentação da API do LNbits Swagger',
|
||||
api_docs: 'Documentação da API',
|
||||
api_keys_api_docs: 'URL do Node, chaves da API e documentação da API',
|
||||
api_keys_warning:
|
||||
'Essas chaves devem ser mantidas em segurança; compartilhá-las pode resultar na perda de fundos.',
|
||||
admin_key_warning:
|
||||
'Sua chave de administrador concede acesso total à sua carteira, incluindo a capacidade de enviar pagamentos. Nunca a compartilhe, a menos que confie plenamente no destinatário.',
|
||||
lnbits_version: 'Versão do LNbits',
|
||||
runs_on: 'Executa em',
|
||||
paste: 'Colar',
|
||||
|
|
|
|||
|
|
@ -68,6 +68,9 @@ window.localisation.cn = {
|
|||
view_swagger_docs: '查看 LNbits Swagger API 文档',
|
||||
api_docs: 'API文档',
|
||||
api_keys_api_docs: '节点URL、API密钥和API文档',
|
||||
api_keys_warning: '请妥善保管这些密钥,分享它们可能导致资金损失。',
|
||||
admin_key_warning:
|
||||
'您的管理员密钥可完全访问您的钱包,包括发送付款的权限。除非您完全信任接收者,否则切勿分享。',
|
||||
lnbits_version: 'LNbits版本',
|
||||
runs_on: '可运行在',
|
||||
paste: '粘贴',
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ window.localisation.cs = {
|
|||
view_swagger_docs: 'Zobrazit LNbits Swagger API dokumentaci',
|
||||
api_docs: 'API dokumentace',
|
||||
api_keys_api_docs: 'Adresa uzlu, API klíče a API dokumentace',
|
||||
api_keys_warning:
|
||||
'Tyto klíče uchovávejte v bezpečí, jejich sdílení může vést ke ztrátě prostředků.',
|
||||
admin_key_warning:
|
||||
'Váš administrátorský klíč poskytuje plný přístup k peněžence včetně možnosti odesílat platby. Nikdy jej nesdílejte, pokud příjemci plně nedůvěřujete.',
|
||||
lnbits_version: 'Verze LNbits',
|
||||
runs_on: 'Běží na',
|
||||
paste: 'Vložit',
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ window.localisation.de = {
|
|||
view_swagger_docs: 'LNbits Swagger API-Dokumentation',
|
||||
api_docs: 'API-Dokumentation',
|
||||
api_keys_api_docs: 'Knoten-URL, API-Schlüssel und API-Dokumentation',
|
||||
api_keys_warning:
|
||||
'Diese Schlüssel sollten sicher aufbewahrt werden; ihre Weitergabe kann zum Verlust von Guthaben führen.',
|
||||
admin_key_warning:
|
||||
'Dein Admin-Schlüssel gewährt vollen Zugriff auf deine Wallet, einschließlich der Möglichkeit, Zahlungen zu senden. Teile ihn niemals, es sei denn, du vertraust dem Empfänger vollständig.',
|
||||
lnbits_version: 'LNbits-Version',
|
||||
runs_on: 'Läuft auf',
|
||||
paste: 'Einfügen',
|
||||
|
|
|
|||
|
|
@ -98,6 +98,10 @@ window.localisation.en = {
|
|||
view_swagger_docs: 'View LNbits Swagger API docs',
|
||||
api_docs: 'API docs',
|
||||
api_keys_api_docs: 'Node URL, API keys and API docs',
|
||||
api_keys_warning:
|
||||
'These keys should be kept safe, sharing them could risk losing funds.',
|
||||
admin_key_warning:
|
||||
'Your admin key grants full access to your wallet, including the ability to send payments. Never share it unless you fully trust the recipient.',
|
||||
lnbits_version: 'LNbits version',
|
||||
runs_on: 'Runs on',
|
||||
paste: 'Paste',
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ window.localisation.es = {
|
|||
view_swagger_docs: 'Ver documentación de API de LNbits Swagger',
|
||||
api_docs: 'Documentación de API',
|
||||
api_keys_api_docs: 'URL del nodo, claves de API y documentación de API',
|
||||
api_keys_warning:
|
||||
'Estas claves deben mantenerse seguras; compartirlas podría provocar la pérdida de fondos.',
|
||||
admin_key_warning:
|
||||
'Tu clave de administrador otorga acceso total a tu billetera, incluida la posibilidad de enviar pagos. Nunca la compartas a menos que confíes plenamente en el destinatario.',
|
||||
lnbits_version: 'Versión de LNbits',
|
||||
runs_on: 'Corre en',
|
||||
paste: 'Pegar',
|
||||
|
|
|
|||
|
|
@ -81,6 +81,10 @@ window.localisation.fi = {
|
|||
view_swagger_docs: 'Näytä LNbits Swagger API-dokumentit',
|
||||
api_docs: 'API-dokumentaatio',
|
||||
api_keys_api_docs: 'Solmun URL, API-avaimet ja -dokumentaatio',
|
||||
api_keys_warning:
|
||||
'Pidä nämä avaimet turvassa, sillä niiden jakaminen voi johtaa varojen menetykseen.',
|
||||
admin_key_warning:
|
||||
'Ylläpitäjäavaimesi antaa täyden pääsyn lompakkoosi, myös maksujen lähettämiseen. Älä koskaan jaa sitä, ellet täysin luota vastaanottajaan.',
|
||||
lnbits_version: 'LNbits versio',
|
||||
runs_on: 'Mukana menossa',
|
||||
paste: 'Liitä',
|
||||
|
|
|
|||
|
|
@ -75,6 +75,10 @@ window.localisation.fr = {
|
|||
view_swagger_docs: "Voir les documentation de l'API Swagger de LNbits",
|
||||
api_docs: "Documentation de l'API",
|
||||
api_keys_api_docs: 'URL du nœud, clés API et documentation API',
|
||||
api_keys_warning:
|
||||
'Ces clés doivent être conservées en lieu sûr ; les partager pourrait entraîner la perte de fonds.',
|
||||
admin_key_warning:
|
||||
"Votre clé d'administrateur donne un accès complet à votre portefeuille, y compris la possibilité d'envoyer des paiements. Ne la partagez jamais, sauf si vous faites entièrement confiance au destinataire.",
|
||||
lnbits_version: 'Version de LNbits',
|
||||
runs_on: 'Fonctionne sur',
|
||||
paste: 'Coller',
|
||||
|
|
|
|||
|
|
@ -73,6 +73,10 @@ window.localisation.it = {
|
|||
view_swagger_docs: "Visualizza i documentazione dell'API Swagger di LNbits",
|
||||
api_docs: "Documentazione dell'API",
|
||||
api_keys_api_docs: 'URL del nodo, chiavi API e documentazione API',
|
||||
api_keys_warning:
|
||||
'Queste chiavi devono essere conservate al sicuro; condividerle potrebbe causare la perdita di fondi.',
|
||||
admin_key_warning:
|
||||
'La tua chiave di amministratore concede accesso completo al tuo portafoglio, inclusa la possibilità di inviare pagamenti. Non condividerla mai, a meno che tu non ti fidi completamente del destinatario.',
|
||||
lnbits_version: 'Versione di LNbits',
|
||||
runs_on: 'Esegue su',
|
||||
paste: 'Incolla',
|
||||
|
|
|
|||
|
|
@ -69,6 +69,10 @@ window.localisation.jp = {
|
|||
view_swagger_docs: 'Swaggerドキュメントを表示',
|
||||
api_docs: 'APIドキュメント',
|
||||
api_keys_api_docs: 'ノードURL、APIキー、APIドキュメント',
|
||||
api_keys_warning:
|
||||
'これらのキーは安全に保管してください。共有すると資金を失うおそれがあります。',
|
||||
admin_key_warning:
|
||||
'管理者キーは、支払いの送信を含むウォレットへの完全なアクセスを許可します。受取人を完全に信頼している場合を除き、決して共有しないでください。',
|
||||
lnbits_version: 'LNbits バージョン',
|
||||
runs_on: 'で実行',
|
||||
paste: '貼り付け',
|
||||
|
|
|
|||
|
|
@ -71,6 +71,10 @@ window.localisation.kr = {
|
|||
view_swagger_docs: 'LNbits Swagger API 문서를 봅니다',
|
||||
api_docs: 'API 문서',
|
||||
api_keys_api_docs: '노드 URL, API 키와 API 문서',
|
||||
api_keys_warning:
|
||||
'이 키는 안전하게 보관해야 하며, 공유하면 자금을 잃을 위험이 있습니다.',
|
||||
admin_key_warning:
|
||||
'관리자 키는 결제 전송을 포함하여 지갑에 대한 모든 권한을 부여합니다. 수신자를 완전히 신뢰하는 경우가 아니라면 절대 공유하지 마세요.',
|
||||
lnbits_version: 'LNbits 버전',
|
||||
runs_on: 'Runs on',
|
||||
paste: '붙여넣기',
|
||||
|
|
|
|||
|
|
@ -73,6 +73,10 @@ window.localisation.nl = {
|
|||
view_swagger_docs: 'Bekijk LNbits Swagger API-documentatie',
|
||||
api_docs: 'API-documentatie',
|
||||
api_keys_api_docs: 'Node URL, API-sleutels en API-documentatie',
|
||||
api_keys_warning:
|
||||
'Bewaar deze sleutels veilig; het delen ervan kan leiden tot verlies van tegoeden.',
|
||||
admin_key_warning:
|
||||
'Je beheerderssleutel geeft volledige toegang tot je wallet, inclusief de mogelijkheid om betalingen te versturen. Deel deze nooit, tenzij je de ontvanger volledig vertrouwt.',
|
||||
lnbits_version: 'LNbits-versie',
|
||||
runs_on: 'Draait op',
|
||||
paste: 'Plakken',
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ window.localisation.pi = {
|
|||
view_swagger_docs: 'View LNbits Swagger API docs and learn the secrets',
|
||||
api_docs: 'API docs for the scallywags',
|
||||
api_keys_api_docs: 'Node URL, API keys and API docs',
|
||||
api_keys_warning:
|
||||
'Keep these keys safe, matey; sharing them could lose ye yer doubloons.',
|
||||
admin_key_warning:
|
||||
'Yer admin key gives full access to yer wallet, including sending payments. Never share it unless ye trust the recipient completely.',
|
||||
lnbits_version: 'LNbits version, arr!',
|
||||
runs_on: 'Runs on, matey',
|
||||
paste: 'Stow',
|
||||
|
|
|
|||
|
|
@ -71,6 +71,10 @@ window.localisation.pl = {
|
|||
view_swagger_docs: 'Dokumentacja Swagger API',
|
||||
api_docs: 'Dokumentacja API',
|
||||
api_keys_api_docs: 'Adres URL węzła, klucze API i dokumentacja API',
|
||||
api_keys_warning:
|
||||
'Te klucze należy przechowywać bezpiecznie; ich udostępnienie może grozić utratą środków.',
|
||||
admin_key_warning:
|
||||
'Twój klucz administratora zapewnia pełny dostęp do portfela, w tym możliwość wysyłania płatności. Nigdy go nie udostępniaj, chyba że całkowicie ufasz odbiorcy.',
|
||||
lnbits_version: 'Wersja LNbits',
|
||||
runs_on: 'Działa na',
|
||||
paste: 'Wklej',
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ window.localisation.pt = {
|
|||
view_swagger_docs: 'Ver a documentação da API do LNbits Swagger',
|
||||
api_docs: 'Documentação da API',
|
||||
api_keys_api_docs: 'URL do Nó, chaves de API e documentação de API',
|
||||
api_keys_warning:
|
||||
'Estas chaves devem ser mantidas em segurança; partilhá-las pode resultar na perda de fundos.',
|
||||
admin_key_warning:
|
||||
'A sua chave de administrador concede acesso total à sua carteira, incluindo a capacidade de enviar pagamentos. Nunca a partilhe, a menos que confie plenamente no destinatário.',
|
||||
lnbits_version: 'Versão do LNbits',
|
||||
runs_on: 'Executa em',
|
||||
paste: 'Colar',
|
||||
|
|
|
|||
|
|
@ -69,6 +69,10 @@ window.localisation.sk = {
|
|||
view_swagger_docs: 'Zobraziť LNbits Swagger API dokumentáciu',
|
||||
api_docs: 'API dokumentácia',
|
||||
api_keys_api_docs: 'Adresa uzla, API kľúče a API dokumentácia',
|
||||
api_keys_warning:
|
||||
'Tieto kľúče uchovávajte v bezpečí, ich zdieľanie môže viesť k strate prostriedkov.',
|
||||
admin_key_warning:
|
||||
'Váš administrátorský kľúč poskytuje úplný prístup k peňaženke vrátane možnosti odosielať platby. Nikdy ho nezdieľajte, pokiaľ príjemcovi úplne nedôverujete.',
|
||||
lnbits_version: 'Verzia LNbits',
|
||||
runs_on: 'Beží na',
|
||||
paste: 'Vložiť',
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ window.localisation.we = {
|
|||
view_swagger_docs: 'Gweld dogfennau API LNbits Swagger',
|
||||
api_docs: 'Dogfennau API',
|
||||
api_keys_api_docs: 'URL y nod, allweddi API a dogfennau API',
|
||||
api_keys_warning:
|
||||
"Dylid cadw'r allweddi hyn yn ddiogel; gall eu rhannu arwain at golli arian.",
|
||||
admin_key_warning:
|
||||
"Mae eich allwedd weinyddol yn rhoi mynediad llawn i'ch waled, gan gynnwys y gallu i anfon taliadau. Peidiwch byth â'i rhannu oni bai eich bod yn ymddiried yn llwyr yn y derbynnydd.",
|
||||
lnbits_version: 'Fersiwn LNbits',
|
||||
runs_on: 'Yn rhedeg ymlaen',
|
||||
paste: 'Gludo',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
window.app.component('lnbits-wallet-api-docs', {
|
||||
template: '#lnbits-wallet-api-docs',
|
||||
methods: {
|
||||
copyAdminKey() {
|
||||
LNbits.utils
|
||||
.confirmDialog(this.$t('admin_key_warning'))
|
||||
.onOk(() => LNbits.utils.copyText(this.g.wallet.adminkey))
|
||||
},
|
||||
resetKeys() {
|
||||
LNbits.utils
|
||||
.confirmDialog('Are you sure you want to reset your API keys?')
|
||||
|
|
|
|||
|
|
@ -6,9 +6,12 @@
|
|||
:content-inset-level="0.5"
|
||||
>
|
||||
<q-card-section>
|
||||
<q-banner dense rounded class="bg-warning text-black q-mb-md">
|
||||
These keys should be kept safe, sharing them could risk losing funds.
|
||||
</q-banner>
|
||||
<q-banner
|
||||
dense
|
||||
rounded
|
||||
class="bg-warning text-black q-mb-md"
|
||||
v-text="$t('api_keys_warning')"
|
||||
></q-banner>
|
||||
<q-list>
|
||||
<q-item dense class="q-pa-none">
|
||||
<q-item-section>
|
||||
|
|
@ -69,7 +72,7 @@
|
|||
<q-icon
|
||||
name="content_copy"
|
||||
class="cursor-pointer q-ml-sm"
|
||||
@click="utils.copyText(g.wallet.adminkey)"
|
||||
@click="copyAdminKey()"
|
||||
></q-icon>
|
||||
<q-icon name="qr_code" class="cursor-pointer q-ml-sm">
|
||||
<q-popup-proxy>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue