Skip to content

Commit

Permalink
v0.7.1 (#74)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency supabase to v2

* Develop (#51)

* ci: 🎡 nextのバージョンを15に戻す

* fix: 🐛 cache関連の記述 削除

* refactor: 💡 関数名を内容にあうように修正

* feat: 🎸 各ユーザのページをnext buildにてビルドするように

* ci: 🎡 各種パッケージ更新

* ci: 🎡 push時にビルドチェックを走らせるのを辞める

* refactor: 💡 不要な記述を削除

* feat: 🎸 ユーザのページをrevalidate出来るように

* ServerActionとして動いていないバグを修正

* Develop (#54)

* ci: 🎡 nextのバージョンを15に戻す

* fix: 🐛 cache関連の記述 削除

* refactor: 💡 関数名を内容にあうように修正

* feat: 🎸 各ユーザのページをnext buildにてビルドするように

* ci: 🎡 各種パッケージ更新

* ci: 🎡 push時にビルドチェックを走らせるのを辞める

* refactor: 💡 不要な記述を削除

* feat: 🎸 ユーザのページをrevalidate出来るように

* ServerActionとして動いていないバグを修正

* fix: 🐛 時差が発生するのを修正 (#52)

* Feature/online (#53)

* fix: 🐛 時差が発生するのを修正

* fix: 🐛 時差バグ 再修正

* refactor: 💡 300秒キャッシュ

* fix: 🐛 時差バグ 本当の本当になおった

* refactor: 💡 不要なimportを削除

* ci: 🎡 事前ビルド対象を直近30日内にプレイのあったユーザに限定

* chore: 🤖 キャッシュ時間設定

* chore: 🤖 キーワード・ページ名・キャッシュ時間を指定

✅ Closes: #33

* v0.6.0

* chore(deps): update dependency eslint to v9

* chore(deps): update dependency eslint-config-prettier to v10

* chore(deps): update dependency @types/node to v22

* chore(deps): update dependency sass to v1.85.1 (#64)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency supabase to v2.15.8 (#65)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency react-toastify to v11.0.5 (#62)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update typescript-eslint monorepo to v8.25.0 (#63)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Merge/release (#67)

* fix(deps): update dependency supabase to v2

* Develop (#51)

* ci: 🎡 nextのバージョンを15に戻す

* fix: 🐛 cache関連の記述 削除

* refactor: 💡 関数名を内容にあうように修正

* feat: 🎸 各ユーザのページをnext buildにてビルドするように

* ci: 🎡 各種パッケージ更新

* ci: 🎡 push時にビルドチェックを走らせるのを辞める

* refactor: 💡 不要な記述を削除

* feat: 🎸 ユーザのページをrevalidate出来るように

* ServerActionとして動いていないバグを修正

* Develop (#54)

* ci: 🎡 nextのバージョンを15に戻す

* fix: 🐛 cache関連の記述 削除

* refactor: 💡 関数名を内容にあうように修正

* feat: 🎸 各ユーザのページをnext buildにてビルドするように

* ci: 🎡 各種パッケージ更新

* ci: 🎡 push時にビルドチェックを走らせるのを辞める

* refactor: 💡 不要な記述を削除

* feat: 🎸 ユーザのページをrevalidate出来るように

* ServerActionとして動いていないバグを修正

* fix: 🐛 時差が発生するのを修正 (#52)

* Feature/online (#53)

* fix: 🐛 時差が発生するのを修正

* fix: 🐛 時差バグ 再修正

* refactor: 💡 300秒キャッシュ

* fix: 🐛 時差バグ 本当の本当になおった

* refactor: 💡 不要なimportを削除

* ci: 🎡 事前ビルド対象を直近30日内にプレイのあったユーザに限定

* chore: 🤖 キャッシュ時間設定

* chore: 🤖 キーワード・ページ名・キャッシュ時間を指定

✅ Closes: #33

* v0.6.0

* chore(deps): update dependency eslint to v9

* chore(deps): update dependency eslint-config-prettier to v10

* chore(deps): update dependency @types/node to v22

* Hotfix/invalid multibytes tags (#58)

* fix: 🐛 Revalidateでマルチバイト文字を指定してはいけない

* fix: 🐛 各種パラメータがundefinedになるのを修正

* v0.6.1

* Hotfix/sns image (#59)

* chore: 🤖 metadataBaseをexport

* refactor: 💡 不要なコードを削除

* v0.6.2

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: 🎸 player/id/[id]を実装 (#68)

* feat: 🎸 player/id/[id]を実装

ユーザ名のページにアクセスしたらIDのページに転送

* feat: 🎸 更新したらリロードさせる

* fix: 🐛 ステージの表示名を修正

* feat: 🎸 オンラインページを更新

* ci: 🎡 パッケージの更新

* Update package.json (#71)

* perf: ⚡️ supabaseのキャッシュは辞める

* chore: 🤖 eslintの設定移行

* fix: 🐛 不要なコードを削除

* v0.7.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
sweshelo and renovate[bot] authored Feb 28, 2025
1 parent 92aca5b commit 840874b
Show file tree
Hide file tree
Showing 10 changed files with 211 additions and 38 deletions.
52 changes: 52 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import _import from "eslint-plugin-import";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...fixupConfigRules(compat.extends(
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
)), {
plugins: {
"@typescript-eslint": fixupPluginRules(typescriptEslint),
import: fixupPluginRules(_import),
},

rules: {
"import/order": ["error", {
groups: [
"builtin",
"external",
"internal",
["parent", "sibling"],
"index",
"object",
"type",
],

"newlines-between": "always",

alphabetize: {
order: "asc",
caseInsensitive: true,
},
}],

"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
},
}];
148 changes: 138 additions & 10 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medusa",
"version": "0.7.0",
"version": "0.7.1",
"private": true,
"scripts": {
"dev": "next dev --turbo",
Expand Down Expand Up @@ -34,6 +34,7 @@
"supabase": "^2.0.0"
},
"devDependencies": {
"@eslint/compat": "^1.2.7",
"@types/node": "^22.0.0",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
2 changes: 1 addition & 1 deletion src/service/supabase/achievement.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { supabase } from './client'

export const fetchAchievement = async (name: string) => {
const { data: achievement, error } = await supabase(['misc'])
const { data: achievement, error } = await supabase
.from('achievement')
.select('*')
.eq('title', name)
Expand Down
15 changes: 4 additions & 11 deletions src/service/supabase/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ import { createClient } from '@supabase/supabase-js'

import { Database } from '@/types/database.types'

export const supabase = (tags: string[]) =>
createClient<Database>(process.env.SUPABASE_URL!, process.env.SUPABASE_API_KEY!, {
global: {
fetch: (input: RequestInfo | URL, init: RequestInit = {}) =>
fetch(input, {
...init,
cache: 'force-cache',
next: { tags, revalidate: 60 * 60 * 24 },
}),
},
})
export const supabase = createClient<Database>(
process.env.SUPABASE_URL!,
process.env.SUPABASE_API_KEY!
)
4 changes: 2 additions & 2 deletions src/service/supabase/deviation-ranking.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { supabase } from './client'

export const fetchDeviationRanking = async () => {
const { data: players, error: playerError } = await supabase(['ranking'])
const { data: players, error: playerError } = await supabase
.from('player')
.select('*')
.gt('deviation_value', 50)
Expand All @@ -14,7 +14,7 @@ export const fetchDeviationRanking = async () => {
// 各プレイヤーに対して最新の record を取得する
const playersWithRecord = await Promise.all(
(players ?? []).map(async player => {
const { data: records, error: recordError } = await supabase(['ranking'])
const { data: records, error: recordError } = await supabase
.from('record')
.select('*')
.eq('player_name', player.name)
Expand Down
2 changes: 1 addition & 1 deletion src/service/supabase/latest-records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const fetchLatestRecords = async (players: string[]) => {
// 各プレイヤーに対して最新の record を取得する
const records = await Promise.all(
(players ?? []).map(async player => {
const { data: records, error: recordError } = await supabase(['ranking'])
const { data: records, error: recordError } = await supabase
.from('record')
.select('*')
.eq('player_name', player)
Expand Down
2 changes: 1 addition & 1 deletion src/service/supabase/online.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { sub } from 'date-fns'
import { supabase } from './client'

export const fetchOnlinePlayers = async () => {
const { data, error } = await supabase(['online'])
const { data, error } = await supabase
.from('record')
.select('player_name, chara, recorded_at')
.order('recorded_at', { ascending: false })
Expand Down
Loading

0 comments on commit 840874b

Please sign in to comment.