Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function init() |
||
28 | { |
||
29 | // define the path that your publishable resources live |
||
30 | $this->sourcePath = __DIR__.'/dist'; |
||
31 | |||
32 | // define the dependencies |
||
33 | $this->depends = [ |
||
34 | CpAsset::class, |
||
35 | GoogleChartsAsset::class, |
||
36 | AnalyticsAsset::class, |
||
37 | ]; |
||
38 | |||
39 | // define the relative path to CSS/JS files that should be registered with the page |
||
40 | // when this asset bundle is registered |
||
41 | $this->js = [ |
||
42 | 'RealtimeWidget.js', |
||
43 | ]; |
||
44 | |||
45 | $this->css = [ |
||
46 | 'RealtimeWidget.css', |
||
47 | ]; |
||
48 | |||
49 | parent::init(); |
||
50 | } |
||
69 | } |