1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

Merge pull request #519 from kremalicious/feature/updates

package updates
This commit is contained in:
Matthias Kretschmann 2021-05-23 14:15:22 +02:00 committed by GitHub
commit 2517cbb3fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 6683 additions and 8861 deletions

View File

@ -54,7 +54,6 @@ redirect_from:
- /2008/04/aperture-file-types/
# note: trailing slashes are required
---
```
## Default Query

View File

@ -1,4 +1,5 @@
import './src/global/global.css'
import './src/global/imports.css'
import wrapPageElementWithLayout from './src/helpers/wrapPageElement'
export const wrapPageElement = wrapPageElementWithLayout

View File

@ -37,7 +37,6 @@ module.exports = {
options: {
excerpt_separator: '<!-- more -->',
plugins: [
'gatsby-remark-breaks',
{
resolve: 'gatsby-remark-images',
options: {
@ -217,15 +216,15 @@ module.exports = {
{
resolve: 'gatsby-plugin-sitemap',
options: {
exclude: ['/archive', '/archive/**/*', '/thanks', '/tags']
excludes: ['/archive', '/archive/**/*', '/thanks', '/tags']
}
},
'gatsby-plugin-react-helmet',
'gatsby-plugin-catch-links',
'gatsby-redirect-from',
'gatsby-plugin-meta-redirect',
'gatsby-plugin-offline',
'gatsby-plugin-webpack-size'
'gatsby-plugin-offline'
// 'gatsby-plugin-webpack-size'
// {
// resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
// options: {

15365
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,45 +28,44 @@
"not op_mini all"
],
"dependencies": {
"@ethersproject/providers": "^5.0.24",
"@ethersproject/units": "^5.0.11",
"@loadable/component": "^5.14.1",
"@ethersproject/providers": "^5.2.0",
"@ethersproject/units": "^5.2.0",
"@loadable/component": "^5.15.0",
"@web3-react/core": "^6.1.9",
"@web3-react/injected-connector": "^6.0.7",
"classnames": "^2.2.6",
"date-fns": "^2.19.0",
"classnames": "^2.3.1",
"date-fns": "^2.21.3",
"dms2dec": "^1.1.0",
"ethereum-blockies": "github:MyEtherWallet/blockies",
"fast-exif": "^1.0.1",
"feather-icons": "^4.28.0",
"fraction.js": "^4.0.13",
"gatsby": "^3.1.1",
"gatsby-plugin-catch-links": "^3.1.0",
"gatsby-plugin-feed": "^3.1.0",
"gatsby-plugin-image": "^1.1.1",
"fraction.js": "^4.1.0",
"gatsby": "^3.5.1",
"gatsby-plugin-catch-links": "^3.5.0",
"gatsby-plugin-feed": "^3.5.0",
"gatsby-plugin-image": "^1.5.0",
"gatsby-plugin-lunr": "^1.5.2",
"gatsby-plugin-manifest": "^3.1.0",
"gatsby-plugin-matomo": "^0.9.0",
"gatsby-plugin-manifest": "^3.5.0",
"gatsby-plugin-matomo": "^0.10.0",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-offline": "^4.1.0",
"gatsby-plugin-react-helmet": "^4.1.0",
"gatsby-plugin-sharp": "^3.1.1",
"gatsby-plugin-sitemap": "^3.1.0",
"gatsby-plugin-offline": "^4.5.1",
"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-bundle-analyser-v2": "^1.1.21",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.22",
"gatsby-plugin-webpack-size": "^2.0.1",
"gatsby-redirect-from": "^0.3.0",
"gatsby-remark-autolink-headers": "^3.1.0",
"gatsby-remark-breaks": "^1.0.0",
"gatsby-remark-copy-linked-files": "^3.1.0",
"gatsby-remark-images": "^4.1.0",
"gatsby-redirect-from": "^0.4.1",
"gatsby-remark-autolink-headers": "^4.2.0",
"gatsby-remark-copy-linked-files": "^4.2.1",
"gatsby-remark-images": "^5.2.1",
"gatsby-remark-images-medium-zoom": "^1.7.0",
"gatsby-remark-smartypants": "^3.1.0",
"gatsby-remark-smartypants": "^4.2.0",
"gatsby-remark-vscode": "^3.2.1",
"gatsby-source-filesystem": "^3.1.0",
"gatsby-source-graphql": "^3.1.0",
"gatsby-transformer-remark": "^3.1.0",
"gatsby-transformer-sharp": "^3.1.0",
"gatsby-source-filesystem": "^3.5.0",
"gatsby-source-graphql": "^3.5.0",
"gatsby-transformer-remark": "^4.2.0",
"gatsby-transformer-sharp": "^3.5.0",
"node-fetch": "^2.6.1",
"nord-visual-studio-code": "github:arcticicestudio/nord-visual-studio-code",
"pigeon-maps": "^0.19.5",
@ -76,55 +75,55 @@
"react-dom": "^17.0.2",
"react-feather": "^2.0.9",
"react-helmet": "^6.1.0",
"react-qr-svg": "^2.3.0",
"react-qr-svg": "^2.4.0",
"react-transition-group": "^4.4.1",
"remark": "^13.0.0",
"remark-react": "^8.0.0",
"slugify": "^1.5.0"
"slugify": "^1.5.3"
},
"devDependencies": {
"@svgr/webpack": "^5.5.0",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5",
"@types/classnames": "^2.2.11",
"@types/fs-extra": "^9.0.8",
"@types/jest": "^26.0.21",
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/react": "^11.2.7",
"@types/classnames": "^2.3.1",
"@types/fs-extra": "^9.0.11",
"@types/jest": "^26.0.23",
"@types/loadable__component": "^5.13.3",
"@types/lunr": "^2.3.3",
"@types/node": "^14.14.35",
"@types/node-fetch": "^2.5.8",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
"@types/react-helmet": "^6.1.0",
"@types/react-transition-group": "^4.4.0",
"@types/node": "^15.6.0",
"@types/node-fetch": "^2.5.10",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/react-helmet": "^6.1.1",
"@types/react-transition-group": "^4.4.1",
"@types/shortid": "^0.0.29",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@welldone-software/why-did-you-render": "^6.1.1",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"@welldone-software/why-did-you-render": "^6.1.4",
"eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"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-testing-library": "^3.10.2",
"fs-extra": "^9.1.0",
"fs-extra": "^10.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"markdownlint-cli": "^0.27.1",
"node-iptc": "^1.0.5",
"npm-run-all": "^4.1.5",
"ora": "^5.4.0",
"postcss": "^8.2.8",
"prettier": "^2.2.1",
"postcss": "^8.3.0",
"prettier": "^2.3.0",
"shortid": "^2.2.16",
"stylelint": "^13.12.0",
"stylelint": "^13.13.1",
"stylelint-config-css-modules": "^2.2.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^21.0.0",
"stylelint-config-standard": "^22.0.0",
"stylelint-prettier": "^1.2.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.3",
"typescript": "^4.2.4",
"typescript-plugin-css-modules": "^3.2.0"
},
"repository": {

View File

@ -20,15 +20,8 @@ const ExifData = ({
)
export default function Exif({ exif }: { exif: ExifMeta }): ReactElement {
const {
iso,
model,
fstop,
shutterspeed,
focalLength,
exposure,
gps
} = exif.formatted
const { iso, model, fstop, shutterspeed, focalLength, exposure, gps } =
exif.formatted
return (
<aside className={styleExif}>

View File

@ -3,12 +3,8 @@ import { Map } from 'pigeon-maps'
import Marker from 'pigeon-marker'
import useDarkMode from '../../hooks/useDarkMode'
const mapbox = (mapboxId: string) => (
x: string,
y: string,
z: string,
dpr?: number
) =>
const mapbox =
(mapboxId: string) => (x: string, y: string, z: string, dpr?: number) =>
`https://api.mapbox.com/styles/v1/mapbox/${mapboxId}/tiles/256/${z}/${x}/${y}${
dpr >= 2 ? '@2x' : ''
}?access_token=${process.env.GATSBY_MAPBOX_ACCESS_TOKEN}`

View File

@ -55,13 +55,8 @@ export default function Pagination({
}: {
pageContext: PageContext
}): ReactElement {
const {
slug,
currentPageNumber,
numPages,
prevPagePath,
nextPagePath
} = pageContext
const { slug, currentPageNumber, numPages, prevPagePath, nextPagePath } =
pageContext
const isFirst = currentPageNumber === 1
const isLast = currentPageNumber === numPages

View File

@ -1,9 +1,9 @@
import React, { ReactElement } from 'react'
import { success, error, alert } from './Alert.module.css'
export function getTransactionMessage(
transactionHash?: string
): { [key: string]: string } {
export function getTransactionMessage(transactionHash?: string): {
[key: string]: string
} {
return {
transaction: `<a href="https://etherscan.io/tx/${transactionHash}" target="_blank">See your transaction on etherscan.io.</a>`,
waitingForUser: 'Waiting for your confirmation',

View File

@ -47,7 +47,7 @@ export default function Archive({
}
export const archiveQuery = graphql`
query($tag: String, $skip: Int, $limit: Int) {
query ($tag: String, $skip: Int, $limit: Int) {
allMarkdownRemark(
filter: {
fields: { type: { nin: "photo" } }

View File

@ -67,7 +67,7 @@ export default function Photos(props: PhotosPageProps): ReactElement {
}
export const photosQuery = graphql`
query($skip: Int, $limit: Int) {
query ($skip: Int, $limit: Int) {
allMarkdownRemark(
filter: { fields: { type: { eq: "photo" } } }
sort: { order: DESC, fields: [fields___date] }

View File

@ -342,11 +342,6 @@ td {
/* More basic elements
///////////////////////////////////// */
@import '_buttons';
@import '_code.css';
@import '_toast.css';
@import '_alerts.css';
.medium-zoom-overlay {
background-color: var(--body-background-color) !important;
}

4
src/global/imports.css Normal file
View File

@ -0,0 +1,4 @@
@import '_buttons';
@import '_code.css';
@import '_toast.css';
@import '_alerts.css';