From b06217adc0ee52b9fc933503a82f06a6829e1878 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Sat, 16 Dec 2023 12:43:58 +0800 Subject: [PATCH] perf: add bug report entrance --- frontend/src/components/sidebar/Ribbon.vue | 7 +++++++ frontend/src/langs/en-us.json | 1 + frontend/src/langs/zh-cn.json | 1 + 3 files changed, 9 insertions(+) diff --git a/frontend/src/components/sidebar/Ribbon.vue b/frontend/src/components/sidebar/Ribbon.vue index 265f32f..0ede309 100644 --- a/frontend/src/components/sidebar/Ribbon.vue +++ b/frontend/src/components/sidebar/Ribbon.vue @@ -68,6 +68,10 @@ const preferencesOptions = computed(() => { // key: 'help', // icon: render.renderIcon(Help, { strokeWidth: 3 }), // }, + { + label: i18n.t('menu.report_bug'), + key: 'report', + }, { label: i18n.t('menu.check_update'), key: 'update', @@ -97,6 +101,9 @@ const onSelectPreferenceMenu = (key) => { case 'update': prefStore.checkForUpdate(true) break + case 'report': + BrowserOpenURL('https://github.com/tiny-craft/tiny-rdm/issues') + break case 'about': dialogStore.openAboutDialog() break diff --git a/frontend/src/langs/en-us.json b/frontend/src/langs/en-us.json index 9deac01..57734e9 100644 --- a/frontend/src/langs/en-us.json +++ b/frontend/src/langs/en-us.json @@ -293,6 +293,7 @@ "preferences": "Preferences", "help": "Help", "check_update": "Check for Updates...", + "report_bug": "Report a Bug", "about": "About" }, "log": { diff --git a/frontend/src/langs/zh-cn.json b/frontend/src/langs/zh-cn.json index 349e6ae..f594878 100644 --- a/frontend/src/langs/zh-cn.json +++ b/frontend/src/langs/zh-cn.json @@ -292,6 +292,7 @@ "preferences": "偏好设置", "help": "帮助", "check_update": "检查更新...", + "report_bug": "报告错误", "about": "关于" }, "log": {