mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
* Bump dependencies and add missing typing libraries * Fix expose-loader breaking changes * Expose jQuery using its own typings instead of ours * Extend jQuery typings with our own custom $.fn helpers * Use jQuery typings for Component's `this.$` attribute * Format webpack config file * Use Spin.js 3.1.0
26 lines
718 B
JavaScript
26 lines
718 B
JavaScript
// Expose jQuery, mithril and dayjs to the window browser object
|
|
import 'expose-loader?exposes[]=$&exposes[]=jQuery!jquery';
|
|
import 'expose-loader?exposes=m!mithril';
|
|
import 'expose-loader?exposes=dayjs!dayjs';
|
|
|
|
import 'bootstrap/js/affix';
|
|
import 'bootstrap/js/dropdown';
|
|
import 'bootstrap/js/modal';
|
|
import 'bootstrap/js/tooltip';
|
|
import 'bootstrap/js/transition';
|
|
import 'jquery.hotkeys/jquery.hotkeys';
|
|
|
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
|
|
|
dayjs.extend(relativeTime);
|
|
dayjs.extend(localizedFormat);
|
|
|
|
import patchMithril from './utils/patchMithril';
|
|
|
|
patchMithril(window);
|
|
|
|
import * as Extend from './extend/index';
|
|
|
|
export { Extend };
|