mirror of
https://github.com/apache/superset.git
synced 2026-04-10 20:06:13 +00:00
* Show clear and actionable query timeout error message 1. Instead of waiting for a long time or server-side response 504 Gateway timeout, explore view now add a query timeout threshold. After timeout it will show specific querytimeout message. 2. fix alert box close button position. * Show clear and actionable query timeout error message 1. Instead of waiting for a long time or server-side response 504 Gateway timeout, explore view now add a query timeout threshold. After timeout it will show specific querytimeout message. 2. fix alert box close button position. 3. fix a linting error.
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import { createStore, compose, applyMiddleware } from 'redux';
|
|
import { Provider } from 'react-redux';
|
|
import thunkMiddleware from 'redux-thunk';
|
|
|
|
import { getInitialState, sqlLabReducer } from './reducers';
|
|
import { initEnhancer } from '../reduxUtils';
|
|
import { initJQueryAjax } from '../modules/utils';
|
|
import App from './components/App';
|
|
import { appSetup } from '../common';
|
|
|
|
import './main.css';
|
|
import './reactable-pagination.css';
|
|
import '../components/FilterableTable/FilterableTableStyles.css';
|
|
|
|
appSetup();
|
|
initJQueryAjax();
|
|
|
|
const appContainer = document.getElementById('app');
|
|
const bootstrapData = JSON.parse(appContainer.getAttribute('data-bootstrap'));
|
|
const state = Object.assign({}, getInitialState(bootstrapData.defaultDbId), bootstrapData);
|
|
|
|
const store = createStore(
|
|
sqlLabReducer, state, compose(applyMiddleware(thunkMiddleware), initEnhancer()));
|
|
|
|
// jquery hack to highlight the navbar menu
|
|
$('a:contains("SQL Lab")').parent().addClass('active');
|
|
|
|
render(
|
|
<Provider store={store}>
|
|
<App />
|
|
</Provider>,
|
|
appContainer,
|
|
);
|