diff --git a/.husky/pre-commit b/.husky/pre-commit index 0e9c13c..f995b65 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ -yarn --ignore-scripts --emoji +yarn setup yarn lint yarn format +rimraf node_modules git add -A diff --git a/.prettierignore b/.prettierignore index 17defbe..f17153b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,7 +2,7 @@ node_modules/* build/* README.md AUTHORS -pnpm-lock.yaml +yarn.lock .github .netlify .dockerignore diff --git a/.stylelintrc.json b/.stylelintrc.json index 0a08a15..32ee27a 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,3 +1,3 @@ { - "extends": ["stylelint-config-standard"] + "extends": ["stylelint-config-standard", "stylelint-config-recommended"] } diff --git a/package.json b/package.json index 79c68b6..feac33c 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/src/api/apiDocs.ts b/src/api/apiDocs.ts index 68361e8..f00216e 100644 --- a/src/api/apiDocs.ts +++ b/src/api/apiDocs.ts @@ -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. ], };