Skip to content

Commit

Permalink
move dashboard into js monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsdls committed Jun 19, 2024
2 parents c238caf + 1ad5bf5 commit 1b927e7
Show file tree
Hide file tree
Showing 2,081 changed files with 173,753 additions and 2,565 deletions.
199 changes: 0 additions & 199 deletions .github/workflows/CI.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ playwright-report/
legacy_packages/cli/artifacts/

# codecov binary
codecov
codecov
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
20
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
<<<<<<< HEAD
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
Expand All @@ -16,4 +17,14 @@
},
"typescript.preferences.autoImportFileExcludePatterns": ["/exports"],
"typescript.preferences.importModuleSpecifier": "relative"
=======
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"typescript.preferences.importModuleSpecifier": "project-relative",
"editor.quickSuggestions": {
"strings": "on"
}
>>>>>>> dashboard/main
}
92 changes: 92 additions & 0 deletions apps/dashboard/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#
# Public (client)
#

# API authorized domain
# not required to build, defaults to prod
NEXT_PUBLIC_THIRDWEB_DOMAIN="localhost:3000"

# API host. For local development, please use "https://api.thirdweb-preview.com"
# otherwise: "https://api.thirdweb.com"
NEXT_PUBLIC_THIRDWEB_API_HOST="https://api.thirdweb-dev.com"

# Paper API host
NEXT_PUBLIC_THIRDWEB_EWS_API_HOST="https://ews.thirdweb-dev.com"

# thirdweb local api host
# NEXT_PUBLIC_THIRDWEB_API_HOST="http://127.0.0.1:3005"

# Client ID
# Get the client id from https://thirdweb.com/create-api-key and set it here,
# make sure to allow localhost:3000 in the allowed origins
NEXT_PUBLIC_DASHBOARD_CLIENT_ID="<replace_me_with_your_client_id>"

# IPFS gateway url
NEXT_PUBLIC_IPFS_GATEWAY_URL="https://{clientId}.thirdwebstorage-dev.com/ipfs/{cid}/{path}"

# Upload server url
NEXT_PUBLIC_DASHBOARD_UPLOAD_SERVER="https://storage.thirdweb-dev.com"

# typesense.com API key (used for contract search)
# - not required to build (unless testing contract search)
NEXT_PUBLIC_TYPESENSE_CONTRACT_API_KEY=

# posthog API key
# - not required for prod/staging
NEXT_PUBLIC_POSTHOG_API_KEY="ignored"

# Stripe Customer portal
NEXT_PUBLIC_STRIPE_KEY=

NEXT_PUBLIC_STRIPE_PAYMENT_METHOD_CFG_ID=

#
# Private (server)
#
# Get the secret key from https://thirdweb.com/create-api-key and set it here, Make sure to allow localhost:3000 in the allowed origins
DASHBOARD_SECRET_KEY="<replace_me_with_your_secret_key>"

# Client id for api routes
API_ROUTES_CLIENT_ID=

# <moralis.io API key (used for api routes for token balances and wallet NFTs)
# - not required to build (unless using wallet NFTs and token balances)>
MORALIS_API_KEY=

# alchemy.com API key (used for wallet NFTS)
# - cannot be restricted to IP/domain because vercel has no stable IPs and it happens during build & runtime api route call
# - not required to build (unless testing wallet NFTs)>
SSR_ALCHEMY_KEY=

# beehiiv.com API key (used for newsletter signups)
# - not required to build (unless testing newsletter signups)>
BEEHIIV_API_KEY=

# Hubspot Access Token (used for contact us form)
# - not required to build (unless testing contact us form)>
HUBSPOT_ACCESS_TOKEN=

# Github API Token (used for /open-source)
GITHUB_API_TOKEN="ghp_..."

# Upload server url
NEXT_PUBLIC_DASHBOARD_UPLOAD_SERVER="https://storage.thirdweb-preview.com"

# Payments GQL API URL
NEXT_PUBLIC_PAYMENTS_API="https://payments-gql-dev.thirdweb-preview.com/v1/graphql"

# Payments Admin Secret. For dev, get this value from paper-web-dev (on Zeet)'s "HASURA_ADMIN_SECRET_KEY" env var
PAYMENTS_ADMIN_SECRET=""

# Disable telemetry
NEXT_TELEMETRY_DISABLED=1

# Use trench for KYC
NEXT_PUBLIC_TRENCH_2_API_ENDPOINT=""

# Unthread variables - only required for submitting the support form in /support
NEXT_PUBLIC_UNTHREAD_TRIAGE_CHANNEL_ID=""
NEXT_PUBLIC_UNTHREAD_EMAIL_INBOX_ID=""
NEXT_PUBLIC_UNTHREAD_FREE_TIER_ID=""
NEXT_PUBLIC_UNTHREAD_GROWTH_TIER_ID=""
NEXT_PUBLIC_UNTHREAD_PRO_TIER_ID=""
13 changes: 13 additions & 0 deletions apps/dashboard/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# folders
artifacts/
build/
cache/
coverage/
dist/
node_modules/
typechain/
graphql/

# files
.solcover.js
coverage.json
Loading

0 comments on commit 1b927e7

Please sign in to comment.