| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function init(): void |
||
| 24 | { |
||
| 25 | $this->depends = [ |
||
| 26 | CpAsset::class, |
||
| 27 | VueAsset::class, |
||
| 28 | ]; |
||
| 29 | |||
| 30 | if (!Plugin::getInstance()->getVideos()->useDevServer) { |
||
| 31 | $this->sourcePath = __DIR__ . '/dist'; |
||
| 32 | $this->js[] = 'main.js'; |
||
| 33 | $this->css[] = 'css/main.css'; |
||
| 34 | } else { |
||
| 35 | $this->css[] = 'https://localhost:8090/css/main.css'; |
||
| 36 | $this->js[] = 'https://localhost:8090/main.js'; |
||
| 37 | } |
||
| 38 | |||
| 39 | parent::init(); |
||
| 40 | } |
||
| 41 | } |