Add temporary widget testing panel

This commit is contained in:
Benjamin Lu
2025-06-30 14:19:39 -04:00
parent 56f59103a5
commit 1bd85099ec
4 changed files with 422 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ export function useSettingUI(
| 'server-config'
| 'user'
| 'credits'
| 'widget-test'
) {
const { t } = useI18n()
const { isLoggedIn } = useCurrentUser()
@@ -127,6 +128,17 @@ export function useSettingUI(
)
}
const widgetTestPanel: SettingPanelItem = {
node: {
key: 'widget-test',
label: 'Widget Test',
children: []
},
component: defineAsyncComponent(
() => import('@/components/dialog/content/setting/WidgetTestPanel.vue')
)
}
const panels = computed<SettingPanelItem[]>(() =>
[
aboutPanel,
@@ -134,6 +146,7 @@ export function useSettingUI(
userPanel,
keybindingPanel,
extensionPanel,
widgetTestPanel,
...(isElectron() ? [serverConfigPanel] : [])
].filter((panel) => panel.component)
)
@@ -182,6 +195,7 @@ export function useSettingUI(
children: [
keybindingPanel.node,
extensionPanel.node,
widgetTestPanel.node,
aboutPanel.node,
...(isElectron() ? [serverConfigPanel.node] : [])
].map(translateCategory)