Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .claude/skills/basercms-core-plugin-convert/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ docker compose exec <container> sh -c "cd /var/www/html && vendor/bin/monorepo-b
- `autoload-dev.psr-4` に `"BcMcp\\Test\\": "plugins/bc-mcp/tests/"`
- `require` にプラグインの外部依存(`league/oauth2-server` 等、`ext-*` 含む)
- `replace` に `"baserproject/bc-mcp": "<monorepo版>"`(他コアに合わせる)
- 反映後、依存取得とオートロード再生成:
- **外部依存(`require`)を追加した場合のみ**、依存取得のため composer を回す:
```bash
docker compose exec <container> sh -c "cd /var/www/html && composer update <added-packages> --no-interaction"
```
- ⚠️ **`composer dump-autoload` は不要**(クラスを読ませる目的では回さない)。baserCMS はプラグイン機構(`BcPlugin` / CakePHP のプラグインロードが各プラグインの composer.json の psr-4 を解決)でクラスを認識・ロードするため、ルート autoloader の再生成に依存しない。**管理画面でプラグインを有効化**すれば読み込まれる。ルート `composer.json` の `autoload`/`replace` への登録は monorepo 管理・split 用のメタ情報として行う(コミット対象)。外部 `require` を足したときだけ上記の `composer update` で vendor を取得する。

### 5-4. `phpdoc.dist.xml` に `src` パスを追加
```xml
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/split_monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
split_repository: 'bc-admin-third'
- local_path: 'bc-blog'
split_repository: 'bc-blog'
- local_path: 'bc-burger-editor'
split_repository: 'bc-burger-editor'
- local_path: 'bc-content-link'
split_repository: 'bc-content-link'
- local_path: 'bc-custom-content'
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ yarn-error.log
!/plugins/cakephp-soft-delete
!/plugins/BcColumn
!/plugins/bc-seo
!/plugins/bc-burger-editor
/plugins/*/vendor
/plugins/*/composer.lock
/profile/*
Expand Down Expand Up @@ -119,6 +120,7 @@ node_modules
/webroot/bc_theme_sample
/webroot/bc_installer
/webroot/bc_custom_content
/webroot/bc_burger_editor
/webroot/bc_spa_sample
/webroot/debug_kit
/webroot/.gitignore
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"BaserCore\\": "plugins/baser-core/src",
"BcAdminThird\\": "plugins/bc-admin-third/src",
"BcBlog\\": "plugins/bc-blog/src/",
"BcBurgerEditor\\": "plugins/bc-burger-editor/src/",
"BcColumn\\": "plugins/BcColumn/src/",
"BcContentLink\\": "plugins/bc-content-link/src/",
"BcCustomContent\\": "plugins/bc-custom-content/src/",
Expand All @@ -63,6 +64,7 @@
"psr-4": {
"BaserCore\\Test\\": "plugins/baser-core/tests/",
"BcBlog\\Test\\": "plugins/bc-blog/tests/",
"BcBurgerEditor\\Test\\": "plugins/bc-burger-editor/tests/",
"BcContentLink\\Test\\": "plugins/bc-content-link/tests/",
"BcCustomContent\\Test\\": "plugins/bc-custom-content/tests/",
"BcEditorTemplate\\Test\\": "plugins/bc-editor-template/tests/",
Expand Down Expand Up @@ -119,6 +121,7 @@
"baserproject/baser-core": "5.2.4",
"baserproject/bc-admin-third": "5.2.4",
"baserproject/bc-blog": "5.2.4",
"baserproject/bc-burger-editor": "5.2.4",
"baserproject/bc-column": "5.2.4",
"baserproject/bc-content-link": "5.2.4",
"baserproject/bc-custom-content": "5.2.4",
Expand Down
1 change: 1 addition & 0 deletions phpdoc.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<path>plugins/baser-core/src</path>
<path>plugins/bc-admin-third/src</path>
<path>plugins/bc-blog/src</path>
<path>plugins/bc-burger-editor/src</path>
<path>plugins/bc-content-link/src</path>
<path>plugins/bc-custom-content/src</path>
<path>plugins/bc-editor-template/src</path>
Expand Down
3 changes: 3 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
<testsuite name="BcWidgetArea">
<directory>plugins/bc-widget-area/tests/TestCase</directory>
</testsuite>
<testsuite name="BcBurgerEditor">
<directory>plugins/bc-burger-editor/tests/TestCase</directory>
</testsuite>
</testsuites>

<!-- Load extension for fixtures -->
Expand Down
2 changes: 2 additions & 0 deletions plugins/baser-core/config/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
'BcThemeFile',
'BcUploader',
'BcWidgetArea',
'BcBurgerEditor',
],
'defaultInstallCorePlugins' => [
'BcSearchIndex',
Expand All @@ -285,6 +286,7 @@
'BcThemeConfig',
'BcWidgetArea',
'BcUploader',
'BcBurgerEditor',
],

/**
Expand Down
1 change: 1 addition & 0 deletions plugins/bc-burger-editor/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
6 changes: 6 additions & 0 deletions plugins/bc-burger-editor/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nodeLinker: node-modules
npmRegistryServer: 'https://registry.npmjs.org'
enableGlobalCache: true
enableScripts: false
npmMinimalAgeGate: 7d
defaultSemverRangePrefix: ''
13 changes: 13 additions & 0 deletions plugins/bc-burger-editor/Addon/block/button/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* baserCMS : Based Website Development Project <https://basercms.net>
* Copyright (c) NPO baser foundation <https://baserfoundation.org/>
*
* @copyright Copyright (c) NPO baser foundation
* @link https://basercms.net baserCMS Project
* @since 5.1.0
* @license https://basercms.net/license/index.html MIT License
*/
?>
<?php $this->BurgerEditor->type('button') ?>

1 change: 1 addition & 0 deletions plugins/bc-burger-editor/Addon/block/button/panel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions plugins/bc-burger-editor/Addon/block/button2/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* baserCMS : Based Website Development Project <https://basercms.net>
* Copyright (c) NPO baser foundation <https://baserfoundation.org/>
*
* @copyright Copyright (c) NPO baser foundation
* @link https://basercms.net baserCMS Project
* @since 5.1.0
* @license https://basercms.net/license/index.html MIT License
*/
?>
<div class="bgt-grid bgt-grid--first">
<?php $this->BurgerEditor->type('button') ?>
</div>
<div class="bgt-grid bgt-grid--last">
<?php $this->BurgerEditor->type('button') ?>
</div>
1 change: 1 addition & 0 deletions plugins/bc-burger-editor/Addon/block/button2/panel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions plugins/bc-burger-editor/Addon/block/button3/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* baserCMS : Based Website Development Project <https://basercms.net>
* Copyright (c) NPO baser foundation <https://baserfoundation.org/>
*
* @copyright Copyright (c) NPO baser foundation
* @link https://basercms.net baserCMS Project
* @since 5.1.0
* @license https://basercms.net/license/index.html MIT License
*/
?>
<div class="bgt-grid bgt-grid--first">
<?php $this->BurgerEditor->type('button') ?>
</div>
<div class="bgt-grid">
<?php $this->BurgerEditor->type('button') ?>
</div>
<div class="bgt-grid bgt-grid--last">
<?php $this->BurgerEditor->type('button') ?>
</div>
1 change: 1 addition & 0 deletions plugins/bc-burger-editor/Addon/block/button3/panel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions plugins/bc-burger-editor/Addon/block/category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php
/**
* 利用するブロックを指定しない場合は全てのブロックが利用出来ます。
*
* カテゴリを指定する場合は以下に追加
* ex)
* array(
* 'カテゴリ1' => array('BlockName1', 'BlockName2'),
* 'カテゴリ2' => array('BlockName3', 'BlockName4'),
* );
*/
$bgCategory = [
'見出し / テキスト / テキスト+画像' => [
'title' => '大見出し',
'title2' => '中見出し',
'wysiwyg' => '1カラムテキスト',
'wysiwyg2' => '2カラムテキスト',
'text-float-image1' => '画像右寄せ<small>テキスト回り込み</small>',
'text-float-image2' => '画像左寄せ<small>テキスト回り込み</small>',
'text-image1' => '画像右寄せ<small>テキスト回り込み無し</small>',
'text-image2' => '画像左寄せ<small>テキスト回り込み無し</small>',
],
'画像' => [
'image1' => '画像1列',
'image2' => '画像2列',
'image3' => '画像3列',
'image4' => '画像4列',
'image5' => '画像5列',
'trimmed-image2' => 'トリミング画像2列',
'trimmed-image3' => 'トリミング画像3列',
'trimmed-image4' => 'トリミング画像4列',
'trimmed-image5' => 'トリミング画像5列',
'image-link1' => '画像1列<small>リンク付</small>',
'image-link2' => '画像2列<small>リンク付</small>',
'image-link3' => '画像3列<small>リンク付</small>',
'image-link4' => '画像4列<small>リンク付</small>',
'image-link5' => '画像5列<small>リンク付</small>',
'trimmed-image-link2' => 'トリミング画像2列<small>リンク付</small>',
'trimmed-image-link3' => 'トリミング画像3列<small>リンク付</small>',
'trimmed-image-link4' => 'トリミング画像4列<small>リンク付</small>',
'trimmed-image-link5' => 'トリミング画像5列<small>リンク付</small>',
],
'画像+テキスト' => [
'image-text2' => '画像2列<small>テキスト付</small>',
'image-text3' => '画像3列<small>テキスト付</small>',
'image-text4' => '画像4列<small>テキスト付</small>',
'image-text5' => '画像5列<small>テキスト付</small>',
'image-link-text2' => '画像2列<small>リンク・テキスト付</small>',
'image-link-text3' => '画像3列<small>リンク・テキスト付</small>',
'image-link-text4' => '画像4列<small>リンク・テキスト付</small>',
'image-link-text5' => '画像5列<small>リンク・テキスト付</small>',
],
'ボタン' => [
'button' => 'ボタン',
'button2' => 'ボタン x2',
'button3' => 'ボタン x3',
'download-file' => 'ファイル<br>ダウンロード',
'download-file2' => 'ファイル<br>ダウンロード x2',
'download-file3' => 'ファイル<br>ダウンロード x3',
],
'その他' => [
'table' => '2カラムテーブル',
'gallery' => 'ギャラリー',
'text-gallery1' => 'ギャラリー<small>+テキスト(左)</small>',
'text-gallery2' => 'ギャラリー<small>+テキスト(右)</small>',
'google-maps' => 'GoogleMaps',
'youtube' => 'YouTube',
'embed' => '埋め込みタグ<small>script / form</small>',
'hr' => '区切り線'
]
];
12 changes: 12 additions & 0 deletions plugins/bc-burger-editor/Addon/block/download-file/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* baserCMS : Based Website Development Project <https://basercms.net>
* Copyright (c) NPO baser foundation <https://baserfoundation.org/>
*
* @copyright Copyright (c) NPO baser foundation
* @link https://basercms.net baserCMS Project
* @since 5.1.0
* @license https://basercms.net/license/index.html MIT License
*/
?>
<?php $this->BurgerEditor->type('download-file') ?>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading