diff --git a/web/config/router.config.js b/web/config/router.config.js
index d94334b3..867d3e46 100644
--- a/web/config/router.config.js
+++ b/web/config/router.config.js
@@ -18,7 +18,7 @@ export default [
authority: ["admin", "user"],
routes: [
// cluster
- { path: "/", redirect: "/cluster/overview" },
+ { path: "/", redirect: "/cluster/metrics" },
{
path: "/cluster",
name: "cluster",
@@ -33,20 +33,20 @@ export default [
// { path: '/', redirect: '/' },
// ],
// },
- {
- path: "/cluster/overview",
- name: "overview",
- component: "./Cluster/NewOverview",
- // hideInMenu: true,
- routes: [{ path: "/", redirect: "/" }],
- },
- {
- path: "/cluster/monitoring/:cluster_id",
- name: "cluster",
- component: "./Cluster/ClusterMonitor",
- hideInMenu: true,
- routes: [{ path: "/", redirect: "/" }],
- },
+ // {
+ // path: "/cluster/overview",
+ // name: "overview",
+ // component: "./Cluster/NewOverview",
+ // // hideInMenu: true,
+ // routes: [{ path: "/", redirect: "/" }],
+ // },
+ // {
+ // path: "/cluster/monitoring/:cluster_id",
+ // name: "cluster",
+ // component: "./Cluster/ClusterMonitor",
+ // hideInMenu: true,
+ // routes: [{ path: "/", redirect: "/" }],
+ // },
{
path: "/cluster/metrics/",
name: "monitoring",
@@ -101,243 +101,243 @@ export default [
// },
//alerting
- {
- path: "/alerting",
- name: "alerting",
- icon: "alert",
- routes: [
- {
- routes: [{ path: "/", redirect: "/" }],
- path: "/alerting/overview",
- component: "./Alerting/pages/Overview/Overview",
- name: "overview",
- },
- {
- routes: [{ path: "/", redirect: "/" }],
- path: "/alerting/monitor",
- component: "./Alerting/index",
- name: "monitor",
- },
- {
- routes: [{ path: "/", redirect: "/" }],
- path: "/alerting/destination",
- component: "./Alerting/destination",
- name: "destination",
- },
- ],
- },
+ // {
+ // path: "/alerting",
+ // name: "alerting",
+ // icon: "alert",
+ // routes: [
+ // {
+ // routes: [{ path: "/", redirect: "/" }],
+ // path: "/alerting/overview",
+ // component: "./Alerting/pages/Overview/Overview",
+ // name: "overview",
+ // },
+ // {
+ // routes: [{ path: "/", redirect: "/" }],
+ // path: "/alerting/monitor",
+ // component: "./Alerting/index",
+ // name: "monitor",
+ // },
+ // {
+ // routes: [{ path: "/", redirect: "/" }],
+ // path: "/alerting/destination",
+ // component: "./Alerting/destination",
+ // name: "destination",
+ // },
+ // ],
+ // },
//data
- {
- path: "/data",
- name: "data",
- icon: "database",
- routes: [
- // {
- // path: '/data/overview',
- // name: 'overview',
- // component: './DataManagement/IndexSummary',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- {
- path: "/data/index",
- name: "index",
- component: "./DataManagement/Index",
- routes: [{ path: "/", redirect: "/" }],
- },
- // {
- // path: '/data/document',
- // name: 'document',
- // component: './DataManagement/Document',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- // {
- // path: '/data/template',
- // name: 'template',
- // component: './DataManagement/IndexTemplate',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- // {
- // path: '/data/lifecycle',
- // name: 'lifecycle',
- // component: './DataManagement/IndexLifeCycle',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- {
- routes: [{ path: "/", redirect: "/" }],
- path: "/data/discover",
- name: "discover",
- component: "./DataManagement/Discover",
- },
- {
- routes: [{ path: "/", redirect: "/" }],
- path: "/data/views/",
- name: "indexPatterns",
- component: "./DataManagement/IndexPatterns",
- },
- ],
- },
+ // {
+ // path: "/data",
+ // name: "data",
+ // icon: "database",
+ // routes: [
+ // // {
+ // // path: '/data/overview',
+ // // name: 'overview',
+ // // component: './DataManagement/IndexSummary',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // {
+ // path: "/data/index",
+ // name: "index",
+ // component: "./DataManagement/Index",
+ // routes: [{ path: "/", redirect: "/" }],
+ // },
+ // // {
+ // // path: '/data/document',
+ // // name: 'document',
+ // // component: './DataManagement/Document',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // // {
+ // // path: '/data/template',
+ // // name: 'template',
+ // // component: './DataManagement/IndexTemplate',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // // {
+ // // path: '/data/lifecycle',
+ // // name: 'lifecycle',
+ // // component: './DataManagement/IndexLifeCycle',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // {
+ // routes: [{ path: "/", redirect: "/" }],
+ // path: "/data/discover",
+ // name: "discover",
+ // component: "./DataManagement/Discover",
+ // },
+ // {
+ // routes: [{ path: "/", redirect: "/" }],
+ // path: "/data/views/",
+ // name: "indexPatterns",
+ // component: "./DataManagement/IndexPatterns",
+ // },
+ // ],
+ // },
//search
- {
- path: "/search",
- name: "search",
- icon: "search",
- routes: [
- // {
- // path: '/search/overview',
- // name: 'overview',
- // component: './SearchManage/template/Template',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- // {
- // path: '/search/template',
- // name: 'template',
- // component: './SearchManage/template/Template',
- // routes: [
- // {
- // path: '/search/template',
- // redirect: '/search/template/template',
- // },
- // {
- // path: '/search/template/template',
- // component: './SearchManage/template/SearchTemplate',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- // {
- // path: '/search/template/:cluster_id',
- // component: './SearchManage/template/SearchTemplate',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- // {
- // path: '/search/template/history',
- // component: './SearchManage/template/History',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- // ]
- // },
- {
- path: "/search/alias",
- name: "alias",
- component: "./SearchManage/alias/Alias",
- routes: [
- {
- path: "/search/alias",
- redirect: "/search/alias/index",
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- },
- {
- path: "/search/alias/index",
- component: "./SearchManage/alias/AliasManage",
- routes: [{ path: "/", redirect: "/" }],
- },
- {
- path: "/search/alias/rule",
- component: "./SearchManage/alias/Rule",
- routes: [{ path: "/", redirect: "/" }],
- },
- ],
- },
- // {
- // path: '/search/dict',
- // name: 'dict',
- // component: './SearchManage/dict/Dict',
- // routes: [
- // {
- // path: '/search/dict',
- // redirect: '/search/dict/professional',
- // // routes:[
- // // { path: '/', redirect: '/' },
- // // ],
- // },
- // {
- // path: '/search/dict/professional',
- // component: './SearchManage/dict/Pro',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- // {
- // path: '/search/dict/common',
- // component: './SearchManage/dict/Common',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // }
- // ]
- // },
- // {
- // path: '/search/analyzer',
- // name: 'analyzer',
- // component: './SearchManage/analyzer/Analyzer',
- // routes: [
- // {
- // path: '/search/analyzer',
- // redirect: '/search/analyzer/manage',
- // },
- // {
- // path: '/search/analyzer/manage',
- // component: './SearchManage/analyzer/Manage',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // },
- // {
- // path: '/search/analyzer/test',
- // component: './SearchManage/analyzer/AnalyzerTest',
- // routes:[
- // { path: '/', redirect: '/' },
- // ],
- // }
- // ]
- // }
- //, {
- // path: '/search/nlp',
- // name: 'nlp',
- // component: './SearchManage/nlp/NLP',
- // routes: [
- // {
- // path: '/search/nlp',
- // redirect: '/search/nlp/query',
- // },
- // {
- // path: '/search/nlp/query',
- // component: './SearchManage/nlp/Query',
- // },
- // {
- // path: '/search/nlp/intention',
- // component: './SearchManage/nlp/Intention',
- // },
- // {
- // path: '/search/nlp/knowledge',
- // component: './SearchManage/nlp/Knowledge',
- // },
- // {
- // path: '/search/nlp/text',
- // component: './SearchManage/nlp/Text',
- // }
- //]
- //},
- ],
- },
+ // {
+ // path: "/search",
+ // name: "search",
+ // icon: "search",
+ // routes: [
+ // // {
+ // // path: '/search/overview',
+ // // name: 'overview',
+ // // component: './SearchManage/template/Template',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // // {
+ // // path: '/search/template',
+ // // name: 'template',
+ // // component: './SearchManage/template/Template',
+ // // routes: [
+ // // {
+ // // path: '/search/template',
+ // // redirect: '/search/template/template',
+ // // },
+ // // {
+ // // path: '/search/template/template',
+ // // component: './SearchManage/template/SearchTemplate',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // // {
+ // // path: '/search/template/:cluster_id',
+ // // component: './SearchManage/template/SearchTemplate',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // // {
+ // // path: '/search/template/history',
+ // // component: './SearchManage/template/History',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // // ]
+ // // },
+ // {
+ // path: "/search/alias",
+ // name: "alias",
+ // component: "./SearchManage/alias/Alias",
+ // routes: [
+ // {
+ // path: "/search/alias",
+ // redirect: "/search/alias/index",
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // },
+ // {
+ // path: "/search/alias/index",
+ // component: "./SearchManage/alias/AliasManage",
+ // routes: [{ path: "/", redirect: "/" }],
+ // },
+ // {
+ // path: "/search/alias/rule",
+ // component: "./SearchManage/alias/Rule",
+ // routes: [{ path: "/", redirect: "/" }],
+ // },
+ // ],
+ // },
+ // // {
+ // // path: '/search/dict',
+ // // name: 'dict',
+ // // component: './SearchManage/dict/Dict',
+ // // routes: [
+ // // {
+ // // path: '/search/dict',
+ // // redirect: '/search/dict/professional',
+ // // // routes:[
+ // // // { path: '/', redirect: '/' },
+ // // // ],
+ // // },
+ // // {
+ // // path: '/search/dict/professional',
+ // // component: './SearchManage/dict/Pro',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // // {
+ // // path: '/search/dict/common',
+ // // component: './SearchManage/dict/Common',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // }
+ // // ]
+ // // },
+ // // {
+ // // path: '/search/analyzer',
+ // // name: 'analyzer',
+ // // component: './SearchManage/analyzer/Analyzer',
+ // // routes: [
+ // // {
+ // // path: '/search/analyzer',
+ // // redirect: '/search/analyzer/manage',
+ // // },
+ // // {
+ // // path: '/search/analyzer/manage',
+ // // component: './SearchManage/analyzer/Manage',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // },
+ // // {
+ // // path: '/search/analyzer/test',
+ // // component: './SearchManage/analyzer/AnalyzerTest',
+ // // routes:[
+ // // { path: '/', redirect: '/' },
+ // // ],
+ // // }
+ // // ]
+ // // }
+ // //, {
+ // // path: '/search/nlp',
+ // // name: 'nlp',
+ // // component: './SearchManage/nlp/NLP',
+ // // routes: [
+ // // {
+ // // path: '/search/nlp',
+ // // redirect: '/search/nlp/query',
+ // // },
+ // // {
+ // // path: '/search/nlp/query',
+ // // component: './SearchManage/nlp/Query',
+ // // },
+ // // {
+ // // path: '/search/nlp/intention',
+ // // component: './SearchManage/nlp/Intention',
+ // // },
+ // // {
+ // // path: '/search/nlp/knowledge',
+ // // component: './SearchManage/nlp/Knowledge',
+ // // },
+ // // {
+ // // path: '/search/nlp/text',
+ // // component: './SearchManage/nlp/Text',
+ // // }
+ // //]
+ // //},
+ // ],
+ // },
//
// //sync
// {
diff --git a/web/src/components/GlobalHeader/RightContent.js b/web/src/components/GlobalHeader/RightContent.js
index 82ac01d8..16338c44 100644
--- a/web/src/components/GlobalHeader/RightContent.js
+++ b/web/src/components/GlobalHeader/RightContent.js
@@ -119,6 +119,14 @@ export default class GlobalHeaderRight extends PureComponent {
{" "}
+
+ {" "}
+
+
{/*
)} */}
-
+
+
+
+
{
@@ -13,21 +13,24 @@ export default class SelectLang extends PureComponent {
const { className } = this.props;
const selectedLang = getLocale();
const langMenu = (
-