Skip to content

Commit

Permalink
feat: use shadcn sidebar component (#14)
Browse files Browse the repository at this point in the history
* feat: use new sidebar

* fix: layout overflow

* fix: remove warp

* fix: login page i18n text

* fix: content scroll

* docs: update doc

* feat: header backdrop blur

* refactor: refactor language switch use select
  • Loading branch information
TinsFox authored Nov 2, 2024
1 parent b92afe7 commit 7f1f70e
Show file tree
Hide file tree
Showing 58 changed files with 2,180 additions and 1,200 deletions.
9 changes: 5 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cn\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
],
"i18n-ally.localesPaths": ["src/i18n", "src/i18n/locales"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.enabledFrameworks": ["i18next", "react"],
"i18n-ally.keystyle": "nested"
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json",
"i18n-ally.namespace": true,
"i18n-ally.keystyle": "nested",
"i18n-ally.localesPaths": "locales",
"i18n-ally.displayLanguage": "zh-CN"
}
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"config": "tailwind.config.ts",
"css": "src/styles/index.css",
"baseColor": "slate",
"cssVariables": true,
Expand Down
16 changes: 0 additions & 16 deletions docs/en/guide/what-is-shadcn-ui-boilerplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,3 @@ If you have any questions or suggestions, please submit an issue or pr.
## Donate

If you find this project helpful, please consider giving us a star ⭐️

or 👇

