Commit 1a625516 by Qiang Xue

new asset WIP

parent eb7ffc8e
......@@ -18,8 +18,8 @@ use yii\web\AssetBundle;
class DebugAsset extends AssetBundle
{
public $css = [
'yii2-debug\assets\main.css',
'yii2-debug\assets\toolbar.css',
'yii2-debug/assets/main.css',
'yii2-debug/assets/toolbar.css',
];
public $depends = [
'yii\web\YiiAsset',
......
......@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/
class CaptchaAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'yii.captcha.js',
'yii2/assets/yii.captcha.js',
];
public $depends = [
'yii\web\YiiAsset',
......
......@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/
class GridViewAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'yii.gridView.js',
'yii2/assets/yii.gridView.js',
];
public $depends = [
'yii\web\YiiAsset',
......
......@@ -17,7 +17,6 @@ use yii\web\AssetBundle;
*/
class PunycodeAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'punycode/punycode.js',
];
......
......@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/
class ValidationAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'yii.validation.js',
'yii2/assets/yii.validation.js',
];
public $depends = [
'yii\web\YiiAsset',
......
......@@ -15,9 +15,8 @@ use yii\web\AssetBundle;
*/
class ActiveFormAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'yii.activeForm.js',
'yii2/assets/yii.activeForm.js',
];
public $depends = [
'yii\web\YiiAsset',
......
......@@ -19,9 +19,8 @@ use yii\web\AssetBundle;
*/
class MaskedInputAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'jquery.inputmask.bundle.min.js'
'jquery.inputmask/dist/jquery.inputmask.bundle.js'
];
public $depends = [
'yii\web\YiiAsset'
......
......@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/
class PjaxAsset extends AssetBundle
{
public $sourcePath = '@vendor/yiisoft/jquery-pjax';
public $js = [
'jquery.pjax.js',
'yii2-pjax/jquery.pjax.js',
];
public $depends = [
'yii\web\YiiAsset',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment