diff --git a/README.md b/README.md index 6795220..f612e6f 100644 --- a/README.md +++ b/README.md @@ -67,8 +67,8 @@ You can use Gitpod for online development: or clone it for local development: ```bash -git clone https://github.com/perfect-panel/ppanel-web.git -cd ppanel-web +git clone https://github.com/perfect-panel/frontend.git +cd frontend # Install dependencies bun install @@ -103,36 +103,36 @@ This project is [GNU](../../LICENSE) licensed. [codespaces-link]: https://codespaces.new/perfect-panel/ppanel-web [codespaces-shield]: https://github.com/codespaces/badge.svg [contributors-contrib]: https://contrib.rocks/image?repo=perfect-panel/ppanel-web -[contributors-url]: https://github.com/perfect-panel/ppanel-web/graphs/contributors -[github-action-release-link]: https://github.com/perfect-panel/ppanel-web/actions/workflows/release.yml +[contributors-url]: https://github.com/perfect-panel/frontend/graphs/contributors +[github-action-release-link]: https://github.com/perfect-panel/frontend/actions/workflows/release.yml [github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/perfect-panel/ppanel-web/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square -[github-action-test-link]: https://github.com/perfect-panel/ppanel-web/actions/workflows/test.yml +[github-action-test-link]: https://github.com/perfect-panel/frontend/actions/workflows/test.yml [github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/perfect-panel/ppanel-web/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square -[github-contributors-link]: https://github.com/perfect-panel/ppanel-web/graphs/contributors +[github-contributors-link]: https://github.com/perfect-panel/frontend/graphs/contributors [github-contributors-shield]: https://img.shields.io/github/contributors/perfect-panel/ppanel-web?color=c4f042&labelColor=black&style=flat-square -[github-forks-link]: https://github.com/perfect-panel/ppanel-web/network/members +[github-forks-link]: https://github.com/perfect-panel/frontend/network/members [github-forks-shield]: https://img.shields.io/github/forks/perfect-panel/ppanel-web?color=8ae8ff&labelColor=black&style=flat-square -[github-issues-link]: https://github.com/perfect-panel/ppanel-web/issues +[github-issues-link]: https://github.com/perfect-panel/frontend/issues [github-issues-shield]: https://img.shields.io/github/issues/perfect-panel/ppanel-web?color=ff80eb&labelColor=black&style=flat-square -[github-license-link]: https://github.com/perfect-panel/ppanel-web/blob/master/LICENSE +[github-license-link]: https://github.com/perfect-panel/frontend/blob/master/LICENSE [github-license-shield]: https://img.shields.io/github/license/perfect-panel/ppanel-web?color=white&labelColor=black&style=flat-square -[github-release-link]: https://github.com/perfect-panel/ppanel-web/releases +[github-release-link]: https://github.com/perfect-panel/frontend/releases [github-release-shield]: https://img.shields.io/github/v/release/perfect-panel/ppanel-web?style=flat-square&sort=semver&logo=github -[github-releasedate-link]: https://github.com/perfect-panel/ppanel-web/releases +[github-releasedate-link]: https://github.com/perfect-panel/frontend/releases [github-releasedate-shield]: https://img.shields.io/github/release-date/perfect-panel/ppanel-web?labelColor=black&style=flat-square -[github-stars-link]: https://github.com/perfect-panel/ppanel-web/network/stargazers +[github-stars-link]: https://github.com/perfect-panel/frontend/network/stargazers [github-stars-shield]: https://img.shields.io/github/stars/perfect-panel/ppanel-web?color=ffcb47&labelColor=black&style=flat-square -[gitpod-link]: https://gitpod.io/#https://github.com/perfect-panel/ppanel-web -[issues-link]: https://github.com/perfect-panel/ppanel-web/issues/new/choose -[pr-welcome-link]: https://github.com/perfect-panel/ppanel-web/pulls +[gitpod-link]: https://gitpod.io/#https://github.com/perfect-panel/frontend +[issues-link]: https://github.com/perfect-panel/frontend/issues/new/choose +[pr-welcome-link]: https://github.com/perfect-panel/frontend/pulls [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge [profile-link]: https://github.com/perfect-panel [split]: https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png -[ppanel-user-web-github]: https://github.com/perfect-panel/ppanel-web/tree/main/apps/user +[ppanel-user-web-github]: https://github.com/perfect-panel/frontend/tree/main/apps/user [ppanel-user-web-cover]: https://urlscan.io/liveshot/?width=1920&height=1080&url=https://user.ppanel.dev [ppanel-user-web-preview]: https://user.ppanel.dev [ppanel-user-web-deploy]: https://vercel.com/new/clone?demo-description=PPanel%20is%20a%20pure%2C%20professional%2C%20and%20perfect%20open-source%20proxy%20panel%20tool%2C%20designed%20to%20be%20your%20ideal%20choice%20for%20learning%20and%20practical%20use&demo-image=https%3A%2F%2Furlscan.io%2Fliveshot%2F%3Fwidth%3D1920%26height%3D1080%26url%3Dhttps%3A%2F%2Fuser.ppanel.dev&demo-title=PPanel%20User%20Web&demo-url=https%3A%2F%2Fuser.ppanel.dev%2F&from=.&project-name=ppanel-user-web&repository-name=ppanel-web&repository-url=https%3A%2F%2Fgithub.com%2Fperfect-panel%2Fppanel-web&root-directory=apps%2Fuser&skippable-integrations=1 -[ppanel-admin-web-github]: https://github.com/perfect-panel/ppanel-web/tree/main/apps/admin +[ppanel-admin-web-github]: https://github.com/perfect-panel/frontend/tree/main/apps/admin [ppanel-admin-web-cover]: https://urlscan.io/liveshot/?width=1920&height=1080&url=https://admin.ppanel.dev [ppanel-admin-web-preview]: https://admin.ppanel.dev [ppanel-admin-web-deploy]: https://vercel.com/new/clone?demo-description=PPanel%20is%20a%20pure%2C%20professional%2C%20and%20perfect%20open-source%20proxy%20panel%20tool%2C%20designed%20to%20be%20your%20ideal%20choice%20for%20learning%20and%20practical%20use&demo-image=https%3A%2F%2Furlscan.io%2Fliveshot%2F%3Fwidth%3D1920%26height%3D1080%26url%3Dhttps%3A%2F%2Fadmin.ppanel.dev&demo-title=PPanel%20Admin%20Web&demo-url=https%3A%2F%2Fadmin.ppanel.dev%2F&from=.&project-name=ppanel-admin-web&repository-name=ppanel-web&repository-url=https%3A%2F%2Fgithub.com%2Fperfect-panel%2Fppanel-web&root-directory=apps%2Fadmin&skippable-integrations=1 diff --git a/README.zh-CN.md b/README.zh-CN.md index 717991a..f687754 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -34,15 +34,15 @@ -> **第一条** -> 人人生而自由,在尊严与权利上一律平等。 +> **第一条** +> 人人生而自由,在尊严与权利上一律平等。 > 他们赋有理性与良知,应当以兄弟般的精神彼此相待。 > -> **第十二条** -> 任何人的隐私、家庭、住宅和通信不得任意干涉,其名誉与荣誉不得加以攻击。 +> **第十二条** +> 任何人的隐私、家庭、住宅和通信不得任意干涉,其名誉与荣誉不得加以攻击。 > 人人有权受到法律的保护,以免遭受这种干涉或攻击。 > -> **第十九条** +> **第十九条** > 人人有思想与表达的自由;此项自由包括持有主张而不受干预,以及通过任何媒介、无论国界,自由寻求、接受和传播信息与思想。 > > _来源: [United Nations – Universal Declaration of Human Rights (UN.org)](https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf)_ @@ -67,7 +67,7 @@ 或者克隆项目进行本地开发: ```bash -git clone https://github.com/perfect-panel/ppanel-web.git +git clone https://github.com/perfect-panel/frontend.git cd ppanel-web # 安装依赖 @@ -103,36 +103,36 @@ bun install [codespaces-link]: https://codespaces.new/perfect-panel/ppanel-web [codespaces-shield]: https://github.com/codespaces/badge.svg [contributors-contrib]: https://contrib.rocks/image?repo=perfect-panel/ppanel-web -[contributors-url]: https://github.com/perfect-panel/ppanel-web/graphs/contributors -[github-action-release-link]: https://github.com/perfect-panel/ppanel-web/actions/workflows/release.yml +[contributors-url]: https://github.com/perfect-panel/frontend/graphs/contributors +[github-action-release-link]: https://github.com/perfect-panel/frontend/actions/workflows/release.yml [github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/perfect-panel/ppanel-web/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square -[github-action-test-link]: https://github.com/perfect-panel/ppanel-web/actions/workflows/test.yml +[github-action-test-link]: https://github.com/perfect-panel/frontend/actions/workflows/test.yml [github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/perfect-panel/ppanel-web/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square -[github-contributors-link]: https://github.com/perfect-panel/ppanel-web/graphs/contributors +[github-contributors-link]: https://github.com/perfect-panel/frontend/graphs/contributors [github-contributors-shield]: https://img.shields.io/github/contributors/perfect-panel/ppanel-web?color=c4f042&labelColor=black&style=flat-square -[github-forks-link]: https://github.com/perfect-panel/ppanel-web/network/members +[github-forks-link]: https://github.com/perfect-panel/frontend/network/members [github-forks-shield]: https://img.shields.io/github/forks/perfect-panel/ppanel-web?color=8ae8ff&labelColor=black&style=flat-square -[github-issues-link]: https://github.com/perfect-panel/ppanel-web/issues +[github-issues-link]: https://github.com/perfect-panel/frontend/issues [github-issues-shield]: https://img.shields.io/github/issues/perfect-panel/ppanel-web?color=ff80eb&labelColor=black&style=flat-square -[github-license-link]: https://github.com/perfect-panel/ppanel-web/blob/master/LICENSE +[github-license-link]: https://github.com/perfect-panel/frontend/blob/master/LICENSE [github-license-shield]: https://img.shields.io/github/license/perfect-panel/ppanel-web?color=white&labelColor=black&style=flat-square -[github-release-link]: https://github.com/perfect-panel/ppanel-web/releases +[github-release-link]: https://github.com/perfect-panel/frontend/releases [github-release-shield]: https://img.shields.io/github/v/release/perfect-panel/ppanel-web?style=flat-square&sort=semver&logo=github -[github-releasedate-link]: https://github.com/perfect-panel/ppanel-web/releases +[github-releasedate-link]: https://github.com/perfect-panel/frontend/releases [github-releasedate-shield]: https://img.shields.io/github/release-date/perfect-panel/ppanel-web?labelColor=black&style=flat-square -[github-stars-link]: https://github.com/perfect-panel/ppanel-web/network/stargazers +[github-stars-link]: https://github.com/perfect-panel/frontend/network/stargazers [github-stars-shield]: https://img.shields.io/github/stars/perfect-panel/ppanel-web?color=ffcb47&labelColor=black&style=flat-square -[gitpod-link]: https://gitpod.io/#https://github.com/perfect-panel/ppanel-web -[issues-link]: https://github.com/perfect-panel/ppanel-web/issues/new/choose -[pr-welcome-link]: https://github.com/perfect-panel/ppanel-web/pulls +[gitpod-link]: https://gitpod.io/#https://github.com/perfect-panel/frontend +[issues-link]: https://github.com/perfect-panel/frontend/issues/new/choose +[pr-welcome-link]: https://github.com/perfect-panel/frontend/pulls [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge [profile-link]: https://github.com/perfect-panel [split]: https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png -[ppanel-user-web-github]: https://github.com/perfect-panel/ppanel-web/tree/main/apps/user +[ppanel-user-web-github]: https://github.com/perfect-panel/frontend/tree/main/apps/user [ppanel-user-web-cover]: https://urlscan.io/liveshot/?width=1920&height=1080&url=https://user.ppanel.dev [ppanel-user-web-preview]: https://user.ppanel.dev [ppanel-user-web-deploy]: https://vercel.com/new/clone?demo-description=PPanel%20is%20a%20pure%2C%20professional%2C%20and%20perfect%20open-source%20proxy%20panel%20tool%2C%20designed%20to%20be%20your%20ideal%20choice%20for%20learning%20and%20practical%20use&demo-image=https%3A%2F%2Furlscan.io%2Fliveshot%2F%3Fwidth%3D1920%26height%3D1080%26url%3Dhttps%3A%2F%2Fuser.ppanel.dev&demo-title=PPanel%20User%20Web&demo-url=https%3A%2F%2Fuser.ppanel.dev%2F&from=.&project-name=ppanel-user-web&repository-name=ppanel-web&repository-url=https%3A%2F%2Fgithub.com%2Fperfect-panel%2Fppanel-web&root-directory=apps%2Fuser&skippable-integrations=1 -[ppanel-admin-web-github]: https://github.com/perfect-panel/ppanel-web/tree/main/apps/admin +[ppanel-admin-web-github]: https://github.com/perfect-panel/frontend/tree/main/apps/admin [ppanel-admin-web-cover]: https://urlscan.io/liveshot/?width=1920&height=1080&url=https://admin.ppanel.dev [ppanel-admin-web-preview]: https://admin.ppanel.dev [ppanel-admin-web-deploy]: https://vercel.com/new/clone?demo-description=PPanel%20is%20a%20pure%2C%20professional%2C%20and%20perfect%20open-source%20proxy%20panel%20tool%2C%20designed%20to%20be%20your%20ideal%20choice%20for%20learning%20and%20practical%20use&demo-image=https%3A%2F%2Furlscan.io%2Fliveshot%2F%3Fwidth%3D1920%26height%3D1080%26url%3Dhttps%3A%2F%2Fadmin.ppanel.dev&demo-title=PPanel%20Admin%20Web&demo-url=https%3A%2F%2Fadmin.ppanel.dev%2F&from=.&project-name=ppanel-admin-web&repository-name=ppanel-web&repository-url=https%3A%2F%2Fgithub.com%2Fperfect-panel%2Fppanel-web&root-directory=apps%2Fadmin&skippable-integrations=1 diff --git a/apps/admin/.env.example b/apps/admin/.env.example new file mode 100644 index 0000000..0bf3ca8 --- /dev/null +++ b/apps/admin/.env.example @@ -0,0 +1,12 @@ +# API base URL +VITE_API_BASE_URL= + +# CDN URL for static assets +VITE_CDN_URL=https://cdn.jsdmirror.com + +# Enable tutorial document feature (true/false) +VITE_TUTORIAL_DOCUMENT=true + +# Default login credentials (for development only) +VITE_USER_EMAIL= +VITE_USER_PASSWORD= diff --git a/apps/admin/README.md b/apps/admin/README.md index 37dc8b5..c5feaf8 100644 --- a/apps/admin/README.md +++ b/apps/admin/README.md @@ -61,7 +61,7 @@ You can use Gitpod for online development: or clone it for local development: ```bash -git clone https://github.com/perfect-panel/ppanel-web.git +git clone https://github.com/perfect-panel/frontend.git cd ppanel-web # Install dependencies @@ -115,27 +115,27 @@ This project is [GNU](../../LICENSE) licensed. [codespaces-link]: https://codespaces.new/perfect-panel/ppanel-web [codespaces-shield]: https://github.com/codespaces/badge.svg [contributors-contrib]: https://contrib.rocks/image?repo=perfect-panel/ppanel-web -[contributors-url]: https://github.com/perfect-panel/ppanel-web/graphs/contributors -[github-action-release-link]: https://github.com/perfect-panel/ppanel-web/actions/workflows/release.yml +[contributors-url]: https://github.com/perfect-panel/frontend/graphs/contributors +[github-action-release-link]: https://github.com/perfect-panel/frontend/actions/workflows/release.yml [github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/perfect-panel/ppanel-web/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square -[github-action-test-link]: https://github.com/perfect-panel/ppanel-web/actions/workflows/test.yml +[github-action-test-link]: https://github.com/perfect-panel/frontend/actions/workflows/test.yml [github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/perfect-panel/ppanel-web/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square -[github-contributors-link]: https://github.com/perfect-panel/ppanel-web/graphs/contributors +[github-contributors-link]: https://github.com/perfect-panel/frontend/graphs/contributors [github-contributors-shield]: https://img.shields.io/github/contributors/perfect-panel/ppanel-web?color=c4f042&labelColor=black&style=flat-square -[github-forks-link]: https://github.com/perfect-panel/ppanel-web/network/members +[github-forks-link]: https://github.com/perfect-panel/frontend/network/members [github-forks-shield]: https://img.shields.io/github/forks/perfect-panel/ppanel-web?color=8ae8ff&labelColor=black&style=flat-square -[github-issues-link]: https://github.com/perfect-panel/ppanel-web/issues +[github-issues-link]: https://github.com/perfect-panel/frontend/issues [github-issues-shield]: https://img.shields.io/github/issues/perfect-panel/ppanel-web?color=ff80eb&labelColor=black&style=flat-square -[github-license-link]: https://github.com/perfect-panel/ppanel-web/blob/master/LICENSE +[github-license-link]: https://github.com/perfect-panel/frontend/blob/master/LICENSE [github-license-shield]: https://img.shields.io/github/license/perfect-panel/ppanel-web?color=white&labelColor=black&style=flat-square -[github-release-link]: https://github.com/perfect-panel/ppanel-web/releases +[github-release-link]: https://github.com/perfect-panel/frontend/releases [github-release-shield]: https://img.shields.io/github/v/release/perfect-panel/ppanel-web?style=flat-square&sort=semver&logo=github -[github-releasedate-link]: https://github.com/perfect-panel/ppanel-web/releases +[github-releasedate-link]: https://github.com/perfect-panel/frontend/releases [github-releasedate-shield]: https://img.shields.io/github/release-date/perfect-panel/ppanel-web?labelColor=black&style=flat-square -[github-stars-link]: https://github.com/perfect-panel/ppanel-web/network/stargazers +[github-stars-link]: https://github.com/perfect-panel/frontend/network/stargazers [github-stars-shield]: https://img.shields.io/github/stars/perfect-panel/ppanel-web?color=ffcb47&labelColor=black&style=flat-square -[gitpod-link]: https://gitpod.io/#https://github.com/perfect-panel/ppanel-web -[issues-link]: https://github.com/perfect-panel/ppanel-web/issues/new/choose -[pr-welcome-link]: https://github.com/perfect-panel/ppanel-web/pulls +[gitpod-link]: https://gitpod.io/#https://github.com/perfect-panel/frontend +[issues-link]: https://github.com/perfect-panel/frontend/issues/new/choose +[pr-welcome-link]: https://github.com/perfect-panel/frontend/pulls [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge [profile-link]: https://github.com/perfect-panel diff --git a/apps/admin/README.zh-CN.md b/apps/admin/README.zh-CN.md index f7aab82..9b61e1c 100644 --- a/apps/admin/README.zh-CN.md +++ b/apps/admin/README.zh-CN.md @@ -61,7 +61,7 @@ 或者克隆项目进行本地开发: ```bash -git clone https://github.com/perfect-panel/ppanel-web.git +git clone https://github.com/perfect-panel/frontend.git cd ppanel-web # 安装依赖 @@ -115,27 +115,27 @@ bun dev [codespaces-link]: https://codespaces.new/perfect-panel/ppanel-web [codespaces-shield]: https://github.com/codespaces/badge.svg [contributors-contrib]: https://contrib.rocks/image?repo=perfect-panel/ppanel-web -[contributors-url]: https://github.com/perfect-panel/ppanel-web/graphs/contributors -[github-action-release-link]: https://github.com/perfect-panel/ppanel-web/actions/workflows/release.yml +[contributors-url]: https://github.com/perfect-panel/frontend/graphs/contributors +[github-action-release-link]: https://github.com/perfect-panel/frontend/actions/workflows/release.yml [github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/perfect-panel/ppanel-web/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square -[github-action-test-link]: https://github.com/perfect-panel/ppanel-web/actions/workflows/test.yml +[github-action-test-link]: https://github.com/perfect-panel/frontend/actions/workflows/test.yml [github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/perfect-panel/ppanel-web/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square -[github-contributors-link]: https://github.com/perfect-panel/ppanel-web/graphs/contributors +[github-contributors-link]: https://github.com/perfect-panel/frontend/graphs/contributors [github-contributors-shield]: https://img.shields.io/github/contributors/perfect-panel/ppanel-web?color=c4f042&labelColor=black&style=flat-square -[github-forks-link]: https://github.com/perfect-panel/ppanel-web/network/members +[github-forks-link]: https://github.com/perfect-panel/frontend/network/members [github-forks-shield]: https://img.shields.io/github/forks/perfect-panel/ppanel-web?color=8ae8ff&labelColor=black&style=flat-square -[github-issues-link]: https://github.com/perfect-panel/ppanel-web/issues +[github-issues-link]: https://github.com/perfect-panel/frontend/issues [github-issues-shield]: https://img.shields.io/github/issues/perfect-panel/ppanel-web?color=ff80eb&labelColor=black&style=flat-square -[github-license-link]: https://github.com/perfect-panel/ppanel-web/blob/master/LICENSE +[github-license-link]: https://github.com/perfect-panel/frontend/blob/master/LICENSE [github-license-shield]: https://img.shields.io/github/license/perfect-panel/ppanel-web?color=white&labelColor=black&style=flat-square -[github-release-link]: https://github.com/perfect-panel/ppanel-web/releases +[github-release-link]: https://github.com/perfect-panel/frontend/releases [github-release-shield]: https://img.shields.io/github/v/release/perfect-panel/ppanel-web?style=flat-square&sort=semver&logo=github -[github-releasedate-link]: https://github.com/perfect-panel/ppanel-web/releases +[github-releasedate-link]: https://github.com/perfect-panel/frontend/releases [github-releasedate-shield]: https://img.shields.io/github/release-date/perfect-panel/ppanel-web?labelColor=black&style=flat-square -[github-stars-link]: https://github.com/perfect-panel/ppanel-web/network/stargazers +[github-stars-link]: https://github.com/perfect-panel/frontend/network/stargazers [github-stars-shield]: https://img.shields.io/github/stars/perfect-panel/ppanel-web?color=ffcb47&labelColor=black&style=flat-square -[gitpod-link]: https://gitpod.io/#https://github.com/perfect-panel/ppanel-web -[issues-link]: https://github.com/perfect-panel/ppanel-web/issues/new/choose -[pr-welcome-link]: https://github.com/perfect-panel/ppanel-web/pulls +[gitpod-link]: https://gitpod.io/#https://github.com/perfect-panel/frontend +[issues-link]: https://github.com/perfect-panel/frontend/issues/new/choose +[pr-welcome-link]: https://github.com/perfect-panel/frontend/pulls [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge [profile-link]: https://github.com/perfect-panel diff --git a/apps/admin/public/locales/en-US/auth.json b/apps/admin/public/locales/en-US/auth.json index 76e61ea..e2decec 100644 --- a/apps/admin/public/locales/en-US/auth.json +++ b/apps/admin/public/locales/en-US/auth.json @@ -1,6 +1,11 @@ { + "check": { + "description": "Verify your identity", + "title": "Verify" + }, "get": "Get Code", "login": { + "description": "Enter your credentials to continue", "email": "Please enter a valid email address", "emailPlaceholder": "Enter your email...", "forgotPassword": "Forgot Password?", @@ -12,6 +17,7 @@ "logout": "Logout", "register": { "codePlaceholder": "Enter code...", + "description": "Create a new account", "email": "Please enter a valid email address", "emailPlaceholder": "Enter your email...", "existingAccount": "Already have an account?", @@ -27,6 +33,7 @@ }, "reset": { "codePlaceholder": "Enter code...", + "description": "Reset your password", "email": "Please enter a valid email address", "emailPlaceholder": "Enter your email...", "existingAccount": "Remember your password?", diff --git a/apps/admin/public/locales/zh-CN/auth.json b/apps/admin/public/locales/zh-CN/auth.json index 2c5163e..2a4c8fa 100644 --- a/apps/admin/public/locales/zh-CN/auth.json +++ b/apps/admin/public/locales/zh-CN/auth.json @@ -1,6 +1,11 @@ { + "check": { + "description": "验证您的身份", + "title": "验证" + }, "get": "获取验证码", "login": { + "description": "输入您的凭据以继续", "email": "请输入有效的邮箱地址", "emailPlaceholder": "输入您的邮箱...", "forgotPassword": "忘记密码?", @@ -12,6 +17,7 @@ "logout": "退出登录", "register": { "codePlaceholder": "输入验证码...", + "description": "创建一个新账号", "email": "请输入有效的邮箱地址", "emailPlaceholder": "输入您的邮箱...", "existingAccount": "已有账号?", @@ -27,6 +33,7 @@ }, "reset": { "codePlaceholder": "输入验证码...", + "description": "重置您的密码", "email": "请输入有效的邮箱地址", "emailPlaceholder": "输入您的邮箱...", "existingAccount": "记得密码了?", diff --git a/apps/admin/src/sections/auth/email/auth-form.tsx b/apps/admin/src/sections/auth/email/auth-form.tsx index 3b5a005..30e6f83 100644 --- a/apps/admin/src/sections/auth/email/auth-form.tsx +++ b/apps/admin/src/sections/auth/email/auth-form.tsx @@ -106,10 +106,22 @@ export default function EmailAuthForm() { <>