-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAssets.php
More file actions
30 lines (24 loc) · 675 Bytes
/
Copy pathAssets.php
File metadata and controls
30 lines (24 loc) · 675 Bytes
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
<?php
namespace humhub\modules\performance_insights;
use yii\web\AssetBundle;
use Yii;
use humhub\components\View;
class Assets extends AssetBundle
{
public $sourcePath;
public $js = [
'js/main.js',
'js/performaceHistory.js'
];
public $css = [
'css/style.css'
];
public function init() {
$baseurl = Yii::$app->request->baseUrl;
$this->sourcePath = 'protected/modules/performance_insights/assets';
$this->jsOptions['position'] = View::POS_BEGIN;
$this->cssOptions['position'] = View::POS_BEGIN;
parent::init();
}
public $depends = ['humhub\\assets\\AppAsset'];
}