-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1950 from Adyen/develop
Release 8.15.0
- Loading branch information
Showing
42 changed files
with
1,231 additions
and
115 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
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,43 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "develop", "develop-6", "develop-7", "main", "main-6", "main-7", "rc-v9" ] | ||
pull_request: | ||
branches: [ "develop", "main" ] | ||
paths-ignore: | ||
- 'view/base/web/js/*' | ||
schedule: | ||
- cron: "6 1 * * 0" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ javascript ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: +security-and-quality | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{ matrix.language }}" |
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
namespace Adyen\Payment\Block\Adminhtml\System\Config; | ||
|
||
class Fieldset extends \Magento\Config\Block\System\Config\Form\Fieldset | ||
{ | ||
protected function _getFrontendClass($element) | ||
{ | ||
return parent::_getFrontendClass($element) . ' with-button enabled'; | ||
} | ||
|
||
protected function _getHeaderTitleHtml($element) | ||
{ | ||
$html = '<div class="config-heading" >'; | ||
|
||
$groupConfig = $element->getGroup(); | ||
|
||
$htmlId = $element->getHtmlId(); | ||
$html .= '<div class="button-container"><button type="button"' . | ||
' class="button action-configure' . | ||
'" id="' . | ||
$htmlId . | ||
'-head" onclick="toggleSolution.call(this, \'' . | ||
$htmlId . | ||
"', '" . | ||
$this->getUrl( | ||
'adminhtml/*/state' | ||
) . '\'); return false;"><span class="state-closed">' . __( | ||
'Configure' | ||
) . '</span><span class="state-opened">' . __( | ||
'Close' | ||
) . '</span></button>'; | ||
|
||
$html .= '</div>'; | ||
$html .= '<div class="heading"><strong>' . $element->getLegend() . '</strong>'; | ||
|
||
if ($element->getComment()) { | ||
$html .= '<span class="heading-intro">' . $element->getComment() . '</span>'; | ||
} | ||
$html .= '<div class="config-alt"></div>'; | ||
$html .= '</div></div>'; | ||
|
||
return $html; | ||
} | ||
|
||
/** | ||
* Get collapsed state on-load | ||
* | ||
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element | ||
* @return false | ||
* @SuppressWarnings(PHPMD.UnusedFormalParameter) | ||
*/ | ||
protected function _isCollapseState($element) | ||
{ | ||
return false; | ||
} | ||
|
||
protected function _getHeaderCommentHtml($element) | ||
{ | ||
return ''; | ||
} | ||
|
||
protected function _getExtraJs($element) | ||
{ | ||
$script = "require(['jquery', 'prototype'], function(jQuery){ | ||
window.toggleSolution = function (id, url) { | ||
var doScroll = false; | ||
Fieldset.toggleCollapse(id, url); | ||
if ($(this).hasClassName(\"open\")) { | ||
$$(\".with-button button.button\").each(function(anotherButton) { | ||
if (anotherButton != this && $(anotherButton).hasClassName(\"open\")) { | ||
$(anotherButton).click(); | ||
doScroll = true; | ||
} | ||
}.bind(this)); | ||
} | ||
if (doScroll) { | ||
var pos = Element.cumulativeOffset($(this)); | ||
window.scrollTo(pos[0], pos[1] - 45); | ||
} | ||
} | ||
});"; | ||
|
||
return $this->_jsHelper->getScript($script); | ||
} | ||
} |
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
Oops, something went wrong.