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
2 changes: 1 addition & 1 deletion .github/workflows/create_heroku_review_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
create-review-app:
runs-on: ubuntu-latest
steps:
- uses: fastruby/manage-heroku-review-app@9fa49f0320460f278c3687bc348dd0cbb18555dc # v1.3
- uses: kqito/manage-heroku-review-app@55e434ad5ac86f21cf2f7654de1566973fbc7046
with:
action: create
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/destroy_heroku_review_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
destroy-review-app:
runs-on: ubuntu-latest
steps:
- uses: fastruby/manage-heroku-review-app@9fa49f0320460f278c3687bc348dd0cbb18555dc # v1.3
- uses: kqito/manage-heroku-review-app@55e434ad5ac86f21cf2f7654de1566973fbc7046
with:
action: destroy
env:
Expand Down
37 changes: 37 additions & 0 deletions optimize-images.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const sharp = require('sharp');
const fs = require('fs');
const path = require('path');

const inputDir = 'public/images';
const outputDir = 'public/images/optimized';

// 出力ディレクトリが存在しない場合は作成
if (!fs.existsSync(outputDir)) {
fs.mkdirSync(outputDir, { recursive: true });
}

// 画像ファイルを処理
fs.readdirSync(inputDir)
.filter(file => file.endsWith('.jpeg'))
.forEach(async (file) => {
const inputPath = path.join(inputDir, file);
const outputPath = path.join(outputDir, file.replace('.jpeg', '.avif'));

try {
await sharp(inputPath)
.avif({
quality: 60, // AVIF品質を60%に設定
effort: 6, // 圧縮の努力レベル(0-8、高いほど圧縮率が高くなる)
chromaSubsampling: '4:4:4', // 色の品質を維持
})
.toFile(outputPath);

const originalSize = fs.statSync(inputPath).size;
const optimizedSize = fs.statSync(outputPath).size;
const reduction = ((originalSize - optimizedSize) / originalSize * 100).toFixed(2);

console.log(`${file}: ${(originalSize / 1024).toFixed(2)}KB → ${(optimizedSize / 1024).toFixed(2)}KB (${reduction}% 削減)`);
} catch (error) {
console.error(`Error processing ${file}:`, error);
}
});
Binary file added public/images/001.avif
Binary file not shown.
Binary file added public/images/002.avif
Binary file not shown.
Binary file added public/images/003.avif
Binary file not shown.
Binary file added public/images/004.avif
Binary file not shown.
Binary file added public/images/005.avif
Binary file not shown.
Binary file added public/images/006.avif
Binary file not shown.
Binary file added public/images/007.avif
Binary file not shown.
Binary file added public/images/008.avif
Binary file not shown.
Binary file added public/images/009.avif
Binary file not shown.
Binary file added public/images/010.avif
Binary file not shown.
Binary file added public/images/011.avif
Binary file not shown.
Binary file added public/images/012.avif
Binary file not shown.
Binary file added public/images/013.avif
Binary file not shown.
Binary file added public/images/014.avif
Binary file not shown.
Binary file added public/images/015.avif
Binary file not shown.
Binary file added public/images/016.avif
Binary file not shown.
Binary file added public/images/017.avif
Binary file not shown.
Binary file added public/images/018.avif
Binary file not shown.
Binary file added public/images/019.avif
Binary file not shown.
Binary file added public/images/020.avif
Binary file not shown.
Binary file added public/images/021.avif
Binary file not shown.
Binary file added public/images/022.avif
Binary file not shown.
Binary file added public/images/023.avif
Binary file not shown.
Binary file added public/images/024.avif
Binary file not shown.
Binary file added public/images/025.avif
Binary file not shown.
Binary file added public/images/026.avif
Binary file not shown.
Binary file added public/images/027.avif
Binary file not shown.
Binary file added public/images/028.avif
Binary file not shown.
Binary file added public/images/029.avif
Binary file not shown.
Binary file added public/images/030.avif
Binary file not shown.
Binary file added public/images/031.avif
Binary file not shown.
Binary file added public/images/032.avif
Binary file not shown.
Binary file added public/images/033.avif
Binary file not shown.
Binary file added public/images/034.avif
Binary file not shown.
Binary file added public/images/035.avif
Binary file not shown.
Binary file added public/images/036.avif
Binary file not shown.
Binary file added public/images/037.avif
Binary file not shown.
12 changes: 6 additions & 6 deletions workspaces/client/src/app/createRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function createRoutes(store: ReturnType<typeof createStore>): RouteObject
async lazy() {
const { HomePage, prefetch } = await lazy(
import('@wsh-2025/client/src/pages/home/components/HomePage'),
1000,
500,
);
return {
Component: HomePage,
Expand All @@ -27,7 +27,7 @@ export function createRoutes(store: ReturnType<typeof createStore>): RouteObject
async lazy() {
const { EpisodePage, prefetch } = await lazy(
import('@wsh-2025/client/src/pages/episode/components/EpisodePage'),
1000,
500,
);
return {
Component: EpisodePage,
Expand All @@ -42,7 +42,7 @@ export function createRoutes(store: ReturnType<typeof createStore>): RouteObject
async lazy() {
const { prefetch, ProgramPage } = await lazy(
import('@wsh-2025/client/src/pages/program/components/ProgramPage'),
1000,
500,
);
return {
Component: ProgramPage,
Expand All @@ -57,7 +57,7 @@ export function createRoutes(store: ReturnType<typeof createStore>): RouteObject
async lazy() {
const { prefetch, SeriesPage } = await lazy(
import('@wsh-2025/client/src/pages/series/components/SeriesPage'),
1000,
500,
);
return {
Component: SeriesPage,
Expand All @@ -72,7 +72,7 @@ export function createRoutes(store: ReturnType<typeof createStore>): RouteObject
async lazy() {
const { prefetch, TimetablePage } = await lazy(
import('@wsh-2025/client/src/pages/timetable/components/TimetablePage'),
1000,
500,
);
return {
Component: TimetablePage,
Expand All @@ -87,7 +87,7 @@ export function createRoutes(store: ReturnType<typeof createStore>): RouteObject
async lazy() {
const { NotFoundPage, prefetch } = await lazy(
import('@wsh-2025/client/src/pages/not_found/components/NotFoundPage'),
1000,
500,
);
return {
Component: NotFoundPage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const batcher = batshit.create({
return item;
},
scheduler: batshit.windowedFiniteBatchScheduler({
maxBatchSize: 100,
windowMs: 1000,
maxBatchSize: 10,
windowMs: 100,
}),
});

Expand Down
Binary file modified workspaces/server/database.sqlite
Binary file not shown.