diff --git a/locales/en-US.yml b/locales/en-US.yml index 3a233f33f9..d6303d3982 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1451,9 +1451,10 @@ _serverRules: description: "A set of rules to be displayed before registration. Setting a summary of the Terms of Service is recommended." _serverSettings: iconUrl: "Icon URL" - appIconDescription: "Specifies the icon to use when {host} is displayed as an app." sidebarLogoDescription: "Specifies the logo to use instead of the regular icon in high definition, dynamic-width scenarios." sidebarLogoUsageExample: "E.g. In the sidebar, to visitors and in the \"About\" page." + sidebarLogoHint: "Sidebar/Logo" + appIconDescription: "Specifies the icon to use when {host} is displayed as an app." appIconUsageExample: "E.g. As PWA, or when displayed as a home screen bookmark on a phone" appIconStyleRecommendation: "As the icon may be cropped to a square or circle, an icon with colored margin around the content is recommended." appIconResolutionMustBe: "The minimum resolution is {resolution}." diff --git a/locales/index.d.ts b/locales/index.d.ts index 177a3c8160..0e59255860 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -5776,6 +5776,18 @@ export interface Locale extends ILocale { * アイコン画像のURL */ "iconUrl": string; + /** + * 高精細、ダイナミック幅のシナリオで通常のアイコンの代わりに使用するロゴを指定します。 + */ + "sidebarLogoDescription": string; + /** + * 例:サイドバー、訪問者用、「About 」ページ + */ + "sidebarLogoUsageExample": string; + /** + * サイドバー/ロゴ + */ + "sidebarLogoHint": string; /** * {host}がアプリとして表示される際のアイコンを指定します。 */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index b4d47a449c..ddddbd7910 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1459,6 +1459,9 @@ _serverRules: _serverSettings: iconUrl: "アイコン画像のURL" + sidebarLogoDescription: "高精細、ダイナミック幅のシナリオで通常のアイコンの代わりに使用するロゴを指定します。" + sidebarLogoUsageExample: "例:サイドバー、訪問者用、「About 」ページ" + sidebarLogoHint: "サイドバー/ロゴ" appIconDescription: "{host}がアプリとして表示される際のアイコンを指定します。" appIconUsageExample: "例: PWAや、スマートフォンのホーム画面にブックマークとして追加された時など" appIconStyleRecommendation: "円形もしくは角丸にクロップされる場合があるため、塗り潰された余白のある背景を持つことが推奨されます。" diff --git a/packages/backend/migration/1727027985575i-SidebarLogo.js b/packages/backend/migration/1727027985575-SidebarLogo.js similarity index 71% rename from packages/backend/migration/1727027985575i-SidebarLogo.js rename to packages/backend/migration/1727027985575-SidebarLogo.js index a9a066ed6c..03344a367f 100644 --- a/packages/backend/migration/1727027985575i-SidebarLogo.js +++ b/packages/backend/migration/1727027985575-SidebarLogo.js @@ -8,11 +8,9 @@ export class SidebarLogo1727027985575 { async up(queryRunner) { await queryRunner.query(`ALTER TABLE "meta" ADD "sidebarLogoUrl" character varying(1024)`); - await queryRunner.query(`ALTER TABLE "instance" ADD "sidebarLogoUrl" character varying(1024)`); } async down(queryRunner) { await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "sidebarLogoUrl"`); - await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "sidebarLogoUrl"`); } } diff --git a/packages/backend/src/models/Instance.ts b/packages/backend/src/models/Instance.ts index 820002c91c..dd625f95d3 100644 --- a/packages/backend/src/models/Instance.ts +++ b/packages/backend/src/models/Instance.ts @@ -139,11 +139,6 @@ export class MiInstance { }) public iconUrl: string | null; - @Column('varchar', { - length: 256, nullable: true, - }) - public sidebarLogoUrl: string | null; - @Column('varchar', { length: 256, nullable: true, }) diff --git a/packages/frontend/src/components/MkVisitorDashboard.vue b/packages/frontend/src/components/MkVisitorDashboard.vue index 73d00b6a7c..b154f7a5b3 100644 --- a/packages/frontend/src/components/MkVisitorDashboard.vue +++ b/packages/frontend/src/components/MkVisitorDashboard.vue @@ -6,8 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only