Commit eb7ffc8e by Qiang Xue

new asset WIP

parent 171e84ab
...@@ -17,8 +17,7 @@ use yii\web\AssetBundle; ...@@ -17,8 +17,7 @@ use yii\web\AssetBundle;
*/ */
class BootstrapAsset extends AssetBundle class BootstrapAsset extends AssetBundle
{ {
public $sourcePath = '@vendor/twbs/bootstrap/dist';
public $css = [ public $css = [
'css/bootstrap.css', 'bootstrap/dist/css/bootstrap.css',
]; ];
} }
...@@ -17,9 +17,8 @@ use yii\web\AssetBundle; ...@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/ */
class BootstrapPluginAsset extends AssetBundle class BootstrapPluginAsset extends AssetBundle
{ {
public $sourcePath = '@vendor/twbs/bootstrap/dist';
public $js = [ public $js = [
'js/bootstrap.js', 'bootstrap/dist/js/bootstrap.js',
]; ];
public $depends = [ public $depends = [
'yii\web\JqueryAsset', 'yii\web\JqueryAsset',
......
...@@ -17,9 +17,8 @@ use yii\web\AssetBundle; ...@@ -17,9 +17,8 @@ use yii\web\AssetBundle;
*/ */
class BootstrapThemeAsset extends AssetBundle class BootstrapThemeAsset extends AssetBundle
{ {
public $sourcePath = '@vendor/twbs/bootstrap/dist';
public $css = [ public $css = [
'css/bootstrap-theme.css', 'bootstrap/dist/css/bootstrap-theme.css',
]; ];
public $depends = [ public $depends = [
'yii\bootstrap\BootstrapAsset', 'yii\bootstrap\BootstrapAsset',
......
...@@ -17,10 +17,9 @@ use yii\web\AssetBundle; ...@@ -17,10 +17,9 @@ use yii\web\AssetBundle;
*/ */
class DebugAsset extends AssetBundle class DebugAsset extends AssetBundle
{ {
public $sourcePath = '@yii/debug/assets';
public $css = [ public $css = [
'main.css', 'yii2-debug\assets\main.css',
'toolbar.css', 'yii2-debug\assets\toolbar.css',
]; ];
public $depends = [ public $depends = [
'yii\web\YiiAsset', 'yii\web\YiiAsset',
......
...@@ -17,27 +17,16 @@ use yii\web\AssetBundle; ...@@ -17,27 +17,16 @@ use yii\web\AssetBundle;
*/ */
class GiiAsset extends AssetBundle class GiiAsset extends AssetBundle
{ {
/**
* @inheritdoc
*/
public $sourcePath = '@yii/gii/assets';
/**
* @inheritdoc
*/
public $css = [ public $css = [
'main.css', 'yii2-gii/assets/main.css',
'typeahead.js-bootstrap.css', // 'typeahead.js-bootstrap.css',
]; ];
/**
* @inheritdoc
*/
public $js = [ public $js = [
'gii.js', 'yii2-gii/assets/gii.js',
'typeahead.js', 'typeahead.js/dist/typeahead.jquery.js',
]; ];
/**
* @inheritdoc
*/
public $depends = [ public $depends = [
'yii\web\YiiAsset', 'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset', 'yii\bootstrap\BootstrapAsset',
......
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