move fonts around

This commit is contained in:
Nate Kelley 2025-02-18 13:14:17 -07:00
parent 30006a2cd9
commit 82f7765060
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
36 changed files with 26 additions and 43 deletions

View File

@ -1,4 +1,4 @@
import type { DataSourceTypes } from '../datasources';
import type { DataSourceTypes } from '../datasources/interfaces';
export interface BusterDatasetListItem {
id: string;

View File

@ -1,5 +1,5 @@
import type { BusterChartConfigProps } from '@/components/charts';
import { BusterShare, VerificationStatus } from '../share';
import { type BusterShare, type VerificationStatus } from '../share';
export type BusterMetric = {
id: string;

View File

@ -1,8 +1,4 @@
import {
PREFETCH_STALE_TIME,
useCreateReactMutation,
useCreateReactQuery
} from '@/api/createReactQuery';
import { useCreateReactMutation, useCreateReactQuery } from '@/api/createReactQuery';
import {
createDataset,
deployDataset,
@ -17,6 +13,10 @@ import {
import { useMemoizedFn } from 'ahooks';
import { QueryClient, useQueryClient } from '@tanstack/react-query';
import { queryKeys } from '@/api/query_keys';
import { datasetQueryKeys } from '@/api/query_keys/datasets';
const options = datasetQueryKeys.datasetsListQueryOptions();
const baseDatasetQueryKey = options.queryKey;
export const useGetDatasets = (params?: Parameters<typeof getDatasets>[0]) => {
const queryFn = useMemoizedFn(() => {
@ -24,7 +24,7 @@ export const useGetDatasets = (params?: Parameters<typeof getDatasets>[0]) => {
});
const res = useCreateReactQuery({
...queryKeys.datasetsList(params),
...queryKeys.datasetsListQueryOptions(params),
queryFn
});
@ -41,7 +41,7 @@ export const prefetchGetDatasets = async (
const queryClient = queryClientProp || new QueryClient();
await queryClient.prefetchQuery({
...queryKeys.datasetsList(params),
...queryKeys.datasetsListQueryOptions(params),
queryFn: () => getDatasets_server(params)
});
@ -84,7 +84,7 @@ export const useCreateDataset = () => {
const queryClient = useQueryClient();
const onSuccess = useMemoizedFn(() => {
queryClient.invalidateQueries({ queryKey: queryKeys.datasetsList().queryKey, exact: true });
queryClient.invalidateQueries({ queryKey: baseDatasetQueryKey, exact: true });
});
return useCreateReactMutation({
@ -102,7 +102,7 @@ export const useDeployDataset = () => {
return useCreateReactMutation({
mutationFn,
onSuccess: (data, variables, context) => {
queryClient.invalidateQueries({ queryKey: queryKeys.datasetsList().queryKey, exact: true });
queryClient.invalidateQueries({ queryKey: baseDatasetQueryKey, exact: true });
}
});
};
@ -116,7 +116,7 @@ export const useUpdateDataset = () => {
export const useDeleteDataset = () => {
const queryClient = useQueryClient();
const onSuccess = useMemoizedFn(() => {
queryClient.invalidateQueries({ queryKey: queryKeys.datasetsList().queryKey, exact: true });
queryClient.invalidateQueries({ queryKey: baseDatasetQueryKey, exact: true });
});
return useCreateReactMutation({
mutationFn: deleteDataset,

View File

@ -1,10 +1,9 @@
'use client';
import { queryOptions } from '@tanstack/react-query';
import type { BusterDataset, BusterDatasetListItem, IDataResult } from '../asset_interfaces';
import type { GetDatasetsParams } from '../request_interfaces/dataset';
import type { BusterDataset, BusterDatasetListItem } from '../asset_interfaces/datasets/interfaces';
import type { IDataResult } from '../asset_interfaces/metric/interfaces';
import type { GetDatasetsParams } from '../request_interfaces/dataset/interfaces';
const datasetsList = (params?: GetDatasetsParams) =>
const datasetsListQueryOptions = (params?: GetDatasetsParams) =>
queryOptions<BusterDatasetListItem[]>({
queryKey: ['datasets', params]
});
@ -21,7 +20,7 @@ const datasetMetadata = (datasetId: string) =>
});
export const datasetQueryKeys = {
datasetsList,
datasetsListQueryOptions,
datasetData,
datasetMetadata
};

View File

@ -11,6 +11,7 @@ import { datasetQueryKeys } from './datasets';
import { permissionGroupQueryKeys } from './permission_groups';
export const queryKeys = {
...datasetQueryKeys,
...chatQueryKeys,
...collectionQueryKeys,
...userQueryKeys,
@ -20,6 +21,5 @@ export const queryKeys = {
...termsQueryKeys,
...datasourceQueryKeys,
...datasetGroupQueryKeys,
...datasetQueryKeys,
...permissionGroupQueryKeys
};

View File

@ -1,13 +1,12 @@
@import './base/_fonts';
@import './base/_tailwind';
@import './base/_antd';
@import './base/_reset';
@import './base/_sql';
@import './tailwind';
@import './fonts';
@import './antd';
@import './reset';
@import './sql';
@import './loaders';
@import './transitions.scss';
@import './animations.scss';
@import './monaco.scss';
@import '../components/layout/AppSplitter/SplitPane/themes/default.scss';
@import './animations';
@import './monaco';
@import '../components/layout/AppSplitter/SplitPane/themes/default';
@import 'react-data-grid/lib/styles.css';
h1,

View File

@ -1,9 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
img {
@apply inline-block;
}
}

View File

@ -1,9 +0,0 @@
@keyframes pop {
0% {
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scale(1);
}
100% {
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scale(var(--scale));
box-shadow: var(--box-shadow);
}
}