Skip to content

Commit 7b2ac2a

Browse files
Merge remote-tracking branch 'mainline/develop' into MAGETWO-36972
2 parents 21e6778 + 4d42108 commit 7b2ac2a

File tree

3,750 files changed

+108914
-66589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,750 files changed

+108914
-66589
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ atlassian*
1010
/.gitattributes
1111
/app/config_sandbox
1212
/app/etc/config.php
13+
/app/etc/env.php
1314
/app/code/Magento/TestModule*
1415
/lib/internal/flex/uploader/.actionScriptProperties
1516
/lib/internal/flex/uploader/.flexProperties
@@ -37,6 +38,7 @@ atlassian*
3738
!/pub/media/wysiwyg/.htaccess
3839
/pub/media/tmp/*
3940
!/pub/media/tmp/.htaccess
41+
/pub/media/captcha/*
4042
/pub/static/*
4143
!/pub/static/.htaccess
4244

Diff for: .htaccess

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@
188188
## If running in cluster environment, uncomment this
189189
## http://developer.yahoo.com/performance/rules.html#etags
190190

191-
#FileETag none
191+
#FileETag none

Diff for: .php_cs

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ $finder = Symfony\CS\Finder\DefaultFinder::create()
1515
->exclude('dev/tests/functional/vendor')
1616
->exclude('dev/tests/integration/tmp')
1717
->exclude('dev/tests/integration/var')
18-
->exclude('lib/internal/CardinalCommerce')
1918
->exclude('lib/internal/Cm')
2019
->exclude('lib/internal/Credis')
2120
->exclude('lib/internal/JSMin')

Diff for: CHANGELOG.md

+228
Large diffs are not rendered by default.

Diff for: Gruntfile.js

+15-13
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ module.exports = function (grunt) {
2323
require('load-grunt-config')(grunt, {
2424
configPath: path.join(__dirname, configDir),
2525
init: true,
26-
loadGruntTasks: {
27-
pattern: [
28-
'grunt-*'
29-
]
26+
jitGrunt: {
27+
staticMappings: {
28+
usebanner: 'grunt-banner'
29+
}
3030
}
3131
});
3232

3333
_.each({
3434
/**
3535
* Assembling tasks.
36-
* ToDo UI: define default tasks.
36+
* ToDo: define default tasks.
3737
*/
3838
default: function () {
3939
grunt.log.subhead('I\'m default task and at the moment I\'m empty, sorry :/');
@@ -43,17 +43,19 @@ module.exports = function (grunt) {
4343
* Production preparation task.
4444
*/
4545
prod: function (component) {
46-
if (component === 'setup') {
47-
grunt.task.run([
48-
'less:' + component,
49-
'autoprefixer:' + component,
50-
'cssmin:' + component,
51-
'usebanner:' + component
52-
]);
53-
}
46+
var tasks = [
47+
'less',
48+
'autoprefixer',
49+
'cssmin',
50+
'usebanner'
51+
].map(function(task){
52+
return task + ':' + component;
53+
});
5454

5555
if (typeof component === 'undefined') {
5656
grunt.log.subhead('Tip: Please make sure that u specify prod subtask. By default prod task do nothing');
57+
} else {
58+
grunt.task.run(tasks);
5759
}
5860
},
5961

Diff for: app/code/Magento/AdminNotification/Block/System/Messages.php

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function getSystemMessageDialogJson()
123123
'autoOpen' => false,
124124
'width' => '75%',
125125
'modal' => true,
126+
'minHeight' => '0',
126127
'dialogClass' => 'ui-dialog-active ui-popup-message',
127128
'ajaxUrl' => $this->_getMessagesUrl()
128129
],

Diff for: app/code/Magento/AdminNotification/Model/Feed.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\AdminNotification\Model;
77

8-
use Magento\Framework\Config\ConfigOptionsList;
8+
use Magento\Framework\Config\ConfigOptionsListConstants;
99

1010
/**
1111
* AdminNotification Feed model
@@ -137,7 +137,7 @@ public function checkUpdate()
137137

138138
$feedXml = $this->getFeedData();
139139

140-
$installDate = strtotime($this->_deploymentConfig->get(ConfigOptionsList::CONFIG_PATH_INSTALL_DATE));
140+
$installDate = strtotime($this->_deploymentConfig->get(ConfigOptionsListConstants::CONFIG_PATH_INSTALL_DATE));
141141

142142
if ($feedXml && $feedXml->channel && $feedXml->channel->item) {
143143
foreach ($feedXml->channel->item as $item) {
@@ -239,6 +239,8 @@ public function getFeedData()
239239
}
240240

241241
/**
242+
* Retrieve feed as XML element
243+
*
242244
* @return \SimpleXMLElement
243245
*/
244246
public function getFeedXml()

Diff for: app/code/Magento/AdminNotification/Model/Inbox.php

+5-11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
use Magento\Framework\Notification\MessageInterface;
99
use Magento\Framework\Notification\NotifierInterface;
10+
use Magento\AdminNotification\Model\InboxInterface;
1011

1112
/**
1213
* AdminNotification Inbox model
@@ -30,7 +31,7 @@
3031
*
3132
* @author Magento Core Team <core@magentocommerce.com>
3233
*/
33-
class Inbox extends \Magento\Framework\Model\AbstractModel implements NotifierInterface
34+
class Inbox extends \Magento\Framework\Model\AbstractModel implements NotifierInterface, InboxInterface
3435
{
3536
/**
3637
* @return void
@@ -41,10 +42,7 @@ protected function _construct()
4142
}
4243

4344
/**
44-
* Retrieve Severity collection array
45-
*
46-
* @param int|null $severity
47-
* @return array|string|null
45+
* {@inheritdoc}
4846
*/
4947
public function getSeverities($severity = null)
5048
{
@@ -66,9 +64,7 @@ public function getSeverities($severity = null)
6664
}
6765

6866
/**
69-
* Retrieve Latest Notice
70-
*
71-
* @return $this
67+
* {@inheritdoc}
7268
*/
7369
public function loadLatestNotice()
7470
{
@@ -78,9 +74,7 @@ public function loadLatestNotice()
7874
}
7975

8076
/**
81-
* Retrieve notice statuses
82-
*
83-
* @return array
77+
* {@inheritdoc}
8478
*/
8579
public function getNoticeStatus()
8680
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\AdminNotification\Model;
7+
8+
/**
9+
* AdminNotification Inbox interface
10+
*
11+
* @author Magento Core Team <core@magentocommerce.com>
12+
*/
13+
interface InboxInterface
14+
{
15+
/**
16+
* Retrieve Severity collection array
17+
*
18+
* @param int|null $severity
19+
* @return array|string|null
20+
* @api
21+
*/
22+
public function getSeverities($severity = null);
23+
24+
/**
25+
* Retrieve Latest Notice
26+
*
27+
* @return $this
28+
* @api
29+
*/
30+
public function loadLatestNotice();
31+
32+
/**
33+
* Retrieve notice statuses
34+
*
35+
* @return array
36+
* @api
37+
*/
38+
public function getNoticeStatus();
39+
}

Diff for: app/code/Magento/AdminNotification/Model/System/Message/Baseurl.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\AdminNotification\Model\System\Message;
108

119
use Magento\Store\Model\Store;
@@ -121,7 +119,9 @@ public function isDisplayed()
121119
public function getText()
122120
{
123121
return __(
124-
'{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure URL / Base Secure URL. It is highly recommended to change this value in your Magento <a href="%1">configuration</a>.',
122+
'{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure '
123+
. 'URL / Base Secure URL. It is highly recommended to change this value in your Magento '
124+
. '<a href="%1">configuration</a>.',
125125
$this->_getConfigUrl()
126126
);
127127
}

Diff for: app/code/Magento/AdminNotification/Model/System/Message/Media/Synchronization/Error.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\AdminNotification\Model\System\Message\Media\Synchronization;
108

119
class Error extends \Magento\AdminNotification\Model\System\Message\Media\AbstractSynchronization
@@ -36,7 +34,8 @@ protected function _shouldBeDisplayed()
3634
public function getText()
3735
{
3836
return __(
39-
'One or more media files failed to be synchronized during the media storages synchronization process. Refer to the log file for details.'
37+
'One or more media files failed to be synchronized during the media storages synchronization process. '
38+
. 'Refer to the log file for details.'
4039
);
4140
}
4241
}

Diff for: app/code/Magento/AdminNotification/Model/System/Message/Security.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\AdminNotification\Model\System\Message;
108

119
use Magento\Store\Model\Store;
@@ -26,6 +24,7 @@ class Security implements \Magento\Framework\Notification\MessageInterface
2624

2725
/**
2826
* Time out for HTTP verification request
27+
*
2928
* @var int
3029
*/
3130
private $_verificationTimeOut = 2;
@@ -136,7 +135,8 @@ public function isDisplayed()
136135
public function getText()
137136
{
138137
return __(
139-
'Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside. Please contact your hosting provider.'
138+
'Your web server is configured incorrectly. As a result, configuration files '
139+
. ' with sensitive information are accessible from the outside. Please contact your hosting provider.'
140140
);
141141
}
142142

Diff for: app/code/Magento/AdminNotification/Test/Unit/Model/FeedTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Magento\AdminNotification\Test\Unit\Model;
88

99
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
10-
use Magento\Framework\Config\ConfigOptionsList;
10+
use Magento\Framework\Config\ConfigOptionsListConstants;
1111

1212
/**
1313
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -141,7 +141,7 @@ public function testCheckUpdate($callInbox, $curlRequest)
141141
$this->backendConfig->expects($this->at(1))->method('getValue')
142142
->will($this->returnValue('http://feed.magento.com'));
143143
$this->deploymentConfig->expects($this->once())->method('get')
144-
->with(ConfigOptionsList::CONFIG_PATH_INSTALL_DATE)
144+
->with(ConfigOptionsListConstants::CONFIG_PATH_INSTALL_DATE)
145145
->will($this->returnValue('Sat, 6 Sep 2014 16:46:11 UTC'));
146146
if ($callInbox) {
147147
$this->inboxFactory->expects($this->once())->method('create')

Diff for: app/code/Magento/AdminNotification/composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.74.0-beta5",
7-
"magento/module-backend": "0.74.0-beta5",
8-
"magento/module-media-storage": "0.74.0-beta5",
9-
"magento/framework": "0.74.0-beta5",
6+
"magento/module-store": "0.74.0-beta10",
7+
"magento/module-backend": "0.74.0-beta10",
8+
"magento/module-media-storage": "0.74.0-beta10",
9+
"magento/framework": "0.74.0-beta10",
1010
"lib-libxml": "*",
1111
"magento/magento-composer-installer": "*"
1212
},
1313
"type": "magento2-module",
14-
"version": "0.74.0-beta5",
14+
"version": "0.74.0-beta10",
1515
"license": [
1616
"OSL-3.0",
1717
"AFL-3.0"

Diff for: app/code/Magento/AdminNotification/view/adminhtml/templates/system/messages/popup.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ require([
3131
resizable: false,
3232
width: '75%',
3333
modal: true,
34+
minHeight: '0',
3435
dialogClass: 'ui-popup-message',
3536
position: {
3637
my: 'left+12.5% top',

Diff for: app/code/Magento/AdminNotification/view/adminhtml/templates/toolbar_entry.phtml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
?>
1515
<div
1616
data-mage-init='{"toolbarEntry": {}}'
17-
class="notifications-wrapper"
17+
class="notifications-wrapper admin__action-dropdown-wrap"
1818
data-notification-count="<?php echo $notificationCount; ?>">
1919
<?php if ($notificationCount > 0) : ?>
2020
<a
2121
href="<?php echo $block->getUrl('adminhtml/notification/index'); ?>"
22-
class="notifications-action"
22+
class="notifications-action admin__action-dropdown"
2323
data-mage-init='{"dropdown":{}}'
2424
title="<?php echo __('Notifications'); ?>"
2525
data-toggle="dropdown">
@@ -28,7 +28,7 @@
2828
</span>
2929
</a>
3030
<ul
31-
class="notifications-list"
31+
class="admin__action-dropdown-menu"
3232
data-mark-as-read-url="<?php echo $block->getUrl('adminhtml/notification/ajaxMarkAsRead'); ?>">
3333
<?php foreach ($block->getLatestUnreadNotifications() as $notification) : ?>
3434
<?php /** @var $notification \Magento\AdminNotification\Model\Inbox*/ ?>
@@ -76,7 +76,7 @@
7676
</ul>
7777
<?php else : ?>
7878
<a
79-
class="notifications-action"
79+
class="notifications-action admin__action-dropdown"
8080
href="<?php echo $block->getUrl('adminhtml/notification/index'); ?>"
8181
title="<?php echo __('Notifications'); ?>">
8282
</a>

Diff for: app/code/Magento/AdminNotification/view/adminhtml/web/toolbar_entry.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ define([
1111

1212
// Mark notification as read via AJAX call
1313
var markNotificationAsRead = function (notificationId) {
14-
var requestUrl = $('.notifications-wrapper .notifications-list').attr('data-mark-as-read-url');
14+
var requestUrl = $('.notifications-wrapper .admin__action-dropdown-menu').attr('data-mark-as-read-url');
1515
$.ajax({
1616
url: requestUrl,
1717
type: 'POST',
@@ -33,7 +33,7 @@ define([
3333

3434
if (notificationCount == 0) {
3535
// Change appearance of the bubble and its behavior when the last notification is removed
36-
$('.notifications-wrapper .notifications-list').remove();
36+
$('.notifications-wrapper .admin__action-dropdown-menu').remove();
3737
var notificationIcon = $('.notifications-wrapper .notifications-icon');
3838
notificationIcon.removeAttr('data-toggle');
3939
notificationIcon.off('click.dropdown');
@@ -45,7 +45,7 @@ define([
4545
}
4646
$('.notifications-entry-last .notifications-counter').text(notificationCount);
4747
// Modify caption of the 'See All' link
48-
var actionElement = $('.notifications-wrapper .notifications-list .last .action-more');
48+
var actionElement = $('.notifications-wrapper .admin__action-dropdown-menu .last .action-more');
4949
actionElement.text(actionElement.text().replace(/\d+/, notificationCount));
5050
}
5151
},
@@ -65,7 +65,7 @@ define([
6565
};
6666

6767
// Show notification description when corresponding item is clicked
68-
$('.notifications-wrapper .notifications-list .notifications-entry').on('click.showNotification', function (event) {
68+
$('.notifications-wrapper .admin__action-dropdown-menu .notifications-entry').on('click.showNotification', function (event) {
6969
// hide notification dropdown
7070
$('.notifications-wrapper .notifications-icon').trigger('click.dropdown');
7171

0 commit comments

Comments
 (0)