From 3255066fe4d01d2a2acb248a657e555c00ab5b47 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 14 Jul 2023 23:03:07 -0700 Subject: [PATCH] feat: :sparkles: seperate sponsors and patrons --- locales/en-US.yml | 1 + .../src/server/api/endpoints/patrons.ts | 8 +++-- packages/client/src/pages/about-calckey.vue | 35 ++++++++++++++----- packages/client/src/pages/user/home.vue | 7 ++-- patrons.json | 9 ++++- 5 files changed, 43 insertions(+), 17 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 8e1d0ba3c..76bc5c24a 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1228,6 +1228,7 @@ _aboutMisskey: donateHost: "Donate to {host}" morePatrons: "We also appreciate the support of many other helpers not listed here. Thank you! 🥰" + sponsors: "Calckey sponsors" patrons: "Calckey patrons" patronsList: "Listed chronologically, not by donation size. Donate with the link above to get your name on here!" _nsfw: diff --git a/packages/backend/src/server/api/endpoints/patrons.ts b/packages/backend/src/server/api/endpoints/patrons.ts index 696d0e338..8ca1f8902 100644 --- a/packages/backend/src/server/api/endpoints/patrons.ts +++ b/packages/backend/src/server/api/endpoints/patrons.ts @@ -9,7 +9,7 @@ const _dirname = dirname(_filename); export const meta = { tags: ["meta"], - description: "Get list of Calckey patrons from Codeberg", + description: "Get Calckey patrons", requireCredential: false, requireCredentialPrivateMode: false, @@ -51,6 +51,8 @@ export default define(meta, paramDef, async (ps) => { }); await redisClient.set("patrons", JSON.stringify(patrons), "EX", 3600); } - - return patrons["patrons"]; + return { + patrons: patrons["patrons"], + sponsors: patrons["sponsors"], + }; }); diff --git a/packages/client/src/pages/about-calckey.vue b/packages/client/src/pages/about-calckey.vue index fb508239b..eb06a6104 100644 --- a/packages/client/src/pages/about-calckey.vue +++ b/packages/client/src/pages/about-calckey.vue @@ -127,6 +127,25 @@ > + + + + + + + +