From 7b3c62b9162e01bd83e92ec4a166bf8d7d29b6f1 Mon Sep 17 00:00:00 2001 From: AKILA INDUNIL <45641122+akilaid@users.noreply.github.com> Date: Fri, 18 Apr 2025 00:28:38 +0530 Subject: [PATCH] Added a toggle to use public IPv4 in QR/URI Added an option to use the server's public IPv4 when generating QR codes and URIs. Included necessary translation updates for the new option. --- web/html/modals/qrcode_modal.html | 159 +++++++++++++++++++++++++-- web/translation/translate.ar_EG.toml | 1 + web/translation/translate.en_US.toml | 1 + web/translation/translate.es_ES.toml | 1 + web/translation/translate.fa_IR.toml | 1 + web/translation/translate.id_ID.toml | 1 + web/translation/translate.ja_JP.toml | 1 + web/translation/translate.pt_BR.toml | 1 + web/translation/translate.ru_RU.toml | 1 + web/translation/translate.tr_TR.toml | 1 + web/translation/translate.uk_UA.toml | 1 + web/translation/translate.vi_VN.toml | 1 + web/translation/translate.zh_CN.toml | 1 + web/translation/translate.zh_TW.toml | 1 + 14 files changed, 161 insertions(+), 11 deletions(-) diff --git a/web/html/modals/qrcode_modal.html b/web/html/modals/qrcode_modal.html index 92d30e93..29b9a940 100644 --- a/web/html/modals/qrcode_modal.html +++ b/web/html/modals/qrcode_modal.html @@ -1,10 +1,9 @@ {{define "modals/qrcodeModal"}} + :dialog-style="isMobile ? { top: '18px' } : {}" :closable="true" :class="themeSwitcher.currentTheme" :footer="null" + width="fit-content"> + {{ i18n "pages.settings.subSettings"}} @@ -25,6 +24,18 @@ + + {{ i18n "useIPv4ForHost" }}: + + + + [[ row.remark ]] @@ -34,6 +45,53 @@ + + -{{end}} +{{end}} \ No newline at end of file diff --git a/web/translation/translate.ar_EG.toml b/web/translation/translate.ar_EG.toml index 8a50d648..229f1320 100644 --- a/web/translation/translate.ar_EG.toml +++ b/web/translation/translate.ar_EG.toml @@ -29,6 +29,7 @@ "copySuccess" = "اتنسخ بنجاح" "sure" = "متأكد؟" "encryption" = "تشفير" +"useIPv4ForHost" = "استخدم IPv4 للمضيف" "transmission" = "نقل" "host" = "المستضيف" "path" = "مسار" diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index af06fb61..c691cbdd 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -29,6 +29,7 @@ "copySuccess" = "Copied Successful" "sure" = "Sure" "encryption" = "Encryption" +"useIPv4ForHost" = "Use IPv4 for host" "transmission" = "Transmission" "host" = "Host" "path" = "Path" diff --git a/web/translation/translate.es_ES.toml b/web/translation/translate.es_ES.toml index 1820565e..d989b3e9 100644 --- a/web/translation/translate.es_ES.toml +++ b/web/translation/translate.es_ES.toml @@ -29,6 +29,7 @@ "copySuccess" = "Copiado exitosamente" "sure" = "Seguro" "encryption" = "Encriptación" +"useIPv4ForHost" = "Usar IPv4 para el host" "transmission" = "Transmisión" "host" = "Anfitrión" "path" = "Ruta" diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index f6821b7a..96a39ca9 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -29,6 +29,7 @@ "copySuccess" = "باموفقیت کپیشد" "sure" = "مطمئن" "encryption" = "رمزگذاری" +"useIPv4ForHost" = "از IPv4 برای میزبان استفاده کنید" "transmission" = "راهاتصال" "host" = "آدرس" "path" = "مسیر" diff --git a/web/translation/translate.id_ID.toml b/web/translation/translate.id_ID.toml index 265770a7..f2277a27 100644 --- a/web/translation/translate.id_ID.toml +++ b/web/translation/translate.id_ID.toml @@ -29,6 +29,7 @@ "copySuccess" = "Berhasil Disalin" "sure" = "Yakin" "encryption" = "Enkripsi" +"useIPv4ForHost" = "Gunakan IPv4 untuk host" "transmission" = "Transmisi" "host" = "Host" "path" = "Jalur" diff --git a/web/translation/translate.ja_JP.toml b/web/translation/translate.ja_JP.toml index 7946a56e..2c8df756 100644 --- a/web/translation/translate.ja_JP.toml +++ b/web/translation/translate.ja_JP.toml @@ -29,6 +29,7 @@ "copySuccess" = "コピー成功" "sure" = "確定" "encryption" = "暗号化" +"useIPv4ForHost" = "ホストにIPv4を使用" "transmission" = "伝送" "host" = "ホスト" "path" = "パス" diff --git a/web/translation/translate.pt_BR.toml b/web/translation/translate.pt_BR.toml index 793d6799..87a44ca6 100644 --- a/web/translation/translate.pt_BR.toml +++ b/web/translation/translate.pt_BR.toml @@ -29,6 +29,7 @@ "copySuccess" = "Copiado com Sucesso" "sure" = "Certo" "encryption" = "Criptografia" +"useIPv4ForHost" = "Usar IPv4 para o host" "transmission" = "Transmissão" "host" = "Servidor" "path" = "Caminho" diff --git a/web/translation/translate.ru_RU.toml b/web/translation/translate.ru_RU.toml index b4b00366..47891227 100644 --- a/web/translation/translate.ru_RU.toml +++ b/web/translation/translate.ru_RU.toml @@ -29,6 +29,7 @@ "copySuccess" = "Скопировано" "sure" = "Да" "encryption" = "Шифрование" +"useIPv4ForHost" = "Использовать IPv4 для хоста" "transmission" = "Протокол" "host" = "Хост" "path" = "Путь" diff --git a/web/translation/translate.tr_TR.toml b/web/translation/translate.tr_TR.toml index 0dc4d05b..2b617ca5 100644 --- a/web/translation/translate.tr_TR.toml +++ b/web/translation/translate.tr_TR.toml @@ -29,6 +29,7 @@ "copySuccess" = "Başarıyla Kopyalandı" "sure" = "Emin misiniz" "encryption" = "Şifreleme" +"useIPv4ForHost" = "Ana bilgisayar için IPv4 kullan" "transmission" = "İletim" "host" = "Sunucu" "path" = "Yol" diff --git a/web/translation/translate.uk_UA.toml b/web/translation/translate.uk_UA.toml index 0b2efce4..ad3aea41 100644 --- a/web/translation/translate.uk_UA.toml +++ b/web/translation/translate.uk_UA.toml @@ -29,6 +29,7 @@ "copySuccess" = "Скопійовано успішно" "sure" = "Звичайно" "encryption" = "Шифрування" +"useIPv4ForHost" = "Використовувати IPv4 для хоста" "transmission" = "Протокол передачи" "host" = "Хост" "path" = "Шлях" diff --git a/web/translation/translate.vi_VN.toml b/web/translation/translate.vi_VN.toml index f5abc92b..3a825770 100644 --- a/web/translation/translate.vi_VN.toml +++ b/web/translation/translate.vi_VN.toml @@ -29,6 +29,7 @@ "copySuccess" = "Đã sao chép thành công" "sure" = "Chắc chắn" "encryption" = "Mã hóa" +"useIPv4ForHost" = "Sử dụng IPv4 cho máy chủ" "transmission" = "Truyền tải" "host" = "Máy chủ" "path" = "Đường dẫn" diff --git a/web/translation/translate.zh_CN.toml b/web/translation/translate.zh_CN.toml index eae8a560..750db7e6 100644 --- a/web/translation/translate.zh_CN.toml +++ b/web/translation/translate.zh_CN.toml @@ -29,6 +29,7 @@ "copySuccess" = "复制成功" "sure" = "确定" "encryption" = "加密" +"useIPv4ForHost" = "使用 IPv4 连接主机" "transmission" = "传输" "host" = "主机" "path" = "路径" diff --git a/web/translation/translate.zh_TW.toml b/web/translation/translate.zh_TW.toml index f2c80d42..abc953f5 100644 --- a/web/translation/translate.zh_TW.toml +++ b/web/translation/translate.zh_TW.toml @@ -29,6 +29,7 @@ "copySuccess" = "複製成功" "sure" = "確定" "encryption" = "加密" +"useIPv4ForHost" = "使用 IPv4 連接主機" "transmission" = "傳輸" "host" = "主機" "path" = "路徑"