1 | /** |
||
2 | * This file is part of the O2System Venus UI Framework package. |
||
3 | * |
||
4 | * For the full copyright and license information, please view the LICENSE |
||
5 | * file that was distributed with this source code. |
||
6 | * |
||
7 | * @author Steeve Andrian Salim |
||
8 | * @copyright Copyright (c) Steeve Andrian Salim |
||
9 | */ |
||
10 | // ------------------------------------------------------------------------ |
||
11 | |||
12 | import $ from 'jquery'; |
||
13 | window.$ = window.jQuery = $; |
||
14 | import Popper from 'popper.js'; |
||
15 | window.Popper = Popper.default; |
||
16 | import 'bootstrap'; |
||
17 | import 'offline-js'; |
||
18 | import PerfectScrollbar from 'perfect-scrollbar'; |
||
19 | const Pace = require('pace-js-amd-fix'); |
||
20 | require("@fancyapps/fancybox"); |
||
21 | |||
22 | /** |
||
23 | * Class UserInterface |
||
24 | * |
||
25 | * @author Teguh Rianto |
||
26 | */ |
||
27 | class UserInterface { |
||
28 | |||
29 | /** |
||
30 | * UserInterface.constructor |
||
31 | */ |
||
32 | constructor() { |
||
33 | Pace.start(); |
||
34 | |||
35 | $(".perfect-scrollbar").each(function(){ |
||
36 | const ps = new PerfectScrollbar($(this)[0]); |
||
0 ignored issues
–
show
Unused Code
introduced
by
![]() |
|||
37 | }); |
||
38 | |||
39 | $('[data-toggle="dropdown"]').dropdown(); |
||
40 | $('[data-toggle="popover"]').popover(); |
||
41 | $('[data-toggle="tooltip"]').tooltip(); |
||
42 | } |
||
43 | } |
||
44 | |||
45 | export default new UserInterface; |