Skip to content

Commit 44f0fbd

Browse files
authored
Merge pull request #21 from tinybirdco/eslint
fix build errors
2 parents 9b1e78e + 09d69b4 commit 44f0fbd

File tree

10 files changed

+20
-15
lines changed

10 files changed

+20
-15
lines changed

apps/web/next.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { NextConfig } from "next";
2-
import withMarkdoc from '@markdoc/next.js';
32

43
const nextConfig: NextConfig = {};
54

apps/web/src/app/api/pipes/route.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function GET(request: NextRequest) {
66
const searchParams = request.nextUrl.searchParams;
77
const token = searchParams.get("token");
88
const pipeName = searchParams.get("pipe");
9-
9+
1010
if (!token || !pipeName) {
1111
return NextResponse.json(
1212
{ error: "Missing required parameters" },
@@ -15,7 +15,7 @@ export async function GET(request: NextRequest) {
1515
}
1616

1717
const url = new URL(`${TINYBIRD_API_URL}/${pipeName}.json`);
18-
18+
1919
// Forward all query parameters except token and pipe
2020
searchParams.forEach((value, key) => {
2121
if (key !== "token" && key !== "pipe") {
@@ -34,7 +34,7 @@ export async function GET(request: NextRequest) {
3434
return NextResponse.json(data);
3535
} catch (error) {
3636
return NextResponse.json(
37-
{ error: "Failed to fetch data from Tinybird" },
37+
{ error: "Failed to fetch data from Tinybird: " + error },
3838
{ status: 500 }
3939
);
4040
}
@@ -51,7 +51,7 @@ export async function POST(request: NextRequest) {
5151
}
5252

5353
const url = new URL(`${TINYBIRD_API_URL}/${pipe}.json`);
54-
54+
5555
// Add all params as query parameters
5656
Object.entries(params).forEach(([key, value]) => {
5757
url.searchParams.append(key, String(value));
@@ -68,7 +68,7 @@ export async function POST(request: NextRequest) {
6868
return NextResponse.json(data);
6969
} catch (error) {
7070
return NextResponse.json(
71-
{ error: "Failed to fetch data from Tinybird" },
71+
{ error: "Failed to fetch data from Tinybird: " + error },
7272
{ status: 500 }
7373
);
7474
}

apps/web/src/app/favicon.ico

-22 KB
Binary file not shown.

apps/web/src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const geistMono = Geist_Mono({
1414
});
1515

1616
export const metadata: Metadata = {
17-
title: "Create Next App",
18-
description: "Generated by create next app",
17+
title: "Tinynest",
18+
description: "Analyze your SaaS stack",
1919
};
2020

2121
export default function RootLayout({

apps/web/src/app/page.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
"use client";
22

33
import { useQueryState } from 'nuqs';
4-
import { useState, useEffect } from 'react';
4+
import { useState, useEffect, Suspense } from 'react';
55
import { Card } from '@/components/ui/card';
66
import Link from 'next/link';
77
import { checkToolState, InvalidTokenError } from '@/lib/tinybird';
88
import { TOOLS, type AppGridItem, type ToolState } from '@/lib/constants';
99
import TokenPrompt from '@/components/token-prompt';
1010
import { SectionHeader } from '@/components/section-header';
1111

12-
export default function Home() {
12+
function HomeContent() {
1313
const [token, setToken] = useQueryState('token');
1414
const [toolStates, setToolStates] = useState<Record<string, ToolState>>({});
1515
const [isLoading, setIsLoading] = useState(false);
@@ -171,3 +171,11 @@ function AppCard({
171171
</Link>
172172
);
173173
}
174+
175+
export default function Home() {
176+
return (
177+
<Suspense>
178+
<HomeContent />
179+
</Suspense>
180+
);
181+
}

apps/web/src/components/tools/auth0/dashboard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { useQueryState } from 'nuqs'
44
import { useEffect, useState } from 'react'
55
import Link from 'next/link'
6-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
76
import { pipe } from '@/lib/tinybird'
87
import MetricCard from './metric'
98
import { DauChart } from './dau-chart'

apps/web/src/components/tools/clerk/dashboard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { useQueryState } from 'nuqs'
44
import { useEffect, useState } from 'react'
55
import Link from 'next/link'
6-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
76
import { pipe } from '@/lib/tinybird'
87
import MetricCard from '../auth0/metric'
98
import { DauChart } from './dau-chart'

apps/web/src/components/tools/clerk/readme.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client"
22

3-
import { SquareArrowOutUpRight } from 'lucide-react'
43
import Link from 'next/link'
54
import { useQueryState } from 'nuqs'
65

@@ -18,7 +17,7 @@ export default function ClerkReadme() {
1817
</Link>
1918
</div>
2019
<div className='prose'>
21-
<p className='mt-8'>You haven't configured Clerk yet.</p>
20+
<p className='mt-8'>You haven&apos;t configured Clerk yet.</p>
2221
<h2 className="text-xl font-bold">Configure Clerk</h2>
2322
<ol>
2423
<li>

apps/web/src/components/tools/orb/dashboard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { useQueryState } from 'nuqs'
44
import { useEffect, useState } from 'react'
55
import Link from 'next/link'
6-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
76
import { pipe } from '@/lib/tinybird'
87
import MetricCard from '../auth0/metric'
98
import { SubsChart } from './subs-chart'

apps/web/src/lib/tinybird.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
2+
13
import { type ToolState } from './constants';
24

35
export class InvalidTokenError extends Error {

0 commit comments

Comments
 (0)