Skip to content

Commit

Permalink
Correct lock file in prettierignore, add more rules to pre-commit cod…
Browse files Browse the repository at this point in the history
…e, add better videos api example
  • Loading branch information
fadihanna123 committed Sep 23, 2024
1 parent b619fb9 commit 09c72a1
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
yarn --ignore-scripts --emoji
yarn setup
yarn lint
yarn format
rimraf node_modules
git add -A
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ node_modules/*
build/*
README.md
AUTHORS
pnpm-lock.yaml
yarn.lock
.github
.netlify
.dockerignore
2 changes: 1 addition & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["stylelint-config-standard"]
"extends": ["stylelint-config-standard", "stylelint-config-recommended"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"@types/node": "^22.5.5",
"eslint-plugin-react": "^7.36.1",
"react-test-renderer": "^18.3.1",
"stylelint-config-recommended": "^14.0.1",
"typescript-eslint": "^8.6.0",
"vite-plugin-environment": "^1.1.3"
}
Expand Down
58 changes: 57 additions & 1 deletion src/api/apiDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,62 @@ const photos = {
userImageURL:
'https://cdn.pixabay.com/user/2020/09/01/08-42-41-938_250x250.jpg',
},
// ...more photos values.
// ...other photos values.
],
};

const videos = {
total: 91714,
totalHits: 500,
hits: [
{
id: 228847,
pageURL: 'https://pixabay.com/videos/id-228847/',
type: 'film',
tags: 'waterfall, mountain stream, flow',
duration: 20,
videos: {
large: {
url: 'https://cdn.pixabay.com/video/2024/08/30/228847_large.mp4',
width: 2160,
height: 3840,
size: 211672535,
thumbnail:
'https://cdn.pixabay.com/video/2024/08/30/228847_large.jpg',
},
medium: {
url: 'https://cdn.pixabay.com/video/2024/08/30/228847_medium.mp4',
width: 1440,
height: 2560,
size: 138078676,
thumbnail:
'https://cdn.pixabay.com/video/2024/08/30/228847_medium.jpg',
},
small: {
url: 'https://cdn.pixabay.com/video/2024/08/30/228847_small.mp4',
width: 1080,
height: 1920,
size: 75579502,
thumbnail:
'https://cdn.pixabay.com/video/2024/08/30/228847_small.jpg',
},
tiny: {
url: 'https://cdn.pixabay.com/video/2024/08/30/228847_tiny.mp4',
width: 720,
height: 1280,
size: 22177602,
thumbnail: 'https://cdn.pixabay.com/video/2024/08/30/228847_tiny.jpg',
},
},
views: 54288,
downloads: 18457,
likes: 283,
comments: 44,
user_id: 4749850,
user: 'Kanenori',
userImageURL:
'https://cdn.pixabay.com/user/2023/03/30/07-49-26-304_250x250.jpg',
},
// ...other videos values.
],
};

0 comments on commit 09c72a1

Please sign in to comment.