Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/4.3' into feature/google_analy…
Browse files Browse the repository at this point in the history
…tics
  • Loading branch information
shinya committed Apr 4, 2024
2 parents 2bab4c0 + 3f62b87 commit 99e81da
Show file tree
Hide file tree
Showing 62 changed files with 664 additions and 348 deletions.
34 changes: 34 additions & 0 deletions app/DoctrineMigrations/Version20240312170000.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240312170000 extends AbstractMigration
{
const NAME = 'dtb_block';

public function up(Schema $schema): void
{
// テーブルが存在しない場合終了
if (!$schema->hasTable(self::NAME)) {
return;
}

$blockExists = $this->connection->fetchOne("SELECT COUNT(*) FROM dtb_block WHERE file_name = 'auto_new_item'");
if ($blockExists == 0) {
$this->addSql("INSERT INTO dtb_block (device_type_id, block_name, file_name, create_date, update_date, use_controller, deletable, discriminator_type) VALUES (10, '新着商品(自動取得)', 'auto_new_item', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, '1', '0', 'block')");
}
}

public function down(Schema $schema): void
{
$this->addSql("DELETE FROM dtb_block WHERE file_name = 'auto_new_item'");
}
}
1 change: 1 addition & 0 deletions app/config/eccube/packages/eccube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,4 @@ parameters:
- pdf
eccube_login_throttling_max_attempts: 5
eccube_login_throttling_interval: '30 minutes'
eccube_max_number_new_items_get: 5
209 changes: 150 additions & 59 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.

3 changes: 1 addition & 2 deletions html/template/admin/assets/js/file_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,13 @@
eccube.fileManager.openFolder(path);
return e.preventDefault();
});
a.appendTo(label);

label.attr('data-toggle', 'collapse');
label.attr('href', '#' + path.replace('/', '_'));
label.attr('aria-expanded', false);
label.attr('aria-control', '');
label.appendTo(li);

a.appendTo(li);
if (currentPath.indexOf(path) !== 0) {
label.addClass('collapsed')
}
Expand Down
Loading

0 comments on commit 99e81da

Please sign in to comment.