Skip to content

Commit 741fd43

Browse files
author
NicolaCage
committed
feat: add feedback
1 parent 44861f9 commit 741fd43

File tree

4 files changed

+2550
-22
lines changed

4 files changed

+2550
-22
lines changed

app/config/locale/en-US.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,21 @@
276276
"use": "Use Manual",
277277
"release": "Release Note",
278278
"forum": "Help Forum",
279-
"nGql": "nGQL"
279+
"nGql": "nGQL",
280+
"feedback": "Trouble Feedback",
281+
"repo": "GitHub Repo",
282+
"trial": "Enterprise Edition Trial",
283+
"contact":"Contact Us"
280284
},
281285
"link": {
282286
"nGQLHref": "https://docs.nebula-graph.io/3.3.0/3.ngql-guide/1.nGQL-overview/1.overview/",
283287
"mannualHref": "https://docs.nebula-graph.io/3.3.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/",
284288
"startStudioHref": "https://docs.nebula-graph.io/3.3.0/nebula-studio/quick-start/st-ug-plan-schema/",
285289
"versionLogHref": "https://docs.nebula-graph.io/3.3.0/20.appendix/release-notes/studio-release-note/",
286-
"forumHref": "https://discuss.nebula-graph.io/"
290+
"forumHref": "https://discuss.nebula-graph.io/",
291+
"feedback": "https://app.slack.com/client/TJB3N2BPD/CJNFUM7AR",
292+
"trial": "https://www.nebula-graph.io/visualization-tools-free-trial",
293+
"contact":"https://www.nebula-graph.io/contact"
287294
},
288295
"sketch": {
289296
"dragTip": "Drag and drop to the canvas",

app/config/locale/zh-CN.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,21 @@
276276
"use": "使用手册",
277277
"release": "更新日志",
278278
"forum": "求助论坛",
279-
"nGql": "nGQL"
279+
"nGql": "nGQL",
280+
"feedback": "问题反馈",
281+
"repo": "GitHub项目",
282+
"trial": "企业版试用",
283+
"contact":"联系我们"
280284
},
281285
"link": {
282286
"nGQLHref": "https://docs.nebula-graph.com.cn/3.3.0/3.ngql-guide/1.nGQL-overview/1.overview/",
283287
"mannualHref": "https://docs.nebula-graph.com.cn/3.3.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/",
284288
"startStudioHref": "https://docs.nebula-graph.com.cn/3.3.0/nebula-studio/quick-start/st-ug-plan-schema/",
285289
"versionLogHref": "https://docs.nebula-graph.com.cn/3.3.0/20.appendix/release-notes/studio-release-note/",
286-
"forumHref": "https://discuss.nebula-graph.com.cn/"
290+
"forumHref": "https://discuss.nebula-graph.com.cn/",
291+
"feedback": "https://discuss.nebula-graph.com.cn/tag/nebula-studio",
292+
"trial": "https://wj.qq.com/s2/10158890/69a8",
293+
"contact":"https://www.nebula-graph.com.cn/contact"
287294
},
288295
"sketch": {
289296
"dragTip": "拖放到画布上",

app/pages/MainPage/Header/HelpMenu/index.tsx

+69-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const HelpMenu = () => {
2828
},
2929
{
3030
key: 'language',
31-
label: <Icon className={styles.navIcon} type="icon-studio-nav-language" />,
31+
label: <Icon className={styles.navIcon} type="icon-studio-nav-language" />,
3232
popupClassName: styles.langMenu,
3333
popupOffset: [-35, 20],
3434
children: Object.keys(INTL_LOCALE_SELECT).map(locale => ({
@@ -43,6 +43,74 @@ const HelpMenu = () => {
4343
<Icon className={styles.navIcon} type="icon-studio-nav-help" />
4444
</Link>
4545
},
46+
{
47+
key: 'feedback',
48+
popupClassName: styles.accountMenu,
49+
popupOffset: [-35, 20],
50+
label: <Icon className={styles.navIcon} type="icon-navbar-feedback" />,
51+
children: [
52+
{
53+
key: 'feedback',
54+
label: <a
55+
className={styles.nebulaLink}
56+
href={intl.get('link.feedback')}
57+
target="_blank"
58+
rel="noreferrer"
59+
data-track-category="navigation"
60+
data-track-action="feedback"
61+
data-track-label="from_navigation"
62+
>
63+
<Icon className={styles.menuIcon} type="icon-navbar-troubleFeedback" />
64+
{intl.get('menu.feedback')}
65+
</a>
66+
},
67+
{
68+
key: 'repo',
69+
label: <a
70+
className={styles.nebulaLink}
71+
href="https://github.com/vesoft-inc/nebula-studio"
72+
target="_blank"
73+
rel="noreferrer"
74+
data-track-category="navigation"
75+
data-track-action="repo"
76+
data-track-label="from_navigation"
77+
>
78+
<Icon className={styles.menuIcon} type="icon-studio-nav-github" />
79+
{intl.get('menu.repo')}
80+
</a>
81+
},
82+
{
83+
key: 'trial',
84+
label: <a
85+
className={styles.nebulaLink}
86+
href={intl.get('link.trial')}
87+
target="_blank"
88+
rel="noreferrer"
89+
data-track-category="navigation"
90+
data-track-action="trial"
91+
data-track-label="from_navigation"
92+
>
93+
<Icon className={styles.menuIcon} type="icon-navbar-enterprise" />
94+
{intl.get('menu.trial')}
95+
</a>
96+
},
97+
{
98+
key: 'contact',
99+
label: <a
100+
className={styles.nebulaLink}
101+
href={intl.get('link.contact')}
102+
target="_blank"
103+
rel="noreferrer"
104+
data-track-category="navigation"
105+
data-track-action="contact"
106+
data-track-label="from_navigation"
107+
>
108+
<Icon className={styles.menuIcon} type="icon-navbar-contactUs" />
109+
{intl.get('menu.contact')}
110+
</a>
111+
}
112+
]
113+
},
46114
{
47115
key: 'user',
48116
popupClassName: styles.accountMenu,

app/static/fonts/iconpark.js

+2,463-17
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)