From a5bd6cb5e6250902a67cfd8c05b8b5b432f2ca79 Mon Sep 17 00:00:00 2001 From: Hammy <58985301+sgoudham@users.noreply.github.com> Date: Thu, 13 Mar 2025 10:45:23 +0000 Subject: [PATCH] fix: update `ctp/ctp` schema & remove name from `userstyles.yml` (#1653) --- deno.json | 2 +- deno.lock | 2 +- scripts/generate/readme-styles.ts | 6 +++-- scripts/types/userstyles.d.ts | 17 ------------- scripts/userstyles.schema.json | 5 ---- scripts/userstyles.yml | 41 ------------------------------- 6 files changed, 6 insertions(+), 67 deletions(-) diff --git a/deno.json b/deno.json index f0fbe860..678a75c3 100644 --- a/deno.json +++ b/deno.json @@ -11,7 +11,7 @@ "@std/path": "jsr:@std/path@^1.0.8", "@std/yaml": "jsr:@std/yaml@^1.0.5", "ajv": "npm:ajv@8.17.1", - "@catppuccin/catppuccin/": "https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/", + "@catppuccin/catppuccin/": "https://raw.githubusercontent.com/catppuccin/catppuccin/703edd47016cebe4bcb5164d38e2007c0cf6f65a/", "handlebars": "npm:handlebars@4.7.8", "json-schema-to-typescript": "npm:json-schema-to-typescript@^15.0.3", "less": "npm:less@4.2.1", diff --git a/deno.lock b/deno.lock index 1260cbfc..3223ab7d 100644 --- a/deno.lock +++ b/deno.lock @@ -1006,7 +1006,7 @@ "https://github.com/openstyles/stylus/raw/8fe35a4b90d85fb911bd7aa1deab4e4733c31150/src/js/sections-util.js": "https://raw.githubusercontent.com/openstyles/stylus/8fe35a4b90d85fb911bd7aa1deab4e4733c31150/src/js/sections-util.js" }, "remote": { - "https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/resources/ports.schema.json": "39ce3bcd2dabd033010684df7caa82cc69c25584174eba0922e6435dce53f06a", + "https://raw.githubusercontent.com/catppuccin/catppuccin/703edd47016cebe4bcb5164d38e2007c0cf6f65a/resources/ports.schema.json": "8282601df9f1c40a3e9f6448142e43300a37beca8e038bac289b3daef659aadc", "https://raw.githubusercontent.com/openstyles/stylus/8fe35a4b90d85fb911bd7aa1deab4e4733c31150/src/js/sections-util.js": "387e164ad40bc76048dccaafce6a032ac745616e7fc29f1873d7da33f5739502" }, "workspace": { diff --git a/scripts/generate/readme-styles.ts b/scripts/generate/readme-styles.ts index 7816d3bd..61aca349 100644 --- a/scripts/generate/readme-styles.ts +++ b/scripts/generate/readme-styles.ts @@ -40,8 +40,10 @@ function extractName( if (!collaborators) return; // set the name to the github.com/ return collaborators.map((c) => { - c.name ??= c.url.split("/").pop(); - return c; + return { + ...c, + name: c.url.split("/").pop() + } }); } diff --git a/scripts/types/userstyles.d.ts b/scripts/types/userstyles.d.ts index 5d1f1900..d2118eba 100644 --- a/scripts/types/userstyles.d.ts +++ b/scripts/types/userstyles.d.ts @@ -87,12 +87,10 @@ export type FAQ = [ { question: Question; answer: Answer; - [k: string]: unknown; }, ...{ question: Question; answer: Answer; - [k: string]: unknown; }[] ]; /** @@ -103,10 +101,6 @@ export type Question = string; * An answer to the question about the userstyle. */ export type Answer = string; -/** - * The display name of the collaborator to show in the userstyle README. - */ -export type DisplayName = string; /** * The GitHub profile link of the collaborator to show in the userstyle README. */ @@ -115,9 +109,7 @@ export type GitHubProfile = string; * List of all active maintainers for this userstyle. */ export type CurrentMaintainers = { - name?: DisplayName; url: GitHubProfile; - [k: string]: unknown; }[]; /** * List of all users that have maintained this userstyle in the past. @@ -126,14 +118,10 @@ export type CurrentMaintainers = { */ export type PastMaintainers = [ { - name?: DisplayName; url: GitHubProfile; - [k: string]: unknown; }, ...{ - name?: DisplayName; url: GitHubProfile; - [k: string]: unknown; }[] ]; /** @@ -143,14 +131,10 @@ export type PastMaintainers = [ */ export type AllCollaborators = [ { - name?: DisplayName; url: GitHubProfile; - [k: string]: unknown; }, ...{ - name?: DisplayName; url: GitHubProfile; - [k: string]: unknown; }[] ]; @@ -186,5 +170,4 @@ export interface README { "app-link": ApplicationLink; note?: Note; faq?: FAQ; - [k: string]: unknown; } diff --git a/scripts/userstyles.schema.json b/scripts/userstyles.schema.json index ca1f6482..731c1d8e 100644 --- a/scripts/userstyles.schema.json +++ b/scripts/userstyles.schema.json @@ -177,11 +177,6 @@ "type": "object", "additionalProperties": false, "properties": { - "name": { - "type": "string", - "title": "Display Name", - "description": "The display name of the collaborator to show in the userstyle README." - }, "url": { "type": "string", "title": "GitHub Profile", diff --git a/scripts/userstyles.yml b/scripts/userstyles.yml index 2a4edfae..ebce10c4 100644 --- a/scripts/userstyles.yml +++ b/scripts/userstyles.yml @@ -6,150 +6,110 @@ collaborators: - &ndsboy url: https://github.com/ndsboy - &jn-sena - name: Sena url: https://github.com/jn-sena - &watatomo - name: Ren url: https://github.com/watatomo - &ryanccn - name: Ryan Cao url: https://github.com/ryanccn - &pocco81 url: https://github.com/Pocco81 - &glowingumbreon - name: Umbreon url: https://github.com/GlowingUmbreon - &justtobbi url: https://github.com/justTOBBI - &unseen-ninja - name: Lemon url: https://github.com/unseen-ninja - &lucasmelin - name: Lucas Melin url: https://github.com/lucasmelin - &gingeh url: https://github.com/Gingeh - &isabelroses - name: Isabel url: https://github.com/isabelroses - &thismoon url: https://github.com/thismoon - &cecelot - name: Sydney Newmark url: https://github.com/cecelot - &soya-daizu - name: soya_daizu url: https://github.com/soya-daizu - &jayylmao url: https://github.com/jayylmao - &sekki21956 - name: Sekki url: https://github.com/Sekki21956 - &winston - name: winston url: https://github.com/nekowinston - &tnixc - name: Tnixc url: https://github.com/Tnixc - &elkrien - name: Elkrien url: https://github.com/elkrien - &thememesniper - name: TheMemeSniper url: https://github.com/TheMemeSniper - &spaghettiosareyummy url: https://github.com/spaghettiosareyummy - &stonks3141 - name: Stonks3141 url: https://github.com/Stonks3141 - &rubyowo url: https://github.com/rubyowo - &gandalf-the-blue - name: Gandalf the Blue url: https://github.com/Gandalf-the-Blue - &francorav - name: FrancoRav url: https://github.com/FrancoRav - &coldenate - name: coldenate url: https://github.com/coldenate - &skelebro1 - name: skele url: https://github.com/skelebro1 - &r58Playz - name: r58Playz url: https://github.com/r58Playz - &rockquiet - name: rockquiet url: https://github.com/rockquiet - &nyameliaaaa - name: Amelia Rose url: https://github.com/Nyameliaaaa - &meowcelinee - name: Marceline url: https://github.com/Meowcelinee - &bartlibert - name: Bart Libert url: https://github.com/bartlibert - &BlankParticle - name: BlankParticle url: https://github.com/BlankParticle - &genshibe - name: GenShibe url: https://github.com/GenShibe - &coopw1 - name: coopw url: https://github.com/coopw1 - &rooot - name: rooot url: https://github.com/RoootTheFox - &itzTheMeow - name: Meow url: https://github.com/itzTheMeow - &Dandraghas - name: Dandraghas url: https://github.com/Dandraghas - &uncenter - name: uncenter url: https://github.com/uncenter - &thomas-philippot - name: Thomas Philippot url: https://github.com/thomas-philippot - &Guaxinim5573 - name: Guaxinim5573 url: https://github.com/Guaxinim5573 - &trinkey url: https://github.com/trinkey - &NK308 url: https://github.com/NK308 - name: NK308 - &00dani url: https://github.com/00dani - &kerichdev - name: keri url: https://github.com/kerichdev - &Flapperoo - name: Eli url: https://github.com/Flapperoo - &sofiedotcafe - name: Sofie url: https://github.com/sofiedotcafe - &stellophiliac url: https://github.com/stellophiliac - &bunfluff - name: elly url: https://github.com/bunfluff - &neongamerbot url: https://github.com/NeonGamerBot-QK - &orangci - name: orangc url: https://github.com/orangci - &Lichthagel url: https://github.com/Lichthagel - &comfysage url: https://github.com/comfysage - &TadoTheMiner - name: jan Tatesa url: https://github.com/TadoTheMiner - &mxgic1337 url: https://github.com/mxgic1337 @@ -162,7 +122,6 @@ collaborators: - &pynappo url: https://github.com/pynappo - &nuexq - name: nuexq url: https://github.com/nuexq userstyles: