-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change structure module Approved-by: Khoa Truong Dinh <[email protected]>
- Loading branch information
Showing
178 changed files
with
98 additions
and
14,412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,19 @@ | |
* * See COPYING.txt for license details. | ||
* * | ||
* * @author [email protected] | ||
* * @project Megamenu | ||
* * @project Core | ||
*/ | ||
namespace Boolfly\Megamenu\Block\Adminhtml\Edit; | ||
namespace Boolfly\Base\Block\Adminhtml\Edit\Button; | ||
|
||
use Magento\Backend\Block\Template; | ||
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface; | ||
|
||
/** | ||
* Class BackButton | ||
* Class Back | ||
* | ||
* @package Boolfly\Megamenu\Block\Adminhtml\Edit | ||
* @package Boolfly\Base\Block\Adminhtml\Edit\Button | ||
*/ | ||
class BackButton extends Template implements ButtonProviderInterface | ||
class Back extends Template implements ButtonProviderInterface | ||
{ | ||
/** | ||
* Save button | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,19 @@ | |
* * See COPYING.txt for license details. | ||
* * | ||
* * @author [email protected] | ||
* * @project Megamenu | ||
* * @project Core | ||
*/ | ||
namespace Boolfly\Megamenu\Block\Adminhtml\Edit; | ||
namespace Boolfly\Base\Block\Adminhtml\Edit\Button; | ||
|
||
use Magento\Backend\Block\Template; | ||
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface; | ||
|
||
/** | ||
* Class DeleteButton | ||
* Class Delete | ||
* | ||
* @package Boolfly\Megamenu\Block\Adminhtml\Edit | ||
* @package Boolfly\Base\Block\Adminhtml\Edit\Button | ||
*/ | ||
class DeleteButton extends Template implements ButtonProviderInterface | ||
class Delete extends Template implements ButtonProviderInterface | ||
{ | ||
/** | ||
* Delete button | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,19 @@ | |
* * See COPYING.txt for license details. | ||
* * | ||
* * @author [email protected] | ||
* * @project Megamenu | ||
* * @project Core | ||
*/ | ||
namespace Boolfly\Megamenu\Block\Adminhtml\Edit; | ||
namespace Boolfly\Base\Block\Adminhtml\Edit\Button; | ||
|
||
use Magento\Backend\Block\Template; | ||
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface; | ||
|
||
/** | ||
* Class SaveButton | ||
* Class Save | ||
* | ||
* @package Boolfly\Megamenu\Block\Adminhtml\Edit | ||
* @package Boolfly\Base\Block\Adminhtml\Edit\Button | ||
*/ | ||
class SaveButton extends Template implements ButtonProviderInterface | ||
class Save extends Template implements ButtonProviderInterface | ||
{ | ||
/** | ||
* Save button | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,23 @@ | |
* * See COPYING.txt for license details. | ||
* * | ||
* * @author [email protected] | ||
* * @project Megamenu | ||
* * @project Core | ||
*/ | ||
namespace Boolfly\Megamenu\Block\Adminhtml\Edit; | ||
namespace Boolfly\Base\Block\Adminhtml\Edit\Button; | ||
|
||
use Magento\Backend\Block\Template; | ||
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface; | ||
|
||
/** | ||
* Class SaveAndContinueButton | ||
* Class Delete | ||
* | ||
* @package Boolfly\Megamenu\Block\Adminhtml\Edit | ||
* @package Boolfly\Base\Block\Adminhtml\Edit\Button | ||
*/ | ||
class SaveAndContinueButton extends Template implements ButtonProviderInterface | ||
class SaveAndContinue extends Template implements ButtonProviderInterface | ||
{ | ||
|
||
/** | ||
* Save button | ||
* Save and continue button | ||
* | ||
* @return array | ||
*/ | ||
|
33 changes: 14 additions & 19 deletions
33
...der/Controller/Adminhtml/Image/Upload.php → ...roller/Adminhtml/Image/AbstractUpload.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?php | ||
/************************************************************ | ||
* * | ||
* * Copyright © 2019 Boolfly. All rights reserved. | ||
* * Copyright © Boolfly. All rights reserved. | ||
* * See COPYING.txt for license details. | ||
* * | ||
* * @author [email protected] | ||
* * @project Banner Slider | ||
* * @project Core | ||
*/ | ||
namespace Boolfly\BannerSlider\Model; | ||
namespace Boolfly\Base\Model; | ||
|
||
use Magento\Framework\App\Filesystem\DirectoryList; | ||
use Magento\Framework\Exception\LocalizedException; | ||
|
@@ -28,13 +28,6 @@ | |
class ImageUploader | ||
{ | ||
|
||
/**@#% | ||
* Cache Image Directory | ||
* | ||
* @const | ||
*/ | ||
const BANNER_CACHE_IMAGE_DIRECTORY = 'bannerslider/banner/cache/'; | ||
|
||
/** | ||
* Core file storage database | ||
* | ||
|
@@ -115,8 +108,8 @@ public function __construct( | |
StoreManagerInterface $storeManager, | ||
LoggerInterface $logger, | ||
Repository $assetRepository, | ||
$baseTmpPath = 'tmp/boolfly/banner', | ||
$basePath = 'boolfly/banner', | ||
$baseTmpPath = 'tmp/boolfly/', | ||
$basePath = 'boolfly/', | ||
$allowedExtensions = [ | ||
'jpg', | ||
'jpeg', | ||
|
@@ -241,6 +234,7 @@ public function moveFileFromTmp($imageName) | |
$baseImagePath | ||
); | ||
} catch (\Exception $e) { | ||
$this->logger->critical($e->getMessage()); | ||
throw new LocalizedException( | ||
__('Something went wrong while saving the file(s).') | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,24 +5,24 @@ | |
* * See COPYING.txt for license details. | ||
* * | ||
* * @author [email protected] | ||
* * @project Megamenu | ||
* * @project Core | ||
*/ | ||
namespace Boolfly\Megamenu\Model\Source; | ||
namespace Boolfly\Base\Model\Source; | ||
|
||
use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource; | ||
use Magento\Eav\Model\Entity\Attribute\Source\SourceInterface; | ||
use Magento\Framework\Data\OptionSourceInterface; | ||
|
||
/** | ||
* Banner status functionality model | ||
* Status functionality model | ||
* | ||
* @api | ||
* @since 100.0.2 | ||
*/ | ||
class Status extends AbstractSource implements SourceInterface, OptionSourceInterface | ||
{ | ||
/**#@+ | ||
* Banner Status values | ||
* Status values | ||
*/ | ||
const STATUS_ENABLED = 1; | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
* * See COPYING.txt for license details. | ||
* * | ||
* * @author [email protected] | ||
* * @project Megamenu | ||
* * @project Core | ||
*/ | ||
namespace Boolfly\Megamenu\Ui\Component\Listing\Columns; | ||
namespace Boolfly\Base\Ui\Component\Listing\Columns; | ||
|
||
use Magento\Framework\View\Element\UiComponent\ContextInterface; | ||
use Magento\Framework\View\Element\UiComponentFactory; | ||
|
@@ -17,7 +17,7 @@ | |
/** | ||
* Class EditActions | ||
* | ||
* @package Boolfly\Megamenu\Ui\Component\Listing\Columns | ||
* @package Boolfly\Base\Ui\Component\Listing\Columns | ||
*/ | ||
class EditActions extends Column | ||
{ | ||
|
45 changes: 0 additions & 45 deletions
45
app/code/Boolfly/BannerSlider/Api/BannerRepositoryInterface.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.