mirror of
https://github.com/apache/superset.git
synced 2026-06-06 08:09:14 +00:00
* Added controls for Table Viz * Change control panel container to stateless * Changed specs * Resolved conflicts
57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
export const initialState = {
|
|
datasources: null,
|
|
datasourceId: null,
|
|
datasourceType: null,
|
|
vizType: null,
|
|
timeColumnOpts: [],
|
|
timeColumn: null,
|
|
timeGrainOpts: [],
|
|
timeGrain: null,
|
|
since: null,
|
|
until: null,
|
|
groupByColumnOpts: [],
|
|
groupByColumns: [],
|
|
metricsOpts: [],
|
|
metrics: [],
|
|
columnOpts: [],
|
|
columns: [],
|
|
orderingOpts: [],
|
|
orderings: [],
|
|
timeStampFormat: 'smart_date',
|
|
rowLimit: 50000,
|
|
searchBox: false,
|
|
whereClause: '',
|
|
havingClause: '',
|
|
filters: [],
|
|
filterColumnOpts: [],
|
|
};
|
|
|
|
// TODO: add datasource_type here after druid support is added
|
|
export const defaultFormData = {
|
|
vizType: null,
|
|
timeColumn: null,
|
|
timeGrain: null,
|
|
since: null,
|
|
until: null,
|
|
groupByColumns: [],
|
|
metrics: [],
|
|
columns: [],
|
|
orderings: [],
|
|
timeStampFormat: 'smart_date',
|
|
rowLimit: 50000,
|
|
searchBox: false,
|
|
whereClause: '',
|
|
havingClause: '',
|
|
filters: [],
|
|
};
|
|
|
|
export const defaultOpts = {
|
|
timeColumnOpts: [],
|
|
timeGrainOpts: [],
|
|
groupByColumnOpts: [],
|
|
metricsOpts: [],
|
|
filterColumnOpts: [],
|
|
columnOpts: [],
|
|
orderingOpts: [],
|
|
};
|