Conversation
…omponents to use it
…ture and locale handling
… next.config.js to enable unoptimized images
…or optimized image loading
…e cloudfrontLoader
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| <Link href={`${locale}/iconography`}> | ||
| <Button variant="homepage">{translations.browseIconografy[locale]}</Button> | ||
| </Link> | ||
| <Box my={[5, 10]}> |
There was a problem hiding this comment.
Similar blocks of code found in 4 locations. Consider refactoring.
| <Box my={[5, 10]}> | ||
| <Image src="/img/image3.png" width={460} height={286} alt="imagineRio" /> | ||
| </Box> | ||
| <Box my={[5, 10]}> |
There was a problem hiding this comment.
Similar blocks of code found in 4 locations. Consider refactoring.
| </Box> | ||
| <Box> | ||
| <Image src="/img/image1.png" width={460} height={460} alt="imagineRio" /> | ||
| <Box my={[5, 10]}> |
There was a problem hiding this comment.
Similar blocks of code found in 4 locations. Consider refactoring.
| <Box my={[5, 10]}> | ||
| <Image src="/img/image2.png" width={460} height={320} alt="imagineRio" /> | ||
| </Box> | ||
| <Box my={[5, 10]}> |
There was a problem hiding this comment.
Similar blocks of code found in 4 locations. Consider refactoring.
| 'Api-Username': 'system', | ||
| }; | ||
|
|
||
| const { |
There was a problem hiding this comment.
Similar blocks of code found in 2 locations. Consider refactoring.
| <Text my={10} as="div"> | ||
| <ParsedContent content={iconography} /> | ||
| </Text> | ||
| <Link href={`${locale}/iconography`}> |
There was a problem hiding this comment.
Similar blocks of code found in 2 locations. Consider refactoring.
| <Text my={10} as="div"> | ||
| <ParsedContent content={map} /> | ||
| </Text> | ||
| <Link href={`${locale}/map`}> |
There was a problem hiding this comment.
Similar blocks of code found in 2 locations. Consider refactoring.
| post_stream: { posts: map }, | ||
| }, | ||
| } = await axios.get(`${process.env.NEXT_PUBLIC_PAGE_URL}${pages[locale].map}.json`, { headers }); | ||
| const { |
There was a problem hiding this comment.
Similar blocks of code found in 2 locations. Consider refactoring.
|
|
||
| export default Home; | ||
|
|
||
| export async function getStaticPaths() { |
There was a problem hiding this comment.
Similar blocks of code found in 2 locations. Consider refactoring.
| collections: PropTypes.arrayOf(PropTypes.shape()).isRequired, | ||
| }; | ||
|
|
||
| export async function getStaticPaths() { |
There was a problem hiding this comment.
Similar blocks of code found in 2 locations. Consider refactoring.
|
Code Climate has analyzed commit f92ff50 and detected 10 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
This pull request introduces several improvements and refactorings across the codebase, focusing on replacing
useRouterwith a newuseLocalehook, enhancing translations, and improving image handling. Additionally, it includes minor code style adjustments and updates to configuration files.Refactoring: Replace
useRouterwithuseLocaleuseRouterwith the customuseLocalehook in various components to simplify locale handling. This change was applied in files such asAtlasController,Breadcrumbs,Footer,Head,Header,ImageController,ImageFilter,ImageGrid,ImageList,ImageSearch, andImageSort. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Translation Enhancements
narrativeskey to thetranslations.jsfile to support additional translation strings.Headercomponent to include a new "Forum" link using thetranslationsobject.Image Handling Improvements
next/imagewith Chakra UI'sBoxfor rendering images inImageGridandImageListcomponents, improving flexibility and reducing dependencies. [1] [2]Code Style Adjustments
Configuration Updates
.idea/jsLinters/eslint.xmlto enable ESLint auto-fix on save..idea/misc.xmlto clean up unused configuration.