Explore -> Discover Dead Links FIx

This commit is contained in:
Crimekillz 2024-05-03 23:12:55 +02:00
parent eb63e1420b
commit 5e14c8550c
6 changed files with 7 additions and 7 deletions

View File

@ -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 "objectStorageSecretKey" TYPE character varying(512);
ALTER TABLE meta ALTER COLUMN "hcaptchaSiteKey" TYPE character varying(64); ALTER TABLE meta ALTER COLUMN "hcaptchaSiteKey" TYPE character varying(64);
ALTER TABLE meta ALTER COLUMN "hcaptchaSecretKey" 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 "backgroundImageUrl" TYPE character varying(512);
ALTER TABLE meta ALTER COLUMN "logoImageUrl" TYPE character varying(512); ALTER TABLE meta ALTER COLUMN "logoImageUrl" TYPE character varying(512);
ALTER TABLE meta ADD COLUMN "pinnedClipId" character varying(32); ALTER TABLE meta ADD COLUMN "pinnedClipId" character varying(32);

View File

@ -5,7 +5,7 @@ export class instancePinnedPages1605585339718 implements MigrationInterface {
} }
async up(queryRunner: QueryRunner): Promise<void> { async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query( 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<void> { async down(queryRunner: QueryRunner): Promise<void> {

View File

@ -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 "secureMode" SET NOT NULL`);
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "privateMode" 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 "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 "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(`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.'`); await queryRunner.query(`COMMENT ON COLUMN "renote_muting"."createdAt" IS 'The created date of the Muting.'`);

View File

@ -143,7 +143,7 @@ export class Meta {
@Column("varchar", { @Column("varchar", {
length: 512, length: 512,
array: true, array: true,
default: "{/featured,/channels,/explore,/pages,/about-trashposs}", default: "{/featured,/channels,/discover,/pages,/about-trashposs}",
}) })
public pinnedPages: string[]; public pinnedPages: string[];

View File

@ -69,8 +69,8 @@
inline inline
rounded rounded
style="margin-left: 12px; margin-top: 12px" style="margin-left: 12px; margin-top: 12px"
onclick="window.location.href='/explore'" onclick="window.location.href='/discover'"
>Explore</MkButton >{{ i18n.ts.discover }}</MkButton
> >
</div> </div>
</div> </div>

View File

@ -84,7 +84,7 @@
</div> </div>
<nav class="nav"> <nav class="nav">
<MkA to="/announcements">{{ i18n.ts.announcements }}</MkA> <MkA to="/announcements">{{ i18n.ts.announcements }}</MkA>
<MkA to="/explore">{{ i18n.ts.explore }}</MkA> <MkA to="/discover">{{ i18n.ts.discover }}</MkA>
<MkA to="/featured">{{ i18n.ts.featured }}</MkA> <MkA to="/featured">{{ i18n.ts.featured }}</MkA>
</nav> </nav>
</div> </div>