feat: add nprogress
This commit is contained in:
parent
66c0314a55
commit
d7a89ee1b1
|
|
@ -59,6 +59,7 @@
|
|||
"mdast-util-to-string": "^3.1.0",
|
||||
"nanoid": "^4.0.0",
|
||||
"next": "^12.3.1",
|
||||
"nextjs-progressbar": "^0.0.14",
|
||||
"pica": "^9.0.1",
|
||||
"posthtml": "^0.16.6",
|
||||
"prismjs": "^1.29.0",
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ specifiers:
|
|||
mdast-util-to-string: ^3.1.0
|
||||
nanoid: ^4.0.0
|
||||
next: ^12.3.1
|
||||
nextjs-progressbar: ^0.0.14
|
||||
pica: ^9.0.1
|
||||
postcss-import: ^15.0.0
|
||||
posthtml: ^0.16.6
|
||||
|
|
@ -159,6 +160,7 @@ dependencies:
|
|||
mdast-util-to-string: 3.1.0
|
||||
nanoid: 4.0.0
|
||||
next: 12.3.1_biqbaboplfbrettd7655fr4n2y
|
||||
nextjs-progressbar: 0.0.14_next@12.3.1+react@18.2.0
|
||||
pica: 9.0.1
|
||||
posthtml: 0.16.6
|
||||
prismjs: 1.29.0
|
||||
|
|
@ -7640,6 +7642,18 @@ packages:
|
|||
- '@babel/core'
|
||||
- babel-plugin-macros
|
||||
|
||||
/nextjs-progressbar/0.0.14_next@12.3.1+react@18.2.0:
|
||||
resolution: {integrity: sha512-AXYXHDN6M52AwFnGqH/vlwyo0gbC9zM7QS/4ryOTI0RUqfze5FJl8uSrxKJMzK6hGFdDeQXcZoWsLGXeCVtTwg==}
|
||||
peerDependencies:
|
||||
next: '>= 6.0.0'
|
||||
react: '>= 16.0.0'
|
||||
dependencies:
|
||||
next: 12.3.1_biqbaboplfbrettd7655fr4n2y
|
||||
nprogress: 0.2.0
|
||||
prop-types: 15.8.1
|
||||
react: 18.2.0
|
||||
dev: false
|
||||
|
||||
/node-addon-api/2.0.2:
|
||||
resolution: {integrity: sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==}
|
||||
dev: false
|
||||
|
|
@ -7721,6 +7735,10 @@ packages:
|
|||
path-key: 4.0.0
|
||||
dev: true
|
||||
|
||||
/nprogress/0.2.0:
|
||||
resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==}
|
||||
dev: false
|
||||
|
||||
/number-to-bn/1.7.0:
|
||||
resolution: {integrity: sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig==}
|
||||
engines: {node: '>=6.5.0', npm: '>=3'}
|
||||
|
|
|
|||
|
|
@ -263,3 +263,16 @@ textarea.input {
|
|||
.xlog-banner {
|
||||
background-color: var(--banner-bg-color);
|
||||
}
|
||||
|
||||
#nprogress .bar {
|
||||
@apply bg-accent !important;
|
||||
}
|
||||
|
||||
#nprogress .peg {
|
||||
@apply shadow-none !important;
|
||||
}
|
||||
|
||||
#nprogress .spinner-icon {
|
||||
@apply border-t-accent !important;
|
||||
@apply border-l-accent !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import { createIDBPersister } from "~/lib/persister.client"
|
|||
import { connectorsForWallets, wallet } from "@rainbow-me/rainbowkit"
|
||||
import { CSB_SCAN, IPFS_GATEWAY } from "~/lib/env"
|
||||
import { ipfsGateway } from "~/lib/ipfs-gateway"
|
||||
import NextNProgress from "nextjs-progressbar"
|
||||
|
||||
import "@rainbow-me/rainbowkit/styles.css"
|
||||
|
||||
|
|
@ -78,6 +79,9 @@ function MyApp({ Component, pageProps }: any) {
|
|||
<Hydrate state={pageProps.dehydratedState}>
|
||||
<ReactQueryDevtools />
|
||||
<IpfsGatewayContext.Provider value={ipfsGateway}>
|
||||
<NextNProgress
|
||||
options={{ easing: "linear", speed: 500, trickleSpeed: 100 }}
|
||||
/>
|
||||
{getLayout(<Component {...pageProps} />)}
|
||||
</IpfsGatewayContext.Provider>
|
||||
<Toaster />
|
||||
|
|
|
|||
Loading…
Reference in New Issue