登录页面汉化及网页标题修改
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
# Your Medusa backend, should be updated to where you are hosting your server. Remember to update CORS settings for your server. See – https://docs.medusajs.com/learn/configurations/medusa-config#httpstorecors
|
|
||||||
MEDUSA_BACKEND_URL=http://localhost:9000
|
|
||||||
|
|
||||||
# Your publishable key that can be attached to sales channels. See - https://docs.medusajs.com/resources/storefront-development/publishable-api-keys
|
|
||||||
NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY=pk_test
|
|
||||||
|
|
||||||
# Your store URL, should be updated to where you are hosting your storefront.
|
|
||||||
NEXT_PUBLIC_BASE_URL=http://localhost:8000
|
|
||||||
|
|
||||||
# Your preferred default region. When middleware cannot determine the user region from the "x-vercel-country" header, the default region will be used. ISO-2 lowercase format.
|
|
||||||
NEXT_PUBLIC_DEFAULT_REGION=us
|
|
||||||
|
|
||||||
# Your Stripe public key. See – https://docs.medusajs.com/resources/commerce-modules/payment/payment-provider/stripe
|
|
||||||
NEXT_PUBLIC_STRIPE_KEY=
|
|
||||||
|
|
||||||
# Your Next.js revalidation secret. See – https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#on-demand-revalidation
|
|
||||||
REVALIDATE_SECRET=supersecret
|
|
||||||
16368
storefront/package-lock.json
generated
Normal file
16368
storefront/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
15212
storefront/yarn.lock
15212
storefront/yarn.lock
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Mercur Vendor Panel</title>
|
<title>格丽贸易供应商系统</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -137,7 +137,8 @@
|
|||||||
"hide": "隐藏",
|
"hide": "隐藏",
|
||||||
"export": "导出",
|
"export": "导出",
|
||||||
"import": "导入",
|
"import": "导入",
|
||||||
"cannotUndo": "此操作无法撤销"
|
"cannotUndo": "此操作无法撤销",
|
||||||
|
"signIn": "登录"
|
||||||
},
|
},
|
||||||
"operators": {
|
"operators": {
|
||||||
"in": "包含"
|
"in": "包含"
|
||||||
@@ -2588,11 +2589,21 @@
|
|||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"forgotPassword": "忘记密码? - <0>重置</0>",
|
"forgotPassword": "忘记密码? - <0>重置</0>",
|
||||||
"title": "欢迎使用Medusa",
|
"title": "欢迎使用格丽贸易供应商系统",
|
||||||
"hint": "登录以访问账户区域"
|
"hint": "登录以访问管理面板",
|
||||||
|
"notSellerYet": "还不是供应商? - <0>提交申请</0>"
|
||||||
|
},
|
||||||
|
"register": {
|
||||||
|
"title": "成为格丽贸易供应链的一员",
|
||||||
|
"hint": "加盟咨询:support@gelimaoyi.cn",
|
||||||
|
"alreadySeller": "已有账户? - <0>登录</0>",
|
||||||
|
"successTitle": "感谢您的注册!",
|
||||||
|
"successHint": "您可能需要等待管理员授权才能登录。确认邮件将很快发送给您。",
|
||||||
|
"backToLogin": "返回登录页面",
|
||||||
|
"signUp": "注册"
|
||||||
},
|
},
|
||||||
"invite": {
|
"invite": {
|
||||||
"title": "欢迎使用Medusa",
|
"title": "欢迎使用格丽贸易供应商系统",
|
||||||
"hint": "在下面创建您的账户",
|
"hint": "在下面创建您的账户",
|
||||||
"backToLogin": "返回登录",
|
"backToLogin": "返回登录",
|
||||||
"createAccount": "创建账户",
|
"createAccount": "创建账户",
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ export const Login = () => {
|
|||||||
</Alert>
|
</Alert>
|
||||||
)}
|
)}
|
||||||
<Button className="w-full" type="submit" isLoading={isPending}>
|
<Button className="w-full" type="submit" isLoading={isPending}>
|
||||||
Sign In
|
{t("actions.signIn")}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
|
|||||||
@@ -95,17 +95,16 @@ export const Register = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="bg-ui-bg-subtle flex min-h-dvh w-dvw items-center justify-center">
|
<div className="bg-ui-bg-subtle flex min-h-dvh w-dvw items-center justify-center">
|
||||||
<div className="mb-4 flex flex-col items-center">
|
<div className="mb-4 flex flex-col items-center">
|
||||||
<Heading>Thank You for registering!</Heading>
|
<Heading>{t("register.successTitle")}</Heading>
|
||||||
<Text
|
<Text
|
||||||
size="small"
|
size="small"
|
||||||
className="text-ui-fg-subtle text-center mt-2 max-w-[320px]"
|
className="text-ui-fg-subtle text-center mt-2 max-w-[320px]"
|
||||||
>
|
>
|
||||||
You may need to wait for admin authorization before logging in. A
|
{t("register.successHint")}
|
||||||
confirmation email will be sent to you shortly.
|
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Link to="/login">
|
<Link to="/login">
|
||||||
<Button className="mt-8">Back to login page</Button>
|
<Button className="mt-8">{t("register.backToLogin")}</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -218,7 +217,7 @@ export const Register = () => {
|
|||||||
</Alert>
|
</Alert>
|
||||||
)}
|
)}
|
||||||
<Button className="w-full" type="submit" isLoading={isPending}>
|
<Button className="w-full" type="submit" isLoading={isPending}>
|
||||||
Sign up
|
{t("register.signUp")}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
|
|||||||
Reference in New Issue
Block a user