mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
* Set corejs version in .babelrc so Jest doesn't complain. * Rewrite services/routes in TypeScript. * Add TypeScript definitions for DialogComponent. * Make image paths more portable * Add current route context and hook. * Make EmptyState more flexible by being able to pass in getSteps function. * Rewrite ItemsList in TypeScript. * Introduce the possibility to add custom sorters for a column. * Rearrange props to be friendly to TypeScript. * Type definitions for NotificationApi. * Use Databricks query editor components for databricks_internal type of query runner. * URL Escape password in Alembic configuration. * Compare types in migrations.
42 lines
951 B
TypeScript
42 lines
951 B
TypeScript
import React from "react";
|
|
|
|
type DefaultStepKey = "dataSources" | "queries" | "alerts" | "dashboards" | "users";
|
|
export type StepKey<K> = DefaultStepKey | K;
|
|
|
|
export interface StepItem<K> {
|
|
key: StepKey<K>;
|
|
node: React.ReactNode;
|
|
}
|
|
|
|
export interface EmptyStateProps<K = unknown> {
|
|
header?: string;
|
|
icon?: string;
|
|
description: string;
|
|
illustration: string;
|
|
illustrationPath?: string;
|
|
helpLink: string;
|
|
|
|
onboardingMode?: boolean;
|
|
showAlertStep?: boolean;
|
|
showDashboardStep?: boolean;
|
|
showDataSourceStep?: boolean;
|
|
showInviteStep?: boolean;
|
|
|
|
getStepsItems?: (items: Array<StepItem<K>>) => Array<StepItem<K>>;
|
|
}
|
|
|
|
declare class EmptyState<R> extends React.Component<EmptyStateProps<R>> {}
|
|
|
|
export default EmptyState;
|
|
|
|
export interface StepProps {
|
|
show: boolean;
|
|
completed: boolean;
|
|
url?: string;
|
|
urlText?: string;
|
|
text: string;
|
|
onClick?: () => void;
|
|
}
|
|
|
|
export declare const Step: React.FunctionComponent<StepProps>;
|