Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Viorel thanks you for contributing your first issue! :)"
pr-message: "Viorel thanks you for contributing your first Pull Request! :)"
issue-message: "@ViorelMocanu thanks you for contributing your first issue! :)"
pr-message: "@ViorelMocanu thanks you for contributing your first Pull Request! :)"
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@
"eslint-plugin-jsx-a11y": "^6.7.1",
"husky": "^8.0.3",
"markdownlint-cli": "^0.37.0",
"meta-fetcher": "^3.1.1",
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0",
"slugify": "^1.6.6",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
}
Expand Down
154 changes: 152 additions & 2 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const resourceCollection = defineCollection({
mandatory: z.boolean(),
image: z.object({
// @TODO: make either imageLocalUrl or imageUrl be validated for the image object to become valid
imageLocalUrl: image().refine((img) => img.width >= 1000, {
message: "Imaginea trebuie să aibă minim 1000px lățime!",
imageLocalUrl: image().refine((img) => img.width >= 100, {
message: "Imaginea trebuie să aibă minim 100px lățime!",
}).optional(),
// @TODO: add file type extension validation for imageUrl
imageUrl: z.string().url("Imagine cu URL invalid.").optional(),
Expand Down
File renamed without changes.
Loading