UI debug details

This commit is contained in:
Tony Air 2020-05-14 01:45:17 +07:00
parent 513a5f1774
commit 1f15be7009
2 changed files with 364 additions and 351 deletions

View File

@ -6,15 +6,7 @@ import MAP_DRIVER from './_components/drivers/_map.google';
//import MAP_DRIVER from './_components/drivers/_map.mapbox';
const CONSTS = {
ENVS: [
'xs',
'sm',
'md',
'lg',
'xl',
'xxl',
'xxxl',
],
ENVS: ['xs', 'sm', 'md', 'lg', 'xl', 'xxl', 'xxxl'],
MAP_DRIVER,
};

View File

@ -365,7 +365,10 @@ const MainUI = (($) => {
});
}
if ($AlertNotify.length && typeof $AlertNotify[0].stop !== 'undefined') {
if (
$AlertNotify.length &&
typeof $AlertNotify[0].stop !== 'undefined'
) {
$AlertNotify[0].stop();
}
@ -464,6 +467,24 @@ const MainUI = (($) => {
});
}, 1000);
});
console.clear();
console.info(
'%cUI Kit: https://github.com/a2nt/webpack-bootstrap-ui-kit by Tony Air (tony@twma.pro)',
'color:yellow;font-size:16px',
);
console.groupCollapsed('Events');
Object.keys(Events).forEach((k) => {
console.info(k + ': ' + Events[k]);
});
console.groupEnd('Events');
console.groupCollapsed('Consts');
Object.keys(Consts).forEach((k) => {
console.info(k + ': ' + Consts[k]);
});
console.groupEnd('Events');
W.MainUI = MainUI;
return MainUI;