|
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\Asset; |
|
13
|
|
|
|
|
14
|
|
|
use WBW\Bundle\BootstrapBundle\Asset\AbstractAssetProvider; |
|
15
|
|
|
use WBW\Bundle\BootstrapBundle\Provider\Asset\JSAssetProviderInterface; |
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* Bootstrap JS asset provider. |
|
19
|
|
|
* |
|
20
|
|
|
* @author webeweb <https://github.com/webeweb/> |
|
21
|
|
|
* @package WBW\Bundle\BootstrapBundle\Asset |
|
22
|
|
|
*/ |
|
23
|
|
|
class BootstrapJSAssetProvider extends AbstractAssetProvider implements JSAssetProviderInterface { |
|
24
|
|
|
|
|
25
|
|
|
/** |
|
26
|
|
|
* {@inheritdoc} |
|
27
|
|
|
*/ |
|
28
|
|
|
public function getResources() { |
|
29
|
|
|
|
|
30
|
|
|
// Initialize the resources. |
|
31
|
|
|
$resources = []; |
|
32
|
|
|
|
|
33
|
|
|
// jQuery |
|
34
|
|
|
$resources[] = "/jquery-3.2.1/jquery-3.2.1.min.js"; |
|
35
|
|
|
// Bootstrap |
|
36
|
|
|
$resources[] = "/bootstrap-3.3.7/js/bootstrap.min.js"; |
|
37
|
|
|
// Bootstrap Colorpicker plug-in |
|
38
|
|
|
$resources[] = "/bootstrap-colorpicker-2.5.1/js/bootstrap-colorpicker.min.js"; |
|
39
|
|
|
// Bootstrap Datepicker plug-in |
|
40
|
|
|
$resources[] = "/bootstrap-datepicker-1.7.1/js/bootstrap-datepicker.min.js"; |
|
41
|
|
|
// Bootstrap Daterangepicker plug-in |
|
42
|
|
|
$resources[] = "/moment-2.20.1/moment-with-locales.min.js"; |
|
43
|
|
|
$resources[] = "/bootstrap-daterangepicker-2.1.27/daterangepicker.js"; |
|
44
|
|
|
// Bootstrap Markdown plug-in |
|
45
|
|
|
$resources[] = "/bootstrap-markdown-2.10.0/js/bootstrap-markdown.js"; |
|
46
|
|
|
// Bootstrap Notify plug-in |
|
47
|
|
|
$resources[] = "/bootstrap-notify-3.1.3/bootstrap-notify.min.js"; |
|
48
|
|
|
// Bootstrap Select plug-in |
|
49
|
|
|
$resources[] = "/bootstrap-select-1.12.4/js/bootstrap-select.min.js"; |
|
50
|
|
|
// Bootstrap Slider plug-in |
|
51
|
|
|
$resources[] = "/bootstrap-slider-10.0.0/bootstrap-slider.min.js"; |
|
52
|
|
|
// Bootstrap Tagsinput plug-in |
|
53
|
|
|
$resources[] = "/bootstrap-tagsinput-0.8.0/bootstrap-tagsinput.min.js"; |
|
54
|
|
|
// Bootstrap Timepicker plug-in |
|
55
|
|
|
$resources[] = "/bootstrap-timepicker-0.5.2/js/bootstrap-timepicker.min.js"; |
|
56
|
|
|
// Bootstrap WYSIWIG plug-in |
|
57
|
|
|
$resources[] = "/wysihtml-0.4.15/wysihtml5x-toolbar.min.js"; |
|
58
|
|
|
$resources[] = "/handlebars-1.3.0/handlebars.runtime.js"; |
|
59
|
|
|
$resources[] = "/bootstrap-wysiwyg-0.3.3/bootstrap3-wysihtml5.min.js"; |
|
60
|
|
|
// jQuery InputMask plug-in |
|
61
|
|
|
$resources[] = "/jquery-inputmask-3.3.11/min/jquery.inputmask.bundle.min.js"; |
|
62
|
|
|
// jQuery Select2 plug-in |
|
63
|
|
|
$resources[] = "/jquery-select2-4.0.5/js/select2.min.js"; |
|
64
|
|
|
// Material Design Hierarchical Display |
|
65
|
|
|
$resources[] = "/material-design-hierarchical-display-1.0.1/jquery.zmd.hierarchical-display.min.js"; |
|
66
|
|
|
// SweetAlert |
|
67
|
|
|
$resources[] = "/sweetalert-2.1.0/sweetalert.min.js"; |
|
68
|
|
|
// waitMe |
|
69
|
|
|
$resources[] = "/waitme-1.19/waitMe.min.js"; |
|
70
|
|
|
|
|
71
|
|
|
// Return the resources. |
|
72
|
|
|
return $resources; |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
} |
|
76
|
|
|
|