Skip to content

Commit

Permalink
feat(web): update
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Nov 28, 2024
1 parent 5f6ea4f commit 0bb011a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 157 deletions.
55 changes: 3 additions & 52 deletions web/src/locales/langs/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ const local: App.I18n.Schema = {
user: {
list: 'User List',
add: 'Add User'
},
menu: {
add: 'Add Menu'
}
}
},
Expand Down Expand Up @@ -252,19 +255,6 @@ const local: App.I18n.Schema = {
'For the convenience of everyone in developing and updating the merge, we have streamlined the code of the main branch, only retaining the homepage menu, and the rest of the content has been moved to the example branch for maintenance. The preview address displays the content of the example branch.',
greeting: 'Good morning, {username}, today is another day full of vitality!',
weatherDesc: 'Today is cloudy to clear, 20℃ - 25℃!',
projectCount: 'Project Count',
todo: 'Todo',
message: 'Message',
downloadCount: 'Download Count',
registerCount: 'Register Count',
schedule: 'Work and rest Schedule',
study: 'Study',
work: 'Work',
rest: 'Rest',
entertainment: 'Entertainment',
visitCount: 'Visit Count',
turnover: 'Turnover',
dealCount: 'Deal Count',
projectNews: {
title: 'Project News',
moreNews: 'More News',
Expand All @@ -276,45 +266,6 @@ const local: App.I18n.Schema = {
},
creativity: 'Creativity'
},
function: {
tab: {
tabOperate: {
title: 'Tab Operation',
addTab: 'Add Tab',
addTabDesc: 'To about page',
closeTab: 'Close Tab',
closeCurrentTab: 'Close Current Tab',
closeAboutTab: 'Close "About" Tab',
addMultiTab: 'Add Multi Tab',
addMultiTabDesc1: 'To MultiTab page',
addMultiTabDesc2: 'To MultiTab page(with query params)'
},
tabTitle: {
title: 'Tab Title',
changeTitle: 'Change Title',
change: 'Change',
resetTitle: 'Reset Title',
reset: 'Reset'
}
},
multiTab: {
routeParam: 'Route Param',
backTab: 'Back function_tab'
},
toggleAuth: {
toggleAccount: 'Toggle Account',
authHook: 'Auth Hook Function `hasAuth`',
superAdminVisible: 'Super Admin Visible',
adminVisible: 'Admin Visible',
adminOrUserVisible: 'Admin and User Visible'
},
request: {
repeatedErrorOccurOnce: 'Repeated Request Error Occurs Once',
repeatedError: 'Repeated Request Error',
repeatedErrorMsg1: 'Custom Request Error 1',
repeatedErrorMsg2: 'Custom Request Error 2'
}
},
manage: {
common: {
status: {
Expand Down
55 changes: 3 additions & 52 deletions web/src/locales/langs/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ const local: App.I18n.Schema = {
user: {
list: '用户列表',
add: '新增用户'
},
menu: {
add: '新增菜单'
}
}
},
Expand Down Expand Up @@ -252,19 +255,6 @@ const local: App.I18n.Schema = {
'为了方便大家开发和更新合并,我们对main分支的代码进行了精简,只保留了首页菜单,其余内容已移至example分支进行维护。预览地址显示的内容即为example分支的内容。',
greeting: '早安,{username}, 今天又是充满活力的一天!',
weatherDesc: '今日多云转晴,20℃ - 25℃!',
projectCount: '项目数',
todo: '待办',
message: '消息',
downloadCount: '下载量',
registerCount: '注册量',
schedule: '作息安排',
study: '学习',
work: '工作',
rest: '休息',
entertainment: '娱乐',
visitCount: '访问量',
turnover: '成交额',
dealCount: '成交量',
projectNews: {
title: '项目里程碑',
moreNews: '更多动态',
Expand All @@ -276,45 +266,6 @@ const local: App.I18n.Schema = {
},
creativity: '创意'
},
function: {
tab: {
tabOperate: {
title: '标签页操作',
addTab: '添加标签页',
addTabDesc: '跳转到关于页面',
closeTab: '关闭标签页',
closeCurrentTab: '关闭当前标签页',
closeAboutTab: '关闭"关于"标签页',
addMultiTab: '添加多标签页',
addMultiTabDesc1: '跳转到多标签页页面',
addMultiTabDesc2: '跳转到多标签页页面(带有查询参数)'
},
tabTitle: {
title: '标签页标题',
changeTitle: '修改标题',
change: '修改',
resetTitle: '重置标题',
reset: '重置'
}
},
multiTab: {
routeParam: '路由参数',
backTab: '返回 function_tab'
},
toggleAuth: {
toggleAccount: '切换账号',
authHook: '权限钩子函数 `hasAuth`',
superAdminVisible: '超级管理员可见',
adminVisible: '管理员可见',
adminOrUserVisible: '管理员和用户可见'
},
request: {
repeatedErrorOccurOnce: '重复请求错误只出现一次',
repeatedError: '重复请求错误',
repeatedErrorMsg1: '自定义请求错误 1',
repeatedErrorMsg2: '自定义请求错误 2'
}
},
manage: {
common: {
status: {
Expand Down
55 changes: 3 additions & 52 deletions web/src/typings/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ declare namespace App {
list: string;
add: string;
};
menu: {
add: string;
};
};
};
page: {
Expand Down Expand Up @@ -472,19 +475,6 @@ declare namespace App {
branchDesc: string;
greeting: string;
weatherDesc: string;
projectCount: string;
todo: string;
message: string;
downloadCount: string;
registerCount: string;
schedule: string;
study: string;
work: string;
rest: string;
entertainment: string;
visitCount: string;
turnover: string;
dealCount: string;
projectNews: {
title: string;
moreNews: string;
Expand All @@ -496,45 +486,6 @@ declare namespace App {
};
creativity: string;
};
function: {
tab: {
tabOperate: {
title: string;
addTab: string;
addTabDesc: string;
closeTab: string;
closeCurrentTab: string;
closeAboutTab: string;
addMultiTab: string;
addMultiTabDesc1: string;
addMultiTabDesc2: string;
};
tabTitle: {
title: string;
changeTitle: string;
change: string;
resetTitle: string;
reset: string;
};
};
multiTab: {
routeParam: string;
backTab: string;
};
toggleAuth: {
toggleAccount: string;
authHook: string;
superAdminVisible: string;
adminVisible: string;
adminOrUserVisible: string;
};
request: {
repeatedErrorOccurOnce: string;
repeatedError: string;
repeatedErrorMsg1: string;
repeatedErrorMsg2: string;
};
};
manage: {
common: {
status: {
Expand Down
1 change: 0 additions & 1 deletion web/src/views/manage/menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ init();
v-model:columns="columnChecks"
:disabled-delete="checkedRowKeys.length === 0"
:loading="loading"
add-auth="manage:menu:add"
@add="handleAdd"
@delete="handleBatchDelete"
@refresh="getData"
Expand Down

0 comments on commit 0bb011a

Please sign in to comment.