🧹 clean up duty 🧹

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-28 10:40:49 +01:00
parent 677ae32c84
commit 444e553b74
127 changed files with 218 additions and 5284 deletions

View File

@@ -1,4 +1,4 @@
import { api } from '@/app/_trpc/client';
import { api } from '@/trpc/client';
export function useEventNames(projectId: string) {
const query = api.chart.events.useQuery({

View File

@@ -1,4 +1,4 @@
import { api } from '@/app/_trpc/client';
import { api } from '@/trpc/client';
export function useEventProperties(projectId: string, event?: string) {
const query = api.chart.properties.useQuery({

View File

@@ -1,4 +1,4 @@
import { api } from '@/app/_trpc/client';
import { api } from '@/trpc/client';
export function useEventValues(
projectId: string,

View File

@@ -1,4 +1,4 @@
import { api } from '@/app/_trpc/client';
import { api } from '@/trpc/client';
export function useProfileProperties(projectId: string) {
const query = api.profile.properties.useQuery({

View File

@@ -1,4 +1,4 @@
import { api } from '@/app/_trpc/client';
import { api } from '@/trpc/client';
export function useProfileValues(projectId: string, property: string) {
const query = api.profile.values.useQuery({

View File

@@ -1,7 +1,7 @@
'use client';
import { useMemo } from 'react';
import type { IChartData, IChartSerieDataItem } from '@/app/_trpc/client';
import type { IChartData, IChartSerieDataItem } from '@/trpc/client';
import { getChartColor } from '@/utils/theme';
export type IRechartPayloadItem = IChartSerieDataItem & { color: string };

View File

@@ -1,7 +1,7 @@
'use client';
import { useEffect, useMemo, useState } from 'react';
import type { IChartData } from '@/app/_trpc/client';
import type { IChartData } from '@/trpc/client';
export type IVisibleSeries = ReturnType<typeof useVisibleSeries>['series'];
export function useVisibleSeries(data: IChartData, limit?: number | undefined) {