[![TinsFox's Profile](https://afdian-connect-nine.vercel.app/profile.svg)](https://afdian.com/a/tinsfox)

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/TinsFox)

<img src="/wechat-appreciation-code.jpeg" alt="微信赞赏码" width="200px">

## Join our WeChat group

<p>
<img src="/wechat-group.png" alt="微信群二维码" width="200px">
</p>

Scan the above QR code to join our WeChat group, and discuss with other developers!
18 changes: 0 additions & 18 deletions docs/zh/guide/what-is-shadcn-ui-boilerplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,3 @@ shadcn/ui boilerplate 是一个基于 [**shadcn/ui**](https://github.com/shadcn-
## 赞赏

如果你觉得这个项目对你有帮助,欢迎给我们一个 star ⭐️

或者 👇


[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/TinsFox)

[![TinsFox's Profile](https://afdian-connect-nine.vercel.app/profile.svg)](https://afdian.com/a/tinsfox)

<img src="/wechat-appreciation-code.jpeg" alt="微信赞赏码" width="200px">

## 加入我们的微信群

<p>
<img src="/wechat-group.png" alt="微信群二维码" width="200px">
</p>

扫描上方二维码加入我们的微信群,与其他开发者交流讨论!

37 changes: 37 additions & 0 deletions locales/en/auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"login": {
"create_account": "Create an account",
"enter_email": "Enter your email below to create your account",
"terms_of_service": "Terms of Service",
"privacy_policy": "Privacy Policy",
"loading": "Loading...",
"login_successful": "Login successful",
"error": "Error",
"email": "Email",
"email_placeholder": "[email protected]",
"password": "Password",
"password_placeholder": "Password",
"sign_in_with_email": "Sign In with Email",
"or_continue_with": "Or continue with"
},
"social_login": {
"github": "Sign in with Github",
"google": "Sign in with Google",
"apple": "Sign in with Apple",
"microsoft": "Sign in with Microsoft",
"linkedin": "Sign in with LinkedIn",
"twitter": "Sign in with Twitter",
"facebook": "Sign in with Facebook",
"instagram": "Sign in with Instagram",
"snapchat": "Sign in with Snapchat",
"tiktok": "Sign in with TikTok",
"youtube": "Sign in with YouTube"
},
"company": {
"name": "Acme Inc",
"testimonial": {
"quote": "This library has saved me countless hours of work and helped me deliver stunning designs to my clients faster than ever before.",
"name": "Sofia Davis"
}
}
}
24 changes: 24 additions & 0 deletions locales/en/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"select_language": "Select a language",
"languages": {
"english": "English",
"french": "French",
"german": "German",
"spanish": "Spanish",
"portuguese": "Portuguese",
"russian": "Russian",
"japanese": "Japanese",
"korean": "Korean",
"chinese": "Chinese"
},
"themes": {
"system": "System",
"light": "Light",
"dark": "Dark"
},
"fonts": {
"inter": "Inter",
"manrope": "Manrope"
},
"update": "Update"
}
14 changes: 14 additions & 0 deletions locales/en/errors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name_min_length": "Name must be at least 2 characters.",
"name_max_length": "Name must not be longer than 30 characters.",
"dob_required": "A date of birth is required.",
"language_required": "Please select a language.",
"bio_min_length": "Bio must be at least 10 characters.",
"bio_max_length": "Bio must not be longer than 160 characters.",
"username_min_length": "Username must be at least 2 characters.",
"username_max_length": "Username must not be longer than 30 characters.",
"email_required": "Please select an email to display.",
"notification_type_required": "You need to select a notification type.",
"item_selection_required": "You have to select at least one item.",
"invalid_email_or_password": "Invalid email or password."
}
55 changes: 55 additions & 0 deletions locales/en/forms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"actions": {
"update_account": "Update account",
"select_account": "Select account",
"update_preferences": "Update preferences"
},
"labels": {
"name": "Name",
"email": "Email",
"password": "Password",
"confirm_password": "Confirm password",
"date_of_birth": "Date of birth",
"language": "Language",
"bio": "Bio",
"username": "Username",
"notifications": "Notifications",
"marketing": "Marketing",
"social": "Social",
"security": "Security",
"font": "Font",
"theme": "Theme"
},
"placeholders": {
"your_name": "Your name",
"your_email": "Your email",
"your_password": "Your password",
"your_date_of_birth": "Your date of birth",
"your_language": "Your language",
"your_bio": "Your bio",
"your_username": "Your username",
"search_language": "Search language"
},
"descriptions": {
"name": "This is the name that will be displayed on your profile.",
"email": "This is the email that will be displayed on your profile.",
"password": "This is the password that will be used to log in to your account.",
"confirm_password": "This is the password that will be used to confirm your password.",
"date_of_birth": "This is the date of birth that will be displayed on your profile.",
"language": "This is the language that will be displayed on your profile.",
"bio": "This is the bio that will be displayed on your profile.",
"username": "This is the username that will be displayed on your profile.",
"notifications": "This is the notifications that will be used to notify you of new messages, events, etc.",
"marketing": "This is the marketing that will be used to send you marketing emails.",
"social": "This is the social that will be used to send you social emails.",
"security": "This is the security that will be used to send you security emails.",
"font": "This is the font that will be displayed on your profile.",
"theme": "This is the theme that will be displayed on your profile.",
"select_language": "This is the language that will be displayed on your profile.",
"select_font": "This is the font that will be displayed on your profile.",
"select_theme": "This is the theme that will be displayed on your profile."
},
"errors": {
"no_language_found": "No language found"
}
}
39 changes: 39 additions & 0 deletions locales/en/navigation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"dashboard": "Dashboard",
"forms": "Forms",
"table": "Table",
"tables": "Tables",
"charts": "Charts",
"system": "System",
"settings": "Settings",
"overview": "Overview",
"analysis": "Analysis",
"workplace": "Workplace",
"analytics": "Analytics",
"chat": "Chat",
"email": "Email",
"calendar": "Calendar",
"basic_form": "Basic Form",
"step_form": "Step Form",
"advanced_form": "Advanced Form",
"basic_list": "Basic List",
"table_list": "Table List",
"card_list": "Card List",
"area_chart": "Area Chart",
"bar_chart": "Bar Chart",
"line_chart": "Line Chart",
"pie_chart": "Pie Chart",
"radar_chart": "Radar Chart",
"radial_chart": "Radial Chart",
"tooltip_chart": "Tooltip Chart",
"about": "About",
"user": {
"logout": "Log out",
"profile": "Profile",
"settings": "Settings",
"account": "Account",
"billing": "Billing",
"notifications": "Notifications",
"upgrade_pro": "Upgrade to Pro"
}
}
119 changes: 119 additions & 0 deletions locales/en/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"nav": {
"profile": "Profile",
"account": "Account",
"appearance": "Appearance",
"notifications": "Notifications",
"display": "Display",
"theme": "Theme"
},
"sections": {
"profile": {
"title": "Profile",
"description": "This is the profile that will be displayed on your profile.",
"email_options": "Email options",
"urls": "Urls",
"add_url": "Add url",
"update_profile": "Update profile",
"username": "Username",
"username_description": "This is the username that will be displayed on your profile.",
"email": "Email",
"email_description": "This is the email that will be displayed on your profile.",
"password": "Password",
"password_description": "This is the password that will be used to log in to your account.",
"confirm_password": "Confirm password",
"confirm_password_description": "This is the password that will be used to confirm your password.",
"email_options_description": "This is the email options that will be displayed on your profile.",
"urls_description": "This is the urls that will be displayed on your profile.",
"bio": "Bio",
"bio_description": "This is the bio that will be displayed on your profile."
},
"appearance": {
"title": "Appearance",
"description": "Customize the appearance of the app. Automatically switch between day and night themes.",
"font": "Font",
"select_font_description": "Select the font for the app.",
"theme": "Theme",
"theme_description": "This is the theme that will be displayed on your profile.",
"system": "System",
"light": "Light",
"dark": "Dark",
"inter": "Inter",
"manrope": "Manrope"
},
"notifications": {
"title": "Notifications",
"description": "This is the notifications that will be displayed on your profile.",
"email_settings": {
"title": "Email notifications",
"communication": "Communication emails",
"marketing": "Marketing emails",
"social": "Social emails",
"security": "Security emails"
},
"mobile_settings": {
"use_different": "Use different settings for my mobile devices",
"description": "You can manage your mobile notifications on the mobile settings.",
"page": "Mobile settings page"
},
"preferences": {
"notify_about": "Notify me about...",
"options": {
"all_messages": "All new messages",
"direct_messages": "Direct messages and mentions",
"nothing": "Nothing"
}
},
"update_notifications": "Update notifications",
"update_notifications_description": "This is the update notifications that will be displayed on your profile.",
"update_notifications_description_2": "You can manage your mobile notifications on the mobile settings page.",
"update_notifications_description_3": "You can manage your mobile notifications on the mobile settings page."
},
"display": {
"title": "Display",
"description": "Turn items on or off to control what's displayed in the app.",
"sidebar": {
"title": "Sidebar",
"description": "Turn items on or off to control what's displayed in the app.",
"items": {
"recents": "Recents",
"home": "Home",
"applications": "Applications",
"desktop": "Desktop",
"downloads": "Downloads",
"documents": "Documents"
}
}
},
"account": {
"title": "Account",
"description": "Update your account settings.",
"name": "Name",
"name_description": "This is your public display name.",
"your_name": "Your name",
"date_of_birth": "Date of birth",
"dob_description": "Your date of birth is used to calculate your age.",
"pick_date": "Pick a date",
"language": "Language",
"language_description": "This is the language that will be used in the application.",
"select_language": "Select a language",
"search_language": "Search language...",
"no_language_found": "No language found",
"update_account": "Update account",
"languages": {
"english": "English",
"french": "French",
"german": "German",
"spanish": "Spanish",
"portuguese": "Portuguese",
"russian": "Russian",
"japanese": "Japanese",
"korean": "Korean",
"chinese": "Chinese"
}
}
},
"form": {
"you_submitted": "You submitted the following values:"
}
}
37 changes: 37 additions & 0 deletions locales/zh-CN/auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"login": {
"create_account": "创建账户",
"enter_email": "在下面输入您的电子邮件以创建账户",
"terms_of_service": "服务条款",
"privacy_policy": "隐私政策",
"loading": "加载中...",
"login_successful": "登录成功",
"error": "错误",
"email": "电子邮件",
"email_placeholder": "[email protected]",
"password": "密码",
"password_placeholder": "密码",
"sign_in_with_email": "使用电子邮件登录",
"or_continue_with": "或继续使用"
},
"social_login": {
"github": "使用 Github 登录",
"google": "使用 Google 登录",
"apple": "使用 Apple 登录",
"microsoft": "使用 Microsoft 登录",
"linkedin": "使用 LinkedIn 登录",
"twitter": "使用 Twitter 登录",
"facebook": "使用 Facebook 登录",
"instagram": "使用 Instagram 登录",
"snapchat": "使用 Snapchat 登录",
"tiktok": "使用 TikTok 登录",
"youtube": "使用 YouTube 登录"
},
"company": {
"name": "Acme Inc",
"testimonial": {
"quote": "这个库节省了我无数的时间,并帮助我更快地向我的客户交付令人惊叹的设计。",
"name": "Sofia Davis"
}
}
}
Loading

0 comments on commit 7f1f70e

Please sign in to comment.