diff --git a/CHANGELOG.md b/CHANGELOG.md index 904083e7b..eb91425e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ You should also include the user name that made the change. ### Improvements - Server: Add rate limit to i/notifications @tamaina - Client: Improve files page of control panel @syuilo +- Client: Show warning in control panel when there is an unresolved abuse report @syuilo - Improve player detection in URL preview @mei23 - Add Badge Image to Push Notification #8012 @tamaina diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 082b8a24b..f7011455b 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -848,6 +848,10 @@ rateLimitExceeded: "レート制限を超えました" cropImage: "画像のクロップ" cropImageAsk: "画像をクロップしますか?" file: "ファイル" +noEmailServerWarning: "メールサーバーの設定がされていません。" +thereIsUnresolvedAbuseReportWarning: "未対応の通報があります。" +recommended: "推奨" +check: "チェック" _emailUnavailable: used: "既に使用されています" diff --git a/packages/client/src/pages/admin/email-settings.vue b/packages/client/src/pages/admin/email-settings.vue index 5487c5f33..c0ff94fad 100644 --- a/packages/client/src/pages/admin/email-settings.vue +++ b/packages/client/src/pages/admin/email-settings.vue @@ -5,7 +5,7 @@
- + diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index 5db91101d..b91330e1b 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -7,8 +7,10 @@
+ {{ $ts.thereIsUnresolvedAbuseReportWarning }} {{ $ts.check }} {{ $ts.noMaintainerInformationWarning }} {{ $ts.configure }} {{ $ts.noBotProtectionWarning }} {{ $ts.configure }} + {{ $ts.noEmailServerWarning }} {{ $ts.configure }} @@ -58,6 +60,15 @@ let el = $ref(null); let pageProps = $ref({}); let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail); let noBotProtection = !instance.enableHcaptcha && !instance.enableRecaptcha; +let noEmailServer = !instance.enableEmail; +let thereIsUnresolvedAbuseReport = $ref(false); + +os.api('admin/abuse-user-reports', { + state: 'unresolved', + limit: 1, +}).then(reports => { + if (reports.length > 0) thereIsUnresolvedAbuseReport = true; +}); const NARROW_THRESHOLD = 600; const ro = new ResizeObserver((entries, observer) => {