From 5e14c8550c2df1a24f97b1ef3a9132b8e5842463 Mon Sep 17 00:00:00 2001 From: Crimekillz Date: Fri, 3 May 2024 23:12:55 +0200 Subject: [PATCH] Explore -> Discover Dead Links FIx --- docs/sharkey.sql | 2 +- .../src/migration/1605585339718-instance-pinned-pages.ts | 2 +- .../backend/src/migration/1697289658422-resync-with-orm.ts | 2 +- packages/backend/src/models/entities/meta.ts | 2 +- packages/client/src/pages/welcome.entrance.a.vue | 4 ++-- packages/client/src/pages/welcome.entrance.c.vue | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/sharkey.sql b/docs/sharkey.sql index fd669cb70..9e29b2291 100644 --- a/docs/sharkey.sql +++ b/docs/sharkey.sql @@ -493,7 +493,7 @@ ALTER TABLE meta ALTER COLUMN "objectStorageAccessKey" TYPE character varying(51 ALTER TABLE meta ALTER COLUMN "objectStorageSecretKey" TYPE character varying(512); ALTER TABLE meta ALTER COLUMN "hcaptchaSiteKey" TYPE character varying(64); ALTER TABLE meta ALTER COLUMN "hcaptchaSecretKey" TYPE character varying(64); -ALTER TABLE meta ADD COLUMN "pinnedPages" character varying(512)[] DEFAULT '{/featured,/channels,/explore,/pages,/about-trashposs}'::character varying[] NOT NULL; +ALTER TABLE meta ADD COLUMN "pinnedPages" character varying(512)[] DEFAULT '{/featured,/channels,/discover,/pages,/about-trashposs}'::character varying[] NOT NULL; ALTER TABLE meta ALTER COLUMN "backgroundImageUrl" TYPE character varying(512); ALTER TABLE meta ALTER COLUMN "logoImageUrl" TYPE character varying(512); ALTER TABLE meta ADD COLUMN "pinnedClipId" character varying(32); diff --git a/packages/backend/src/migration/1605585339718-instance-pinned-pages.ts b/packages/backend/src/migration/1605585339718-instance-pinned-pages.ts index 4105b7c1a..57748fe0a 100644 --- a/packages/backend/src/migration/1605585339718-instance-pinned-pages.ts +++ b/packages/backend/src/migration/1605585339718-instance-pinned-pages.ts @@ -5,7 +5,7 @@ export class instancePinnedPages1605585339718 implements MigrationInterface { } async up(queryRunner: QueryRunner): Promise { await queryRunner.query( - `ALTER TABLE "meta" ADD "pinnedPages" character varying(512) array NOT NULL DEFAULT '{"/featured", "/channels", "/explore", "/pages", "/about-misskey"}'::varchar[]`, + `ALTER TABLE "meta" ADD "pinnedPages" character varying(512) array NOT NULL DEFAULT '{"/featured", "/channels", "/discover", "/pages", "/about-misskey"}'::varchar[]`, ); } async down(queryRunner: QueryRunner): Promise { diff --git a/packages/backend/src/migration/1697289658422-resync-with-orm.ts b/packages/backend/src/migration/1697289658422-resync-with-orm.ts index 5b942ca73..6c95265c0 100644 --- a/packages/backend/src/migration/1697289658422-resync-with-orm.ts +++ b/packages/backend/src/migration/1697289658422-resync-with-orm.ts @@ -15,7 +15,7 @@ export class ResyncWithOrm1697289658422 implements MigrationInterface { await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "secureMode" SET NOT NULL`); await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "privateMode" SET NOT NULL`); await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "allowedHosts" SET NOT NULL`); - await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "pinnedPages" SET DEFAULT '{/featured,/channels,/explore,/pages,/about-trashposs}'`); + await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "pinnedPages" SET DEFAULT '{/featured,/channels,/discover,/pages,/about-trashposs}'`); await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "repositoryUrl" SET DEFAULT 'https://iceshrimp.dev/Crimekillz/trashposs'`); await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "feedbackUrl" SET DEFAULT 'https://iceshrimp.dev/Crimekillz/trashposs/issues/new'`); await queryRunner.query(`COMMENT ON COLUMN "renote_muting"."createdAt" IS 'The created date of the Muting.'`); diff --git a/packages/backend/src/models/entities/meta.ts b/packages/backend/src/models/entities/meta.ts index 3ab2414a5..7cf2e83b3 100644 --- a/packages/backend/src/models/entities/meta.ts +++ b/packages/backend/src/models/entities/meta.ts @@ -143,7 +143,7 @@ export class Meta { @Column("varchar", { length: 512, array: true, - default: "{/featured,/channels,/explore,/pages,/about-trashposs}", + default: "{/featured,/channels,/discover,/pages,/about-trashposs}", }) public pinnedPages: string[]; diff --git a/packages/client/src/pages/welcome.entrance.a.vue b/packages/client/src/pages/welcome.entrance.a.vue index 0a096eb11..dfb507047 100644 --- a/packages/client/src/pages/welcome.entrance.a.vue +++ b/packages/client/src/pages/welcome.entrance.a.vue @@ -69,8 +69,8 @@ inline rounded style="margin-left: 12px; margin-top: 12px" - onclick="window.location.href='/explore'" - >Explore{{ i18n.ts.discover }} diff --git a/packages/client/src/pages/welcome.entrance.c.vue b/packages/client/src/pages/welcome.entrance.c.vue index 219dbb2ec..3f59bcfa6 100644 --- a/packages/client/src/pages/welcome.entrance.c.vue +++ b/packages/client/src/pages/welcome.entrance.c.vue @@ -84,7 +84,7 @@