mirror of https://github.com/apache/superset.git
refactor: rearrange dashboard page js bundles (#16285)
This commit is contained in:
parent
ac8e54d909
commit
b87e0b32ac
|
@ -30,7 +30,9 @@ import {
|
||||||
import { hydrateDashboard } from 'src/dashboard/actions/hydrate';
|
import { hydrateDashboard } from 'src/dashboard/actions/hydrate';
|
||||||
import { setDatasources } from 'src/dashboard/actions/datasources';
|
import { setDatasources } from 'src/dashboard/actions/datasources';
|
||||||
import injectCustomCss from 'src/dashboard/util/injectCustomCss';
|
import injectCustomCss from 'src/dashboard/util/injectCustomCss';
|
||||||
|
import setupPlugins from 'src/setup/setupPlugins';
|
||||||
|
|
||||||
|
setupPlugins();
|
||||||
const DashboardContainer = React.lazy(
|
const DashboardContainer = React.lazy(
|
||||||
() =>
|
() =>
|
||||||
import(
|
import(
|
||||||
|
|
|
@ -32,13 +32,11 @@ import Menu from 'src/components/Menu/Menu';
|
||||||
import FlashProvider from 'src/components/FlashProvider';
|
import FlashProvider from 'src/components/FlashProvider';
|
||||||
import { theme } from 'src/preamble';
|
import { theme } from 'src/preamble';
|
||||||
import ToastPresenter from 'src/messageToasts/containers/ToastPresenter';
|
import ToastPresenter from 'src/messageToasts/containers/ToastPresenter';
|
||||||
import setupPlugins from 'src/setup/setupPlugins';
|
|
||||||
import setupApp from 'src/setup/setupApp';
|
import setupApp from 'src/setup/setupApp';
|
||||||
import { routes, isFrontendRoute } from 'src/views/routes';
|
import { routes, isFrontendRoute } from 'src/views/routes';
|
||||||
import { store } from './store';
|
import { store } from './store';
|
||||||
|
|
||||||
setupApp();
|
setupApp();
|
||||||
setupPlugins();
|
|
||||||
|
|
||||||
const container = document.getElementById('app');
|
const container = document.getElementById('app');
|
||||||
const bootstrap = JSON.parse(container?.getAttribute('data-bootstrap') ?? '{}');
|
const bootstrap = JSON.parse(container?.getAttribute('data-bootstrap') ?? '{}');
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
with development version #}
|
with development version #}
|
||||||
<!-- Bundle js {{ filename }} START -->
|
<!-- Bundle js {{ filename }} START -->
|
||||||
{% for entry in js_manifest(filename) %}
|
{% for entry in js_manifest(filename) %}
|
||||||
<script src="{{ entry }}"></script>
|
<script src="{{ entry }}" async></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<!-- Bundle js {{ filename }} END -->
|
<!-- Bundle js {{ filename }} END -->
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
Loading…
Reference in New Issue