refactor(treewide)!: simplify userstyles.yml & remove style previews (#1691)

Co-authored-by: uncenter <[email protected]>
This commit is contained in:
Hammyanduncenter authored and GitHub committed 2025-04-08 19:16:29 -04:00
1 parent b8e16c7524
commit 37fd16969a
265 files changed
+543 -1635

No files matched your search

+2
View File
@@ -130,6 +130,8 @@ export async function getCategoriesData(): Promise<
* formatListOfItems(['x', 'y', 'z']); // 'x, y, and z'
*/
export function formatListOfItems(items: unknown[]): string {
// If there are no items, return an empty string.
if (items.length === 0) return "";
// If there are two items, connect them with an "and".
if (items.length === 2) return items.join(" and ");
// Otherwise, there is either just one item or more than two items.