Skip to content

Commit fe899f3

Browse files
committed
Move DecomposerAsset to the root folder
1 parent 1c9a03d commit fe899f3

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
<?php
2-
namespace thangnm93\decomposer\assets;
3-
4-
use yii\web\AssetBundle;
5-
use yii\web\JqueryAsset;
6-
use yii\bootstrap\BootstrapAsset;
7-
8-
/**
9-
* {@inheritDoc}
10-
*/
11-
class DecomposerAsset extends AssetBundle {
12-
public $sourcePath = '@vendor/thangnm93/yii2-decomposer/src/assets';
13-
/**
14-
* {@inheritDoc}
15-
*/
16-
public function init() {
17-
$this->css = [
18-
'css/custom.css',
19-
];
20-
$this->js = [
21-
'js/decomposer.js',
22-
'js/jquery.dataTables.min.js',
23-
'js/dataTables.bootstrap.min.js',
24-
'js/jquery.highlight.js',
25-
'js/dataTables.searchHighlight.min.js',
26-
];
27-
$this->depends = [
28-
JqueryAsset::class,
29-
BootstrapAsset::class,
30-
];
31-
}
1+
<?php
2+
namespace thangnm93\decomposer;
3+
4+
use yii\web\AssetBundle;
5+
use yii\web\JqueryAsset;
6+
use yii\bootstrap\BootstrapAsset;
7+
8+
/**
9+
* {@inheritDoc}
10+
*/
11+
class DecomposerAsset extends AssetBundle {
12+
public $sourcePath = '@decomposer/src/assets';
13+
/**
14+
* {@inheritDoc}
15+
*/
16+
public function init() {
17+
$this->css = [
18+
'css/custom.css',
19+
];
20+
$this->js = [
21+
'js/decomposer.js',
22+
'js/jquery.dataTables.min.js',
23+
'js/dataTables.bootstrap.min.js',
24+
'js/jquery.highlight.js',
25+
'js/dataTables.searchHighlight.min.js',
26+
];
27+
$this->depends = [
28+
JqueryAsset::class,
29+
BootstrapAsset::class,
30+
];
31+
}
3232
}

src/views/default/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
use thangnm93\decomposer\assets\DecomposerAsset;
2+
use thangnm93\decomposer\DecomposerAsset;
33
DecomposerAsset::register($this);
44
$this->title = $title;
55
?>

0 commit comments

Comments
 (0)