/**
  * @param IView $view
  * @throws \Micro\Base\Exception
  */
 public function __construct(IView $view)
 {
     if ($view->container->kernel->isDebug()) {
         $this->js[] = '/restangular.js';
     } else {
         $this->js[] = '/restangular.min.js';
     }
     $this->sourcePath = $view->container->kernel->getAppDir() . '/../vendor/bower/restangular/dist';
     parent::__construct($view);
 }
 /**
  * @param IView $view
  * @throws \Micro\Base\Exception
  */
 public function __construct(IView $view)
 {
     if ($view->container->kernel->isDebug()) {
         $this->js[] = '/ui-bootstrap.js';
         $this->js[] = '/ui-bootstrap-tpls.js';
     } else {
         $this->js[] = '/ui-bootstrap.min.js';
         $this->js[] = '/ui-bootstrap-tpls.min.js';
     }
     $this->sourcePath = $view->container->kernel->getAppDir() . '/../vendor/bower/angular-bootstrap';
     parent::__construct($view);
 }
 /**
  * @param IView $view
  * @throws \Micro\Base\Exception
  */
 public function __construct(IView $view)
 {
     if ($view->container->kernel->isDebug()) {
         $this->js[] = '/js/bootstrap.js';
         $this->css[] = '/css/bootstrap.css';
     } else {
         $this->js[] = '/js/bootstrap.min.js';
         $this->css[] = '/css/bootstrap.min.css';
     }
     $this->sourcePath = $view->container->kernel->getAppDir() . '/../vendor/bower/bootswatch-dist';
     parent::__construct($view);
 }
Esempio n. 4
0
 /**
  * @param IView $view
  * @throws \Micro\Base\Exception
  */
 public function __construct(IView $view)
 {
     // required
     $this->required = ['\\App\\Assets\\JQueryAsset', '\\App\\Assets\\BootstrapAsset', '\\App\\Assets\\AngularAsset', '\\App\\Assets\\AngularRouteAsset', '\\App\\Assets\\AngularBootstrapAsset', '\\App\\Assets\\LodashAsset', '\\App\\Assets\\RestAngularAsset'];
     // _common
     $this->js[] = '/index.js';
     $this->js[] = '/js/_common/directives.js';
     $this->js[] = '/js/_common/filters.js';
     // Site
     $this->js[] = '/js/site/SiteModule.js';
     $this->js[] = '/js/site/SiteCtrl.js';
     $this->js[] = '/js/site/SampleService.js';
     $this->sourcePath = __DIR__ . '/app';
     parent::__construct($view);
 }