-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade packages to their latest versions (#92)
* Update Node.js to the latest LTS version * Upgrade next-intl package to the latest version * Upgrade package to latest version * Update TS config * Update ESLint config * Upgrade new params type * Upgrade MUI to latest version * Update next-intl to the latest version * Update Storybook to the latest version * Upgrade Node.js to the latest version
- Loading branch information
Showing
12 changed files
with
2,707 additions
and
3,363 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nodejs 20.17.0 | ||
nodejs 22.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { dirname } from "path"; | ||
import { fileURLToPath } from "url"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename); | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
}); | ||
|
||
const eslintConfig = [ | ||
...compat.extends( | ||
"next/core-web-vitals", | ||
"next/typescript", | ||
"plugin:storybook/recommended", | ||
"prettier", | ||
), | ||
]; | ||
|
||
export default eslintConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import "server-only"; | ||
import { unstable_setRequestLocale } from "next-intl/server"; | ||
import { setRequestLocale } from "next-intl/server"; | ||
|
||
import { HomeScreen } from "@/screens/home"; | ||
|
||
import type { BaseParams } from "@/types/params"; | ||
|
||
export default function HomePage({ params: { locale } }: BaseParams) { | ||
export default async function HomePage({ params }: BaseParams) { | ||
// Initial value | ||
unstable_setRequestLocale(locale); | ||
const { locale } = await params; | ||
setRequestLocale(locale); | ||
|
||
return <HomeScreen />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { createSharedPathnamesNavigation } from "next-intl/navigation"; | ||
import { createNavigation } from "next-intl/navigation"; | ||
import { routing } from "@/config/i18n"; | ||
|
||
export const { Link, redirect, usePathname, useRouter } = | ||
createSharedPathnamesNavigation(routing); | ||
export const { Link, getPathname, redirect, usePathname, useRouter } = | ||
createNavigation(routing); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import type { Locale } from "@/types/locale"; | ||
|
||
export default async function getLocales(locale: Locale = "en") { | ||
return { | ||
messages: { | ||
...(await import(`./${locale}/${locale}.json`)).default, | ||
}, | ||
}; | ||
return (await import(`./${locale}/${locale}.json`)).default; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import type { Locale } from "./locale"; | ||
|
||
export type Params = Promise<{ locale: Locale }>; | ||
|
||
export interface BaseParams { | ||
params: { locale: Locale }; | ||
params: Params; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.