Commit 1a625516 by Qiang Xue

new asset WIP

parent eb7ffc8e
...@@ -18,8 +18,8 @@ use yii\web\AssetBundle; ...@@ -18,8 +18,8 @@ use yii\web\AssetBundle;
class DebugAsset extends AssetBundle class DebugAsset extends AssetBundle
{ {
public $css = [ public $css = [
'yii2-debug\assets\main.css', 'yii2-debug/assets/main.css',
'yii2-debug\assets\toolbar.css', 'yii2-debug/assets/toolbar.css',
]; ];
public $depends = [ public $depends = [
'yii\web\YiiAsset', 'yii\web\YiiAsset',
......
...@@ -17,9 +17,8 @@ use yii\web\AssetBundle; ...@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/ */
class CaptchaAsset extends AssetBundle class CaptchaAsset extends AssetBundle
{ {
public $sourcePath = '@yii/assets';
public $js = [ public $js = [
'yii.captcha.js', 'yii2/assets/yii.captcha.js',
]; ];
public $depends = [ public $depends = [
'yii\web\YiiAsset', 'yii\web\YiiAsset',
......
...@@ -17,9 +17,8 @@ use yii\web\AssetBundle; ...@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/ */
class GridViewAsset extends AssetBundle class GridViewAsset extends AssetBundle
{ {
public $sourcePath = '@yii/assets';
public $js = [ public $js = [
'yii.gridView.js', 'yii2/assets/yii.gridView.js',
]; ];
public $depends = [ public $depends = [
'yii\web\YiiAsset', 'yii\web\YiiAsset',
......
...@@ -17,7 +17,6 @@ use yii\web\AssetBundle; ...@@ -17,7 +17,6 @@ use yii\web\AssetBundle;
*/ */
class PunycodeAsset extends AssetBundle class PunycodeAsset extends AssetBundle
{ {
public $sourcePath = '@yii/assets';
public $js = [ public $js = [
'punycode/punycode.js', 'punycode/punycode.js',
]; ];
......
...@@ -17,9 +17,8 @@ use yii\web\AssetBundle; ...@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/ */
class ValidationAsset extends AssetBundle class ValidationAsset extends AssetBundle
{ {
public $sourcePath = '@yii/assets';
public $js = [ public $js = [
'yii.validation.js', 'yii2/assets/yii.validation.js',
]; ];
public $depends = [ public $depends = [
'yii\web\YiiAsset', 'yii\web\YiiAsset',
......
...@@ -15,9 +15,8 @@ use yii\web\AssetBundle; ...@@ -15,9 +15,8 @@ use yii\web\AssetBundle;
*/ */
class ActiveFormAsset extends AssetBundle class ActiveFormAsset extends AssetBundle
{ {
public $sourcePath = '@yii/assets';
public $js = [ public $js = [
'yii.activeForm.js', 'yii2/assets/yii.activeForm.js',
]; ];
public $depends = [ public $depends = [
'yii\web\YiiAsset', 'yii\web\YiiAsset',
......
...@@ -19,9 +19,8 @@ use yii\web\AssetBundle; ...@@ -19,9 +19,8 @@ use yii\web\AssetBundle;
*/ */
class MaskedInputAsset extends AssetBundle class MaskedInputAsset extends AssetBundle
{ {
public $sourcePath = '@yii/assets';
public $js = [ public $js = [
'jquery.inputmask.bundle.min.js' 'jquery.inputmask/dist/jquery.inputmask.bundle.js'
]; ];
public $depends = [ public $depends = [
'yii\web\YiiAsset' 'yii\web\YiiAsset'
......
...@@ -17,9 +17,8 @@ use yii\web\AssetBundle; ...@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/ */
class PjaxAsset extends AssetBundle class PjaxAsset extends AssetBundle
{ {
public $sourcePath = '@vendor/yiisoft/jquery-pjax';
public $js = [ public $js = [
'jquery.pjax.js', 'yii2-pjax/jquery.pjax.js',
]; ];
public $depends = [ public $depends = [
'yii\web\YiiAsset', '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