Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into feature/fix_ui_csv_class_n…
Browse files Browse the repository at this point in the history
…ame_and_class_catecory
  • Loading branch information
mmikri committed Sep 11, 2024
2 parents 0a3f8e2 + 1a0f595 commit 01416c2
Show file tree
Hide file tree
Showing 20 changed files with 83 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ jobs:

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Run chromedriver
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deny-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ jobs:
- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Prepare test
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ jobs:
- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Run chromedriver
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-test-throttling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ jobs:
- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Install fonts
run: sudo apt install fonts-ipafont fonts-ipaexfont
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ jobs:
- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Install fonts
run: sudo apt install fonts-ipafont fonts-ipaexfont
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ jobs:

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Run chromedriver
run: |
Expand Down Expand Up @@ -251,6 +254,9 @@ jobs:

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Run chromedriver
run: |
Expand Down Expand Up @@ -400,6 +406,9 @@ jobs:

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Run chromedriver
run: |
Expand Down Expand Up @@ -552,6 +561,9 @@ jobs:

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: Run chromedriver
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/vaddy-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: "VAddy: install"
working-directory: /tmp
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/vaddy-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定

- name: "VAddy: install"
working-directory: /tmp
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/vaddy/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ runs:

- name: setup-chromedriver
uses: nanasess/setup-chromedriver@master
with:
# ChromeDriverのバージョンを指定
chromedriver-version: '127.0.6533.119' # 特定のバージョンを指定


- name: Install fonts
shell: bash
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/zaproxy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
name: OWASP ZAP

# このGitHub Actionsワークフローは手動でトリガー可能です。
# 手動で実行するには、以下の手順に従ってください:
# 1. GitHubリポジトリの「Actions」タブに移動します。
# 2. 「OWASP ZAP」ワークフローを選択します。
# 3. 「Run workflow」ボタンをクリックします。
# 4. 必要に応じて、表示される入力フォームでパラメータを指定し、「Run workflow」を再度クリックして実行します。
on:
workflow_dispatch:

Expand Down
6 changes: 3 additions & 3 deletions html/template/admin/assets/css/app.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/admin/assets/css/app.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion html/template/admin/assets/css/app.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion html/template/admin/assets/css/app.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion html/template/admin/assets/scss/component/_directory.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
li {
display: flex;
flex-wrap: wrap;
align-items: start;
align-items: flex-start;
margin-top: 5px;
margin-bottom: 0;
> a, span {
Expand Down
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.map

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions html/template/default/assets/scss/component/_5.1.grid.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:math";
@import "../mixins/clearfix";
@import "../mixins/media";

Expand All @@ -14,7 +15,7 @@
min-height: 1px;

@media (min-width: $desktop) {
width: percentage(($columns/ 12));
width: percentage(math.div($columns, 12));
}
@include media_desktop{
}
Expand Down Expand Up @@ -169,7 +170,7 @@ Styleguide 5.1.5
margin: 0;
@include media_desktop {
@include makeSmColumn(10);
margin-left: percentage((1 / 12));
margin-left: percentage(math.div(1, 12));
}
}
}
Expand All @@ -193,7 +194,7 @@ Styleguide 5.1.6
margin: 0;
@include media_desktop {
@include makeSmColumn(8);
margin-left: percentage((2 / 12));
margin-left: percentage(math.div(2, 12));
}
}
}
Expand All @@ -215,7 +216,7 @@ Styleguide 5.1.7
margin: 0;
@include media_desktop {
@include makeSmColumn(6);
margin-left: percentage((3 / 12));
margin-left: percentage(math.div(3, 12));
}
}
}
Expand All @@ -238,7 +239,7 @@ Styleguide 5.1.8
margin: 0;
@include media_desktop {
@include makeSmColumn(4);
margin-left: percentage((4 / 12));
margin-left: percentage(math.div(4, 12));
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion html/template/default/assets/scss/component/_5.2.layout.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:math";
@import "../mixins/projects";
@import "../mixins/clearfix";
@import "../mixins/media";
Expand All @@ -16,7 +17,7 @@

@media (min-width: $desktop) {
float: left;
width: percentage(($columns/ 12));
width: percentage(math.div($columns, 12));
}
}

Expand Down
31 changes: 22 additions & 9 deletions src/Eccube/DependencyInjection/Compiler/PurchaseFlowPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,32 @@ public function process(ContainerBuilder $container)
*/
foreach ($this->getProcessorTags() as $tag => $methodName) {
/** @var Reference $id */
$allMethod = [];
$i = 0;
// findAndSortTaggedServicesでは、flow_typeごとのソートができないため
// その並びをもとに配列に入れ直す
foreach ($this->findAndSortTaggedServices($tag, $container) as $id) {
$def = $container->findDefinition($id);
foreach ($def->getTag($tag) as $attributes) {
if (isset($attributes['flow_type'])) {
/**
* @var string $flowType
* @var Definition $purchaseFlowDef
*/
foreach ($flowTypes as $flowType => $purchaseFlowDef) {
if ($flowType === $attributes['flow_type']) {
$purchaseFlowDef->addMethodCall($methodName, [$id]);
}
}
$attributes['id'] = $id;
$attributes['index'] = ++$i;
$attributes['priority'] = isset($attributes['priority']) ? $attributes['priority'] : 0;
$allMethod[$attributes['flow_type']][] = $attributes;
}
}
}
/**
* @var string $flowType
* @var Definition $purchaseFlowDef
*/
foreach ($allMethod as $flowType => $flowMethod) {
$purchaseFlowDef = isset($flowTypes[$flowType]) ? $flowTypes[$flowType] : null; ;
if (!is_null($purchaseFlowDef) && count($flowMethod) > 0) {
// flow_typeごとにソートをしてセットする
uasort($flowMethod, static fn ($a, $b) => $b['priority'] <=> $a['priority'] ? : $a['index'] <=> $b['index']);
foreach ($flowMethod as $attributes) {
$purchaseFlowDef->addMethodCall($methodName, [$attributes['id']]);
}
}
}
Expand Down

0 comments on commit 01416c2

Please sign in to comment.