Skip to content

Commit 4f4cbd0

Browse files
committed
Migrate to vite
1 parent 154b8fe commit 4f4cbd0

File tree

94 files changed

+11126
-7881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+11126
-7881
lines changed

frontend/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# production
1616
/build
17+
/dist
1718

1819
# misc
1920
.DS_Store

frontend/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
3636
COPY --from=builder /app/node_modules ./node_modules
3737
COPY --from=builder /app/package.json ./package.json
3838
COPY --from=builder --chmod=0755 /app/docker-entrypoint.sh ./entrypoint.sh
39-
COPY --from=builder /app/next.config.js ./next.config.js
40-
COPY --from=builder /app/next-i18next.config.js ./next-i18next.config.js
4139

4240
RUN apk add bash
4341

frontend/i18n.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import i18n from 'i18next';
2+
import { initReactI18next } from 'react-i18next';
3+
4+
import en from './src/locales/en/common.json';
5+
6+
i18n.use(initReactI18next).init({
7+
resources: {
8+
en: { common: { ...en } },
9+
},
10+
lng: 'en',
11+
fallbackLng: 'en',
12+
defaultNS: 'common',
13+
interpolation: {
14+
escapeValue: false,
15+
},
16+
});
17+
18+
export default i18n;

frontend/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Bracket</title>
8+
<meta charSet="UTF-8" />
9+
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
11+
<link rel="shortcut icon" href="/favicon.svg" />
12+
</head>
13+
<body>
14+
<div id="root"></div>
15+
<script type="module" src="/src/main.tsx"></script>
16+
</body>
17+
</html>

frontend/next-env.d.ts

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

frontend/next-i18next.config.js

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

frontend/next.config.js

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

frontend/package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "1.0.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
8-
"analyze": "ANALYZE=true next build",
9-
"start": "next start",
6+
"dev": "vite",
7+
"build": "vite build",
8+
"analyze": "ANALYZE=true vite build",
9+
"start": "vite start",
1010
"typecheck": "tsc --noEmit",
11-
"export": "next build && next export",
12-
"lint": "next lint",
11+
"export": "vite build && vite export",
12+
"lint": "vite lint",
1313
"jest": "jest",
1414
"jest:watch": "jest --watch",
1515
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
@@ -26,33 +26,30 @@
2626
"@mantine/dropzone": "7.12.1",
2727
"@mantine/form": "8.3.0",
2828
"@mantine/hooks": "7.12.1",
29-
"@mantine/next": "^6.0.21",
3029
"@mantine/notifications": "7.12.1",
3130
"@mantine/spotlight": "7.12.1",
32-
"@next/bundle-analyzer": "^16.0.0",
3331
"@react-icons/all-files": "^4.1.0",
3432
"@tabler/icons-react": "^3.35.0",
33+
"@vitejs/plugin-react": "^5.1.0",
3534
"axios": "^1.13.0",
3635
"clsx": "^2.0.0",
37-
"cookies-next": "^6.1.0",
3836
"date-fns": "^4.1.0",
3937
"dayjs": "^1.11.10",
4038
"i18next": "^25.6.0",
41-
"next": "^15.5.0",
42-
"next-i18next": "^15.4.0",
4339
"react": "^18.3.0",
4440
"react-dom": "^18.3.0",
4541
"react-ellipsis-text": "^1.2.1",
4642
"react-i18next": "^16.2.0",
4743
"react-icons": "^5.5.0",
4844
"react-qr-code": "^2.0.12",
4945
"react-redux": "^9.2.0",
46+
"react-router": "^7.9.5",
5047
"swr": "^2.3.0",
48+
"vite": "^7.2.2",
5149
"yarn-upgrade-all": "^0.7.2"
5250
},
5351
"devDependencies": {
5452
"@babel/core": "^7.28.0",
55-
"@next/eslint-plugin-next": "^15.5.0",
5653
"@testing-library/dom": "^10.4.0",
5754
"@testing-library/jest-dom": "^6.9.0",
5855
"@testing-library/react": "^16.3.0",
@@ -81,6 +78,8 @@
8178
"postcss-simple-vars": "^7.0.1",
8279
"prettier": "^3.6.0",
8380
"ts-jest": "^29.4.0",
84-
"typescript": "^5.8.2"
85-
}
81+
"typescript": "^5.8.2",
82+
"vite-plugin-i18next-loader": "^3.1.3"
83+
},
84+
"packageManager": "[email protected]"
8685
}

frontend/public/icons/group-stage-item.svg

Lines changed: 11 additions & 11 deletions
Loading

frontend/public/icons/single-elimination-stage-item.svg

Lines changed: 11 additions & 11 deletions
Loading

0 commit comments

Comments
 (0)