Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0 ブランチを experimental/plugin_bundle ブランチへ取り込み(コンフリクト解消) #4659

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
74de428
モーダルを開き次のページでブラウザバックをすると、オートコンプリートの影響でモーダルが開いたままになっている不具合を修正
nakayama-u Feb 7, 2020
74d3c58
カテゴリ4階層目で新規登録フォームが表示されなくなる(eccube_category_nest_level=5)
dk-umebius Jul 18, 2020
0ba5603
不適切なコメントを削除
okazy Jul 21, 2020
d41d3e5
SEO 改善: robots.txt に User-agent を追加
nabbisen Jul 23, 2020
6a05991
管理画面IP制限ページのリンク先がlocalhostになる問題の修正
dk-umebius Jul 25, 2020
01ea62f
プラグインのエンティティを拡張できるようにする
kurozumi Jul 28, 2020
edf85f9
Eccube\Form\Type\Admin\OrderType::validateOrderStatus内のtransの引数の指定が間違…
Jul 31, 2020
9d309de
Merge pull request #4631 from U-Mebius/fix/category_nest_level
Aug 4, 2020
cf4a8d3
Merge pull request #4633 from okazy/fix/repository-comment
Aug 4, 2020
20467b7
Merge pull request #4635 from nabbisen/fix_robots_txt_no_user_agent
Aug 4, 2020
5398567
PostgreSQL環境で発生する数値エラーの修正
kiy0taka Aug 6, 2020
18af1c5
Merge pull request #4639 from eg-fujiwara/admin_order_type_order_stat…
Aug 7, 2020
9ae5a90
他プラグインのEntityを拡張するテストケースを追加
kiy0taka Aug 7, 2020
67b1a9f
Merge pull request #4638 from kurozumi/kurozumi-patch-9
Aug 11, 2020
2c09ba7
Merge pull request #4637 from U-Mebius/fix/admin_403_link
Aug 14, 2020
946624f
editorconfig `*.md` の行末空白自動削除を行わない
KentarouTakeda Aug 15, 2020
9c8a0d2
Merge pull request #4648 from KentarouTakeda/no-trim-trailing-whitesp…
Aug 18, 2020
f75f44c
Merge branch '4.0' into fix/modal
okazy Aug 19, 2020
ba86831
Merge pull request #7 from okazy/fix/modal
dk-umebius Aug 19, 2020
69eff6d
Merge pull request #4641 from kiy0taka/fix/numeric_out_of_range
okazy Aug 20, 2020
8cf150c
Merge pull request #4468 from U-Mebius/fix/modal
okazy Aug 20, 2020
e1c9e66
Merge remote-tracking branch 'origin/4.0' into experimental/plugin_bu…
okazy Aug 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ indent_size = 4
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[codeception/**.{yml,yaml}]
indent_style = space
indent_size = 4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ jobs:
- test_dependency_plugin_update
- test_install_error
- install_enable_disable_enable_disable_remove_store
- test_enhance_plugin_entity
include:
- db: pgsql
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
Expand Down
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ jobs:
./codeception.sh --reset
psql eccube_db -h 127.0.0.1 -U postgres -c "update dtb_base_info set authentication_key='test', php_path = '$(which php)';"
./codeception.sh EA10PluginCest:install_enable_disable_enable_disable_remove_store
- |
./codeception.sh --reset
psql eccube_db -h 127.0.0.1 -U postgres -c "update dtb_base_info set authentication_key='test', php_path = '$(which php)';"
./codeception.sh EA10PluginCest:test_enhance_plugin_entity
- <<: *e2e_test
php: 7.3
env: APP_ENV=codeception DATABASE_URL=mysql://root:@localhost/eccube_db DATABASE_SERVER_VERSION=5 MAILER_URL=smtp://localhost:1025 ECCUBE_PACKAGE_API_URL=http://localhost:8080 NO_FIXTURES=1
Expand Down Expand Up @@ -385,6 +389,10 @@ jobs:
./codeception.sh --reset
mysql -h 127.0.0.1 -u root eccube_db -e "update dtb_base_info set authentication_key='test', php_path = '$(which php)';"
./codeception.sh EA10PluginCest:install_enable_disable_enable_disable_remove_store
- |
./codeception.sh --reset
mysql -h 127.0.0.1 -u root eccube_db -e "update dtb_base_info set authentication_key='test', php_path = '$(which php)';"
./codeception.sh EA10PluginCest:test_enhance_plugin_entity

# インストーラのテスト
- <<: *e2e_test
Expand Down
Binary file modified codeception/_data/plugins/Boomerang-1.0.0.tgz
Binary file not shown.
Binary file added codeception/_data/plugins/Boomerang10-1.0.0.tgz
Binary file not shown.
46 changes: 46 additions & 0 deletions codeception/acceptance/EA10PluginCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,26 @@ public function test_template_overwrite(\AcceptanceTester $I)
$fs->remove($dir);
}

/**
* @see https://github.com/EC-CUBE/ec-cube/pull/4638
*/
public function test_enhance_plugin_entity(\AcceptanceTester $I)
{
$Boomerang = Boomerang_Store::start($I)
->インストール()
->有効化()
->カート作成();

$I->see('[1]');

Boomerang10_Store::start($I, $Boomerang)
->インストール()
->有効化();

$Boomerang->カート一覧();
$I->see('[1]');
}

public function test_bundle_install_enable_disable_remove_store(\AcceptanceTester $I)
{
$Bundle = Bundle_Store::start($I);
Expand Down Expand Up @@ -968,6 +988,32 @@ public static function start(AcceptanceTester $I)
{
return new self($I);
}

public function カート一覧()
{
$this->I->amOnPage('/boomerang');
}

public function カート作成()
{
$this->I->amOnPage('/boomerang/new');
$this->I->seeCurrentUrlMatches('/^\/boomerang$/');
return $this;
}
}

class Boomerang10_Store extends Store_Plugin
{
public function __construct(AcceptanceTester $I, Store_Plugin $dependency = null)
{
parent::__construct($I, 'Boomerang10', $dependency);
$this->columns[] = 'dtb_bar.mail';
}

public static function start(AcceptanceTester $I, Store_Plugin $dependency = null)
{
return new self($I, $dependency = null);
}
}

class Boomerang_Local extends Local_Plugin
Expand Down
95 changes: 39 additions & 56 deletions html/template/default/assets/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion html/template/default/assets/css/style.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion html/template/default/assets/css/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion html/template/default/assets/css/style.min.css.map

Large diffs are not rendered by default.

112 changes: 38 additions & 74 deletions html/template/default/assets/scss/project/_13.4.cartModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,101 +14,65 @@ Styleguide 13.4
*/

.ec-modal {

.checkbox {
display: none;
display: none;
position: fixed;
top: 0;
left: 0;
z-index: 99999;
width: 100%;
height: 100%;

&.small {
width: 30%;
}

.ec-modal-overlay {
opacity: 0;
transition: all 0.3s ease;
&.full {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: -100;
transform: scale(1);
}

.ec-modal-overlay {
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100%;
}

.ec-modal-wrap {
background-color: #fff;
position: relative;
border-radius: 2px;
border: 1px solid #333;
background-color: #fff;
width: 90%;
margin: 20px;
padding: 40px 5px;
border-radius: 2px;
transition: all 0.5s ease;
-ms-flex-item-align: center;
align-self: center;

.ec-modal-box {
text-align: center;
}

.ec-modal-box div {
margin-top: 20px;
}

@include media_desktop {
& {
padding: 40px 10px;
width: 50%;
margin: 20px auto;
}
}

&.small {
width: 30%;
}

&.full {
width: 100%;
height: 100%;
padding: 40px 10px;
width: 50%;
margin: 20px auto;
}
}

.ec-modal-overlay {
.ec-modal-close {
position: absolute;
right: 20px;
top: 10px;
font-size: 20px;
height: 30px;
width: 20px;

&:hover {
cursor: pointer;
color: #4b5361;
}
.ec-modal-close {
cursor: pointer;
position: absolute;
right: 20px;
top: 10px;
font-size: 20px;
height: 30px;
width: 20px;
&:hover {
color: #4b5361;
}
}

.ec-modal-overlay-close {
display: none;
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
.ec-modal-box {
text-align: center;
}

input:checked {
~ .ec-modal-overlay {
transform: scale(1);
opacity: 1;
z-index: 9997;
overflow: auto;
.ec-modal-overlay-close {
display: block;
}
}

~ .ec-modal-overlay .ec-modal-wrap {
transform: translateY(0);
z-index: 9999;
}
.ec-role {
margin-top: 20px;
}
}
1 change: 1 addition & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
User-agent: *
Disallow: /*.csv$
5 changes: 4 additions & 1 deletion src/Eccube/Form/Type/Admin/OrderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,10 @@ public function validateOrderStatus(FormEvent $event)
if ($oldStatus->getId() != $newStatus->getId()) {
if (!$this->orderStateMachine->can($Order, $newStatus)) {
$form['OrderStatus']->addError(
new FormError(trans('admin.order.failed_to_change_status__short', $oldStatus->getName(), $newStatus->getName())));
new FormError(trans('admin.order.failed_to_change_status__short', [
'%from%' => $oldStatus->getName(),
'%to%' => $newStatus->getName(),
])));
}
}
}
Expand Down
10 changes: 6 additions & 4 deletions src/Eccube/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,12 @@ protected function addEntityExtensionPass(ContainerBuilder $container)

foreach ($plugins as $code) {
if (file_exists($pluginDir.'/'.$code.'/Entity')) {
$container->addCompilerPass(DoctrineOrmMappingsPass::createAnnotationMappingDriver(
['Plugin\\'.$code.'\\Entity'],
['%kernel.project_dir%/app/Plugin/'.$code.'/Entity']
));
$paths = ['%kernel.project_dir%/app/Plugin/'.$code.'/Entity'];
$namespaces = ['Plugin\\'.$code.'\\Entity'];
$reader = new Reference('annotation_reader');
$driver = new Definition(AnnotationDriver::class, [$reader, $paths]);
$driver->addMethodCall('setTraitProxiesDirectory', [$projectDir.'/app/proxy/entity']);
$container->addCompilerPass(new DoctrineOrmMappingsPass($driver, $namespaces, []));
}
}
}
Expand Down