aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/main.js
blob: 0611229afb2604c81aa821aa351b0a34cda238ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
requirejs.config({
    baseUrl: 'js/lib',
    paths: {
        app: '../app',
        jquery: 'jquery-3.1.1.min',
        visibility: 'visibility.min',
        humanize: 'humanize.min',
        bootstrap: 'bootstrap.min',
        d3: 'd3.min',
        d3evolution: 'd3evolution.min',
        d3pie: 'd3pie.min',
        datatables: 'datatables.min',
        bootstrap: 'bootstrap.min'
    },
    shim: {
        d3: {exports: 'd3'},
        bootstrap: {exports: 'bootstrap', deps: ['jquery']},
        d3pie: {exports: 'd3pie', deps: ['d3', 'jquery']},
        d3evolution: {exports: 'D3Evolution', deps: ['d3', 'd3pie', 'jquery']},
        datatables: {deps: ['bootstrap','jquery']},
    }
});

// Load main UI
require(['domReady'],
function(domReady) {
    domReady(function () {
        require(['jquery', 'app/rspamd'],
            function ($, rspamd) {
                rspamd.setup();
                rspamd.connect();
            });
    });
});