@devtable/dashboard 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Dashboard Core
2
+
3
+ ```bash
4
+ # 1. install deps at dashboard root
5
+ cd devtable/dashboard && yarn
6
+
7
+ # 2. run demo
8
+ cd devtable/dashboard/packages/core && yarn build
9
+ ```
10
+ see `package.json` for more scripts
11
+
12
+ use `../demo` for debugging
@@ -1 +1,3 @@
1
- export declare const queryBySQL: (sql: string, context: Record<string, any>) => () => Promise<any>;
1
+ import { ContextInfoContextType } from "../contexts";
2
+ import { IDashboardDefinition } from "../types";
3
+ export declare const queryBySQL: (sql: string, context: ContextInfoContextType, definitions: IDashboardDefinition, title: string) => () => Promise<any>;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { IDashboardDefinition, ISQLSnippet } from "../types";
3
+ export interface IDefinitionContext extends IDashboardDefinition {
4
+ setSQLSnippets: React.Dispatch<React.SetStateAction<ISQLSnippet[]>>;
5
+ }
6
+ export declare const DefinitionContext: React.Context<IDefinitionContext>;
@@ -1,3 +1,4 @@
1
+ export * from './definition-context';
1
2
  export * from './context-info-context';
2
3
  export * from './layout-state-context';
3
4
  export * from './panel-context';