diff --git a/locales/index.d.ts b/locales/index.d.ts index 91bbe4ccb6..0b1b86d373 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -3364,6 +3364,10 @@ export interface Locale extends ILocale { * 管理者情報が設定されていません。 */ "noMaintainerInformationWarning": string; + /** + * 問い合わせ先URLが設定されていません。 + */ + "noInquiryUrlWarning": string; /** * Botプロテクションが設定されていません。 */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index b7083b4942..a89cfbd843 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -837,6 +837,7 @@ administration: "管理" accounts: "アカウント" switch: "切り替え" noMaintainerInformationWarning: "管理者情報が設定されていません。" +noInquiryUrlWarning: "問い合わせ先URLが設定されていません。" noBotProtectionWarning: "Botプロテクションが設定されていません。" configure: "設定する" postToGallery: "ギャラリーへ投稿" diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index eef1c8afa9..794feae202 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -12,10 +12,13 @@ SPDX-License-Identifier: AGPL-3.0-only - {{ i18n.ts.thereIsUnresolvedAbuseReportWarning }} {{ i18n.ts.check }} - {{ i18n.ts.noMaintainerInformationWarning }} {{ i18n.ts.configure }} - {{ i18n.ts.noBotProtectionWarning }} {{ i18n.ts.configure }} - {{ i18n.ts.noEmailServerWarning }} {{ i18n.ts.configure }} +
+ {{ i18n.ts.thereIsUnresolvedAbuseReportWarning }} {{ i18n.ts.check }} + {{ i18n.ts.noMaintainerInformationWarning }} {{ i18n.ts.configure }} + {{ i18n.ts.noInquiryUrlWarning }} {{ i18n.ts.configure }} + {{ i18n.ts.noBotProtectionWarning }} {{ i18n.ts.configure }} + {{ i18n.ts.noEmailServerWarning }} {{ i18n.ts.configure }} +
@@ -61,6 +64,7 @@ const pageProps = ref({}); let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail); let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha && !instance.enableTurnstile; let noEmailServer = !instance.enableEmail; +let noInquiryUrl = isEmpty(instance.inquiryUrl); const thereIsUnresolvedAbuseReport = ref(false); const currentPage = computed(() => router.currentRef.value.child); @@ -348,10 +352,6 @@ defineExpose({ > .nav { .lxpfedzu { - > .info { - margin: 16px 0; - } - > .banner { margin: 16px;