Skip to content

Commit 0e6ff63

Browse files
committed
feat: update
1 parent 98bc464 commit 0e6ff63

26 files changed

+1269
-58
lines changed

.eslintrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2-
"extends": ["next/core-web-vitals", "next/typescript"]
2+
"extends": ["next/core-web-vitals", "next/typescript"],
3+
"ignorePatterns": [
4+
"/src/components/ui/**"
5+
],
6+
"rules": {
7+
"@typescript-eslint/no-empty-object-type": 0
8+
}
39
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"i18n-ally.localesPaths": [
3+
"messages",
4+
"src/i18n"
5+
],
6+
"i18n-ally.keystyle": "nested"
7+
}

global.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import zh from './messages/zh.json';
2+
3+
type Messages = typeof zh;
4+
5+
declare global {
6+
// Use type safe message keys with `next-intl`
7+
interface IntlMessages extends Messages {}
8+
}

messages/en.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"HomePage": {
3-
"title": "Hello world!",
4-
"about": "Go to the about page"
3+
"title": "JS Toolbox",
4+
"about": "Find actively maintained and popular libraries in the JavaScript."
5+
},
6+
"CategoryPage": {
7+
"title": "Category",
8+
"about": "Find actively maintained and popular libraries in the JavaScript."
59
}
610
}

messages/zh.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"HomePage": {
3-
"title": "你好世界!",
4-
"about": "去关于页面看看"
3+
"title": "JS Toolbox",
4+
"about": "查找 JavaScript 中积极维护且流行的库。"
5+
},
6+
"CategoryPage": {
7+
"title": "类别"
58
}
6-
}
9+
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"@heroicons/react": "^2.1.5",
1213
"@radix-ui/react-select": "^2.1.2",
1314
"@radix-ui/react-slot": "^1.1.0",
1415
"class-variance-authority": "^0.7.0",
1516
"clsx": "^2.1.1",
17+
"dayjs": "^1.11.13",
1618
"lucide-react": "^0.459.0",
1719
"next": "15.0.3",
1820
"next-intl": "^3.25.1",
1921
"react": "19.0.0-rc-66855b96-20241106",
2022
"react-dom": "19.0.0-rc-66855b96-20241106",
23+
"recharts": "^2.13.3",
2124
"tailwind-merge": "^2.5.4",
2225
"tailwindcss-animate": "^1.0.7"
2326
},

0 commit comments

Comments
 (0)