-
Notifications
You must be signed in to change notification settings - Fork 13
/
vendor.js
52 lines (39 loc) · 1.14 KB
/
vendor.js
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require('./vendor.scss')
// jquery
global.$ = require('jquery/dist/jquery.slim')
global.jQuery = global.$
jQuery.event.special.touchstart = {
setup: function( _, ns, handle ){
if ( ns.includes("noPreventDefault") ) {
this.addEventListener("touchstart", handle, { passive: false });
} else {
this.addEventListener("touchstart", handle, { passive: true });
}
}
};
// moment
global.moment = require('moment')
require('moment/locale/zh-cn')
require('moment/locale/ru')
global.$window = $(window);
$(() => {
global.$body = $('body');
})
global.htmlEncode = require('js-htmlencode').htmlEncode
// socket
global.io = require('socket.io-client/dist/socket.io.js')
// angular
global.angular = require('angular');
require('angular-aria');
require('angular-sanitize')
require('angular-messages');
require('angular-animate');
require('angular-cookies');
require('angular-inview')
require('@uirouter/angularjs')
require('angular-material');
require('angular-tree-control')
//require('angular-tree-control/context-menu')
// angular context menu fix
angular.module("contextMenu", []);
require('angular-json-tree')