Completed
Push — master ( 97b926...69d6ff )
by WEBEWEB
06:52
created

JSResourcesProvider::getResources()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 46

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 46
rs 9.1781
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the bootstrap-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\BootstrapBundle\Provider\Resources;
13
14
/**
15
 * JS resources provider.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\BootstrapBundle\Provider\Resources
19
 */
20
class JSResourcesProvider extends AbstractResourcesProvider implements JSResourcesProviderInterface {
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function getResources() {
26
27
        // Initialize the resources.
28
        $resources = [];
29
30
        // jQuery
31
        $resources[] = "/jquery-3.2.1/jquery-3.2.1.min.js";
32
        // Bootstrap
33
        $resources[] = "/bootstrap-3.3.7/js/bootstrap.min.js";
34
        // Bootstrap Colorpicker plug-in
35
        $resources[] = "/bootstrap-colorpicker-2.5.1/js/bootstrap-colorpicker.min.js";
36
        // Bootstrap Datepicker plug-in
37
        $resources[] = "/bootstrap-datepicker-1.7.1/js/bootstrap-datepicker.min.js";
38
        // Bootstrap Daterangepicker plug-in
39
        $resources[] = "/moment-2.20.1/moment-with-locales.min.js";
40
        $resources[] = "/bootstrap-daterangepicker-2.1.27/daterangepicker.js";
41
        // Bootstrap Markdown plug-in
42
        $resources[] = "/bootstrap-markdown-2.10.0/js/bootstrap-markdown.js";
43
        // Bootstrap Notify plug-in
44
        $resources[] = "/bootstrap-notify-3.1.3/bootstrap-notify.min.js";
45
        // Bootstrap Select plug-in
46
        $resources[] = "/bootstrap-select-1.12.4/js/bootstrap-select.min.js";
47
        // Bootstrap Slider plug-in
48
        $resources[] = "/bootstrap-slider-10.0.0/bootstrap-slider.min.js";
49
        // Bootstrap Tagsinput plug-in
50
        $resources[] = "/bootstrap-tagsinput-0.8.0/bootstrap-tagsinput.min.js";
51
        // Bootstrap Timepicker plug-in
52
        $resources[] = "/bootstrap-timepicker-0.5.2/js/bootstrap-timepicker.min.js";
53
        // Bootstrap WYSIWIG plug-in
54
        $resources[] = "/wysihtml-0.4.15/wysihtml5x-toolbar.min.js";
55
        $resources[] = "/handlebars-1.3.0/handlebars.runtime.js";
56
        $resources[] = "/bootstrap-wysiwyg-0.3.3/bootstrap3-wysihtml5.min.js";
57
        // jQuery InputMask plug-in
58
        $resources[] = "/jquery-inputmask-3.3.11/min/jquery.inputmask.bundle.min.js";
59
        // jQuery Select2 plug-in
60
        $resources[] = "/jquery-select2-4.0.5/js/select2.min.js";
61
        // Material Design Hierarchical Display
62
        $resources[] = "/material-design-hierarchical-display-1.0.1/jquery.zmd.hierarchical-display.min.js";
63
        // SweetAlert
64
        $resources[] = "/sweetalert-2.1.0/sweetalert.min.js";
65
        // waitMe
66
        $resources[] = "/waitme-1.19/waitMe.min.js";
67
68
        // Return the resources.
69
        return $resources;
70
    }
71
72
}
73