Skip to content

Commit

Permalink
feat: add order waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
ChingCdesu committed Jan 25, 2025
1 parent 9915507 commit fd75ef2
Show file tree
Hide file tree
Showing 12 changed files with 1,512 additions and 1,277 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
public-hoist-pattern[]=*@nextui-org/*
public-hoist-pattern[]=*@heroui/*
registry=https://registry.npmjs.org/
4 changes: 4 additions & 0 deletions messages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"expireAt": "在 {time} 内可用",
"goBack": "返回"
},
"Order": {
"ProcessingOrder": "我们正在处理您的订单",
"InputOrderId": "手动输入订单号"
},
"Component": {
"CopyButton": {
"copy": "复制",
Expand Down
8 changes: 8 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ const withNextIntl = createNextIntlPlugin()

const nextConfig: NextConfig = {
/* config options here */
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'https://mirrorc.top/api/:path*', // 这里替换成你的 API 服务器地址
},
]
},
}

export default withNextIntl(nextConfig)
87 changes: 43 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,44 @@
{
"name": "mirror-chyan-user-frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"build:ts": "tsc next.config.ts"
},
"dependencies": {
"@headlessui/react": "^2.2.0",
"@heroicons/react": "^2.2.0",
"@nextui-org/react": "^2.6.11",
"@nextui-org/use-theme": "^2.1.1",
"clsx": "^2.1.1",
"daisyui": "^4.12.23",
"framer-motion": "^11.16.0",
"next": "15.1.3",
"next-intl": "^3.26.3",
"next-themes": "^0.4.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwind-merge": "^2.6.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/tailwindcss": "^3.1.0",
"eslint": "^9",
"eslint-config-next": "15.1.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
},
"overrides": {
"motion": {
"react": "19.0.0",
"react-dom": "19.0.0"
}
}
}
"name": "mirror-chyan-user-frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"build:ts": "tsc next.config.ts"
},
"dependencies": {
"@headlessui/react": "^2.2.0",
"@heroicons/react": "^2.2.0",
"@heroui/react": "2.6.14",
"@heroui/use-theme": "2.1.2",
"clsx": "^2.1.1",
"framer-motion": "^11.16.0",
"next": "15.1.3",
"next-intl": "^3.26.3",
"next-themes": "^0.4.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwind-merge": "^2.6.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/tailwindcss": "^3.1.0",
"eslint": "^9",
"eslint-config-next": "15.1.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
},
"overrides": {
"motion": {
"react": "19.0.0",
"react-dom": "19.0.0"
}
}
}
Loading

0 comments on commit fd75ef2

Please sign in to comment.