This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git


The following commit(s) were added to refs/heads/main by this push:
     new a4f47e85 [Improvement] National configuration of menu permissions 
(#332)
a4f47e85 is described below

commit a4f47e85a87f758dd23768ff0b05be82f9c6acc7
Author: s7monk <[email protected]>
AuthorDate: Tue Jun 11 12:35:21 2024 +0800

    [Improvement] National configuration of menu permissions (#332)
---
 paimon-web-ui/src/locales/en/modules/system.ts | 38 ++++++++++++++++++++++++
 paimon-web-ui/src/locales/zh/modules/system.ts | 40 +++++++++++++++++++++++++-
 2 files changed, 77 insertions(+), 1 deletion(-)

diff --git a/paimon-web-ui/src/locales/en/modules/system.ts 
b/paimon-web-ui/src/locales/en/modules/system.ts
index dc861cd9..8ac69135 100644
--- a/paimon-web-ui/src/locales/en/modules/system.ts
+++ b/paimon-web-ui/src/locales/en/modules/system.ts
@@ -43,9 +43,24 @@ const role = {
 
 const roleKey = {
   system: 'System',
+  metadata: 'MataData',
+  cdc: 'CDC Ingestion',
+  playground: 'Playground',
   menu_manager: 'Menu Manager',
   user_manager: 'User Manager',
   role_manager: 'Role Manager',
+  cluster_manager: 'Cluster Manager',
+  catalog_manager: 'Catalog Manager',
+  database_manager: 'Database Manager',
+  table_manager: 'Table Manager',
+  column_manager: 'Column Manager',
+  option_manager: 'Option Manager',
+  schema_manager: 'Schema Manager',
+  snapshot_manager: 'Snapshot Manager',
+  manifest_manager: 'Manifest Manager',
+  datafile_manager: 'Datafile Manager',
+  cdc_job_manager: 'CDC Job Manager',
+  playground_job_manager: 'Playground Job Manager',
   menu_query: 'Menu Query',
   menu_add: 'Menu Add',
   menu_update: 'Menu Update',
@@ -59,6 +74,29 @@ const roleKey = {
   role_add: 'Role Add',
   role_update: 'Role Update',
   role_delete: 'Role Delete',
+  cluster_query: 'Cluster Query',
+  cluster_add: 'Cluster Create',
+  cluster_update: 'Cluster Update',
+  cluster_delete: 'Cluster Delete',
+  catalog_create: 'Catalog Create',
+  catalog_remove: 'Catalog Delete',
+  database_create: 'Database Create',
+  database_drop: 'Database Delete',
+  table_create: 'Table Create',
+  table_update: 'Table Update',
+  table_drop: 'Table Delete',
+  column_add: 'Column Create',
+  column_drop: 'Column Delete',
+  option_add: 'Option Create',
+  option_remove: 'Option Delete',
+  cdc_job_query: 'CDC Job Query',
+  cdc_job_update: 'CDC Job Update',
+  cdc_job_delete: 'CDC Job Delete',
+  cdc_job_submit: 'CDC Job Submit',
+  cdc_job_create: 'CDC Job Create',
+  playground_job_query: 'Playground job Query',
+  playground_job_submit: 'Playground Job Submit',
+  playground_job_stop: 'Playground Job Stop',
 }
 
 const cluster = {
diff --git a/paimon-web-ui/src/locales/zh/modules/system.ts 
b/paimon-web-ui/src/locales/zh/modules/system.ts
index 030716ce..298f1c9a 100644
--- a/paimon-web-ui/src/locales/zh/modules/system.ts
+++ b/paimon-web-ui/src/locales/zh/modules/system.ts
@@ -43,9 +43,24 @@ const role = {
 
 const roleKey = {
   system: '系统管理',
+  metadata: '元数据管理',
+  cdc: 'CDC 集成',
+  playground: 'Playground',
   menu_manager: '菜单管理',
   user_manager: '用户管理',
   role_manager: '角色管理',
+  cluster_manager: '集群管理',
+  catalog_manager: 'Catalog 管理',
+  database_manager: 'Database 管理',
+  table_manager: 'Table 管理',
+  column_manager: 'Column 管理',
+  option_manager: 'Option 管理',
+  schema_manager: 'Schema 管理',
+  snapshot_manager: 'Snapshot 管理',
+  manifest_manager: 'Manifest 管理',
+  datafile_manager: 'Datafile 管理',
+  cdc_job_manager: 'CDC 任务管理',
+  playground_job_manager: 'Playground 任务管理',
   menu_query: '菜单查询',
   menu_add: '菜单新增',
   menu_update: '菜单修改',
@@ -54,11 +69,34 @@ const roleKey = {
   user_add: '用户新增',
   user_update: '用户修改',
   user_delete: '用户删除',
-  user_reset: '用户重置密码',
+  user_reset: '重置密码',
   role_query: '角色查询',
   role_add: '角色新增',
   role_update: '角色修改',
   role_delete: '角色删除',
+  cluster_query: '集群查询',
+  cluster_add: '集群新增',
+  cluster_update: '集群修改',
+  cluster_delete: '集群删除',
+  catalog_create: 'Catalog 创建',
+  catalog_remove: 'Catalog 删除',
+  database_create: 'Database 创建',
+  database_drop: 'Database 删除',
+  table_create: 'Table 创建',
+  table_update: 'Table 更新',
+  table_drop: 'Table 删除',
+  column_add: 'Column 创建',
+  column_drop: 'Column 删除',
+  option_add: 'Option 创建',
+  option_remove: 'Option 删除',
+  cdc_job_query: 'CDC 任务查询',
+  cdc_job_update: 'CDC 任务更新',
+  cdc_job_delete: 'CDC 任务删除',
+  cdc_job_submit: 'CDC 任务提交',
+  cdc_job_create: 'CDC 任务创建',
+  playground_job_query: 'Playground 任务查询',
+  playground_job_submit: 'Playground 任务提交',
+  playground_job_stop: 'Playground 任务停止',
 }
 
 const cluster = {

Reply via email to