mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-23 01:30:01 +01:00
package updates
This commit is contained in:
parent
2026017b2f
commit
aabe723f79
@ -226,12 +226,5 @@ module.exports = {
|
||||
'gatsby-redirect-from',
|
||||
'gatsby-plugin-meta-redirect',
|
||||
'gatsby-plugin-offline'
|
||||
// 'gatsby-plugin-webpack-size'
|
||||
// {
|
||||
// resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
|
||||
// options: {
|
||||
// devMode: true
|
||||
// }
|
||||
// }
|
||||
]
|
||||
}
|
||||
|
@ -8,7 +8,8 @@ module.exports = {
|
||||
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
|
||||
'<rootDir>/jest/__mocks__/file-mock.js',
|
||||
'\\.svg': '<rootDir>/jest/__mocks__/svgr-mock.js',
|
||||
'^@reach/router(.*)': '<rootDir>/node_modules/@gatsbyjs/reach-router$1'
|
||||
'^@reach/router(.*)': '<rootDir>/node_modules/@gatsbyjs/reach-router$1',
|
||||
'^gatsby-page-utils/(.*)$': `gatsby-page-utils/dist/$1` // Workaround for https://github.com/facebook/jest/issues/9771
|
||||
},
|
||||
testPathIgnorePatterns: ['node_modules', '.cache', 'public', 'coverage'],
|
||||
transformIgnorePatterns: ['node_modules/(?!(gatsby)/)'],
|
||||
|
@ -2,10 +2,10 @@ import '@testing-library/jest-dom/extend-expect'
|
||||
|
||||
import * as Gatsby from 'gatsby'
|
||||
const useStaticQuery = jest.spyOn(Gatsby, 'useStaticQuery')
|
||||
import meta from '../jest/__fixtures__/meta.json'
|
||||
import avatar from '../jest/__fixtures__/avatar.json'
|
||||
import posts from '../jest/__fixtures__/posts.json'
|
||||
import github from '../jest/__fixtures__/github.json'
|
||||
import meta from './__fixtures__/meta.json'
|
||||
import avatar from './__fixtures__/avatar.json'
|
||||
import posts from './__fixtures__/posts.json'
|
||||
import github from './__fixtures__/github.json'
|
||||
|
||||
beforeAll(() => {
|
||||
useStaticQuery.mockImplementation(() => ({
|
||||
|
8043
package-lock.json
generated
8043
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
83
package.json
83
package.json
@ -28,47 +28,45 @@
|
||||
"not op_mini all"
|
||||
],
|
||||
"dependencies": {
|
||||
"@ethersproject/providers": "^5.5.1",
|
||||
"@ethersproject/providers": "^5.5.3",
|
||||
"@ethersproject/units": "^5.5.0",
|
||||
"@loadable/component": "^5.15.2",
|
||||
"@web3-react/core": "^6.1.9",
|
||||
"@web3-react/injected-connector": "^6.0.7",
|
||||
"axios": "^0.25.0",
|
||||
"classnames": "^2.3.1",
|
||||
"date-fns": "^2.28.0",
|
||||
"dms2dec": "^1.1.0",
|
||||
"ethereum-blockies": "github:MyEtherWallet/blockies",
|
||||
"fast-exif": "^1.0.1",
|
||||
"feather-icons": "^4.28.0",
|
||||
"fraction.js": "^4.1.2",
|
||||
"gatsby": "^4.3.0",
|
||||
"gatsby-plugin-catch-links": "^4.3.0",
|
||||
"gatsby-plugin-feed": "^4.4.0",
|
||||
"gatsby-plugin-image": "^2.4.0",
|
||||
"fraction.js": "^4.1.3",
|
||||
"gatsby": "^4.7.1",
|
||||
"gatsby-plugin-catch-links": "^4.7.0",
|
||||
"gatsby-plugin-feed": "^4.7.0",
|
||||
"gatsby-plugin-image": "^2.7.0",
|
||||
"gatsby-plugin-lunr": "^1.5.2",
|
||||
"gatsby-plugin-manifest": "^4.4.0",
|
||||
"gatsby-plugin-manifest": "^4.7.0",
|
||||
"gatsby-plugin-matomo": "^0.11.0",
|
||||
"gatsby-plugin-meta-redirect": "^1.1.1",
|
||||
"gatsby-plugin-offline": "^5.4.0",
|
||||
"gatsby-plugin-react-helmet": "^5.4.0",
|
||||
"gatsby-plugin-sharp": "^4.3.0",
|
||||
"gatsby-plugin-sitemap": "^5.3.0",
|
||||
"gatsby-plugin-offline": "^5.7.0",
|
||||
"gatsby-plugin-react-helmet": "^5.7.0",
|
||||
"gatsby-plugin-sharp": "^4.7.0",
|
||||
"gatsby-plugin-sitemap": "^5.7.0",
|
||||
"gatsby-plugin-svgr": "^3.0.0-beta.0",
|
||||
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.26",
|
||||
"gatsby-plugin-webpack-size": "^2.0.1",
|
||||
"gatsby-redirect-from": "^0.4.3",
|
||||
"gatsby-remark-autolink-headers": "^5.4.0",
|
||||
"gatsby-remark-copy-linked-files": "^5.4.0",
|
||||
"gatsby-remark-images": "^6.3.0",
|
||||
"gatsby-remark-autolink-headers": "^5.7.0",
|
||||
"gatsby-remark-copy-linked-files": "^5.7.0",
|
||||
"gatsby-remark-images": "^6.7.0",
|
||||
"gatsby-remark-images-medium-zoom": "^1.7.0",
|
||||
"gatsby-remark-smartypants": "^5.3.0",
|
||||
"gatsby-remark-smartypants": "^5.7.0",
|
||||
"gatsby-remark-vscode": "^3.3.1",
|
||||
"gatsby-source-filesystem": "^4.4.0",
|
||||
"gatsby-source-graphql": "^4.4.0",
|
||||
"gatsby-transformer-remark": "^5.3.0",
|
||||
"gatsby-transformer-sharp": "^4.4.0",
|
||||
"node-fetch": "^2.6.7",
|
||||
"gatsby-source-filesystem": "^4.7.0",
|
||||
"gatsby-source-graphql": "^4.7.0",
|
||||
"gatsby-transformer-remark": "^5.7.0",
|
||||
"gatsby-transformer-sharp": "^4.7.0",
|
||||
"nord-visual-studio-code": "github:arcticicestudio/nord-visual-studio-code",
|
||||
"pigeon-maps": "^0.19.7",
|
||||
"pigeon-maps": "^0.20.0",
|
||||
"pigeon-marker": "^0.3.4",
|
||||
"react": "^17.0.2",
|
||||
"react-clipboard.js": "^2.0.16",
|
||||
@ -76,54 +74,53 @@
|
||||
"react-feather": "^2.0.9",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-qr-svg": "^2.4.0",
|
||||
"react-side-effect": "^2.1.1",
|
||||
"react-transition-group": "^4.4.2",
|
||||
"remark": "^13.0.0",
|
||||
"remark-react": "^8.0.0",
|
||||
"slugify": "^1.6.4"
|
||||
"slugify": "^1.6.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@svgr/webpack": "^5.5.0",
|
||||
"@testing-library/jest-dom": "^5.16.1",
|
||||
"@testing-library/jest-dom": "^5.16.2",
|
||||
"@testing-library/react": "^12.1.2",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/jest": "^27.4.0",
|
||||
"@types/loadable__component": "^5.13.4",
|
||||
"@types/lunr": "^2.3.4",
|
||||
"@types/node": "^16.11.11",
|
||||
"@types/react": "^17.0.37",
|
||||
"@types/node": "^17.0.17",
|
||||
"@types/react": "^17.0.39",
|
||||
"@types/react-dom": "^17.0.11",
|
||||
"@types/react-helmet": "^6.1.4",
|
||||
"@types/react-helmet": "^6.1.5",
|
||||
"@types/react-transition-group": "^4.4.4",
|
||||
"@types/shortid": "^0.0.29",
|
||||
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
||||
"@typescript-eslint/parser": "^5.5.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.11.0",
|
||||
"@typescript-eslint/parser": "^5.11.0",
|
||||
"@welldone-software/why-did-you-render": "^6.2.3",
|
||||
"babel-preset-gatsby": "^2.2.0",
|
||||
"eslint": "^8.3.0",
|
||||
"babel-preset-gatsby": "^2.7.0",
|
||||
"eslint": "^8.9.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-graphql": "^4.0.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-react": "^7.28.0",
|
||||
"eslint-plugin-testing-library": "^5.0.1",
|
||||
"eslint-plugin-testing-library": "^5.0.5",
|
||||
"fs-extra": "^10.0.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^27.4.3",
|
||||
"markdownlint-cli": "^0.30.0",
|
||||
"jest": "^27.5.1",
|
||||
"markdownlint-cli": "^0.31.1",
|
||||
"node-iptc": "^1.0.5",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"ora": "^5.4.1",
|
||||
"postcss": "^8.4.5",
|
||||
"prettier": "^2.5.0",
|
||||
"postcss": "^8.4.6",
|
||||
"prettier": "^2.5.1",
|
||||
"shortid": "^2.2.16",
|
||||
"stylelint": "^14.1.0",
|
||||
"stylelint-config-css-modules": "^2.3.0",
|
||||
"stylelint": "^14.5.0",
|
||||
"stylelint-config-css-modules": "^3.0.0",
|
||||
"stylelint-config-prettier": "^9.0.3",
|
||||
"stylelint-config-standard": "^24.0.0",
|
||||
"stylelint-config-standard": "^25.0.0",
|
||||
"stylelint-prettier": "^2.0.0",
|
||||
"ts-node": "^10.4.0",
|
||||
"typescript": "^4.5.4",
|
||||
"ts-node": "^10.5.0",
|
||||
"typescript": "^4.5.5",
|
||||
"typescript-plugin-css-modules": "^3.4.0"
|
||||
},
|
||||
"repository": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
.icon {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
stroke: currentColor;
|
||||
stroke: currentcolor;
|
||||
stroke-width: var(--stroke-width);
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, { useState, useEffect, ReactElement } from 'react'
|
||||
import fetch from 'node-fetch'
|
||||
import axios from 'axios'
|
||||
import { conversion as styleConversion } from './Conversion.module.css'
|
||||
|
||||
export async function getFiat(
|
||||
@ -7,11 +7,10 @@ export async function getFiat(
|
||||
): Promise<{ [key: string]: string }> {
|
||||
const url =
|
||||
'https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=eur%2Cusd'
|
||||
const response = await fetch(url)
|
||||
const response = await axios(url)
|
||||
|
||||
if (!response.ok) console.error(response.statusText)
|
||||
const data = await response.json()
|
||||
const { usd, eur } = data.ethereum
|
||||
if (!response) console.error(response.statusText)
|
||||
const { usd, eur } = response.data.ethereum
|
||||
const dollar = (amount * usd).toFixed(2)
|
||||
const euro = (amount * eur).toFixed(2)
|
||||
|
||||
|
@ -23,7 +23,7 @@ body {
|
||||
font-size: var(--font-size-base);
|
||||
line-height: var(--line-height);
|
||||
color: var(--text-color);
|
||||
text-rendering: optimizeLegibility;
|
||||
text-rendering: optimizelegibility;
|
||||
font-feature-settings: 'liga', 'kern';
|
||||
min-height: 100vh;
|
||||
background: var(--body-background-color);
|
||||
|
@ -12,6 +12,7 @@
|
||||
"esModuleInterop": true,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"resolveJsonModule": true,
|
||||
"noEmit": true,
|
||||
"skipLibCheck": true,
|
||||
"plugins": [{ "name": "typescript-plugin-css-modules" }]
|
||||
|
Loading…
Reference in New Issue
Block a user