From 3c1d39ff309669206aba130ff41eb58595989757 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Wed, 17 Apr 2024 22:36:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20vrtlAvailable=E3=82=92web=E3=81=8B?= =?UTF-8?q?=E3=82=89=E3=81=84=E3=81=98=E3=82=8C=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.d.ts | 4 ++++ locales/ja-JP.yml | 1 + .../src/core/entities/MetaEntityService.ts | 1 + .../backend/src/models/json-schema/meta.ts | 4 ++++ packages/frontend/src/const.ts | 1 + .../frontend/src/pages/admin/roles.editor.vue | 20 +++++++++++++++++++ packages/frontend/src/pages/admin/roles.vue | 8 ++++++++ packages/misskey-js/src/autogen/types.ts | 1 + 8 files changed, 40 insertions(+) diff --git a/locales/index.d.ts b/locales/index.d.ts index 7ce812751fdd..1ea07e11396f 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -6446,6 +6446,10 @@ export interface Locale extends ILocale { * ローカルタイムラインの閲覧 */ "ltlAvailable": string; + /** + * ぶいみみリレータイムラインの閲覧 + */ + "vrtlAvailable": string; /** * パブリック投稿の許可 */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 82bd5406578b..500f29faf2bb 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1666,6 +1666,7 @@ _role: _options: gtlAvailable: "グローバルタイムラインの閲覧" ltlAvailable: "ローカルタイムラインの閲覧" + vrtlAvailable: "ぶいみみリレータイムラインの閲覧" canPublicNote: "パブリック投稿の許可" mentionMax: "ノート内の最大メンション数" canInvite: "サーバー招待コードの発行" diff --git a/packages/backend/src/core/entities/MetaEntityService.ts b/packages/backend/src/core/entities/MetaEntityService.ts index b50d76288f27..8df7ae0cafb8 100644 --- a/packages/backend/src/core/entities/MetaEntityService.ts +++ b/packages/backend/src/core/entities/MetaEntityService.ts @@ -137,6 +137,7 @@ export class MetaEntityService { features: { localTimeline: instance.policies.ltlAvailable, globalTimeline: instance.policies.gtlAvailable, + vrtlAvailable: instance.policies.vrtlAvailable, registration: !instance.disableRegistration, emailRequiredForSignup: instance.emailRequiredForSignup, hcaptcha: instance.enableHcaptcha, diff --git a/packages/backend/src/models/json-schema/meta.ts b/packages/backend/src/models/json-schema/meta.ts index 17789f3b46ce..34ba9ad24568 100644 --- a/packages/backend/src/models/json-schema/meta.ts +++ b/packages/backend/src/models/json-schema/meta.ts @@ -266,6 +266,10 @@ export const packedMetaDetailedOnlySchema = { type: 'boolean', optional: false, nullable: false, }, + vrtlAvailable: { + type: 'boolean', + optional: false, nullable: false, + }, hcaptcha: { type: 'boolean', optional: false, nullable: false, diff --git a/packages/frontend/src/const.ts b/packages/frontend/src/const.ts index 9e41926a97a1..fa6fd253a851 100644 --- a/packages/frontend/src/const.ts +++ b/packages/frontend/src/const.ts @@ -74,6 +74,7 @@ export const obsoleteNotificationTypes = ['pollVote', 'groupInvited'] as const; export const ROLE_POLICIES = [ 'gtlAvailable', 'ltlAvailable', + 'vrtlAvailable', 'canPublicNote', 'mentionLimit', 'canInvite', diff --git a/packages/frontend/src/pages/admin/roles.editor.vue b/packages/frontend/src/pages/admin/roles.editor.vue index eb8a59b34f48..cc066d445090 100644 --- a/packages/frontend/src/pages/admin/roles.editor.vue +++ b/packages/frontend/src/pages/admin/roles.editor.vue @@ -140,6 +140,26 @@ SPDX-License-Identifier: AGPL-3.0-only + + + +
+ + + + + + + + + +
+
+