-
Notifications
You must be signed in to change notification settings - Fork 3
/
JqueryTerminalAsset.php
38 lines (32 loc) · 1.1 KB
/
JqueryTerminalAsset.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace wdmg\terminal;
use yii\web\AssetBundle;
/**
* JqueryTerminalAsset
*
* @see jQuery Terminal Emulator - https://github.com/jcubic/jquery.terminal
* @author Alexsander Vyshnyvetskyy <[email protected]>
*/
class JqueryTerminalAsset extends AssetBundle
{
public $sourcePath = '@bower';
public $js = YII_ENV_DEV ? [
['jquery.terminal/js/jquery.terminal.js', 'position' => \yii\web\View::POS_HEAD],
['jquery.terminal/js/pipe.js', 'position' => \yii\web\View::POS_HEAD],
['jquery-ui/jquery-ui.js', 'position' => \yii\web\View::POS_HEAD]
] : [
['jquery.terminal/js/jquery.terminal.min.js', 'position' => \yii\web\View::POS_HEAD],
['jquery.terminal/js/pipe.js', 'position' => \yii\web\View::POS_HEAD],
['jquery-ui/jquery-ui.min.js', 'position' => \yii\web\View::POS_HEAD]
];
public $css = [
YII_ENV_DEV ? 'jquery.terminal/css/jquery.terminal.css' : 'jquery.terminal/css/jquery.terminal.css',
];
public $depends = [
'yii\web\JqueryAsset',
];
public function init()
{
parent::init();
}
}