1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-28 16:47:41 +02:00

Merge pull request #563 from kremalicious/feature/updates

package updates
This commit is contained in:
Matthias Kretschmann 2021-05-23 12:57:25 +02:00 committed by GitHub
commit 1a9f219110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 41365 additions and 4132 deletions

View File

@ -2,7 +2,7 @@
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:testing-library/recommended",
"plugin:testing-library/dom",
"plugin:testing-library/react"
],
"plugins": ["react", "graphql", "prettier", "react-hooks", "testing-library"],
@ -19,7 +19,9 @@
"rules": {
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
"react-hooks/exhaustive-deps": "warn",
"testing-library/no-node-access": "off",
"testing-library/no-container": "off"
},
"settings": {
"react": {

45396
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -20,32 +20,32 @@
"new": "babel-node ./scripts/new.js"
},
"dependencies": {
"@giphy/js-fetch-api": "^2.4.0",
"@giphy/js-fetch-api": "^4.0.0",
"axios": "^0.21.1",
"file-saver": "^2.0.5",
"gatsby": "^3.1.1",
"gatsby-plugin-image": "^1.1.1",
"gatsby-plugin-manifest": "^3.1.0",
"gatsby-plugin-matomo": "^0.9.0",
"gatsby-plugin-offline": "^4.1.0",
"gatsby-plugin-postcss": "^4.1.0",
"gatsby-plugin-react-helmet": "^4.1.0",
"gatsby-plugin-sharp": "^3.1.1",
"gatsby-plugin-sitemap": "^3.1.0",
"gatsby": "^3.5.1",
"gatsby-plugin-image": "^1.5.0",
"gatsby-plugin-manifest": "^3.5.0",
"gatsby-plugin-matomo": "^0.10.0",
"gatsby-plugin-offline": "^4.5.1",
"gatsby-plugin-postcss": "^4.5.0",
"gatsby-plugin-react-helmet": "^4.5.0",
"gatsby-plugin-sharp": "^3.5.0",
"gatsby-plugin-sitemap": "^4.1.0",
"gatsby-plugin-svgr": "^3.0.0-beta.0",
"gatsby-plugin-webpack-size": "^2.0.1",
"gatsby-source-filesystem": "^3.1.0",
"gatsby-transformer-json": "^3.1.0",
"gatsby-transformer-sharp": "^3.1.0",
"gatsby-transformer-yaml": "^3.1.0",
"gatsby-source-filesystem": "^3.5.0",
"gatsby-transformer-json": "^3.5.0",
"gatsby-transformer-sharp": "^3.5.0",
"gatsby-transformer-yaml": "^3.5.0",
"intersection-observer": "^0.12.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-feather": "^2.0.9",
"react-helmet": "^6.1.0",
"react-pose": "^4.0.10",
"remark": "^13.0.0",
"remark-breaks": "^2.0.1",
"remark-breaks": "^2.0.2",
"remark-html": "^13.0.1",
"remark-parse": "^9.0.0",
"remark-react": "^8.0.0",
@ -53,33 +53,33 @@
"vcf": "^2.1.0"
},
"devDependencies": {
"@babel/node": "^7.13.10",
"@babel/preset-env": "^7.13.10",
"@loadable/component": "^5.14.1",
"@babel/node": "^7.14.2",
"@babel/preset-env": "^7.14.2",
"@loadable/component": "^5.15.0",
"@svgr/webpack": "^5.5.0",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5",
"@welldone-software/why-did-you-render": "^6.1.1",
"babel-preset-gatsby": "^1.1.0",
"chalk": "^4.1.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/react": "^11.2.7",
"@welldone-software/why-did-you-render": "^6.1.4",
"babel-preset-gatsby": "^1.5.0",
"chalk": "^4.1.1",
"eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-testing-library": "^3.10.2",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.21",
"eslint-plugin-testing-library": "^4.6.0",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.22",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"jest-canvas-mock": "^2.3.1",
"js-yaml": "^4.0.0",
"js-yaml": "^4.1.0",
"ora": "^5.4.0",
"postcss-preset-env": "^6.7.0",
"prepend": "^1.0.2",
"prettier": "^2.2.1",
"slugify": "^1.5.0",
"stylelint": "^13.12.0",
"prettier": "^2.3.0",
"slugify": "^1.5.3",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-prettier": "^1.2.0"
},

View File

@ -1,5 +1,5 @@
import React from 'react'
import { render } from '@testing-library/react'
import { render, screen } from '@testing-library/react'
import { createHistory, createMemorySource } from '@reach/router'
import Layout from './Layout'
@ -7,9 +7,8 @@ describe('Layout', () => {
const history = createHistory(createMemorySource('/oceanprotocol'))
it('renders correctly', () => {
const { container } = render(
<Layout location={history.location}>Hello</Layout>
)
expect(container.firstChild).toBeInTheDocument()
render(<Layout location={history.location}>Hello Layout</Layout>)
const element = screen.getByText('Hello Layout')
expect(element).toBeInTheDocument()
})
})

View File

@ -4,14 +4,8 @@ import Icon from '../atoms/Icon'
import { repo as styleRepo, repoTitle, meta } from './Repository.module.css'
export default function Repository({ repo }) {
const {
name,
full_name,
description,
html_url,
homepage,
stargazers_count
} = repo
const { name, full_name, description, html_url, homepage, stargazers_count } =
repo
const isExternal = !full_name.includes('kremalicious')

View File

@ -76,7 +76,7 @@ Project.propTypes = {
}
export const projectQuery = graphql`
query($slug: String!, $imageRegex: String!) {
query ($slug: String!, $imageRegex: String!) {
projectsYaml(slug: { eq: $slug }) {
title
slug
@ -100,8 +100,8 @@ export const projectQuery = graphql`
}
projectImages: allImageSharp(
filter: { fluid: { originalName: { regex: $imageRegex } } }
sort: { fields: [fluid___originalName], order: ASC }
filter: { original: { src: { regex: $imageRegex } } }
sort: { fields: [original___src], order: ASC }
) {
edges {
node {