Skip to content

Commit a02b557

Browse files
authored
unified project layout (#7888)
1 parent 8b6dead commit a02b557

File tree

194 files changed

+1946
-7594
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+1946
-7594
lines changed

apps/dashboard/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@radix-ui/react-slot": "^1.2.3",
2020
"@radix-ui/react-switch": "^1.2.5",
2121
"@radix-ui/react-tooltip": "1.2.7",
22-
"@scalar/api-reference-react": "0.7.25",
2322
"@sentry/nextjs": "9.34.0",
2423
"@shazow/whatsabi": "0.22.2",
2524
"@tanstack/react-query": "5.81.5",
@@ -47,7 +46,6 @@
4746
"papaparse": "^5.5.3",
4847
"pluralize": "^8.0.0",
4948
"posthog-js": "1.256.1",
50-
"posthog-node": "^5.4.0",
5149
"prettier": "3.6.2",
5250
"react": "19.1.0",
5351
"react-children-utilities": "^2.10.0",

apps/dashboard/src/@/analytics/posthog-server.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

apps/dashboard/src/@/api/analytics.ts

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import type {
1414
UserOpStats,
1515
WalletStats,
1616
WebhookLatencyStats,
17-
WebhookRequestStats,
1817
WebhookSummaryStats,
1918
} from "@/types/analytics";
2019
import { getChains } from "./chain";
@@ -660,7 +659,7 @@ export function getEngineCloudMethodUsage(
660659
return cached_getEngineCloudMethodUsage(normalizedParams(params), authToken);
661660
}
662661

663-
const cached_getWebhookSummary = unstable_cache(
662+
const _cached_getWebhookSummary = unstable_cache(
664663
async (
665664
params: AnalyticsQueryParams & { webhookId: string },
666665
authToken: string,
@@ -688,51 +687,7 @@ const cached_getWebhookSummary = unstable_cache(
688687
},
689688
);
690689

691-
export function getWebhookSummary(
692-
params: AnalyticsQueryParams & { webhookId: string },
693-
authToken: string,
694-
) {
695-
return cached_getWebhookSummary(normalizedParams(params), authToken);
696-
}
697-
698-
const cached_getWebhookRequests = unstable_cache(
699-
async (
700-
params: AnalyticsQueryParams & { webhookId?: string },
701-
authToken: string,
702-
): Promise<{ data: WebhookRequestStats[] } | { error: string }> => {
703-
const searchParams = buildSearchParams(params);
704-
if (params.webhookId) {
705-
searchParams.append("webhookId", params.webhookId);
706-
}
707-
708-
const res = await fetchAnalytics({
709-
authToken,
710-
url: `v2/webhook/requests?${searchParams.toString()}`,
711-
init: {
712-
method: "GET",
713-
},
714-
});
715-
if (!res.ok) {
716-
const reason = await res.text();
717-
return { error: reason };
718-
}
719-
720-
return (await res.json()) as { data: WebhookRequestStats[] };
721-
},
722-
["getWebhookRequests"],
723-
{
724-
revalidate: 60 * 60, // 1 hour
725-
},
726-
);
727-
728-
export function getWebhookRequests(
729-
params: AnalyticsQueryParams & { webhookId?: string },
730-
authToken: string,
731-
) {
732-
return cached_getWebhookRequests(normalizedParams(params), authToken);
733-
}
734-
735-
const cached_getWebhookLatency = unstable_cache(
690+
const _cached_getWebhookLatency = unstable_cache(
736691
async (
737692
params: AnalyticsQueryParams & { webhookId?: string },
738693
authToken: string,
@@ -762,13 +717,6 @@ const cached_getWebhookLatency = unstable_cache(
762717
},
763718
);
764719

765-
export function getWebhookLatency(
766-
params: AnalyticsQueryParams & { webhookId?: string },
767-
authToken: string,
768-
) {
769-
return cached_getWebhookLatency(normalizedParams(params), authToken);
770-
}
771-
772720
const cached_getInsightChainUsage = unstable_cache(
773721
async (
774722
params: AnalyticsQueryParams,

0 commit comments

Comments
 (0)