Closed ju-ki closed 2 weeks ago
このプルリクエストでは、画像のアップロード機能に関連する複数の変更が行われました。ImageController
とImageService
のupload
メソッドのレスポンス処理が更新され、成功時にはアップロードされたファイルのURLを返すようになりました。また、フロントエンドでは、画像の選択とアップロードを非同期で処理する機能が追加され、テストもそれに合わせて修正されています。
ファイル | 変更概要 |
---|---|
backend/app/Http/Controllers/API/ImageController.php |
upload メソッドのレスポンスを更新し、成功時にアップロードされた内容をJSONで返すように変更。 |
backend/app/Services/ImageService.php |
upload メソッドの戻り値の型をboolean からstring に変更し、ファイルのURLを返すように修正。 |
backend/tests/Unit/ImageTest.php |
test_upload_image メソッドのアサーションを更新し、アップロードされたファイルパスを確認するように変更。 |
frontend/.gitignore |
.env ファイルをGitの追跡から除外するエントリを追加。 |
frontend/next.config.mjs |
nextConfig オブジェクトにimages プロパティを追加し、localhost を画像のドメインとして設定。 |
frontend/src/plugins/ImagePlugin/index.tsx |
ImageItem コンポーネントに画像アップロード機能を追加し、Axiosを使用して非同期で画像をアップロード。 |
frontend/src/plugins/nodes/ImageNode/index.tsx |
SerializedImageNode 型のtype プロパティを一般的なstring に変更し、JSONのインポートとエクスポートメソッドを追加。 |
ImageController
クラスのupload
メソッドに関する変更が、このPRと直接関連しており、画像アップロード用のAPIエンドポイントを導入し、その機能をテストしています。うさぎの詩
画像が空を舞い、
新しい道を開く、
アップロードの風、
嬉しい瞬間、
みんなでシェアしよう、
うさぎも笑顔で。 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
This PR is automatically created by GitHub Actions
Summary by CodeRabbit
.gitignore
に.env
ファイルを追加し、Gitによる追跡を防ぎます。