GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 2504f4...bbfc38 )
by
unknown
02:43
created

Admin.js ➔ ... ➔ $(window).resize   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
nop 0
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
import Swal from 'sweetalert2';
14
import toastr from 'toastr';
15
import Sidebar from './Partials/Sidebar';
16
import DropdownWithScrollBar from './Components/DropdownWithScrollBar';
17
18
/**
19
 * Class Admin
20
 */
21
export default class Admin {
22
    constructor() {
23
        window.$ = window.jQuery = $;
24
        const sidebarPartial = new Sidebar;
25
        const dropdownWithScrollBar = new DropdownWithScrollBar;
0 ignored issues
show
Unused Code introduced by
The constant dropdownWithScrollBar seems to be never used. Consider removing it.
Loading history...
26
27
        /**
28
         * Run sidebar toggle
29
         */
30
        sidebarPartial.toggle();
31
32
        /**
33
         * Run toggle on window resize
34
         */
35
        $(window).resize(function () {
36
            sidebarPartial.toggle();
37
        });
38
    }
39
}