UNPKG

valaxy-addon-git-log

Version:

Integrates git logs into your page of Valaxy site.

14 lines (11 loc) 432 B
import type { ValaxyAddon } from 'valaxy' import type { GitLogOptions } from '../types' import { useRuntimeConfig } from 'valaxy' import { computed } from 'vue' export function useAddonGitLogConfig() { const runtimeConfig = useRuntimeConfig() return computed<GitLogOptions>(() => { const options = (runtimeConfig.value.addons['valaxy-addon-git-log'] as ValaxyAddon<GitLogOptions>).options return { ...options } }) }