Skip to content

Commit 39f63a9

Browse files
authored
Merge pull request #15 from ren807/develop
issue12~13
2 parents 2c0b00a + 0a1d7b0 commit 39f63a9

File tree

15 files changed

+1430
-25746
lines changed

15 files changed

+1430
-25746
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ ENV COMPOSER_ALLOW_SUPERUSER 1
2121
RUN apk update && apk add --no-cache bash curl
2222

2323
# Node.jsのインストール (バイナリ版)
24-
RUN curl -fsSL https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz -o /tmp/node-v16.20.2-linux-x64.tar.xz && \
25-
tar -xJf /tmp/node-v16.20.2-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
26-
rm /tmp/node-v16.20.2-linux-x64.tar.xz
24+
RUN curl -fsSL https://nodejs.org/dist/v22.14.0/node-v22.14.0-linux-x64.tar.xz -o /tmp/node-v22.14.0-linux-x64.tar.xz && \
25+
tar -xJf /tmp/node-v22.14.0-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
26+
rm /tmp/node-v22.14.0-linux-x64.tar.xz
2727

2828
# Node.jsのバイナリがパスに含まれていることを確認
2929
ENV PATH=/usr/local/bin:$PATH

package-lock.json

Lines changed: 1386 additions & 25623 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,17 @@
11
{
22
"private": true,
33
"scripts": {
4-
"dev": "npm run development",
5-
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
6-
"watch": "npm run development -- --watch",
7-
"watch-poll": "npm run watch -- --watch-poll",
8-
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
9-
"prod": "npm run production",
10-
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
4+
"dev": "vite",
5+
"build": "vite build"
116
},
127
"devDependencies": {
13-
"axios": "^0.21",
14-
"bootstrap": "^4.1.0",
15-
"cross-env": "^5.1",
16-
"jquery": "^3.2",
17-
"laravel-mix": "^5.0.0",
18-
"lodash": "^4.17.19",
19-
"popper.js": "^1.12",
20-
"resolve-url-loader": "^3.1.2",
21-
"sass": "^1.15.2",
22-
"sass-loader": "^7.1.0",
23-
"vue": "^2.5.17",
24-
"vue-template-compiler": "^2.7.16"
25-
},
26-
"resolutions": {
27-
"laravel-mix/webpack/terser-webpack-plugin/cacache/ssri": "^6.0.2"
8+
"@vitejs/plugin-react": "^4.3.4",
9+
"axios": "^1.8.4",
10+
"laravel-vite-plugin": "^1.2.0",
11+
"vite": "^6.2.3"
2812
},
2913
"dependencies": {
30-
"slick-carousel": "^1.8.1"
14+
"react": "^19.0.0",
15+
"react-dom": "^19.0.0"
3116
}
3217
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

public/build/manifest.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"resources/css/app.css": {
3+
"file": "assets/app-DP2rzg_V.js",
4+
"name": "app",
5+
"src": "resources/css/app.css",
6+
"isEntry": true
7+
},
8+
"resources/js/app.js": {
9+
"file": "assets/app-l0sNRNKZ.js",
10+
"name": "app",
11+
"src": "resources/js/app.js",
12+
"isEntry": true
13+
}
14+
}

resources/css/app.css

Whitespace-only changes.

resources/js/app.js

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +0,0 @@
1-
require('./bootstrap');
2-
3-
import $ from 'jquery'
4-
import 'slick-carousel';
5-
6-
$(function() {
7-
let slideCount = $('.slick-slider div').length;
8-
9-
$('.slick-slider').slick({
10-
autoplay: true,
11-
autoplaySpeed: 3000,
12-
dots: slideCount > 1,
13-
arrows: true,
14-
infinite: slideCount > 1,
15-
slidesToShow: 1,
16-
slidesToScroll: 1,
17-
});
18-
19-
// ラジオボタンが変更されたときのイベントリスナー
20-
$('.stars input[type="radio"]').on('change', function() {
21-
22-
// 選択されたラジオボタンの値をコンソールに表示
23-
console.log("選択された評価: " + $(this).val());
24-
25-
let rating = $(this).val();
26-
let postId = $('.stars input[type="hidden"]').val();
27-
28-
$.ajax({
29-
url: "/ajax/eval",
30-
method: "POST",
31-
data: {rating : rating, postId : postId},
32-
dataType: "json",
33-
headers: {
34-
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
35-
}
36-
}).done(function(res) {
37-
console.log('登録 or 更新に成功しました');
38-
console.log(res);
39-
}).fail(function() {
40-
alert('通信を失敗しました');
41-
});
42-
});
43-
});

resources/sass/_variables.scss

Lines changed: 0 additions & 19 deletions
This file was deleted.

resources/sass/app.scss

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)