mirror of
https://github.com/apache/superset.git
synced 2026-06-06 16:19:18 +00:00
* export functions directly rather than object at the bottom * move viztypes to controlPanelMappings, add fieldset rows and section data * for each viz type, render a controlPanelsContainer, controlPanelSections, FieldSetRows, and FieldsSets * add comments, move mappings to store * organize store and add default sections * render all the needed sections * add tooltip to sections * remove console log * use only panel panel-default, not panel-body, no need the padding * render fields for all fields in field set * add the rest of the control panel sections and field overrides * fix naming * add fieldTypes array * don't use default section * pass only needed state via mapStateToProps * fix code climate errors * linting * move field components to their own files * render field sets as lists * fix field components * use SFC * update modal trigger test to be more accurate * add FieldSetRow test * add test for controlpanelsContainer * fix test * make code climate happy * add freeform select field
49 lines
936 B
JavaScript
49 lines
936 B
JavaScript
import React from 'react';
|
|
import TimeFilter from './components/TimeFilter';
|
|
import ChartControl from './components/ChartControl';
|
|
import GroupBy from './components/GroupBy';
|
|
import SqlClause from './components/SqlClause';
|
|
import Filters from './components/Filters';
|
|
import NotGroupBy from './components/NotGroupBy';
|
|
import Options from './components/Options';
|
|
|
|
export const sinceOptions = [
|
|
'1 hour ago',
|
|
'12 hours ago',
|
|
'1 day ago',
|
|
'7 days ago',
|
|
'28 days ago',
|
|
'90 days ago',
|
|
'1 year ago',
|
|
];
|
|
|
|
export const untilOptions = [
|
|
'now',
|
|
'1 day ago',
|
|
'7 days ago',
|
|
'28 days ago',
|
|
'90 days ago',
|
|
'1 year ago',
|
|
];
|
|
|
|
export const DefaultControls = (
|
|
<div>
|
|
<ChartControl />
|
|
<TimeFilter />
|
|
<GroupBy />
|
|
<SqlClause />
|
|
<Filters />
|
|
</div>
|
|
);
|
|
|
|
export const TableVizControls = (
|
|
<div>
|
|
<NotGroupBy />
|
|
<Options />
|
|
</div>
|
|
);
|
|
|
|
export const VIZ_CONTROL_MAPPING = {
|
|
table: TableVizControls,
|
|
};
|