Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 30 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
11 | import Form from 'o2system-venus-form'; |
||
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 | import './Admin.scss'; |
||
18 | |||
19 | /** |
||
20 | * Class Admin |
||
21 | */ |
||
22 | export default class Admin { |
||
23 | constructor() { |
||
24 | window.$ = window.jQuery = $; |
||
25 | const sidebarPartial = new Sidebar; |
||
26 | const dropdownWithScrollBar = new DropdownWithScrollBar; |
||
|
|||
27 | |||
28 | /** |
||
29 | * Run sidebar toggle |
||
30 | */ |
||
31 | sidebarPartial.toggle(); |
||
32 | |||
33 | /** |
||
34 | * Run toggle on window resize |
||
35 | */ |
||
36 | $(window).resize(function () { |
||
37 | sidebarPartial.toggle(); |
||
38 | }); |
||
39 | } |
||
40 | } |