Commit 591e1970 authored by Aster's avatar Aster Committed by waltermazza
Browse files

General Bug Fixes and Improvements

parent 10facfa0
......@@ -7,7 +7,7 @@ The only things you need is to require thhis package and enable the module in yo
***bash***
```bash
composer require "elitedivision/amos-slideshow:^1.4"
composer require "arter/amos-slideshow:^1.4"
```
***[PLATFORM]/backend/config/main.php***
......@@ -17,7 +17,7 @@ return [
'modules' => array_merge(require(__DIR__ . '/modules.php'), [
...
'slideshow' => [
'class' => 'elitedivision\amos\slideshow\AmosSlideshow'
'class' => 'arter\amos\slideshow\AmosSlideshow'
]
...
```
......@@ -31,7 +31,7 @@ return [
...
'migrationLookup' => array_merge(require(__DIR__ . '/migrations.php'), [
...
'@vendor/elitedivision/amos-slideshow/src/migrations',
'@vendor/arter/amos-slideshow/src/migrations',
...
])
]
......
{
"name": "elitedivision/amos-slideshow",
"name": "arter/amos-slideshow",
"description": "Sistema AMOS per lo slideshow",
"keywords": ["amos", "yii2", "slideshow"],
"homepage": "http://git.elitedivision.it/elitedivision/amos-slideshow",
"homepage": "http://git.arter.it/arter/amos-slideshow",
"type": "component",
"license": "BSD-3-Clause",
"proscription": "BSD-3-Clause",
"support": {
"issues": "http://git.elitedivision.it/elitedivision/amos-slideshow/issues",
"issues": "http://git.arter.it/arter/amos-slideshow/issues",
"forum": "http://www.example.com/forum/",
"wiki": "http://git.elitedivision.it/elitedivision/amos-slideshow/wikis/home",
"source": "http://git.elitedivision.it/elitedivision/amos-slideshow/tree/master"
"wiki": "http://git.arter.it/arter/amos-slideshow/wikis/home",
"source": "http://git.arter.it/arter/amos-slideshow/tree/master"
},
"require": {
"php": ">=5.4.0",
"elitedivision/amos-admin": ">=1.8",
"elitedivision/amos-core": "^1.9.50",
"elitedivision/amos-dashboard":"^1.8.15",
"arter/amos-admin": ">=1.8",
"arter/amos-core": "^1.9.50",
"arter/amos-dashboard":"^1.8.15",
"yiidoc/yii2-redactor": "*"
},
"autoload": {
"psr-4": {
"elitedivision\\amos\\slideshow\\": "src"
"arter\\amos\\slideshow\\": "src"
}
}
}
\ No newline at end of file
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow
* @package arter\amos\slideshow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow;
namespace arter\amos\slideshow;
use elitedivision\amos\core\module\AmosModule;
use elitedivision\amos\core\module\ModuleInterface;
use elitedivision\amos\slideshow\widgets\icons\WidgetIconSlideshow;
use elitedivision\amos\slideshow\widgets\icons\WidgetIconSlideshowConf;
use arter\amos\core\module\AmosModule;
use arter\amos\core\module\ModuleInterface;
use arter\amos\slideshow\widgets\icons\WidgetIconSlideshow;
use arter\amos\slideshow\widgets\icons\WidgetIconSlideshowConf;
use Yii;
/**
* Class AmosSlideshow
* @package elitedivision\amos\slideshow
* @package arter\amos\slideshow
*/
class AmosSlideshow extends AmosModule implements ModuleInterface
{
......@@ -46,7 +42,7 @@ class AmosSlideshow extends AmosModule implements ModuleInterface
{
parent::init();
\Yii::setAlias('@elitedivision/amos/' . static::getModuleName() . '/controllers/', __DIR__ . '/controllers/');
\Yii::setAlias('@arter/amos/' . static::getModuleName() . '/controllers/', __DIR__ . '/controllers/');
// initialize the module with the configuration loaded from config.php
Yii::configure($this, require(__DIR__ . DIRECTORY_SEPARATOR . self::$CONFIG_FOLDER . DIRECTORY_SEPARATOR . 'config.php'));
}
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow
* @package arter\amos\slideshow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\assets;
namespace arter\amos\slideshow\assets;
use yii\web\AssetBundle;
/**
* Class ModuleSlideshowAsset
* @package elitedivision\amos\slideshow\assets
* @package arter\amos\slideshow\assets
*/
class ModuleSlideshowAsset extends AssetBundle
{
public $sourcePath = '@vendor/elitedivision/amos-slideshow/src/assets/web';
public $sourcePath = '@vendor/arter/amos-slideshow/src/assets/web';
public $css = [
'less/slideshow.less'
......@@ -37,9 +33,9 @@ class ModuleSlideshowAsset extends AssetBundle
{
$moduleL = \Yii::$app->getModule('layout');
if(!empty($moduleL))
{ $this->depends [] = 'elitedivision\amos\layout\assets\BaseAsset'; }
{ $this->depends [] = 'arter\amos\layout\assets\BaseAsset'; }
else
{ $this->depends [] = 'elitedivision\amos\core\views\assets\AmosCoreAsset'; }
{ $this->depends [] = 'arter\amos\core\views\assets\AmosCoreAsset'; }
parent::init(); // TODO: Change the autogenerated stub
}
}
/**
IMPORT AMOS-LAYOUT VARIABLES
*/
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/variables.less";
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/utility.less";
@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/variables.less";
@import (optional) "../../vendor/arter/amos-layout/src/assets/resources/base/less/utility.less";
/**
IMPORT STYLE-CUSTOM
*/
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow
* @package arter\amos\slideshow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
return [
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow
* @package arter\amos\slideshow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
/**
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow\controllers
* @package arter\amos\slideshow\controllers
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers;
namespace arter\amos\slideshow\controllers;
use elitedivision\amos\dashboard\controllers\base\DashboardController;
use arter\amos\dashboard\controllers\base\DashboardController;
use yii\helpers\Url;
/**
* Class DefaultController
* @package elitedivision\amos\slideshow\controllers
* @package arter\amos\slideshow\controllers
*/
class DefaultController extends DashboardController
{
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow\controllers
* @package arter\amos\slideshow\controllers
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers;
namespace arter\amos\slideshow\controllers;
use elitedivision\amos\slideshow\models\SlideshowRoute;
use elitedivision\amos\slideshow\models\SlideshowUserflag;
use arter\amos\slideshow\models\SlideshowRoute;
use arter\amos\slideshow\models\SlideshowUserflag;
use yii\filters\AccessControl;
use yii\filters\VerbFilter;
use yii\helpers\ArrayHelper;
......@@ -24,11 +20,11 @@ use yii\helpers\Json;
/**
* Class SlideshowController
* @package elitedivision\amos\slideshow\controllers
* @package arter\amos\slideshow\controllers
*
* This is the class for controller "SlideshowController".
*/
class SlideshowController extends \elitedivision\amos\slideshow\controllers\base\SlideshowController
class SlideshowController extends \arter\amos\slideshow\controllers\base\SlideshowController
{
/**
* @inheritdoc
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow\controllers
* @package arter\amos\slideshow\controllers
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers;
namespace arter\amos\slideshow\controllers;
use elitedivision\amos\slideshow\AmosSlideshow;
use elitedivision\amos\slideshow\controllers\base\SlideshowPageController as BaseSlideshowPageController;
use elitedivision\amos\slideshow\models\Slideshow;
use elitedivision\amos\slideshow\models\SlideshowPage;
use arter\amos\slideshow\AmosSlideshow;
use arter\amos\slideshow\controllers\base\SlideshowPageController as BaseSlideshowPageController;
use arter\amos\slideshow\models\Slideshow;
use arter\amos\slideshow\models\SlideshowPage;
use Yii;
use yii\filters\AccessControl;
use yii\filters\AccessRule;
......@@ -31,7 +27,7 @@ use yii\helpers\Url;
*
* This is the class for controller "SlideshowPageController".
*
* @package elitedivision\amos\slideshow\controllers
* @package arter\amos\slideshow\controllers
*/
class SlideshowPageController extends BaseSlideshowPageController
{
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow\controllers
* @package arter\amos\slideshow\controllers
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers;
namespace arter\amos\slideshow\controllers;
/**
* Class SlideshowRouteController
* This is the class for controller "SlideshowRouteController".
* @package elitedivision\amos\slideshow\controllers
* @package arter\amos\slideshow\controllers
*/
class SlideshowRouteController extends \elitedivision\amos\slideshow\controllers\base\SlideshowRouteController
class SlideshowRouteController extends \arter\amos\slideshow\controllers\base\SlideshowRouteController
{
}
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow
* @package arter\amos\slideshow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers\api;
namespace arter\amos\slideshow\controllers\api;
/**
* Class SlideshowController
* @package elitedivision\amos\slideshow\controllers\api
* @package arter\amos\slideshow\controllers\api
*
* This is the class for REST controller "SlideshowController".
*/
class SlideshowController extends \yii\rest\ActiveController
{
public $modelClass = 'elitedivision\amos\slideshow\models\Slideshow';
public $modelClass = 'arter\amos\slideshow\models\Slideshow';
}
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow
* @package arter\amos\slideshow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers\api;
namespace arter\amos\slideshow\controllers\api;
/**
* Class SlideshowPageController
*
* This is the class for REST controller "SlideshowPageController".
*
* @package elitedivision\amos\slideshow\controllers\api
* @package arter\amos\slideshow\controllers\api
*/
class SlideshowPageController extends \yii\rest\ActiveController
{
public $modelClass = 'elitedivision\amos\slideshow\models\SlideshowPage';
public $modelClass = 'arter\amos\slideshow\models\SlideshowPage';
}
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow
* @package arter\amos\slideshow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers\api;
namespace arter\amos\slideshow\controllers\api;
/**
* Class SlideshowRouteController
* @package elitedivision\amos\slideshow\controllers\api
* @package arter\amos\slideshow\controllers\api
*
* This is the class for REST controller "SlideshowRouteController".
*/
class SlideshowRouteController extends \yii\rest\ActiveController
{
public $modelClass = 'elitedivision\amos\slideshow\models\SlideshowRoute';
public $modelClass = 'arter\amos\slideshow\models\SlideshowRoute';
}
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow\controllers\base
* @package arter\amos\slideshow\controllers\base
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers\base;
namespace arter\amos\slideshow\controllers\base;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\slideshow\AmosSlideshow;
use elitedivision\amos\slideshow\models\search\SlideshowSearch;
use elitedivision\amos\slideshow\models\Slideshow;
use elitedivision\amos\slideshow\models\SlideshowRoute;
use elitedivision\amos\slideshow\models\SlideshowUserflag;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\slideshow\AmosSlideshow;
use arter\amos\slideshow\models\search\SlideshowSearch;
use arter\amos\slideshow\models\Slideshow;
use arter\amos\slideshow\models\SlideshowRoute;
use arter\amos\slideshow\models\SlideshowUserflag;
use Yii;
use yii\helpers\Url;
use yii\web\NotFoundHttpException;
......@@ -32,9 +28,9 @@ use yii\web\NotFoundHttpException;
*
* SlideshowController implements the CRUD actions for Slideshow model.
*
* @property \elitedivision\amos\slideshow\models\Slideshow $model
* @property \arter\amos\slideshow\models\Slideshow $model
*
* @package elitedivision\amos\slideshow\controllers\base
* @package arter\amos\slideshow\controllers\base
*/
class SlideshowController extends CrudController
{
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow\controllers\base
* @package arter\amos\slideshow\controllers\base
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers\base;
namespace arter\amos\slideshow\controllers\base;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\slideshow\AmosSlideshow;
use elitedivision\amos\slideshow\models\search\SlideshowPageSearch;
use elitedivision\amos\slideshow\models\SlideshowPage;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\slideshow\AmosSlideshow;
use arter\amos\slideshow\models\search\SlideshowPageSearch;
use arter\amos\slideshow\models\SlideshowPage;
use Yii;
use yii\helpers\Url;
use yii\web\NotFoundHttpException;
......@@ -30,9 +26,9 @@ use yii\web\NotFoundHttpException;
*
* SlideshowPageController implements the CRUD actions for SlideshowPage model.
*
* @property \elitedivision\amos\slideshow\models\SlideshowPage $model
* @property \arter\amos\slideshow\models\SlideshowPage $model
*
* @package elitedivision\amos\slideshow\controllers\base
* @package arter\amos\slideshow\controllers\base
*/
class SlideshowPageController extends CrudController
{
......
<?php
/**
* Lombardia Informatica S.p.A.
* OPEN 2.0
* Emilia Romagna Open Innovation
* Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package elitedivision\amos\slideshow\controllers\base
* @package arter\amos\slideshow\controllers\base
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace elitedivision\amos\slideshow\controllers\base;
namespace arter\amos\slideshow\controllers\base;
use elitedivision\amos\core\controllers\CrudController;
use elitedivision\amos\core\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\slideshow\AmosSlideshow;
use elitedivision\amos\slideshow\models\search\SlideshowRouteSearch;
use elitedivision\amos\slideshow\models\SlideshowRoute;
use arter\amos\core\controllers\CrudController;
use arter\amos\core\helpers\Html;
use arter\amos\core\icons\AmosIcons;
use arter\amos\slideshow\AmosSlideshow;
use arter\amos\slideshow\models\search\SlideshowRouteSearch;
use arter\amos\slideshow\models\SlideshowRoute;
use Yii;
use yii\helpers\Url;
use yii\web\NotFoundHttpException;
......@@ -30,9 +26,9 @@ use yii\web\NotFoundHttpException;
*
* SlideshowRouteController implements the CRUD actions for SlideshowRoute model.
*
* @property \elitedivision\amos\slideshow\models\SlideshowRoute $model
* @property \arter\amos\slideshow\models\SlideshowRoute $model
*
* @package elitedivision\amos\slideshow\controllers\base
* @package arter\amos\slideshow\controllers\base
*/
class SlideshowRouteController extends CrudController
{
......
<?php
/**
* Lombardia Informatica S.p.A.