Skip to content

Commit

Permalink
Update setting in profile (#686)
Browse files Browse the repository at this point in the history
Co-authored-by: 朱鑫睿 <[email protected]>
  • Loading branch information
zzxr6 and 朱鑫睿 authored Sep 27, 2024
1 parent 9ef0a62 commit 6d6f42e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/user_settings/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class="p-[16px] hover:bg-[#F9FAFB] border-[#DCDFE6] text-[16px] text-[#606266] leading-[24px] cursor-pointer"
:class="menuClass('/settings/profile')"
>
{{ $t('profile.menu.profile')}}
{{ $t('profile.accountSetting')}}
</a>

<!-- <div class="p-[16px] hover:bg-[#EBEDF0] border-b border-[#DCDFE6] text-[18px] text-[#606266] leading-[26px] opacity-40"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/user_settings/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!-- profile settings -->
<div v-if="isCurrentUser" class="flex xl:flex-col md:flex-row gap-3">
<a href="/settings/profile" class="px-[12px] py-[5px] lg:w-[200px] md:w-auto text-center border border-[#DCDFE6] rounded-[4px] text-[14px] leading-[22px] font-medium hover:bg-[#EAECF0] hover:text-[#808080]">
{{ $t('profile.editProfile')}}
{{ $t('profile.accountSetting')}}
</a>
<a href="/settings/profile" class="px-[12px] py-[5px] border border-[#DCDFE6] rounded-[4px] text-[14px] leading-[22px] font-medium hover:bg-[#EAECF0] hover:text-[#808080] hidden">
{{ $t('profile.settings')}}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/user_settings/ProfileEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
type="warning">
</el-alert>
<div class="font-semibold text-[20px] leading-[28px]">
{{ $t('profile.edit.title') }}
{{ $t('profile.accountSetting') }}
</div>
<!-- avatar -->
<div>
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/locales/en_js/profile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
export const profile = {
editProfile: "Edit Profile",
accountSetting: "Settings",
myCollect: "My Favorite",
settings: "Settings",
interests: "Interests",
organization: "Organization",
menu: {
profile: "Profile",
accountInformation: "Account Information",
accessToken: "Access Token",
starshipAccessToken: "Starship API Key",
Expand All @@ -17,7 +16,6 @@ export const profile = {
warningTipDesc: "Are you sure to leave the Settings page unsaved?",
},
edit: {
title: "Profile Edit",
uploadAvatar: "Upload Avatar",
removeAvatar: "Remove Avatar",
updateSuccess: "Profile updated successfully",
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/locales/zh_js/profile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
export const profile = {
editProfile: "编辑个人信息",
accountSetting: "账号设置",
myCollect: "我的收藏",
settings: "设置",
interests: "兴趣",
organization: "组织机构",
menu: {
profile: "个人资料",
accountInformation: "账户信息",
accessToken: "Access Token",
starshipAccessToken: "Starship API Key",
Expand All @@ -17,7 +16,6 @@ export const profile = {
warningTipDesc: "确认在未保存的状态下离开设置页面?",
},
edit: {
title: "个人资料设置",
uploadAvatar: "上传头像",
removeAvatar: "移除头像",
updateSuccess: "profile 已更新",
Expand Down

0 comments on commit 6d6f42e

Please sign in to comment.