diff --git a/app/config/locale/en-US.json b/app/config/locale/en-US.json index 1c2883c4..97f5aae0 100644 --- a/app/config/locale/en-US.json +++ b/app/config/locale/en-US.json @@ -276,14 +276,21 @@ "use": "Use Manual", "release": "Release Note", "forum": "Help Forum", - "nGql": "nGQL" + "nGql": "nGQL", + "feedback": "Trouble Feedback", + "repo": "GitHub Repo", + "trial": "Enterprise Edition Trial", + "contact":"Contact Us" }, "link": { "nGQLHref": "https://docs.nebula-graph.io/3.3.0/3.ngql-guide/1.nGQL-overview/1.overview/", "mannualHref": "https://docs.nebula-graph.io/3.3.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/", "startStudioHref": "https://docs.nebula-graph.io/3.3.0/nebula-studio/quick-start/st-ug-plan-schema/", "versionLogHref": "https://docs.nebula-graph.io/3.3.0/20.appendix/release-notes/studio-release-note/", - "forumHref": "https://discuss.nebula-graph.io/" + "forumHref": "https://discuss.nebula-graph.io/", + "feedback": "https://app.slack.com/client/TJB3N2BPD/CJNFUM7AR", + "trial": "https://www.nebula-graph.io/visualization-tools-free-trial", + "contact":"https://www.nebula-graph.io/contact" }, "sketch": { "dragTip": "Drag and drop to the canvas", diff --git a/app/config/locale/zh-CN.json b/app/config/locale/zh-CN.json index 9f8817b5..a9f803ec 100644 --- a/app/config/locale/zh-CN.json +++ b/app/config/locale/zh-CN.json @@ -276,14 +276,21 @@ "use": "使用手册", "release": "更新日志", "forum": "求助论坛", - "nGql": "nGQL" + "nGql": "nGQL", + "feedback": "问题反馈", + "repo": "GitHub项目", + "trial": "企业版试用", + "contact":"联系我们" }, "link": { "nGQLHref": "https://docs.nebula-graph.com.cn/3.3.0/3.ngql-guide/1.nGQL-overview/1.overview/", "mannualHref": "https://docs.nebula-graph.com.cn/3.3.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/", "startStudioHref": "https://docs.nebula-graph.com.cn/3.3.0/nebula-studio/quick-start/st-ug-plan-schema/", "versionLogHref": "https://docs.nebula-graph.com.cn/3.3.0/20.appendix/release-notes/studio-release-note/", - "forumHref": "https://discuss.nebula-graph.com.cn/" + "forumHref": "https://discuss.nebula-graph.com.cn/", + "feedback": "https://discuss.nebula-graph.com.cn/tag/nebula-studio", + "trial": "https://wj.qq.com/s2/10158890/69a8", + "contact":"https://www.nebula-graph.com.cn/contact" }, "sketch": { "dragTip": "拖放到画布上", diff --git a/app/pages/MainPage/Header/HelpMenu/index.tsx b/app/pages/MainPage/Header/HelpMenu/index.tsx index b7708761..debddf88 100644 --- a/app/pages/MainPage/Header/HelpMenu/index.tsx +++ b/app/pages/MainPage/Header/HelpMenu/index.tsx @@ -28,7 +28,7 @@ const HelpMenu = () => { }, { key: 'language', - label: , + label: , popupClassName: styles.langMenu, popupOffset: [-35, 20], children: Object.keys(INTL_LOCALE_SELECT).map(locale => ({ @@ -43,6 +43,74 @@ const HelpMenu = () => { }, + { + key: 'feedback', + popupClassName: styles.accountMenu, + popupOffset: [-35, 20], + label: , + children: [ + { + key: 'feedback', + label: + + {intl.get('menu.feedback')} + + }, + { + key: 'repo', + label: + + {intl.get('menu.repo')} + + }, + { + key: 'trial', + label: + + {intl.get('menu.trial')} + + }, + { + key: 'contact', + label: + + {intl.get('menu.contact')} + + } + ] + }, { key: 'user', popupClassName: styles.accountMenu, diff --git a/app/static/fonts/iconpark.js b/app/static/fonts/iconpark.js index 5af8bfe6..68285afc 100644 --- a/app/static/fonts/iconpark.js +++ b/app/static/fonts/iconpark.js @@ -1,17 +1,2463 @@ -!function(e) { - let t; let n; let d; let o; let i; let a; let r = ''; function c() { - i || (i = !0, d()); - } t = function() { - let e; let t; let n; (n = document.createElement('div')).innerHTML = r, r = null, (t = n.getElementsByTagName('svg')[0]) && (t.setAttribute('aria-hidden', 'true'), t.style.position = 'absolute', t.style.width = 0, t.style.height = 0, t.style.overflow = 'hidden', e = t, (n = document.body).firstChild ? (t = n.firstChild).parentNode.insertBefore(e, t) : n.appendChild(e)); - }, document.addEventListener ? ['complete', 'loaded', 'interactive'].indexOf(document.readyState) > -1 ? setTimeout(t, 0) : (n = function() { - document.removeEventListener('DOMContentLoaded', n, !1), t(); - }, document.addEventListener('DOMContentLoaded', n, !1)) : document.attachEvent && (d = t, o = e.document, i = !1, (a = function() { - try { - o.documentElement.doScroll('left'); - } catch (e) { - return void setTimeout(a, 50); - } c(); - })(), o.onreadystatechange = function() { - 'complete' == o.readyState && (o.onreadystatechange = null, c()); - }); -}(window); \ No newline at end of file +(function (window) { + document.addEventListener('DOMContentLoaded', () => { + const root = document.createElement('DIV') + root.id = 'yunser-iconfont-symbols' + root.innerHTML = ` + + ` + document.body.appendChild(root) + }) +})(window)