AppAsset.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. namespace fecadmin\myassets;
  10. use yii\web\AssetBundle;
  11. /**
  12. * @author Terry Zhao <2358269014@qq.com>
  13. * @since 1.0
  14. */
  15. class AppAsset extends AssetBundle
  16. {
  17. //public $sourcePath = '@bower/fec_dwz_lib';
  18. public $basePath = '@webroot';
  19. public $baseUrl = '@web';
  20. public $css = [];
  21. public $js = [];
  22. /*
  23. public $css = [
  24. 'themes/default/style.css',
  25. 'fec_dwz_lib/themes/css/core.css',
  26. 'fec_dwz_lib/themes/css/print.css',
  27. 'fec_dwz_lib/uploadify/css/uploadify.css',
  28. ];
  29. public $js = [
  30. 'js/jquery.cookie.js',
  31. 'fec_dwz_lib/js/jquery.validate.js',
  32. 'fec_dwz_lib/js/jquery.bgiframe.js',
  33. 'fec_dwz_lib/xheditor/xheditor-1.2.2.min.js',
  34. 'fec_dwz_lib/xheditor/xheditor_lang/zh-cn.js',
  35. 'fec_dwz_lib/uploadify/scripts/jquery.uploadify.js',
  36. ];
  37. */
  38. public $jsOptions = [ 'position' => \yii\web\View::POS_HEAD ];
  39. public $depends = [
  40. // 'yii\web\YiiAsset',
  41. // 'yii\bootstrap\BootstrapAsset',
  42. // 'yii\web\YiiAsset',
  43. 'fecadmin\myassets\DwzAsset',
  44. //'fecadmin\myassets\EchartsAsset',
  45. 'fecadmin\myassets\ChosenAsset',
  46. 'fecadmin\myassets\DwzIEAsset',
  47. 'fecadmin\myassets\DwzIE9Asset',
  48. 'fecadmin\myassets\CustomAsset',
  49. ];
  50. }