From 4b3154c22c55b8cf3d9b7272a1acba04900b2511 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Mon, 19 Feb 2024 07:46:55 +0100 Subject: [PATCH] streamline reporting window --- locales/ar-SA.yml | 1 - locales/bn-BD.yml | 1 - locales/de-DE.yml | 1 - locales/en-US.yml | 1 - locales/es-ES.yml | 1 - locales/fr-FR.yml | 1 - locales/id-ID.yml | 1 - locales/it-IT.yml | 1 - locales/ja-JP.yml | 1 - locales/ko-KR.yml | 1 - locales/pl-PL.yml | 1 - locales/ro-RO.yml | 1 - locales/ru-RU.yml | 1 - locales/sk-SK.yml | 1 - locales/uk-UA.yml | 1 - locales/vi-VN.yml | 1 - locales/zh-CN.yml | 1 - locales/zh-TW.yml | 1 - packages/client/src/components/abuse-report-window.vue | 4 ---- packages/client/src/components/ui/window.vue | 4 ++++ 20 files changed, 4 insertions(+), 22 deletions(-) diff --git a/locales/ar-SA.yml b/locales/ar-SA.yml index 914123659..0b5380181 100644 --- a/locales/ar-SA.yml +++ b/locales/ar-SA.yml @@ -523,7 +523,6 @@ abuseReports: "البلاغات" reportAbuse: "أبلغ" reportAbuseOf: "أبلغ عن {name}" fillAbuseReportDescription: "أكتب بالتفصيل سبب البلاغ" -abuseReported: "أُرسل البلاغ، شكرًا لك" reporter: "المُبلّغ" reporteeOrigin: "أصل البلاغ" reporterOrigin: "أصل المُبلّغ" diff --git a/locales/bn-BD.yml b/locales/bn-BD.yml index 8abe8f9c6..b197aae84 100644 --- a/locales/bn-BD.yml +++ b/locales/bn-BD.yml @@ -569,7 +569,6 @@ abuseReports: "অভিযোগ" reportAbuse: "অভিযোগ" reportAbuseOf: "{name} এ অভিযোগ করুন" fillAbuseReportDescription: "রিপোর্টের কারণ বর্ণনা করুন." -abuseReported: "আপনার অভিযোগটি দাখিল করা হয়েছে। আপনাকে ধন্যবাদ।" reporter: "অভিযোগকারী" reporteeOrigin: "অভিযোগটির উৎস" reporterOrigin: "অভিযোগকারীর উৎস" diff --git a/locales/de-DE.yml b/locales/de-DE.yml index 6f0ba5f22..5ac759216 100644 --- a/locales/de-DE.yml +++ b/locales/de-DE.yml @@ -590,7 +590,6 @@ reportAbuse: "Melden" reportAbuseOf: "{name} melden" fillAbuseReportDescription: "Bitte gib zusätzliche Informationen zu dieser Meldung\ \ an." -abuseReported: "Deine Meldung wurde versendet. Vielen Dank." reporter: "Melder" reporteeOrigin: "Herkunft des Gemeldeten" reporterOrigin: "Herkunft des Meldenden" diff --git a/locales/en-US.yml b/locales/en-US.yml index 758efd6dd..488c12965 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -584,7 +584,6 @@ abuseReports: "Reports" reportAbuse: "Report" reportAbuseOf: "Report {name}" fillAbuseReportDescription: "Please fill in details regarding this report." -abuseReported: "Your report has been sent. Thank you very much." reporter: "Reporter" reporteeOrigin: "Reportee Origin" reporterOrigin: "Reporter Origin" diff --git a/locales/es-ES.yml b/locales/es-ES.yml index 6c827e8a2..a0a08c3b0 100644 --- a/locales/es-ES.yml +++ b/locales/es-ES.yml @@ -573,7 +573,6 @@ abuseReports: "Reportes" reportAbuse: "Reportar" reportAbuseOf: "Reportar a {name}" fillAbuseReportDescription: "Ingrese los detalles del reporte." -abuseReported: "Se ha enviado el reporte. Muchas gracias." reporteeOrigin: "Informar a" reporterOrigin: "Origen del informe" forwardReport: "Transferir un informe a una instancia remota" diff --git a/locales/fr-FR.yml b/locales/fr-FR.yml index 35c7f0cce..7a877750a 100644 --- a/locales/fr-FR.yml +++ b/locales/fr-FR.yml @@ -585,7 +585,6 @@ abuseReports: "Signalements" reportAbuse: "Signaler" reportAbuseOf: "Signaler {name}" fillAbuseReportDescription: "Veuillez expliquer les raisons du signalement." -abuseReported: "Le rapport est envoyé. Merci." reporter: "Signalé par" reporteeOrigin: "Origine du signalement" reporterOrigin: "Signalé par" diff --git a/locales/id-ID.yml b/locales/id-ID.yml index 6479ade21..83ed2314f 100644 --- a/locales/id-ID.yml +++ b/locales/id-ID.yml @@ -575,7 +575,6 @@ abuseReports: "Laporkan" reportAbuse: "Laporkan" reportAbuseOf: "Laporkan {name}" fillAbuseReportDescription: "Mohon isi rincian laporan." -abuseReported: "Laporan kamu telah dikirimkan. Terima kasih." reporter: "Pelapor" reporteeOrigin: "Yang dilaporkan" reporterOrigin: "Pelapor" diff --git a/locales/it-IT.yml b/locales/it-IT.yml index 0316bf6e7..445501af5 100644 --- a/locales/it-IT.yml +++ b/locales/it-IT.yml @@ -564,7 +564,6 @@ abuseReports: "Segnalazioni" reportAbuse: "Segnalazioni" reportAbuseOf: "Segnala {name}" fillAbuseReportDescription: "Si prega di spiegare il motivo della segnalazione." -abuseReported: "La segnalazione è stata inviata. Grazie." reporter: "il corrispondente" reporteeOrigin: "Origine del segnalato" reporterOrigin: "Origine del segnalatore" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 0df62de7f..13a35001d 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -528,7 +528,6 @@ abuseReports: "通報" reportAbuse: "通報" reportAbuseOf: "{name}を通報する" fillAbuseReportDescription: "通報理由の詳細を記入してください。" -abuseReported: "内容が送信されました。ご報告ありがとうございました。" reporter: "通報者" reporteeOrigin: "通報先" reporterOrigin: "通報元" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index fdaed1c35..0cdf717fd 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -543,7 +543,6 @@ abuseReports: "신고" reportAbuse: "신고" reportAbuseOf: "{name}을 신고하기" fillAbuseReportDescription: "신고하려는 이유를 자세히 알려주세요." -abuseReported: "신고를 보냈습니다. 신고해 주셔서 감사합니다." reporter: "신고자" reporteeOrigin: "피신고자" reporterOrigin: "신고자" diff --git a/locales/pl-PL.yml b/locales/pl-PL.yml index d0a16ce7b..1e58c0121 100644 --- a/locales/pl-PL.yml +++ b/locales/pl-PL.yml @@ -546,7 +546,6 @@ abuseReports: "Zgłoszenia" reportAbuse: "Zgłoś" reportAbuseOf: "Zgłoś {name}" fillAbuseReportDescription: "Wypełnij szczegóły zgłoszenia." -abuseReported: "Twoje zgłoszenie zostało wysłane. Dziękujemy." reporteeOrigin: "Pochodzenie osoby zgłoszonej" reporterOrigin: "Pochodzenie osoby zgłaszającej" send: "Wyślij" diff --git a/locales/ro-RO.yml b/locales/ro-RO.yml index 490c2b294..a68166415 100644 --- a/locales/ro-RO.yml +++ b/locales/ro-RO.yml @@ -574,7 +574,6 @@ abuseReports: "Rapoarte" reportAbuse: "Raportează" reportAbuseOf: "Raportează {name}" fillAbuseReportDescription: "Te rog scrie detaliile legate de acest raport." -abuseReported: "Raportul tău a fost trimis. Mulțumim." reporter: "Raportorul" reporteeOrigin: "Originea raportatului" reporterOrigin: "Originea raportorului" diff --git a/locales/ru-RU.yml b/locales/ru-RU.yml index 4ecd3d4ec..d0e841124 100644 --- a/locales/ru-RU.yml +++ b/locales/ru-RU.yml @@ -569,7 +569,6 @@ abuseReports: "Жалобы" reportAbuse: "Жалоба" reportAbuseOf: "Пожаловаться на пользователя {name}" fillAbuseReportDescription: "Опишите, пожалуйста, причину жалобы подробнее." -abuseReported: "Жалоба отправлена. Большое спасибо за информацию." reporteeOrigin: "О ком сообщено" reporterOrigin: "Кто сообщил" forwardReport: "Перенаправление отчета на инстант." diff --git a/locales/sk-SK.yml b/locales/sk-SK.yml index 59ec6b30e..d23896318 100644 --- a/locales/sk-SK.yml +++ b/locales/sk-SK.yml @@ -560,7 +560,6 @@ abuseReports: "Nahlásenia" reportAbuse: "Nahlásiť" reportAbuseOf: "Nahlásiť {name}" fillAbuseReportDescription: "Prosím vyplňte podrobnosti nahlásenia." -abuseReported: "Vaše nahlásenie je odoslané. Veľmi pekne ďakujeme." reporter: "Nahlásil" reporteeOrigin: "Pôvod nahláseného" reporterOrigin: "Pôvod nahlasovača" diff --git a/locales/uk-UA.yml b/locales/uk-UA.yml index 7f94f004f..8d83d4cbe 100644 --- a/locales/uk-UA.yml +++ b/locales/uk-UA.yml @@ -567,7 +567,6 @@ abuseReports: "Скарги" reportAbuse: "Поскаржитись" reportAbuseOf: "Поскаржитись на {name}" fillAbuseReportDescription: "Будь ласка вкажіть подробиці скарги." -abuseReported: "Дякуємо, вашу скаргу було відправлено." reporter: "Репортер" reporteeOrigin: "Про кого повідомлено" reporterOrigin: "Хто повідомив" diff --git a/locales/vi-VN.yml b/locales/vi-VN.yml index ff52fa322..06438649b 100644 --- a/locales/vi-VN.yml +++ b/locales/vi-VN.yml @@ -565,7 +565,6 @@ abuseReports: "Lượt báo cáo" reportAbuse: "Báo cáo" reportAbuseOf: "Báo cáo {name}" fillAbuseReportDescription: "Vui lòng điền thông tin chi tiết về báo cáo này." -abuseReported: "Báo cáo đã được gửi. Cảm ơn bạn nhiều." reporter: "Người báo cáo" reporteeOrigin: "Bị báo cáo" reporterOrigin: "Máy chủ người báo cáo" diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index fc8678b0b..d06ccead3 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -526,7 +526,6 @@ abuseReports: "举报" reportAbuse: "举报" reportAbuseOf: "举报{name}" fillAbuseReportDescription: "请填写举报的详细原因。" -abuseReported: "内容已发送。感谢您提交信息。" reporter: "举报者" reporteeOrigin: "举报来源" reporterOrigin: "举报者来源" diff --git a/locales/zh-TW.yml b/locales/zh-TW.yml index a9edc0f8b..2d23b5a05 100644 --- a/locales/zh-TW.yml +++ b/locales/zh-TW.yml @@ -525,7 +525,6 @@ abuseReports: "檢舉" reportAbuse: "檢舉" reportAbuseOf: "檢舉{name}" fillAbuseReportDescription: "請填寫檢舉的詳細理由。" -abuseReported: "回報已送出。感謝您的報告。" reporter: "檢舉者" reporteeOrigin: "檢舉來源" reporterOrigin: "檢舉者來源" diff --git a/packages/client/src/components/abuse-report-window.vue b/packages/client/src/components/abuse-report-window.vue index 4ea98605c..8c3fea0bd 100644 --- a/packages/client/src/components/abuse-report-window.vue +++ b/packages/client/src/components/abuse-report-window.vue @@ -49,10 +49,6 @@ function send(): void { urls: props.urls || [], comment: comment.value, }).then(() => { - os.alert({ - type: 'success', - text: i18n.ts.abuseReported, - }); uiWindow.value?.close(); emit('closed'); }); diff --git a/packages/client/src/components/ui/window.vue b/packages/client/src/components/ui/window.vue index 5353ca01a..1c0b6cddb 100644 --- a/packages/client/src/components/ui/window.vue +++ b/packages/client/src/components/ui/window.vue @@ -331,6 +331,10 @@ function onBrowserResize(): void { if (position.left + windowWidth > browserWidth) main.style.left = (browserWidth - windowWidth) + 'px'; // 右はみ出し if (position.top < 0) main.style.top = '0'; // 上はみ出し } + +defineExpose({ + close, +});