Skip to content

Commit

Permalink
Merge branch 'main'
Browse files Browse the repository at this point in the history
Conflicts:
	src/routes/components/components.json
  • Loading branch information
lachlancollins committed Nov 22, 2023
2 parents fbb4805 + b8d5d62 commit 5de04aa
Show file tree
Hide file tree
Showing 11 changed files with 168 additions and 246 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"itemsjs": "^2.1.20",
"lint-staged": "^13.2.3",
"mdsvex": "^0.11.0",
"package-name-regex": "^3.0.0",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"rehype-slug": "^5.1.0",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 0 additions & 83 deletions src/lib/components/ComponentIndex/ArrowButton.svelte

This file was deleted.

11 changes: 3 additions & 8 deletions src/lib/schemas.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { z } from 'zod';
import packageNameRegex from 'package-name-regex';

export const componentsSchema = z.array(
z.object({
title: z.string(),
npm: z
.string()
.regex(/(@[\w-]+\/)?[\w-]+/)
.optional(),
npm: z.string().regex(packageNameRegex),
url: z.string().url().optional(),
repository: z.string().url(),
description: z.string(),
Expand Down Expand Up @@ -46,10 +44,7 @@ export const templatesSchema = z.array(
export const toolsSchema = z.array(
z.object({
title: z.string(),
npm: z
.string()
.regex(/(@[\w-]+\/)?[\w-]+/)
.optional(),
npm: z.string().regex(packageNameRegex).optional(),
url: z.string().url().optional(),
repository: z.string().url(),
description: z.string(),
Expand Down
Loading

0 comments on commit 5de04aa

Please sign in to comment.