File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 "settings" : " Settings" ,
2929 "changelog" : " Changelog" ,
3030 "documentation" : " Documentation" ,
31+ "faq" : " FAQ" ,
3132 "github" : " GitHub" ,
3233 "drag" : " Drag" ,
3334 "groups" : {
Original file line number Diff line number Diff line change 2828 "settings" : " 设置" ,
2929 "changelog" : " 更新日志" ,
3030 "documentation" : " 官方文档" ,
31+ "faq" : " FAQ" ,
3132 "github" : " GitHub" ,
3233 "drag" : " 拖拽" ,
3334 "groups" : {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import NavItem from './NavItem.vue';
77import { applySidebarCustomization } from ' @/utils/sidebarCustomization' ;
88import ChangelogDialog from ' @/components/shared/ChangelogDialog.vue' ;
99
10- const { t } = useI18n ();
10+ const { t , locale } = useI18n ();
1111
1212const customizer = useCustomizerStore ();
1313const sidebarMenu = shallowRef (sidebarItems);
@@ -109,6 +109,13 @@ function openIframeLink(url) {
109109 }
110110}
111111
112+ function openFaqLink () {
113+ const faqUrl = locale .value === ' en-US'
114+ ? ' https://docs.astrbot.app/en/faq.html'
115+ : ' https://docs.astrbot.app/faq.html' ;
116+ openIframeLink (faqUrl);
117+ }
118+
112119let offsetX = 0 ;
113120let offsetY = 0 ;
114121let isDragging = false ;
@@ -264,6 +271,10 @@ function openChangelogDialog() {
264271 @click =" toggleIframe" >
265272 {{ t('core.navigation.documentation') }}
266273 </v-btn >
274+ <v-btn class =" sidebar-footer-btn" size =" small" variant =" text" prepend-icon =" mdi-frequently-asked-questions"
275+ @click =" openFaqLink" >
276+ {{ t('core.navigation.faq') }}
277+ </v-btn >
267278 <v-btn class =" sidebar-footer-btn" size =" small" variant =" text" prepend-icon =" mdi-github"
268279 @click =" openIframeLink('https://github.com/AstrBotDevs/AstrBot')" >
269280 {{ t('core.navigation.github') }}
You can’t perform that action at this time.
0 commit comments