require.config({
    context: '_',
    baseUrl: "/static/lib",
    paths: {
        'jquery': "jquery/jquery.min",
        'SockJS': 'sockjs-client/dist/sockjs.min',
        'popper': "popper.js/dist/umd/popper.min",
        'store': "store.js/dist/store.legacy.min",
        'bootstrap': "bootstrap4/js/bootstrap.bundle.min",
        'js.cookie': "js-cookie/js.cookie.min",
        'Mustache': "mustache.js/mustache.min",
        'lazyload': "lazyload/jquery.lazyload.min",
        'scrollstop': "lazyload/jquery.scrollstop.min",
        'purl': "purl",
        'select2': "select2/js/select2.full.min",
        'ekko-lightbox': "lightbox/dist/ekko-lightbox.min",
        'parsley': "parsley/parsley.min",
        'jquery-confirm': "jquery-confirm/jquery-confirm.min",
        'spin': "spin.js/dist/spin.min",
        'ckeditor': "ckeditor4/ckeditor",
        'jForum': "forum/jForum",
        'jForumXhr': "forum/jForum.xhr",
        'jForumUtils': "forum/jForum.utils",
        'jForumTemplate': "forum/jForum.template",
        'jForumMember': "forum/jForum.member",
        'jForumThreads': "forum/jForum.threads",
        'jForumSocket': "forum/jForum.socket",
        'jForumPagination': "forum/jForum.pagination",
        'jForumMessage': "forum/jForum.message",
        'jForumToolbar': "forum/jForum.toolbar",
        'jForumLoad': "forum/jForum.loadbar",
        'jForumXhrDefer': "forum/jForum.xhr.defer"
    },
    shim: {
        'bootstrap': {
            deps: ['jquery', 'popper']
        },
        'spin': { exports: 'Spinner' },
        'jForumLoad': {
            deps: ['spin']
        },
        'lazyload': {
            deps: ['jquery', 'scrollstop']
        },
        'ekko-lightbox': {
            deps: ['jquery']
        },
        'parsley':{
            deps: ['jquery'],
            exports: 'Parsley' 
        }
    }
});
require(['jForum'], function (jf) {
    jf.init();
});