OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
add loading indicator
Carl-Gerhard Lindesvärd694f5bf622ca
diff --git a/apps/dashboard/package.json b/apps/dashboard/package.jsonindex 9649c3fe9..8a6e357bc 100644--- a/apps/dashboard/package.json+++ b/apps/dashboard/package.json@@ -73,6 +73,7 @@"next": "~14.2.1","next-auth": "^4.24.5","next-themes": "^0.2.1",+ "nextjs-toploader": "^1.6.11","nuqs": "^1.16.1","prisma-error-enum": "^0.1.3","pushmodal": "^1.0.0",diff --git a/apps/dashboard/src/app/layout.tsx b/apps/dashboard/src/app/layout.tsxindex 5b6564277..bc43df5ac 100644--- a/apps/dashboard/src/app/layout.tsx+++ b/apps/dashboard/src/app/layout.tsx@@ -1,4 +1,5 @@import { cn } from '@/utils/cn';+import NextTopLoader from 'nextjs-toploader';import Providers from './providers';@@ -26,6 +27,12 @@ export default function RootLayout({<bodyclassName={cn('grainy min-h-screen bg-slate-100 font-sans antialiased')}>+ <NextTopLoader+ showSpinner={false}+ color="#2463EB"+ height={2}+ shadow={false}+ /><Providers>{children}</Providers></body></html>diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex a6a450e63..fb0a4b12e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -309,6 +309,9 @@ importers:next-themes:specifier: ^0.2.1+ nextjs-toploader:+ specifier: ^1.6.11nuqs:specifier: ^1.16.1version: 1.17.0([email protected])@@ -6938,6 +6941,10 @@ packages:dependencies:undici-types: 5.26.5+ /@types/[email protected]:+ resolution: {integrity: sha512-k7kRA033QNtC+gLc4VPlfnue58CM1iQLgn1IMAU8VPHGOj7oIHPp9UlhedEnD/Gl8evoCjwkZjlBORtZ3JByUA==}+ dev: false+/@types/[email protected]:resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==}@@ -13542,6 +13549,21 @@ packages:- babel-plugin-macrosdev: false+ resolution: {integrity: sha512-2mt+YDj3I7s8JGv136TRdJo9amd2BBeb2u1U4tyvZpR08eqeBgqp3xsw2Yu1AUT7C3NZQhbQN11EXwnlqsPEIA==}+ peerDependencies:+ next: '>= 6.0.0'+ react: '>= 16.0.0'+ react-dom: '>= 16.0.0'+ dependencies:+ '@types/nprogress': 0.2.3+ next: 14.2.1([email protected])([email protected])+ nprogress: 0.2.0+ prop-types: 15.8.1+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+resolution: {integrity: sha512-2XOoMfwBCTYBt8ds4ZHftt9Wyf2XsykiNo02eir/XEYB+sGeUoE77kzqfidjEOKCSzOHYbK9BDMcg2+B/2vYRw==}peerDependencies:@@ -13752,6 +13774,10 @@ packages:set-blocking: 2.0.0dev: false+ resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==}+ dev: false+resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}dependencies: