2016-05-06 23:14:40 +08:00
|
|
|
|
|
|
|
import window from 'window';
|
2016-05-26 06:38:32 +08:00
|
|
|
|
2016-05-21 06:46:56 +08:00
|
|
|
import {Promise} from 'es6-promise-polyfill/promise.js';
|
2016-05-26 06:38:32 +08:00
|
|
|
import {jassl} from 'jassl';
|
|
|
|
import {progressJs} from '../vendors/progress.js/src/progress.js';
|
2016-05-20 08:04:15 +08:00
|
|
|
|
2016-05-21 06:46:56 +08:00
|
|
|
window.Promise = window.Promise || Promise;
|
2016-05-20 08:04:15 +08:00
|
|
|
window.progressJs = window.progressJs || progressJs();
|
2016-05-21 06:46:56 +08:00
|
|
|
window.jassl = jassl;
|
2016-05-20 08:04:15 +08:00
|
|
|
|
|
|
|
window.progressJs.onbeforeend(() => {
|
2016-05-26 06:38:32 +08:00
|
|
|
const _$ = window.$;
|
|
|
|
if (_$)
|
2016-05-20 08:04:15 +08:00
|
|
|
{
|
2016-05-26 06:38:32 +08:00
|
|
|
_$('.progressjs-container').hide();
|
2016-05-20 08:04:15 +08:00
|
|
|
window.setTimeout(() => {
|
2016-05-26 06:38:32 +08:00
|
|
|
_$('.progressjs-container').remove();
|
|
|
|
}, 200);
|
2016-05-20 08:04:15 +08:00
|
|
|
}
|
|
|
|
});
|
2016-05-06 23:14:40 +08:00
|
|
|
|
2016-05-26 06:38:32 +08:00
|
|
|
require('../vendors/json2/json2.js');
|
|
|
|
require('../vendors/modernizr/modernizr-custom.js');
|
2016-05-06 23:14:40 +08:00
|
|
|
|
2016-05-20 08:04:15 +08:00
|
|
|
require('Common/Booter.jsx');
|
2016-05-06 23:14:40 +08:00
|
|
|
|
2016-05-20 08:04:15 +08:00
|
|
|
if (window.__runBoot)
|
|
|
|
{
|
|
|
|
window.__runBoot();
|
|
|
|
}
|