user register should include nick name, and user management page and edi
This commit is contained in:
parent
a010981c3d
commit
2b15dc8888
|
|
@ -87,7 +87,7 @@ export default function UserForm({ initialData, isEditMode = false }: UserFormPr
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>{t('admin.users.form_name_label')}</FormLabel>
|
<FormLabel>{t('admin.users.form_name_label')}</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input placeholder="John Doe" {...field} disabled={isSubmitting} />
|
<Input placeholder="e.g., Johnny" {...field} disabled={isSubmitting} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
|
@ -116,7 +117,7 @@ export default function ProfilePage() {
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<Label htmlFor="name">{t('dashboard.profile.full_name_label')}</Label>
|
<Label htmlFor="name">{t('dashboard.profile.full_name_label')}</Label>
|
||||||
<Input id="name" value={name} onChange={(e) => setName(e.target.value)} placeholder="Your Name" disabled={isLoading} />
|
<Input id="name" value={name} onChange={(e) => setName(e.target.value)} placeholder="Your Nickname" disabled={isLoading} />
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<Label htmlFor="email">{t('dashboard.profile.email_label')}</Label>
|
<Label htmlFor="email">{t('dashboard.profile.email_label')}</Label>
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ export default function RegisterPage() {
|
||||||
<Input
|
<Input
|
||||||
id="name"
|
id="name"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="John Doe"
|
placeholder="e.g., Johnny"
|
||||||
value={name}
|
value={name}
|
||||||
onChange={(e) => setName(e.target.value)}
|
onChange={(e) => setName(e.target.value)}
|
||||||
required
|
required
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
'login.invalid_credentials_toast_user': 'Invalid email or password. (Hint: user@example.com / password or admin@example.com / passwordadmin)',
|
'login.invalid_credentials_toast_user': 'Invalid email or password. (Hint: user@example.com / password or admin@example.com / passwordadmin)',
|
||||||
'register.create_account': 'Create Your Account',
|
'register.create_account': 'Create Your Account',
|
||||||
'register.description': 'Join ToyShare and start sharing the fun!',
|
'register.description': 'Join ToyShare and start sharing the fun!',
|
||||||
'register.name_label': 'Full Name',
|
'register.name_label': 'Nickname',
|
||||||
'register.confirm_password_label': 'Confirm Password',
|
'register.confirm_password_label': 'Confirm Password',
|
||||||
'register.submit_button': 'Create Account',
|
'register.submit_button': 'Create Account',
|
||||||
'register.loading_button': 'Registering...',
|
'register.loading_button': 'Registering...',
|
||||||
|
|
@ -96,7 +96,7 @@ export default {
|
||||||
'dashboard.profile.personal_info_title': 'Personal Information',
|
'dashboard.profile.personal_info_title': 'Personal Information',
|
||||||
'dashboard.profile.personal_info_description': 'Update your publicly visible profile information.',
|
'dashboard.profile.personal_info_description': 'Update your publicly visible profile information.',
|
||||||
'dashboard.profile.avatar_url_label': 'Avatar URL',
|
'dashboard.profile.avatar_url_label': 'Avatar URL',
|
||||||
'dashboard.profile.full_name_label': 'Full Name',
|
'dashboard.profile.full_name_label': 'Nickname',
|
||||||
'dashboard.profile.email_label': 'Email Address (Read-only)',
|
'dashboard.profile.email_label': 'Email Address (Read-only)',
|
||||||
'dashboard.profile.bio_label': 'Bio',
|
'dashboard.profile.bio_label': 'Bio',
|
||||||
'dashboard.profile.phone_label': 'Phone Number',
|
'dashboard.profile.phone_label': 'Phone Number',
|
||||||
|
|
@ -241,7 +241,7 @@ export default {
|
||||||
'admin.users.add_user_description': 'Create a new user account and assign a role.',
|
'admin.users.add_user_description': 'Create a new user account and assign a role.',
|
||||||
'admin.users.edit_user_title': 'Edit User',
|
'admin.users.edit_user_title': 'Edit User',
|
||||||
'admin.users.edit_user_description': "Update the user's details and role.",
|
'admin.users.edit_user_description': "Update the user's details and role.",
|
||||||
'admin.users.form_name_label': 'Full Name',
|
'admin.users.form_name_label': 'Nickname',
|
||||||
'admin.users.form_email_label': 'Email Address',
|
'admin.users.form_email_label': 'Email Address',
|
||||||
'admin.users.form_role_label': 'Role',
|
'admin.users.form_role_label': 'Role',
|
||||||
'admin.users.form_role_user': 'User',
|
'admin.users.form_role_user': 'User',
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export default {
|
||||||
'login.invalid_credentials_toast_user': '無效的電子郵件或密碼。(提示: user@example.com / password 或 admin@example.com / passwordadmin)',
|
'login.invalid_credentials_toast_user': '無效的電子郵件或密碼。(提示: user@example.com / password 或 admin@example.com / passwordadmin)',
|
||||||
'register.create_account': '建立您的帳戶',
|
'register.create_account': '建立您的帳戶',
|
||||||
'register.description': '加入 ToyShare,開始分享樂趣!',
|
'register.description': '加入 ToyShare,開始分享樂趣!',
|
||||||
'register.name_label': '全名',
|
'register.name_label': '暱稱',
|
||||||
'register.confirm_password_label': '確認密碼',
|
'register.confirm_password_label': '確認密碼',
|
||||||
'register.submit_button': '建立帳戶',
|
'register.submit_button': '建立帳戶',
|
||||||
'register.loading_button': '註冊中...',
|
'register.loading_button': '註冊中...',
|
||||||
|
|
@ -96,7 +96,7 @@ export default {
|
||||||
'dashboard.profile.personal_info_title': '個人資訊',
|
'dashboard.profile.personal_info_title': '個人資訊',
|
||||||
'dashboard.profile.personal_info_description': '更新您公開顯示的個人資料資訊。',
|
'dashboard.profile.personal_info_description': '更新您公開顯示的個人資料資訊。',
|
||||||
'dashboard.profile.avatar_url_label': '頭像 URL',
|
'dashboard.profile.avatar_url_label': '頭像 URL',
|
||||||
'dashboard.profile.full_name_label': '全名',
|
'dashboard.profile.full_name_label': '暱稱',
|
||||||
'dashboard.profile.email_label': '電子郵件地址 (唯讀)',
|
'dashboard.profile.email_label': '電子郵件地址 (唯讀)',
|
||||||
'dashboard.profile.bio_label': '簡介',
|
'dashboard.profile.bio_label': '簡介',
|
||||||
'dashboard.profile.phone_label': '電話號碼',
|
'dashboard.profile.phone_label': '電話號碼',
|
||||||
|
|
@ -109,7 +109,7 @@ export default {
|
||||||
'dashboard.profile.new_password_label': '新密碼',
|
'dashboard.profile.new_password_label': '新密碼',
|
||||||
'dashboard.profile.confirm_new_password_label': '確認新密碼',
|
'dashboard.profile.confirm_new_password_label': '確認新密碼',
|
||||||
'dashboard.profile.update_password_button': '更新密碼',
|
'dashboard.profile.update_password_button': '更新密碼',
|
||||||
'dashboard.profile.updating_password_button': '更新密碼中...',
|
'dashboard.profile.updating_button': '更新密碼中...',
|
||||||
'dashboard.profile.language_settings_title': '語言設定',
|
'dashboard.profile.language_settings_title': '語言設定',
|
||||||
'dashboard.profile.language_settings_description': '選擇您偏好的應用程式顯示語言。',
|
'dashboard.profile.language_settings_description': '選擇您偏好的應用程式顯示語言。',
|
||||||
'dashboard.profile.display_language_label': '顯示語言',
|
'dashboard.profile.display_language_label': '顯示語言',
|
||||||
|
|
@ -241,7 +241,7 @@ export default {
|
||||||
'admin.users.add_user_description': '建立一個新的使用者帳戶並分配角色。',
|
'admin.users.add_user_description': '建立一個新的使用者帳戶並分配角色。',
|
||||||
'admin.users.edit_user_title': '編輯使用者',
|
'admin.users.edit_user_title': '編輯使用者',
|
||||||
'admin.users.edit_user_description': '更新使用者的詳細資訊和角色。',
|
'admin.users.edit_user_description': '更新使用者的詳細資訊和角色。',
|
||||||
'admin.users.form_name_label': '全名',
|
'admin.users.form_name_label': '暱稱',
|
||||||
'admin.users.form_email_label': '電子郵件地址',
|
'admin.users.form_email_label': '電子郵件地址',
|
||||||
'admin.users.form_role_label': '角色',
|
'admin.users.form_role_label': '角色',
|
||||||
'admin.users.form_role_user': '使用者',
|
'admin.users.form_role_user': '使用者',
|
||||||
|
|
|
||||||
BIN
toyshare.db-shm
BIN
toyshare.db-shm
Binary file not shown.
BIN
toyshare.db-wal
BIN
toyshare.db-wal
Binary file not shown.
Loading…
Reference in New Issue