mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-21 08:23:49 +01:00
Explore -> Discover Dead Links FIx
This commit is contained in:
parent
eb63e1420b
commit
5e14c8550c
@ -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);
|
||||
|
@ -5,7 +5,7 @@ export class instancePinnedPages1605585339718 implements MigrationInterface {
|
||||
}
|
||||
async up(queryRunner: QueryRunner): Promise<void> {
|
||||
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> {
|
||||
|
@ -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.'`);
|
||||
|
@ -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[];
|
||||
|
||||
|
@ -69,8 +69,8 @@
|
||||
inline
|
||||
rounded
|
||||
style="margin-left: 12px; margin-top: 12px"
|
||||
onclick="window.location.href='/explore'"
|
||||
>Explore</MkButton
|
||||
onclick="window.location.href='/discover'"
|
||||
>{{ i18n.ts.discover }}</MkButton
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -84,7 +84,7 @@
|
||||
</div>
|
||||
<nav class="nav">
|
||||
<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>
|
||||
</nav>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user