-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into add-webrtc-to-go-peer
* origin/main: deps: upgrade to libp2p v2 (#202) chore: enable unoptimised images chore: fix output mode feat: direct messages (#175) feat: loading screen (#176) deps: bump @libp2p/circuit-relay-v2 from 1.0.22 to 1.0.25 in /js-peer (#163) feat: rust peer joins peer discovery topic (#174) deps: bump @types/node from 20.12.7 to 20.14.8 in /js-peer (#166) deps: bump @types/react from 18.3.2 to 18.3.3 in /js-peer (#164) deps: bump libp2p from 1.5.1 to 1.6.1 in /js-peer (#162) deps: bump @libp2p/webtransport from 4.0.30 to 4.0.32 in js-peer (#161) deps: bump eslint-config-next from 14.2.2 to 14.2.3 in /js-peer (#159) deps: bump github.com/multiformats/go-multiaddr in /go-peer (#155) deps: bump react-dom and @types/react-dom in /js-peer (#158) deps: bump next from 14.2.2 to 14.2.3 in /js-peer (#151) deps: bump react and @types/react in /js-peer (#152)
- Loading branch information
Showing
22 changed files
with
5,010 additions
and
2,891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
"extends": "next/core-web-vitals", | ||
"rules": { | ||
"@next/next/no-img-element": "off" | ||
}, | ||
"ignorePatterns": ["node_modules/", "build/", ".next/", "src/lib/protobuf/"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
output: 'export', | ||
reactStrictMode: true, | ||
productionBrowserSourceMaps: true, | ||
images: { | ||
unoptimized: true, | ||
}, | ||
} | ||
|
||
module.exports = nextConfig |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react' | ||
import Image from 'next/image' | ||
import Spinner from './spinner' | ||
|
||
interface Props { | ||
error?: string | ||
} | ||
|
||
export function Booting({ error }: Props) { | ||
return ( | ||
<div className="grid h-screen place-items-center"> | ||
<div className="text-center"> | ||
<Image | ||
src="/libp2p-logo.svg" | ||
alt="libp2p logo" | ||
height="156" | ||
width="156" | ||
className="text-white mx-auto mb-5" | ||
/> | ||
<h2 className="text-3xl font-bold text-gray-900 mb-2">Initializing libp2p peer</h2> | ||
{!error && ( | ||
<> | ||
<p className="text-lg text-gray-900 mb-2">Connecting to bootstrap nodes...</p> | ||
<Spinner /> | ||
</> | ||
)} | ||
{error && error !== '' && <p className="text-lg text-gray-900">{error}</p>} | ||
{error && error === '' && <p className="text-lg text-gray-900">Unknown error</p>} | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.