mirror of
https://github.com/kremalicious/ipfs.git
synced 2024-11-22 01:37:07 +01:00
package updates
This commit is contained in:
parent
3d8cf3f18d
commit
b3a7596720
12
.github/dependabot.yml
vendored
12
.github/dependabot.yml
vendored
@ -1,8 +1,8 @@
|
|||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: npm
|
- package-ecosystem: npm
|
||||||
directory: "/"
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: weekly
|
interval: weekly
|
||||||
time: '04:00'
|
time: '04:00'
|
||||||
open-pull-requests-limit: 10
|
open-pull-requests-limit: 10
|
||||||
|
2873
package-lock.json
generated
2873
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -8,7 +8,7 @@
|
|||||||
"serve": "next start",
|
"serve": "next start",
|
||||||
"test": "npm run lint && NODE_ENV=test jest",
|
"test": "npm run lint && NODE_ENV=test jest",
|
||||||
"test:watch": "npm run lint && NODE_ENV=test jest --watch",
|
"test:watch": "npm run lint && NODE_ENV=test jest --watch",
|
||||||
"lint": "eslint --ignore-path .gitignore --ext .js .",
|
"lint": "eslint --ignore-path .gitignore --ext .js --ext .tsx --ext .ts .",
|
||||||
"format": "prettier --ignore-path .gitignore '**/*.{css,yml,js,jsx,ts,tsx,json}' --write",
|
"format": "prettier --ignore-path .gitignore '**/*.{css,yml,js,jsx,ts,tsx,json}' --write",
|
||||||
"analyze": "ANALYZE=true next build"
|
"analyze": "ANALYZE=true next build"
|
||||||
},
|
},
|
||||||
@ -29,22 +29,22 @@
|
|||||||
"@next/bundle-analyzer": "^9.4.4",
|
"@next/bundle-analyzer": "^9.4.4",
|
||||||
"@testing-library/jest-dom": "^5.11.0",
|
"@testing-library/jest-dom": "^5.11.0",
|
||||||
"@testing-library/react": "^10.4.4",
|
"@testing-library/react": "^10.4.4",
|
||||||
"@types/jest": "^26.0.0",
|
"@types/jest": "^26.0.4",
|
||||||
"@types/next-seo": "^1.10.0",
|
"@types/next-seo": "^1.10.0",
|
||||||
"@types/node": "^14.0.1",
|
"@types/node": "^14.0.19",
|
||||||
"@types/react": "^16.9.41",
|
"@types/react": "^16.9.41",
|
||||||
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
||||||
"@typescript-eslint/parser": "^2.34.0",
|
"@typescript-eslint/parser": "^3.6.0",
|
||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
"eslint": "^7.4.0",
|
"eslint": "^7.4.0",
|
||||||
"eslint-config-prettier": "^6.11.0",
|
"eslint-config-prettier": "^6.11.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.3.1",
|
"eslint-plugin-jsx-a11y": "^6.3.1",
|
||||||
"eslint-plugin-prettier": "^3.1.4",
|
"eslint-plugin-prettier": "^3.1.4",
|
||||||
"eslint-plugin-react": "^7.20.3",
|
"eslint-plugin-react": "^7.20.3",
|
||||||
"jest": "^25.5.4",
|
"jest": "^26.1.0",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"ts-jest": "^25.5.1",
|
"ts-jest": "^26.1.1",
|
||||||
"typescript": "^3.9.6"
|
"typescript": "^3.9.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { ReactNode } from 'react'
|
import React, { ReactNode, ReactElement } from 'react'
|
||||||
import { NextSeo } from 'next-seo'
|
import { NextSeo } from 'next-seo'
|
||||||
import Footer from './components/Footer'
|
import Footer from './components/Footer'
|
||||||
import { title, description, url } from '../site.config'
|
import { title, description, url } from '../site.config'
|
||||||
@ -10,7 +10,7 @@ export default function Layout({
|
|||||||
}: {
|
}: {
|
||||||
children: ReactNode
|
children: ReactNode
|
||||||
pageTitle?: string
|
pageTitle?: string
|
||||||
}) {
|
}): ReactElement {
|
||||||
return (
|
return (
|
||||||
<div className={styles.app}>
|
<div className={styles.app}>
|
||||||
<NextSeo
|
<NextSeo
|
||||||
@ -21,7 +21,6 @@ export default function Layout({
|
|||||||
url,
|
url,
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
site_name: title
|
site_name: title
|
||||||
}}
|
}}
|
||||||
twitter={{
|
twitter={{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { useState } from 'react'
|
import React, { useState, ReactElement } from 'react'
|
||||||
import { ipfsNodeUri, ipfsGateway } from '../../site.config'
|
import { ipfsNodeUri, ipfsGateway } from '../../site.config'
|
||||||
import Dropzone, { FileDropzone } from './Dropzone'
|
import Dropzone, { FileDropzone } from './Dropzone'
|
||||||
import styles from './Add.module.css'
|
import styles from './Add.module.css'
|
||||||
@ -15,7 +15,7 @@ const ipfsConfig: IpfsConfig = {
|
|||||||
port: port || '443'
|
port: port || '443'
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Add() {
|
export default function Add(): ReactElement {
|
||||||
const { ipfs, isIpfsReady, ipfsError } = useIpfsApi(ipfsConfig)
|
const { ipfs, isIpfsReady, ipfsError } = useIpfsApi(ipfsConfig)
|
||||||
const [files, setFiles] = useState([])
|
const [files, setFiles] = useState([])
|
||||||
const [loading, setLoading] = useState(false)
|
const [loading, setLoading] = useState(false)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { useCallback } from 'react'
|
import React, { useCallback, ReactElement } from 'react'
|
||||||
import { useDropzone } from 'react-dropzone'
|
import { useDropzone } from 'react-dropzone'
|
||||||
import styles from './Dropzone.module.css'
|
import styles from './Dropzone.module.css'
|
||||||
|
|
||||||
@ -16,8 +16,8 @@ export default function Dropzone({
|
|||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
multiple?: boolean
|
multiple?: boolean
|
||||||
error?: string
|
error?: string
|
||||||
}) {
|
}): ReactElement {
|
||||||
const onDrop = useCallback(acceptedFiles => handleOnDrop(acceptedFiles), [
|
const onDrop = useCallback((acceptedFiles) => handleOnDrop(acceptedFiles), [
|
||||||
handleOnDrop
|
handleOnDrop
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import React from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import ThemeSwitch from './ThemeSwitch'
|
import ThemeSwitch from './ThemeSwitch'
|
||||||
import styles from './Footer.module.css'
|
import styles from './Footer.module.css'
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer(): ReactElement {
|
||||||
const year = new Date().getFullYear()
|
const year = new Date().getFullYear()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import React from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import Status from './Status'
|
import Status from './Status'
|
||||||
import styles from './Info.module.css'
|
import styles from './Info.module.css'
|
||||||
|
|
||||||
export default function Info() {
|
export default function Info(): ReactElement {
|
||||||
return (
|
return (
|
||||||
<aside className={styles.info}>
|
<aside className={styles.info}>
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import styles from './Loader.module.css'
|
import styles from './Loader.module.css'
|
||||||
|
|
||||||
const Loader = ({ message }: { message?: string }) => (
|
const Loader = ({ message }: { message?: string }): ReactElement => (
|
||||||
<div className={styles.loader}>
|
<div className={styles.loader}>
|
||||||
{message && (
|
{message && (
|
||||||
<div
|
<div
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import React, { useState, useEffect } from 'react'
|
import React, { useState, useEffect, ReactElement } from 'react'
|
||||||
import { pingUrl } from '../utils'
|
import { pingUrl } from '../utils'
|
||||||
import { ipfsGateway, ipfsNodeUri } from '../../site.config'
|
import { ipfsGateway, ipfsNodeUri } from '../../site.config'
|
||||||
import styles from './Status.module.css'
|
import styles from './Status.module.css'
|
||||||
|
|
||||||
export default function Status({ type }: { type: string }) {
|
export default function Status({ type }: { type: string }): ReactElement {
|
||||||
const [isOnline, setIsOnline] = useState(false)
|
const [isOnline, setIsOnline] = useState(false)
|
||||||
const [isLoading, setIsLoading] = useState(true)
|
const [isLoading, setIsLoading] = useState(true)
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import React from 'react'
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */
|
||||||
|
|
||||||
|
import React, { ReactElement } from 'react'
|
||||||
import useDarkMode from 'use-dark-mode'
|
import useDarkMode from 'use-dark-mode'
|
||||||
|
|
||||||
import Day from '../images/day.svg'
|
import Day from '../images/day.svg'
|
||||||
@ -31,7 +33,7 @@ const ThemeToggleInput = ({
|
|||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
export default function ThemeSwitch() {
|
export default function ThemeSwitch(): ReactElement {
|
||||||
const darkMode = useDarkMode(false, {
|
const darkMode = useDarkMode(false, {
|
||||||
classNameDark: 'dark',
|
classNameDark: 'dark',
|
||||||
classNameLight: 'light'
|
classNameLight: 'light'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import { typekitId } from '../../site.config'
|
import { typekitId } from '../../site.config'
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ const typekitScript = `
|
|||||||
})(document);
|
})(document);
|
||||||
`
|
`
|
||||||
|
|
||||||
export default function Typekit() {
|
export default function Typekit(): ReactElement | null {
|
||||||
return typekitId ? (
|
return typekitId ? (
|
||||||
<Head key="typekit">
|
<Head key="typekit">
|
||||||
<link rel="dns-prefetch" href="https://use.typekit.net/" />
|
<link rel="dns-prefetch" href="https://use.typekit.net/" />
|
||||||
|
Loading…
Reference in New Issue
Block a user