Skip to content

Commit

Permalink
feat: Manage panel - actions (#82)
Browse files Browse the repository at this point in the history
feat: add manage panel actions

- [x] index actions
- [x] alias actions
     - [x] remove alias
     - [x] switch alias
     - [x] delete alias
- [x] template actions
     - ~[ ] delete template~

Refs: #17

---------

Signed-off-by: seven <zilisheng1996@gmail.com>
  • Loading branch information
Blankll committed Aug 10, 2024
1 parent 078a712 commit eb68eda
Show file tree
Hide file tree
Showing 13 changed files with 1,138 additions and 658 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dockit",
"private": true,
"type": "module",
"version": "0.4.2",
"version": "0.4.3",
"description": "DocKit is a desktop client designed for NoSQL database, support Elasticsearch and OpenSearch across Mac, windows and Linux",
"author": "geekfun <support@geekfun.club>",
"homepage": "ttps://dockit.geekfun.club",
Expand Down
22 changes: 21 additions & 1 deletion src/lang/enUS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ export const enUS = {
statisticTitle: 'Node Statistics',
},
index: {
actions: {
deleteIndex: 'Delete Index',
closeIndex: 'Close Index',
openIndex: 'Open Index',
removeAlias: 'Remove Alias',
switchAlias: 'Switch Alias',
deleteIndexWarning: 'Are you sure you want to delete the index',
closeIndexWarning: 'Are you sure you want to close the index',
removeAliasWarning: 'Are you sure you want to remove the alias',
},
newIndexForm: {
title: 'Create Index',
indexName: 'Index Name',
Expand All @@ -85,6 +95,12 @@ export const enUS = {
templateRequired: 'Template name is required',
bodyJsonRequired: 'Request Body is not a valid JSON format',
},
switchAliasForm: {
title: 'Switch Alias',
aliasName: 'Alias Name',
sourceIndex: 'Source Index',
targetIndex: 'Target Index',
},
},
},
connection: {
Expand Down Expand Up @@ -122,8 +138,12 @@ export const enUS = {
create: 'Create',
confirm: 'Confirm',
cancel: 'Cancel',
removeSuccess: 'Connection removed successfully',
removeSuccess: 'removed successfully',
createSuccess: 'Created successfully',
deleteSuccess: 'Deleted successfully',
closeSuccess: 'Closed successfully',
openSuccess: 'Opened successfully',
switchSuccess: 'Switched successfully',
},
editor: {
establishedRequired: 'Select a DB instance before execute actions',
Expand Down
22 changes: 21 additions & 1 deletion src/lang/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ export const zhCN = {
statisticTitle: '节点统计',
},
index: {
actions: {
deleteIndex: '删除索引',
closeIndex: '关闭索引',
openIndex: '开启索引',
removeAlias: '移除别名',
switchAlias: '切换别名',
deleteIndexWarning: '是否确定要删除索引',
closeIndexWarning: '是否确定要关闭索引',
removeAliasWarning: '是否确定要移除索引别名',
},
newIndexForm: {
title: '创建索引',
indexName: '索引名称',
Expand All @@ -85,6 +95,12 @@ export const zhCN = {
templateRequired: '模板名称是必需的',
bodyJsonRequired: '请求体不是有效的 JSON 格式',
},
switchAliasForm: {
title: '切换别名',
aliasName: '别名名称',
sourceIndex: '源索引',
targetIndex: '目标索引',
},
},
},
connection: {
Expand Down Expand Up @@ -122,8 +138,12 @@ export const zhCN = {
create: '创建',
confirm: '确认',
cancel: '取消',
removeSuccess: '连接删除成功',
removeSuccess: '移除成功',
createSuccess: '创建成功',
deleteSuccess: '删除成功',
closeSuccess: '关闭成功',
openSuccess: '开启成功',
switchSuccess: '切换成功',
},
editor: {
establishedRequired: '请选择执行操作的数据库实例',
Expand Down
Loading

0 comments on commit eb68eda

Please sign in to comment.