Compare commits
128 Commits
3.0.0-beta
...
3.0.0-beta
Author | SHA1 | Date | |
---|---|---|---|
f90ba712ee | |||
c658778476 | |||
c221e52cc4 | |||
556803af5d | |||
5bc17f5e76 | |||
e72a8efbd4 | |||
c49d96d63a | |||
36b935b9ae | |||
daa36c833f | |||
a9e02f745f | |||
a04f5a2d25 | |||
71fbc1a7b0 | |||
677060491d | |||
03fec11947 | |||
a0817a1e97 | |||
1926b7ba29 | |||
aec6d241e8 | |||
75602be304 | |||
299c922cef | |||
29673d0799 | |||
7c236e6209 | |||
8e438e1819 | |||
0c8cc27ea2 | |||
6f49201393 | |||
7bf9e8b06e | |||
96eaafe012 | |||
9a82e718ce | |||
f9e4f3f584 | |||
d8b1be9ccc | |||
7c61fa2c81 | |||
0af99c771e | |||
c5488571be | |||
e0aeeb29d9 | |||
d5a9b84ca3 | |||
fd417d8d95 | |||
0291c3a9a0 | |||
fd6e6de547 | |||
bf54eeb345 | |||
697afcbeba | |||
5773fa7994 | |||
b59785c4b6 | |||
fbf9f6f902 | |||
adc232fc3f | |||
e3c1ff6c8c | |||
77edd93965 | |||
7d15c391ea | |||
8fb29e2418 | |||
b348c350c0 | |||
fbeddb8af2 | |||
54f6ab0c79 | |||
8c3525589c | |||
58f97ea43d | |||
8e4c3ea7ea | |||
3865a8e8cd | |||
02221f6833 | |||
b63ef8cca0 | |||
aabe71d473 | |||
1405249712 | |||
16ee5e934a | |||
74276b45c5 | |||
b046c9ea4b | |||
8bd7f5f169 | |||
ee119215c0 | |||
c22d3c8957 | |||
0dd7a3990f | |||
1a6b032943 | |||
1220f47d87 | |||
583b34a5c1 | |||
b36d13a087 | |||
1a3aa7a4e4 | |||
70a13a4774 | |||
6ce13df2f3 | |||
4eb85c5d7e | |||
6eb6636e8b | |||
9635fb5365 | |||
d4b39cb1f4 | |||
af36e7a0d9 | |||
1db8626e35 | |||
61c255564f | |||
7e5047d98f | |||
4698d5a4db | |||
864c9cbe95 | |||
011b6f9b3c | |||
e45fc0c0a0 | |||
6bebdd6e95 | |||
8df4da768a | |||
67f4c21aa8 | |||
5eba0e2731 | |||
3efa429a1b | |||
3a78441a83 | |||
c05be7d987 | |||
b8cb1da777 | |||
ac8d1d808f | |||
9cd7b1a204 | |||
0d32c09df3 | |||
9f288ae11a | |||
e87ccd6b92 | |||
8a2b6ac69b | |||
43bd2d4413 | |||
9fdb99a06b | |||
f3c69c8353 | |||
29a32d3da9 | |||
8412cc852d | |||
b4e4320508 | |||
dbd6e6f310 | |||
bdcb7f0e58 | |||
85c9b121f5 | |||
069bc95297 | |||
0b711e6341 | |||
2a961cca01 | |||
e855fdbbaf | |||
288464e8cb | |||
1331ed70f1 | |||
411188c345 | |||
ee275532b1 | |||
b2eef93516 | |||
40ca54c447 | |||
b65db1afbf | |||
c258b1c3a2 | |||
7a5a726400 | |||
e553922eca | |||
04e9e8a45d | |||
f037e1271d | |||
f4563e18cd | |||
feaac5eb54 | |||
a6059d5bc3 | |||
f2104ef30f | |||
e7f760328e |
45
RoboFile.php
@ -3,14 +3,21 @@
|
||||
class RoboFile extends \Robo\Tasks {
|
||||
|
||||
function install() {
|
||||
$this->_exec('./composer.phar install');
|
||||
$this->_exec('npm install');
|
||||
return $this->taskExecStack()
|
||||
->stopOnFail()
|
||||
->exec('./composer.phar install')
|
||||
->exec('npm install')
|
||||
->run();
|
||||
}
|
||||
|
||||
function update() {
|
||||
$this->say(getenv('WP_TEST_URL'));
|
||||
$this->_exec('./composer.phar update');
|
||||
$this->_exec('npm update');
|
||||
|
||||
return $this->taskExecStack()
|
||||
->stopOnFail()
|
||||
->exec('./composer.phar update')
|
||||
->exec('npm update')
|
||||
->run();
|
||||
}
|
||||
|
||||
protected function rsearch($folder, $extensions = array()) {
|
||||
@ -61,12 +68,14 @@ class RoboFile extends \Robo\Tasks {
|
||||
}
|
||||
|
||||
function compileAll() {
|
||||
$this->compileJs();
|
||||
$this->compileCss();
|
||||
$collection = $this->collection();
|
||||
$collection->add(array($this, 'compileJs'));
|
||||
$collection->add(array($this, 'compileCss'));
|
||||
return $collection->run();
|
||||
}
|
||||
|
||||
function compileJs() {
|
||||
$this->_exec('./node_modules/webpack/bin/webpack.js');
|
||||
return $this->_exec('./node_modules/webpack/bin/webpack.js --bail');
|
||||
}
|
||||
|
||||
function compileCss() {
|
||||
@ -78,7 +87,7 @@ class RoboFile extends \Robo\Tasks {
|
||||
'assets/css/src/importExport.styl'
|
||||
);
|
||||
|
||||
$this->_exec(join(' ', array(
|
||||
return $this->_exec(join(' ', array(
|
||||
'./node_modules/stylus/bin/stylus',
|
||||
'--include ./node_modules',
|
||||
'--include-css',
|
||||
@ -89,14 +98,14 @@ class RoboFile extends \Robo\Tasks {
|
||||
}
|
||||
|
||||
function makepot() {
|
||||
$this->_exec('./node_modules/.bin/grunt makepot'.
|
||||
return $this->_exec('./node_modules/.bin/grunt makepot'.
|
||||
' --gruntfile '.__DIR__.'/tasks/makepot/makepot.js'.
|
||||
' --base_path '.__DIR__
|
||||
);
|
||||
}
|
||||
|
||||
function pushpot() {
|
||||
$this->_exec('./node_modules/.bin/grunt pushpot'.
|
||||
return $this->_exec('./node_modules/.bin/grunt pushpot'.
|
||||
' --gruntfile '.__DIR__.'/tasks/makepot/makepot.js'.
|
||||
' --base_path '.__DIR__
|
||||
);
|
||||
@ -152,22 +161,26 @@ class RoboFile extends \Robo\Tasks {
|
||||
function testDebug() {
|
||||
$this->_exec('vendor/bin/codecept build');
|
||||
$this->loadEnv();
|
||||
$this->_exec('vendor/bin/codecept run unit --debug');
|
||||
return $this->_exec('vendor/bin/codecept run unit --debug');
|
||||
}
|
||||
|
||||
function testFailed() {
|
||||
$this->loadEnv();
|
||||
$this->_exec('vendor/bin/codecept build');
|
||||
$this->_exec('vendor/bin/codecept run -g failed');
|
||||
return $this->_exec('vendor/bin/codecept run -g failed');
|
||||
}
|
||||
|
||||
function qa() {
|
||||
$this->qaLint();
|
||||
$this->qaCodeSniffer('all');
|
||||
$collection = $this->collection();
|
||||
$collection->add(array($this, 'qaLint'));
|
||||
$collection->add(function() {
|
||||
return $this->qaCodeSniffer('all');
|
||||
});
|
||||
return $collection->run();
|
||||
}
|
||||
|
||||
function qaLint() {
|
||||
$this->_exec('./tasks/php_lint.sh lib/ tests/ mailpoet.php');
|
||||
return $this->_exec('./tasks/php_lint.sh lib/ tests/ mailpoet.php');
|
||||
}
|
||||
|
||||
function qaCodeSniffer($severity='errors') {
|
||||
@ -176,7 +189,7 @@ class RoboFile extends \Robo\Tasks {
|
||||
} else {
|
||||
$severityFlag = '-n';
|
||||
}
|
||||
$this->_exec(
|
||||
return $this->_exec(
|
||||
'./vendor/bin/phpcs '.
|
||||
'--standard=./tasks/code_sniffer/MailPoet '.
|
||||
'--ignore=./lib/Util/Sudzy/*,./lib/Util/CSS.php,./lib/Util/XLSXWriter.php,'.
|
||||
|
@ -1,3 +1,15 @@
|
||||
$box-width = 425px
|
||||
$box-height = 150px
|
||||
$thumbnail-width = $box-height
|
||||
$thumbnail-height = $thumbnail-width
|
||||
$box-description-space-between-heading-and-paragraph = 5px
|
||||
$box-description-height = 110px
|
||||
$box-description-text-height = $box-description-height - $box-description-space-between-heading-and-paragraph
|
||||
$box-heading-line-height = $box-description-text-height / 4
|
||||
$box-heading-font-size = $box-heading-line-height * 5/7
|
||||
$box-description-line-height = $box-heading-line-height / 2
|
||||
$box-description-font-size = $box-description-line-height
|
||||
|
||||
.mailpoet_boxes.mailpoet_boxes_loading
|
||||
opacity: 0.2
|
||||
|
||||
@ -6,8 +18,8 @@
|
||||
position: relative
|
||||
padding: 15px
|
||||
margin: 15px 25px 0 0
|
||||
width: 425px
|
||||
height: 150px
|
||||
width: $box-width
|
||||
height: $box-height
|
||||
border: 1px solid #dedede
|
||||
background-color: #fff
|
||||
|
||||
@ -18,15 +30,15 @@
|
||||
background-position: center
|
||||
color: #222
|
||||
border: 1px solid #ccc
|
||||
width: 150px
|
||||
height: 150px
|
||||
width: $thumbnail-height
|
||||
height: $thumbnail-width
|
||||
margin-right: 15px
|
||||
float: left
|
||||
overflow: hidden
|
||||
position: relative
|
||||
|
||||
img
|
||||
min-width: 150px
|
||||
min-width: $thumbnail-width
|
||||
height: auto
|
||||
width: 110%
|
||||
position: relative
|
||||
@ -60,20 +72,21 @@
|
||||
.mailpoet_boxes .mailpoet_description
|
||||
float:left
|
||||
width: 245px
|
||||
max-height: calc(115px - 2em)
|
||||
padding-bottom: 2em
|
||||
max-height: $box-description-height
|
||||
padding-bottom: 0
|
||||
overflow: hidden
|
||||
|
||||
h3
|
||||
margin: 0 0 0.7em 0
|
||||
margin: 0 0 $box-description-space-between-heading-and-paragraph 0
|
||||
overflow: hidden
|
||||
max-width: 210px
|
||||
line-height: 1.4em
|
||||
line-height: $box-heading-line-height
|
||||
font-size: $box-heading-font-size
|
||||
|
||||
p
|
||||
font-size: 13px
|
||||
line-height: 1.5
|
||||
margin: 1em 0
|
||||
font-size: $box-description-font-size
|
||||
line-height: $box-description-line-height
|
||||
margin: 0
|
||||
|
||||
.mailpoet_boxes .mailpoet_actions
|
||||
position: absolute
|
||||
|
@ -9,12 +9,13 @@
|
||||
background: rgba(255, 255, 255, 0)
|
||||
transition: background .15s ease-out
|
||||
|
||||
&:hover
|
||||
.mailpoet_automated_latest_content_block:hover &
|
||||
background: rgba(255, 255, 255, 0.7)
|
||||
cursor: pointer
|
||||
|
||||
.mailpoet_automated_latest_content_block_posts
|
||||
overflow: auto
|
||||
pointer-events: none
|
||||
|
||||
& > .mailpoet_block
|
||||
width: 100%
|
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 779 B |
BIN
assets/img/datepicker/animated-overlay.gif
Executable file → Normal file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 985 B |
BIN
assets/img/datepicker/ui-bg_diagonals-thick_18_b81900_40x40.png
Executable file → Normal file
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 140 B |
BIN
assets/img/datepicker/ui-bg_diagonals-thick_20_666666_40x40.png
Executable file → Normal file
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 140 B |
BIN
assets/img/datepicker/ui-bg_flat_10_000000_40x100.png
Executable file → Normal file
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 83 B |
BIN
assets/img/datepicker/ui-bg_glass_100_f6f6f6_1x400.png
Executable file → Normal file
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 85 B |
BIN
assets/img/datepicker/ui-bg_glass_100_fdf5ce_1x400.png
Executable file → Normal file
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 139 B |
BIN
assets/img/datepicker/ui-bg_glass_65_ffffff_1x400.png
Executable file → Normal file
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 74 B |
BIN
assets/img/datepicker/ui-bg_gloss-wave_35_f6a828_500x100.png
Executable file → Normal file
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
assets/img/datepicker/ui-bg_highlight-soft_100_eeeeee_1x100.png
Executable file → Normal file
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 79 B |
BIN
assets/img/datepicker/ui-bg_highlight-soft_75_ffe45c_1x100.png
Executable file → Normal file
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 161 B |
BIN
assets/img/datepicker/ui-icons_222222_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/datepicker/ui-icons_228ef1_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/datepicker/ui-icons_454545_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 3.7 KiB |
BIN
assets/img/datepicker/ui-icons_ef8c08_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/datepicker/ui-icons_ffd27a_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/datepicker/ui-icons_ffffff_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 925 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1016 B After Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 767 B After Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 403 B |
Before Width: | Height: | Size: 634 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 709 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 601 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 835 B |
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 434 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 603 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 832 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 687 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 524 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 687 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 718 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 566 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 751 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 552 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 776 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 848 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 753 B |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 335 B |
BIN
assets/img/post_notifications_template/ALC-widget-icon.png
Executable file → Normal file
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 2.4 KiB |
BIN
assets/img/post_notifications_template/settings-icon-highlight.png
Executable file → Normal file
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 303 KiB After Width: | Height: | Size: 262 KiB |
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 276 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 498 KiB After Width: | Height: | Size: 441 KiB |
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 122 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 119 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 29 KiB |