mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-04 16:09:59 +00:00
feat(command): add settings page
This commit is contained in:
parent
2332d7091a
commit
fd93462f42
1 changed files with 12 additions and 0 deletions
|
@ -240,6 +240,7 @@ export const useCommands = (cmds: () => CommandProvider[]) => {
|
|||
export const provideGlobalCommands = () => {
|
||||
const { locale, t } = useI18n()
|
||||
const { locales } = useI18n() as { locales: ComputedRef<LocaleObject[]> }
|
||||
const router = useRouter()
|
||||
const users = useUsers()
|
||||
const masto = useMasto()
|
||||
const colorMode = useColorMode()
|
||||
|
@ -258,6 +259,17 @@ export const provideGlobalCommands = () => {
|
|||
},
|
||||
})
|
||||
|
||||
useCommand({
|
||||
scope: 'Navigation',
|
||||
|
||||
name: () => t('nav.settings'),
|
||||
icon: 'i-ri:settings-4-line',
|
||||
|
||||
onActivate() {
|
||||
router.push('/settings')
|
||||
},
|
||||
})
|
||||
|
||||
useCommand({
|
||||
scope: 'Preferences',
|
||||
|
||||
|
|
Loading…
Reference in a new issue