mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
FIX: Minor
This commit is contained in:
parent
ba1789b44d
commit
5f153685e6
@ -26,12 +26,13 @@ $cfg->setOption(
|
||||
'h2[class|style|id],h3[class|style|id],h4[class|style|id],h5[class|style|id],h6[class|style|id],'.
|
||||
'address[class|style|id],pre[class|style|id],hr,'.
|
||||
'a[href|rel|title|target|class|style|id],'.
|
||||
'table[class|style|id],ul[class|style|id],ol[start|type|class|style|id],li[class|style|id],'.
|
||||
'table[class|style|id],tr,td,thead,tbody,th,'.
|
||||
'ul[class|style|id],ol[start|type|class|style|id],li[class|style|id],'.
|
||||
'img[class|style|id|src|alt|title|hspace|vspace|width|height|align|name|usemap|data*],' .
|
||||
'iframe[class|style|id|src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],' .
|
||||
'object[class|style|id|width|height|data|type],' .
|
||||
'embed[class|style|id|src|type|pluginspage|width|height|autoplay],' .
|
||||
'param[class|style|id|name|value],' .
|
||||
'map[class|style|id|name|id],' .
|
||||
'area[class|style|id|shape|coords|href|target|alt]'
|
||||
'area[class|style|id|shape|coords|href|target|alt]',
|
||||
);
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* eslint-disable global-require */
|
||||
|
||||
import '@a2nt/mithril-ui/src/js/ui'
|
||||
import Events from '@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/js/_events'
|
||||
|
||||
|
@ -7,15 +7,15 @@ const LayoutUI = ((W) => {
|
||||
const D = document;
|
||||
|
||||
const initFonts = () => {
|
||||
console.log(`${NAME}: initFonts`);
|
||||
console.log(`${NAME}: initFonts`)
|
||||
|
||||
const css = D.createElement('link');
|
||||
css.rel = 'stylesheet';
|
||||
css.type = 'text/css';
|
||||
css.media = 'all';
|
||||
const css = D.createElement('link')
|
||||
css.rel = 'stylesheet'
|
||||
css.type = 'text/css'
|
||||
css.media = 'all'
|
||||
css.href =
|
||||
'https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap';
|
||||
D.getElementsByTagName('head')[0].appendChild(css);
|
||||
'https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap'
|
||||
D.getElementsByTagName('head')[0].appendChild(css)
|
||||
};
|
||||
|
||||
const initAnalytics = () => {
|
||||
@ -45,8 +45,15 @@ const LayoutUI = ((W) => {
|
||||
};
|
||||
|
||||
W.addEventListener(`${Events.LODEDANDREADY}`, () => {
|
||||
initFonts();
|
||||
initAnalytics();
|
||||
});
|
||||
})(window);
|
||||
initFonts()
|
||||
initAnalytics()
|
||||
const mainLegacy = document.querySelector('#MainContent[data-legacy="true"]')
|
||||
if (mainLegacy) {
|
||||
const spinner = document.getElementById('PageLoading');
|
||||
if (spinner) {
|
||||
spinner.classList.add('d-none');
|
||||
}
|
||||
}
|
||||
})
|
||||
})(window)
|
||||
export default LayoutUI;
|
||||
|
@ -6,14 +6,12 @@
|
||||
|
||||
use A2nt\CMSNiceties\Ajax\Ex\AjaxControllerEx;
|
||||
use SilverStripe\Control\Middleware\HTTPCacheControlMiddleware;
|
||||
use A2nt\CMSNiceties\Ajax\Ex\AjaxControllerEx;
|
||||
use SilverStripe\CMS\Controllers\ContentController;
|
||||
use SilverStripe\CMS\Model\SiteTree;
|
||||
use SilverStripe\Control\Controller;
|
||||
use SilverStripe\Control\Director;
|
||||
use SilverStripe\View\SSViewer;
|
||||
use A2nt\CMSNiceties\Templates\DeferredRequirements;
|
||||
use SilverStripe\Control\Middleware\HTTPCacheControlMiddleware;
|
||||
|
||||
/**
|
||||
* Class \PageController
|
||||
|
Loading…
Reference in New Issue
Block a user