refactor: convert single category to multiple categories (#559)

ref: https://github.com/catppuccin/catppuccin/commit/35662dbfb46b23d63eca9d3794cdc107c8ff92d3

Co-authored-by: isabel <[email protected]>
This commit is contained in:
Hamothyandisabel authored and GitHub committed 2024-02-28 21:14:52 +00:00
1 parent f7598a1c91
commit cec8bc9d8e
7 files changed
+232 -143

No files matched your search

+39 -10
View File
@@ -15,7 +15,7 @@
"type": "object",
"description": "The directory of the userstyle.",
"examples": ["youtube"],
"required": ["name", "category", "readme"],
"required": ["name", "categories", "readme"],
"additionalProperties": false,
"properties": {
"name": {
@@ -37,11 +37,11 @@
}
]
},
"category": {
"$id": "#userstyles/userstyle/category",
"title": "Category",
"description": "The category that fits the port the most.",
"$ref": "#/$defs/category"
"categories": {
"$id": "#userstyles/userstyle/categories",
"title": "Categories",
"description": "The categories that fit the userstyle the most, the first category is the primary category which the userstyle will be listed under on the README.",
"$ref": "#/$defs/categories"
},
"color": {
"$id": "#userstyles/userstyle/color",
@@ -181,26 +181,55 @@
},
"required": ["url"]
}
},
"categories": {
"$id": "#categories",
"type": "array",
"minItems": 1,
"maxItems": 3,
"items": {
"$ref": "#/$defs/category"
}
},
"category": {
"$id": "#category",
"type": "string",
"enum": [
"3d_modelling",
"analytics",
"application_launcher",
"artificial_intelligence",
"boot_loader",
"browser",
"browser_extension",
"cli",
"code_editor",
"desktop_environment",
"development",
"discussion_forum",
"document_viewer",
"education",
"email_client",
"entertainment",
"file_manager",
"game",
"leisure",
"game_development",
"health_and_fitness",
"library",
"messaging",
"music",
"note_taking",
"notification_daemon",
"photo_and_video",
"productivity",
"search_engine",
"social",
"self_hosted",
"social_networking",
"system",
"terminal"
"terminal",
"translation_tool",
"userstyle",
"wiki",
"window_manager"
]
}
}