From 0a7b12a8c5983cf2597d50d14ccca55a8ac40378 Mon Sep 17 00:00:00 2001 From: chen shuai Date: Fri, 22 Mar 2019 14:04:40 +0800 Subject: [PATCH] feat: close club --- config/router.config.js | 46 ++++++++++++------------- src/locales/en-US/menu.js | 2 +- src/locales/pt-BR/menu.js | 2 +- src/locales/zh-CN/menu.js | 2 +- src/locales/zh-TW/menu.js | 2 +- src/pages/Editor/GGEditor/Flow/index.js | 2 ++ src/pages/Editor/GGEditor/Koni/index.js | 2 ++ src/pages/Editor/GGEditor/Mind/index.js | 2 ++ 8 files changed, 33 insertions(+), 27 deletions(-) diff --git a/config/router.config.js b/config/router.config.js index 32e8172c..2bc602e8 100644 --- a/config/router.config.js +++ b/config/router.config.js @@ -93,29 +93,6 @@ export default [ }, ], }, - // editor - { - name: 'editor', - icon: 'highlight', - path: '/editor', - routes: [ - { - path: '/editor/flow', - name: 'flow', - component: './Editor/GGEditor/Flow', - }, - { - path: '/editor/mind', - name: 'mind', - component: './Editor/GGEditor/Mind', - }, - { - path: '/editor/koni', - name: 'koni', - component: './Editor/GGEditor/Koni', - }, - ], - }, // list { path: '/list', @@ -288,6 +265,29 @@ export default [ }, ], }, + // editor + { + name: 'editor', + icon: 'highlight', + path: '/editor', + routes: [ + { + path: '/editor/flow', + name: 'flow', + component: './Editor/GGEditor/Flow', + }, + { + path: '/editor/mind', + name: 'mind', + component: './Editor/GGEditor/Mind', + }, + { + path: '/editor/koni', + name: 'koni', + component: './Editor/GGEditor/Koni', + }, + ], + }, ], }, { diff --git a/src/locales/en-US/menu.js b/src/locales/en-US/menu.js index 1d673466..25805ead 100644 --- a/src/locales/en-US/menu.js +++ b/src/locales/en-US/menu.js @@ -38,7 +38,7 @@ export default { 'menu.account.settings': 'Account Settings', 'menu.account.trigger': 'Trigger Error', 'menu.account.logout': 'Logout', - 'menu.editor': 'Editor', + 'menu.editor': 'Graphic Editor', 'menu.editor.flow': 'Flow Editor', 'menu.editor.mind': 'Mind Editor', 'menu.editor.koni': 'Koni Editor', diff --git a/src/locales/pt-BR/menu.js b/src/locales/pt-BR/menu.js index ee82fb1e..994f73cd 100644 --- a/src/locales/pt-BR/menu.js +++ b/src/locales/pt-BR/menu.js @@ -38,7 +38,7 @@ export default { 'menu.account.settings': 'Configurar Conta', 'menu.account.trigger': 'Disparar Erro', 'menu.account.logout': 'Sair', - 'menu.editor': 'Editor', + 'menu.editor': 'Graphic Editor', 'menu.editor.flow': 'Flow Editor', 'menu.editor.mind': 'Mind Editor', 'menu.editor.koni': 'Koni Editor', diff --git a/src/locales/zh-CN/menu.js b/src/locales/zh-CN/menu.js index 0fb0069e..c057bb2a 100644 --- a/src/locales/zh-CN/menu.js +++ b/src/locales/zh-CN/menu.js @@ -38,7 +38,7 @@ export default { 'menu.account.settings': '个人设置', 'menu.account.trigger': '触发报错', 'menu.account.logout': '退出登录', - 'menu.editor': '编辑页', + 'menu.editor': '图形编辑器', 'menu.editor.flow': '流程编辑器', 'menu.editor.mind': '脑图编辑器', 'menu.editor.koni': '拓扑编辑器', diff --git a/src/locales/zh-TW/menu.js b/src/locales/zh-TW/menu.js index 2cf5f9da..2b1a49ea 100644 --- a/src/locales/zh-TW/menu.js +++ b/src/locales/zh-TW/menu.js @@ -38,7 +38,7 @@ export default { 'menu.exception.not-find': '404', 'menu.exception.server-error': '500', 'menu.exception.trigger': '触发错误', - 'menu.editor': '編輯頁', + 'menu.editor': '圖形編輯器', 'menu.editor.flow': '流程編輯器', 'menu.editor.mind': '腦圖編輯器', 'menu.editor.koni': '拓撲編輯器', diff --git a/src/pages/Editor/GGEditor/Flow/index.js b/src/pages/Editor/GGEditor/Flow/index.js index 6acac054..4dc19867 100644 --- a/src/pages/Editor/GGEditor/Flow/index.js +++ b/src/pages/Editor/GGEditor/Flow/index.js @@ -10,6 +10,8 @@ import styles from './index.less'; import { FormattedMessage } from 'umi/locale'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; +GGEditor.setTrackable(false); + const FlowPage = () => { return ( { return ( { return (