Skip to content

Commit ef5ae26

Browse files
committed
lint
1 parent 7d667c9 commit ef5ae26

File tree

4 files changed

+115
-9
lines changed

4 files changed

+115
-9
lines changed

.env.example

Whitespace-only changes.

apps/dashboard/.env.example

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
#
2+
# Public (client)
3+
#
4+
5+
# API authorized domain
6+
# not required to build, defaults to prod
7+
NEXT_PUBLIC_THIRDWEB_DOMAIN="localhost:3000"
8+
9+
# API host. For local development, please use "https://api.thirdweb-dev.com"
10+
# otherwise: "https://api.thirdweb.com"
11+
NEXT_PUBLIC_THIRDWEB_API_HOST="https://api.thirdweb-dev.com"
12+
13+
# Bridge API. For local development, please use "https://bridge.thirdweb-dev.com"
14+
# otherwise: "https://bridge.thirdweb.com"
15+
NEXT_PUBLIC_THIRDWEB_BRIDGE_HOST="https://bridge.thirdweb-dev.com"
16+
17+
# Paper API host
18+
NEXT_PUBLIC_THIRDWEB_EWS_API_HOST="https://ews.thirdweb-dev.com"
19+
20+
# thirdweb local api host
21+
# NEXT_PUBLIC_THIRDWEB_API_HOST="http://127.0.0.1:3005"
22+
23+
# Client ID
24+
# Get the client id from https://thirdweb.com/create-api-key and set it here,
25+
# make sure to allow localhost:3000 in the allowed origins
26+
NEXT_PUBLIC_DASHBOARD_CLIENT_ID="<replace_me_with_your_client_id>"
27+
28+
# IPFS gateway url
29+
NEXT_PUBLIC_IPFS_GATEWAY_URL="https://{clientId}.thirdwebstorage-dev.com/ipfs/{cid}/{path}"
30+
31+
# Upload server url
32+
NEXT_PUBLIC_DASHBOARD_UPLOAD_SERVER="https://storage.thirdweb-dev.com"
33+
34+
# typesense.com API key (used for contract search)
35+
# - not required to build (unless testing contract search)
36+
NEXT_PUBLIC_TYPESENSE_CONTRACT_API_KEY=
37+
38+
# posthog API key
39+
# - not required for prod/staging
40+
NEXT_PUBLIC_POSTHOG_API_KEY="ignored"
41+
42+
# Stripe Customer portal
43+
NEXT_PUBLIC_STRIPE_KEY=
44+
45+
NEXT_PUBLIC_STRIPE_PAYMENT_METHOD_CFG_ID=
46+
47+
# Needed for contract analytics / blockchain data information
48+
CHAINSAW_API_KEY=
49+
50+
#
51+
# Private (server)
52+
#
53+
# 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
54+
DASHBOARD_SECRET_KEY="<replace_me_with_your_secret_key>"
55+
56+
# Client id for api routes
57+
API_ROUTES_CLIENT_ID=
58+
59+
# <moralis.io API key (used for api routes for token balances and wallet NFTs)
60+
# - not required to build (unless using wallet NFTs and token balances)>
61+
MORALIS_API_KEY=
62+
63+
# alchemy.com API key (used for wallet NFTS)
64+
# - cannot be restricted to IP/domain because vercel has no stable IPs and it happens during build & runtime api route call
65+
# - not required to build (unless testing wallet NFTs)>
66+
SSR_ALCHEMY_KEY=
67+
68+
# beehiiv.com API key (used for newsletter signups)
69+
# - not required to build (unless testing newsletter signups)>
70+
BEEHIIV_API_KEY=
71+
72+
# Hubspot Access Token (used for contact us form)
73+
# - not required to build (unless testing contact us form)>
74+
HUBSPOT_ACCESS_TOKEN=
75+
76+
# Github API Token (used for /open-source)
77+
GITHUB_API_TOKEN="ghp_..."
78+
79+
# Upload server url
80+
NEXT_PUBLIC_DASHBOARD_UPLOAD_SERVER="https://storage.thirdweb-preview.com"
81+
82+
# Unthread variables - only required for submitting the support form in /support
83+
UNTHREAD_API_KEY=""
84+
UNTHREAD_TRIAGE_CHANNEL_ID=""
85+
UNTHREAD_EMAIL_INBOX_ID=""
86+
UNTHREAD_FREE_TIER_ID=""
87+
UNTHREAD_GROWTH_TIER_ID=""
88+
UNTHREAD_PRO_TIER_ID=""
89+
90+
# Demo Engine
91+
NEXT_PUBLIC_DEMO_ENGINE_URL=""
92+
93+
# API server secret (required for thirdweb.com SIWE login). Copy from Vercel.
94+
API_SERVER_SECRET=""
95+
96+
# Used for the Faucet page (/<chain_id>)
97+
NEXT_PUBLIC_TURNSTILE_SITE_KEY=""
98+
TURNSTILE_SECRET_KEY=""
99+
REDIS_URL=""
100+
101+
ANALYTICS_SERVICE_URL=""
102+
103+
# Required for Nebula Chat
104+
NEXT_PUBLIC_NEBULA_URL=""
105+
106+
# required for billing parts of the dashboard (team -> settings -> billing / invoices)
107+
STRIPE_SECRET_KEY=""

apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Button } from "@/components/ui/button";
22
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
3+
import { getThirdwebClient } from "@/constants/thirdweb.server";
34
import { BookOpenIcon, ChevronRightIcon } from "lucide-react";
45
import type { Metadata } from "next";
56
import Image from "next/image";
@@ -14,7 +15,6 @@ import {
1415
getAuthToken,
1516
getAuthTokenWalletAddress,
1617
} from "../../api/lib/getAuthToken";
17-
import { getThirdwebClient } from "@/constants/thirdweb.server";
1818

1919
export const metadata: Metadata = {
2020
title: "thirdweb Support",
@@ -128,13 +128,14 @@ export default async function SupportPage() {
128128
jwt: authToken,
129129
teamId: undefined,
130130
});
131-
132-
const supportPromptPrefix = "You are a Customer Success Agent at thirdweb, assisting customers with blockchain and Web3-related issues. Use the following details to craft a professional, empathetic response: ";
131+
132+
const supportPromptPrefix =
133+
"You are a Customer Success Agent at thirdweb, assisting customers with blockchain and Web3-related issues. Use the following details to craft a professional, empathetic response: ";
133134
const examplePrompts = [
134135
"ERC20 - Transfer Amount Exceeds Allowance",
135136
"Replacement transaction underpriced / Replacement fee too low",
136137
"Nonce too low: next nonce #, tx nonce #",
137-
"Nonce too high"
138+
"Nonce too high",
138139
];
139140

140141
return (

apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
CircleStopIcon,
2323
CopyIcon,
2424
} from "lucide-react";
25+
import Link from "next/link";
2526
import { useState } from "react";
2627
import type { ThirdwebClient } from "thirdweb";
2728
import {
@@ -35,7 +36,6 @@ import {
3536
import { shortenAddress } from "thirdweb/utils";
3637
import type { Wallet } from "thirdweb/wallets";
3738
import type { NebulaContext } from "../api/chat";
38-
import Link from "next/link";
3939

4040
export type WalletMeta = {
4141
walletId: Wallet["id"];
@@ -179,10 +179,8 @@ export function ChatBar(props: {
179179
<Button
180180
variant="default"
181181
className="!h-auto w-auto shrink-0 gap-2 p-2"
182-
>
183-
<Link href="/support/create-ticket">
184-
Create Support Ticket
185-
</Link>
182+
>
183+
<Link href="/support/create-ticket">Create Support Ticket</Link>
186184
</Button>
187185
)}
188186
{/* Send / Stop */}

0 commit comments

Comments
 (0)