fix: update ctp/ctp schema & remove name from userstyles.yml (#1653)

This commit is contained in:
Hammy authored and GitHub committed 2025-03-13 10:45:23 +00:00
1 parent 5aa468acc8
commit a5bd6cb5e6
6 files changed
+6 -67

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@
"@std/path": "jsr:@std/path@^1.0.8", "@std/path": "jsr:@std/path@^1.0.8",
"@std/yaml": "jsr:@std/yaml@^1.0.5", "@std/yaml": "jsr:@std/yaml@^1.0.5",
"ajv": "npm:[email protected]", "ajv": "npm:[email protected]",
"@catppuccin/catppuccin/": "https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/", "@catppuccin/catppuccin/": "https://raw.githubusercontent.com/catppuccin/catppuccin/703edd47016cebe4bcb5164d38e2007c0cf6f65a/",
"handlebars": "npm:[email protected]", "handlebars": "npm:[email protected]",
"json-schema-to-typescript": "npm:json-schema-to-typescript@^15.0.3", "json-schema-to-typescript": "npm:json-schema-to-typescript@^15.0.3",
"less": "npm:[email protected]", "less": "npm:[email protected]",
Generated
+1 -1
View File
@@ -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" "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": { "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" "https://raw.githubusercontent.com/openstyles/stylus/8fe35a4b90d85fb911bd7aa1deab4e4733c31150/src/js/sections-util.js": "387e164ad40bc76048dccaafce6a032ac745616e7fc29f1873d7da33f5739502"
}, },
"workspace": { "workspace": {
+4 -2
View File
@@ -40,8 +40,10 @@ function extractName(
if (!collaborators) return; if (!collaborators) return;
// set the name to the github.com/<name> // set the name to the github.com/<name>
return collaborators.map((c) => { return collaborators.map((c) => {
c.name ??= c.url.split("/").pop(); return {
return c; ...c,
name: c.url.split("/").pop()
}
}); });
} }
-17
View File
@@ -87,12 +87,10 @@ export type FAQ = [
{ {
question: Question; question: Question;
answer: Answer; answer: Answer;
[k: string]: unknown;
}, },
...{ ...{
question: Question; question: Question;
answer: Answer; answer: Answer;
[k: string]: unknown;
}[] }[]
]; ];
/** /**
@@ -103,10 +101,6 @@ export type Question = string;
* An answer to the question about the userstyle. * An answer to the question about the userstyle.
*/ */
export type Answer = string; 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. * 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. * List of all active maintainers for this userstyle.
*/ */
export type CurrentMaintainers = { export type CurrentMaintainers = {
name?: DisplayName;
url: GitHubProfile; url: GitHubProfile;
[k: string]: unknown;
}[]; }[];
/** /**
* List of all users that have maintained this userstyle in the past. * List of all users that have maintained this userstyle in the past.
@@ -126,14 +118,10 @@ export type CurrentMaintainers = {
*/ */
export type PastMaintainers = [ export type PastMaintainers = [
{ {
name?: DisplayName;
url: GitHubProfile; url: GitHubProfile;
[k: string]: unknown;
}, },
...{ ...{
name?: DisplayName;
url: GitHubProfile; url: GitHubProfile;
[k: string]: unknown;
}[] }[]
]; ];
/** /**
@@ -143,14 +131,10 @@ export type PastMaintainers = [
*/ */
export type AllCollaborators = [ export type AllCollaborators = [
{ {
name?: DisplayName;
url: GitHubProfile; url: GitHubProfile;
[k: string]: unknown;
}, },
...{ ...{
name?: DisplayName;
url: GitHubProfile; url: GitHubProfile;
[k: string]: unknown;
}[] }[]
]; ];
@@ -186,5 +170,4 @@ export interface README {
"app-link": ApplicationLink; "app-link": ApplicationLink;
note?: Note; note?: Note;
faq?: FAQ; faq?: FAQ;
[k: string]: unknown;
} }
-5
View File
@@ -177,11 +177,6 @@
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"name": {
"type": "string",
"title": "Display Name",
"description": "The display name of the collaborator to show in the userstyle README."
},
"url": { "url": {
"type": "string", "type": "string",
"title": "GitHub Profile", "title": "GitHub Profile",
-41
View File
@@ -6,150 +6,110 @@ collaborators:
- &ndsboy - &ndsboy
url: https://github.com/ndsboy url: https://github.com/ndsboy
- &jn-sena - &jn-sena
name: Sena
url: https://github.com/jn-sena url: https://github.com/jn-sena
- &watatomo - &watatomo
name: Ren
url: https://github.com/watatomo url: https://github.com/watatomo
- &ryanccn - &ryanccn
name: Ryan Cao
url: https://github.com/ryanccn url: https://github.com/ryanccn
- &pocco81 - &pocco81
url: https://github.com/Pocco81 url: https://github.com/Pocco81
- &glowingumbreon - &glowingumbreon
name: Umbreon
url: https://github.com/GlowingUmbreon url: https://github.com/GlowingUmbreon
- &justtobbi - &justtobbi
url: https://github.com/justTOBBI url: https://github.com/justTOBBI
- &unseen-ninja - &unseen-ninja
name: Lemon
url: https://github.com/unseen-ninja url: https://github.com/unseen-ninja
- &lucasmelin - &lucasmelin
name: Lucas Melin
url: https://github.com/lucasmelin url: https://github.com/lucasmelin
- &gingeh - &gingeh
url: https://github.com/Gingeh url: https://github.com/Gingeh
- &isabelroses - &isabelroses
name: Isabel
url: https://github.com/isabelroses url: https://github.com/isabelroses
- &thismoon - &thismoon
url: https://github.com/thismoon url: https://github.com/thismoon
- &cecelot - &cecelot
name: Sydney Newmark
url: https://github.com/cecelot url: https://github.com/cecelot
- &soya-daizu - &soya-daizu
name: soya_daizu
url: https://github.com/soya-daizu url: https://github.com/soya-daizu
- &jayylmao - &jayylmao
url: https://github.com/jayylmao url: https://github.com/jayylmao
- &sekki21956 - &sekki21956
name: Sekki
url: https://github.com/Sekki21956 url: https://github.com/Sekki21956
- &winston - &winston
name: winston
url: https://github.com/nekowinston url: https://github.com/nekowinston
- &tnixc - &tnixc
name: Tnixc
url: https://github.com/Tnixc url: https://github.com/Tnixc
- &elkrien - &elkrien
name: Elkrien
url: https://github.com/elkrien url: https://github.com/elkrien
- &thememesniper - &thememesniper
name: TheMemeSniper
url: https://github.com/TheMemeSniper url: https://github.com/TheMemeSniper
- &spaghettiosareyummy - &spaghettiosareyummy
url: https://github.com/spaghettiosareyummy url: https://github.com/spaghettiosareyummy
- &stonks3141 - &stonks3141
name: Stonks3141
url: https://github.com/Stonks3141 url: https://github.com/Stonks3141
- &rubyowo - &rubyowo
url: https://github.com/rubyowo url: https://github.com/rubyowo
- &gandalf-the-blue - &gandalf-the-blue
name: Gandalf the Blue
url: https://github.com/Gandalf-the-Blue url: https://github.com/Gandalf-the-Blue
- &francorav - &francorav
name: FrancoRav
url: https://github.com/FrancoRav url: https://github.com/FrancoRav
- &coldenate - &coldenate
name: coldenate
url: https://github.com/coldenate url: https://github.com/coldenate
- &skelebro1 - &skelebro1
name: skele
url: https://github.com/skelebro1 url: https://github.com/skelebro1
- &r58Playz - &r58Playz
name: r58Playz
url: https://github.com/r58Playz url: https://github.com/r58Playz
- &rockquiet - &rockquiet
name: rockquiet
url: https://github.com/rockquiet url: https://github.com/rockquiet
- &nyameliaaaa - &nyameliaaaa
name: Amelia Rose
url: https://github.com/Nyameliaaaa url: https://github.com/Nyameliaaaa
- &meowcelinee - &meowcelinee
name: Marceline
url: https://github.com/Meowcelinee url: https://github.com/Meowcelinee
- &bartlibert - &bartlibert
name: Bart Libert
url: https://github.com/bartlibert url: https://github.com/bartlibert
- &BlankParticle - &BlankParticle
name: BlankParticle
url: https://github.com/BlankParticle url: https://github.com/BlankParticle
- &genshibe - &genshibe
name: GenShibe
url: https://github.com/GenShibe url: https://github.com/GenShibe
- &coopw1 - &coopw1
name: coopw
url: https://github.com/coopw1 url: https://github.com/coopw1
- &rooot - &rooot
name: rooot
url: https://github.com/RoootTheFox url: https://github.com/RoootTheFox
- &itzTheMeow - &itzTheMeow
name: Meow
url: https://github.com/itzTheMeow url: https://github.com/itzTheMeow
- &Dandraghas - &Dandraghas
name: Dandraghas
url: https://github.com/Dandraghas url: https://github.com/Dandraghas
- &uncenter - &uncenter
name: uncenter
url: https://github.com/uncenter url: https://github.com/uncenter
- &thomas-philippot - &thomas-philippot
name: Thomas Philippot
url: https://github.com/thomas-philippot url: https://github.com/thomas-philippot
- &Guaxinim5573 - &Guaxinim5573
name: Guaxinim5573
url: https://github.com/Guaxinim5573 url: https://github.com/Guaxinim5573
- &trinkey - &trinkey
url: https://github.com/trinkey url: https://github.com/trinkey
- &NK308 - &NK308
url: https://github.com/NK308 url: https://github.com/NK308
name: NK308
- &00dani - &00dani
url: https://github.com/00dani url: https://github.com/00dani
- &kerichdev - &kerichdev
name: keri
url: https://github.com/kerichdev url: https://github.com/kerichdev
- &Flapperoo - &Flapperoo
name: Eli
url: https://github.com/Flapperoo url: https://github.com/Flapperoo
- &sofiedotcafe - &sofiedotcafe
name: Sofie
url: https://github.com/sofiedotcafe url: https://github.com/sofiedotcafe
- &stellophiliac - &stellophiliac
url: https://github.com/stellophiliac url: https://github.com/stellophiliac
- &bunfluff - &bunfluff
name: elly
url: https://github.com/bunfluff url: https://github.com/bunfluff
- &neongamerbot - &neongamerbot
url: https://github.com/NeonGamerBot-QK url: https://github.com/NeonGamerBot-QK
- &orangci - &orangci
name: orangc
url: https://github.com/orangci url: https://github.com/orangci
- &Lichthagel - &Lichthagel
url: https://github.com/Lichthagel url: https://github.com/Lichthagel
- &comfysage - &comfysage
url: https://github.com/comfysage url: https://github.com/comfysage
- &TadoTheMiner - &TadoTheMiner
name: jan Tatesa
url: https://github.com/TadoTheMiner url: https://github.com/TadoTheMiner
- &mxgic1337 - &mxgic1337
url: https://github.com/mxgic1337 url: https://github.com/mxgic1337
@@ -162,7 +122,6 @@ collaborators:
- &pynappo - &pynappo
url: https://github.com/pynappo url: https://github.com/pynappo
- &nuexq - &nuexq
name: nuexq
url: https://github.com/nuexq url: https://github.com/nuexq
userstyles: userstyles: