-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
302 additions
and
103 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...System/Config/Form/Fieldset/IsEnabled.php → ...System/Config/Form/Fieldset/IsEnabled.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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
namespace ADM\QuickDevBar\Block\Tab\Content; | ||
|
||
use Magento\Framework\App\ObjectManager; | ||
use Magento\Framework\Interception\DefinitionInterface; | ||
|
||
|
||
class Config extends \ADM\QuickDevBar\Block\Tab\Panel | ||
{ | ||
|
||
protected $_config_values; | ||
|
||
/** | ||
* @var \Magento\Framework\App\Config\ScopePool | ||
*/ | ||
protected $_scopePool; | ||
|
||
public function __construct(\Magento\Framework\View\Element\Template\Context $context, | ||
\Magento\Framework\App\Config\ScopePool $scopePool, | ||
array $data = []) | ||
{ | ||
$this->_scopePool = $scopePool; | ||
|
||
parent::__construct($context, $data); | ||
} | ||
|
||
public function getTitleBadge() | ||
{ | ||
return count($this->getConfigValues()); | ||
} | ||
|
||
public function getConfigValues() | ||
{ | ||
if(is_null($this->_config_values)) { | ||
$this->_config_values = []; | ||
$scopePool = ObjectManager::getInstance()->get('Magento\Framework\App\Config\ScopePool'); | ||
|
||
$reflection = new \ReflectionClass($scopePool); | ||
|
||
$scope = $reflection->getProperty('_scopes'); | ||
$scope->setAccessible(true); | ||
$scope = $scope->getValue($scopePool); | ||
|
||
$scope= current($scope); | ||
|
||
$this->_config_values = $this->_buildFlatConfig($scope->getSource()); | ||
} | ||
|
||
return $this->_config_values; | ||
} | ||
|
||
protected function _buildFlatConfig($scope, $path='') | ||
{ | ||
$flatConfig = []; | ||
if(is_array($scope)) { | ||
foreach($scope as $scopeKey=>$scopeValue) { | ||
$buildedPath = !empty($path) ? $path . '/' .$scopeKey : $scopeKey; | ||
$flatConfig = array_merge($flatConfig, $this->_buildFlatConfig($scopeValue, $buildedPath)); | ||
} | ||
} else { | ||
$flatConfig[$path] = ['path'=>$path, 'value'=>$scope]; | ||
} | ||
return $flatConfig; | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace ADM\QuickDevBar\Block\Tab\Content; | ||
|
||
class Help extends \ADM\QuickDevBar\Block\Tab\Panel | ||
{ | ||
|
||
protected $_qdbHelper; | ||
|
||
/** | ||
* @param \Magento\Framework\View\Element\Template\Context $context | ||
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder | ||
* @param array $data | ||
*/ | ||
public function __construct( | ||
\Magento\Framework\View\Element\Template\Context $context, | ||
\ADM\QuickDevBar\Helper\Data $qdbHelper, | ||
array $data = [] | ||
) { | ||
$this->_qdbHelper= $qdbHelper; | ||
|
||
parent::__construct($context, $data); | ||
} | ||
|
||
public function getQuickDevBarVersion() | ||
{ | ||
return __('Module: %1, version %2', $this->getModuleName(), $this->_qdbHelper->getModuleVersion($this->getModuleName())); | ||
} | ||
} |
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
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
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
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
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,52 +1,56 @@ | ||
Changelog: Quick Developer Toolbar for Magento2 | ||
==================================== | ||
|
||
0.1.8 | ||
0.1.9 | ||
* Add config list tab | ||
* Use common ajax controller | ||
|
||
0.1.8 - 22 Jul 2016 | ||
* Add plugin list tab | ||
* Fix bug on action hints. Thanks to [adpeate](https://github.com/vpietri/magento2-developer-quickdevbar/pull/7) | ||
|
||
0.1.7 | ||
0.1.7 - 7 Jul 2016 | ||
* Configuration section improvement | ||
* Code refactoring | ||
* Authorize IPv6 localhost. Thanks to [Dayssam](https://github.com/vpietri/magento2-developer-quickdevbar/pull/5) | ||
|
||
0.1.6.1 | ||
0.1.6.1 - 30 Jun 2016 | ||
* Fix compatibility bugs with Magento 2.1 | ||
|
||
0.1.6 | ||
0.1.6 - 17 Jun 2016 | ||
* UI improvement | ||
* Add Block subtab | ||
* Add icon from [iconsdb.com](http://www.iconsdb.com/) | ||
|
||
0.1.5.2 | ||
0.1.5.2 - 22 Apr 2016 | ||
* Fit to PHP coding standards | ||
|
||
0.1.5.1 | ||
0.1.5.1 - 25 Feb 2016 | ||
* Fix tab bug in backoffice | ||
|
||
0.1.5 | ||
0.1.5 - 12 Dec 2015 | ||
* Back office toolbar | ||
* Reorganize tabs | ||
* Add list of collection and model instanciated | ||
* Add [Christian Bach's tablesorter plugin](https://github.com/christianbach/tablesorter) | ||
|
||
0.1.4 | ||
0.1.4 - 6 Dec 2015 | ||
* Fix bug on composer.json with registration.php | ||
* Clean layout display | ||
|
||
0.1.3 | ||
0.1.3 - 4 Dec 2015 | ||
* Compatibility with Magento 2.0.0 Publication | ||
* Add action tab (Template hints, Translate inline, Flush Cache Storage) | ||
* Controller structure cleaning | ||
|
||
0.1.2 | ||
0.1.2 - 29 Jun 2015 | ||
* Add sub-tab and reorganize existing tabs | ||
|
||
0.1.1 | ||
0.1.1 - 19 Jun 2015 | ||
* Javascript cleaning to meet coding standards | ||
* Add [sunnywalker/filterTable](https://github.com/sunnywalker/jQuery.FilterTable) | ||
* Fix bugs on the log screen | ||
* Css improvements | ||
|
||
0.0.1 | ||
0.0.1 - 18 Jun 2015 | ||
* module initialization |
Oops, something went wrong.