Skip to content

Commit

Permalink
Merge branch 'dev-5' into dev-5-baserproject#3009
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Jan 31, 2024
2 parents 2db0484 + cc64772 commit 50e4d2c
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/split_monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
local_path: 'bc-blog'
split_repository: 'bc-blog'
-
local_path: 'bc-column'
local_path: 'BcColumn'
split_repository: 'bc-column'
-
local_path: 'bc-content-link'
Expand Down
41 changes: 24 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
"license": "MIT",
"require": {
"php": ">=8.0",
"ext-gd": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-pdo": "*",
"ext-sqlite3": "*",
"ext-zip": "*",
"cakephp/authentication": "^2.9",
"cakephp/cakephp": "4.4.*",
"cakephp/migrations": "^3.2",
Expand All @@ -19,6 +22,7 @@
"mobiledetect/mobiledetectlib": "^2.8"
},
"require-dev": {
"ext-xdebug": "*",
"cakephp/bake": "^2.6",
"cakephp/debug_kit": "^4.5",
"phpunit/phpunit": "^9.5",
Expand All @@ -38,7 +42,10 @@
"BaserCore\\": "plugins/baser-core/src",
"BcAdminThird\\": "plugins/bc-admin-third/src",
"BcBlog\\": "plugins/bc-blog/src/",
"BcColumn\\": "plugins/bc-column/src/",
"BcColumn\\": [
"plugins/BcColumn/src/",
"plugins/bc-column/src/"
],
"BcContentLink\\": "plugins/bc-content-link/src/",
"BcCustomContent\\": "plugins/bc-custom-content/src/",
"BcEditorTemplate\\": "plugins/bc-editor-template/src/",
Expand Down Expand Up @@ -73,22 +80,22 @@
}
},
"replace": {
"baserproject/baser-core": "5.0.7",
"baserproject/bc-admin-third": "5.0.7",
"baserproject/bc-blog": "5.0.7",
"baserproject/bc-column": "5.0.7",
"baserproject/bc-content-link": "5.0.7",
"baserproject/bc-custom-content": "5.0.7",
"baserproject/bc-editor-template": "5.0.7",
"baserproject/bc-favorite": "5.0.7",
"baserproject/bc-front": "5.0.7",
"baserproject/bc-installer": "5.0.7",
"baserproject/bc-mail": "5.0.7",
"baserproject/bc-search-index": "5.0.7",
"baserproject/bc-theme-config": "5.0.7",
"baserproject/bc-theme-file": "5.0.7",
"baserproject/bc-uploader": "5.0.7",
"baserproject/bc-widget-area": "5.0.7"
"baserproject/baser-core": "5.0.8",
"baserproject/bc-admin-third": "5.0.8",
"baserproject/bc-blog": "5.0.8",
"baserproject/bc-column": "5.0.8",
"baserproject/bc-content-link": "5.0.8",
"baserproject/bc-custom-content": "5.0.8",
"baserproject/bc-editor-template": "5.0.8",
"baserproject/bc-favorite": "5.0.8",
"baserproject/bc-front": "5.0.8",
"baserproject/bc-installer": "5.0.8",
"baserproject/bc-mail": "5.0.8",
"baserproject/bc-search-index": "5.0.8",
"baserproject/bc-theme-config": "5.0.8",
"baserproject/bc-theme-file": "5.0.8",
"baserproject/bc-uploader": "5.0.8",
"baserproject/bc-widget-area": "5.0.8"
},
"scripts": {
"post-install-cmd": "App\\Console\\Installer::postInstall",
Expand Down
43 changes: 41 additions & 2 deletions plugins/baser-core/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
5.0.8-dev
5.0.9-dev

///////////////////////////////////////////////////////////////////////////////////////////////////////////
// +---------------------------------------------------------------------------------------------------+ //
Expand All @@ -14,6 +14,45 @@
CHG: 変更内容 / BUG: バグフィックス / NEW: 機能追加


[2024-01-25] basercms-5.0.8
- NEW [BC] TRUST_PROXY について、AWSのALBに対応
- CHG [BC] basersマガジンへのバナーを削除
- CHG [BC] BcText::stripScriptTagを削除
- CHG [BC] プラグインインストール時にDBが初期化済かどうかを判定するオプションを追加
- CHG [BC] サイトの識別名、エイリアスのヘルプ内容を見直し
- CHG [BC] Vew関連のイベント(beforeGetViewFileName/ beforeGetElementFileName / beforeGetLayoutFileName)を実装
- CHG [BC] リクエストを作成する際、ルーティングが失敗してもRequestFilterMiddlewareで検出器を追加
- CHG [BC] 管理画面サイドバーの下に余白を追加
- CHG [BC] BcUploadにアップロード対象のパスのチェックを追加
- CHG [BG] fix #2969 ブログとコンテンツのアイキャッチのファイル形式バリデーションを追加
- CHG [ML] メールファイルフィールドの拡張子チェックのデフォルト値を設定
- CHG [UL] #2927 ファイルアップロード用のフィールドのエンティティ変換を許可
- BUG [BC] 管理者以外でログインしている場合に一括処理用のチェックボックスが表示される問題を改善
- BUG [BC] fix #1059 管理画面の入力項目で入力必須チェックでエラー表示後にヘルプの中身が空になる問題を改善
- BUG [BC] BcMaigration において、connection を指定しないとエラーとなる問題を改善
- BUG [BC] サイト内検索の検索結果のキーワード入力欄をエスケープ
- BUG [BC] fix #2998 管理画面 テキストエリアに自動で空白文字(改行)が入ってしまう問題を解決
- BUG [BC] fix #2996 BcArrayHelperがBcBlogなどで使用できない問題を解決
- BUG [BC] fix #2927 固定ページ オプション欄のアイキャッチが保存されない問題を改善
- BUG [BC] fix #2915 固定ページ内などでショートコード Mail.getForm がエラーになる問題を改善
- BUG [BC] fix #2916 $this->BcBaser->pageが動作していない問題を改善
- BUG [BC] fix #2925 管理画面URLを /baser/admin から別の文字にすると、ログイン画面、ログアウト処理がリダイレクトループする問題を改善
- BUG [BC] サイト編集時、テーマを変更しても、テーマ管理に反映されない問題を改善
- BUG [BC] バクアップからのレストア時にバックアップのテーブルが存在しない場合にエラーとなる問題を改善
- BUG [BC] fix #2900 コンテンツ管理のルートフォルダの名称が変更できない問題を改善
- BUG [BG] ブログ記事一覧ページで非公開の記事でも「目」のマークが押せる問題を解決
- BUG [BG] ブログタグとリクエスト生成に関する不具合を調整
- BUG [BG] #3014 コメント投稿時、必須項目を入力しなくてもエラーが表示されない問題を改善
- BUG [BG] fix #3004 記事の一括削除を行った際にアイキャッチが削除されない問題を改善
- BUG [BG] fix #2991 baserCMS 5系 blogPosts()でカテゴリの指定を行うとエラーになる問題を解決
- BUG [BG] ブログプラグインインストール時にエラーが表示される不具合を改善
- BUG [BG] ブログ記事のバリデーションの不具合を改善
- BUG [ML] fix #3000 メールメッセージや、カスタムエントリーのバックアップができない問題を改善
- BUG [ML] fix #2944 テーマ初期値を読み込むとメールフィールドのフィールド名がエラーで編集できなくなる場合がある問題を改善
- BUG [ML] フォームのファイルフィールドの問題を修正
- BUG [UL] fix #2970 許可されていない形式のファイルをアップロードしようとするとローディングが終わらない問題を改善
- BUG [UL] fix #2954 アップローダープラグイン設定:数字以外の文字&マイナスが登録できてしまう問題を改善

[2023-11-30] basercms-5.0.7
- BUG [BC] #2826 BcMailerをコマンドから実行した際にエラーになる問題を改善
- BUG [BC] #2894 コンテンツの作成者・作成日・更新日の変更ができない問題の改善
Expand Down Expand Up @@ -2416,7 +2455,7 @@ BUG: [ML] メールフォームをSSL で利用する場合、メールフォー
-NEW: [BG] ブログコメントに画象認証機能を追加しました。ブログコンテンツ設定画面で利用設定ができます。(PC のみ)
-NEW: [BG] ブログ記事一覧に表示件数設定機能を追加しました。
-NEW: [BG] 各ブログごとにRSSフィードの出力件数を指定できるようにしました。
-NEW: [BG] ブログの記事一覧の表示件数と並び替えの方向を指定できる機能を実装しました。 fixes #1003 fixes #1004
-NEW: [BG] ブログの記事一覧の表示件数と並び替えの方向を指定できる機能を実装しました。 fixes #1003 fixes#1004
-CHG: [BC] 起動時、tmpフォルダをチェックし、なければ作成するようにしました。
これにより、環境移行の際は、tmp フォルダ内のファイルは全て削除できるようになります。
-CHG: [BC] BaserHelperをプラグインサイドから拡張するPluginBaserの仕組みを実装しました。
Expand Down
5 changes: 3 additions & 2 deletions plugins/baser-core/src/BcPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,11 @@ public function execUpdater()
* @noTodo
* @unitTest
*/
public function createAssetsSymlink(): void
public function createAssetsSymlink(): bool
{
$command = ROOT . DS . 'bin' . DS . 'cake plugin assets symlink';
exec($command);
exec($command, $out, $code);
return ($code === 0);
}

/**
Expand Down
17 changes: 17 additions & 0 deletions plugins/baser-core/src/Controller/Admin/UtilitiesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use BaserCore\Annotation\UnitTest;
use BaserCore\Annotation\NoTodo;
use BaserCore\Annotation\Checked;
use BaserCore\BcPlugin;

/**
* Class UtilitiesController
Expand Down Expand Up @@ -52,6 +53,22 @@ public function clear_cache()
$this->redirect($this->referer());
}

/**
* テーマへのシンボリックリンクを再作成
* @checked
* @unitTest
* @noTodo
*/
public function assets_symlink()
{
if ((new BcPlugin())->createAssetsSymlink()) {
$this->BcMessage->setInfo(__d('baser_core', 'プラグインアセットのシンボリックリンクを作成しました。'));
} else {
$this->BcMessage->setError(__d('baser_core', 'プラグインアセットのシンボリックリンクの作成に失敗しました。'), true);
}
$this->redirect(['action' => 'index']);
}

/**
* ユーティリティトップ
* @checked
Expand Down
2 changes: 2 additions & 0 deletions plugins/bc-admin-third/src/js/admin/_lib/jquery.bcToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@
debug: (debug.length) ? debug : null
}
}
// key を null にしておくことで、トークンを再取得時の loading が表示されるようになる
$.bcToken.key = null;
$.bcToken.submitToken(url, options);
return false;
});
Expand Down
18 changes: 18 additions & 0 deletions plugins/bc-admin-third/templates/Admin/Utilities/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,24 @@
['class' => 'bca-btn', 'confirm' => __d('baser_core', 'コンテンツ管理のツリー構造をリセットします。本当によろしいですか?')]
) ?>
</div>

<div class="section bca-main__section">
<h2 class="bca-main__heading" data-bca-heading-size="lg"><?php echo __d('baser_core', 'アセットファイル') ?></h2>
<p class="bca-main__text">
<?php echo __d('baser_core', 'テーマ・プラグインのアセットファイルへのシンボリックリンクを再作成します。別環境への移設などで、テーマやプラグインの画像、CSS、Javascriptへのリンク切れが発生した際に利用します。') ?>
</p>
<?php echo $this->BcAdminForm->postLink(__d('baser_core', 'シンボリックリンクを再作成する'),
[
'controller' => 'utilities',
'action' => 'assets_symlink'
],
[
'class' => 'bca-submit-token bca-btn',
'data-bca-btn-type' => 'clear',
'confirm' => __d('baser_core', 'テーマ・プラグインへのシンボリックリンクを再作成します。本当によろしいですか?')
]) ?>
</div>

<?php echo $this->BcAdminForm->secure() ?>
<div class="section bca-main__section">
<h2 class="bca-main__heading" data-bca-heading-size="lg"><?php echo __d('baser_core', 'スペシャルサンクスクレジット') ?></h2>
Expand Down
6 changes: 3 additions & 3 deletions plugins/bc-admin-third/templates/Admin/layout/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

<div id="Page" class="bca-app">

<?php $this->BcBaser->element('header') ?>
<?php $this->BcBaser->header() ?>

<div id="Wrap" class="bca-container">

Expand Down Expand Up @@ -148,7 +148,7 @@
</div>

<div class="bca-main__contents clearfix">
<?= $this->fetch('content') ?>
<?php $this->BcBaser->content() ?>
</div>

<!-- / bca-main__body --></article>
Expand All @@ -157,7 +157,7 @@

<!-- / #Wrap --></div>

<?php $this->BcBaser->element('footer') ?>
<?php $this->BcBaser->footer() ?>

<!-- / #Page --></div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<?php echo $this->BcAdminForm->postLink(__d('baser_core', '検索インデックス再構築'),
['controller' => 'search_indexes', 'action' => 'reconstruct'],
['confirm' => __d('baser_core', '現在の検索インデックスを消去して、再構築します。本当にいいですか?'),
'class' => 'bca-btn bca-actions__item bca-loading',
'class' => 'bca-btn bca-actions__item',
'data-bca-btn-size' => 'lg',
'data-bca-btn-width' => 'lg']
) ?>
Expand Down
2 changes: 1 addition & 1 deletion plugins/bc-admin-third/webroot/js/admin/common.bundle.js

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

0 comments on commit 50e4d2c

Please sign in to comment.