-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into semantic_schema_timestamp
- Loading branch information
Showing
229 changed files
with
16,105 additions
and
100 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 |
---|---|---|
|
@@ -42,3 +42,6 @@ exports/ | |
# coverage | ||
.coverage | ||
coverage.xml | ||
|
||
# pgdata | ||
pgdata/ |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
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,15 @@ | ||
# THE URL OF YOUR CLIENT | ||
NEXT_PUBLIC_API_URL='http://localhost:8000/' | ||
|
||
# ENVIRONMENT | ||
NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN="development" | ||
|
||
# ANALYTICS | ||
NEXT_PUBLIC_MIXPANEL_TOKEN="04a81d58ade99299e19e5a89fe84c670" | ||
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID="G-SD7MBGS6J9" | ||
|
||
# SUPPORT CHAT | ||
NEXT_PUBLIC_INTERCOM_APP_ID="jzfk3qc5" | ||
|
||
# ENV | ||
NODE_ENV="development" |
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,28 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2023, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"react" | ||
], | ||
"rules": { | ||
"react/no-unescaped-entities": ["error", { "forbid": [">", "}"] }], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-useless-catch": "off", | ||
"react-hooks/exhaustive-deps": 0, | ||
"react/prop-types": "off" | ||
} | ||
} |
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,40 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
.env | ||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# lock files | ||
package-lock.json | ||
yarn-lock.json |
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,15 @@ | ||
FROM node:19.4.0-alpine3.17 | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["npm", "start"] |
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,61 @@ | ||
"use client"; | ||
import React, { ReactNode, useEffect } from "react"; | ||
import ContextProvider from "@/contexts/ContextProvider"; | ||
import { usePathname } from "next/navigation"; | ||
import dynamic from "next/dynamic"; | ||
import { getTitleFromPath } from "@/utils/getTitleFromPath"; | ||
import { | ||
NEXT_PUBLIC_INTERCOM_APP_ID, | ||
NEXT_PUBLIC_MIXPANEL_TOKEN, | ||
NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN, | ||
} from "@/utils/constants"; | ||
import mixpanel from "mixpanel-browser"; | ||
import { Provider as RollbarProvider, ErrorBoundary } from "@rollbar/react"; | ||
import QueryProvider from "./QueryProvider"; | ||
import Intercom from "@/components/Intercom/Intercom"; | ||
import { ToastContainer } from "react-toastify"; | ||
import "styles/globals.css"; | ||
import "styles/App.css"; | ||
import "styles/multi-range-slider.css"; | ||
import "react-toastify/dist/ReactToastify.css"; | ||
|
||
const _NoSSR = ({ children }) => <React.Fragment>{children}</React.Fragment>; | ||
const NoSSR = dynamic(() => Promise.resolve(_NoSSR), { | ||
ssr: false, | ||
}); | ||
|
||
export default function AppProvider({ children }: { children: ReactNode }) { | ||
const pathname = usePathname(); | ||
const defaultTitle = getTitleFromPath(pathname); | ||
|
||
const rollbarConfig = { | ||
accessToken: NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN, | ||
environment: process.env.NODE_ENV || "development", | ||
}; | ||
|
||
useEffect(() => { | ||
document.title = `${defaultTitle} | PandaBI`; | ||
}, [defaultTitle]); | ||
|
||
useEffect(() => { | ||
mixpanel.init(NEXT_PUBLIC_MIXPANEL_TOKEN, { | ||
autotrack: true, | ||
track_pageview: true, | ||
}); | ||
}, []); | ||
return ( | ||
<> | ||
<RollbarProvider config={rollbarConfig}> | ||
<ErrorBoundary> | ||
<ContextProvider> | ||
<NoSSR> | ||
<ToastContainer autoClose={3000} className="w-64 text-white" /> | ||
<QueryProvider>{children}</QueryProvider> | ||
</NoSSR> | ||
</ContextProvider> | ||
</ErrorBoundary> | ||
</RollbarProvider> | ||
<Intercom appID={NEXT_PUBLIC_INTERCOM_APP_ID} /> | ||
</> | ||
); | ||
} |
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,17 @@ | ||
"use client"; | ||
import React, { ReactNode, useState } from "react"; | ||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; | ||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; | ||
|
||
const QueryProvider = ({ children }: { children: ReactNode }) => { | ||
const [queryClient] = useState(() => new QueryClient()); | ||
return ( | ||
// Provide the client to your App | ||
<QueryClientProvider client={queryClient}> | ||
<ReactQueryDevtools initialIsOpen={false} /> | ||
{children} | ||
</QueryClientProvider> | ||
); | ||
}; | ||
|
||
export default QueryProvider; |
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,36 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
|
||
## Getting Started | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
# or | ||
bun dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
|
||
## Deploy on Vercel | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
Oops, something went wrong.