feat(settings): about page

This commit is contained in:
三咲智子 2023-01-03 04:19:36 +08:00
parent 3563b58651
commit c0a2aca98a
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
7 changed files with 146 additions and 59 deletions

View file

@ -1,5 +1,4 @@
import type { MaybeRef } from '@vueuse/shared'
import type { MaybeComputedRef, UseTimeAgoOptions } from '@vueuse/core'
import type { MaybeComputedRef, MaybeRef, UseTimeAgoOptions } from '@vueuse/core'
const formatter = Intl.NumberFormat()
@ -31,7 +30,7 @@ export const useHumanReadableNumber = () => {
}
export const useFormattedDateTime = (
value: MaybeComputedRef<string | Date | undefined | null>,
value: MaybeComputedRef<string | number | Date | undefined | null>,
options: Intl.DateTimeFormatOptions = { dateStyle: 'long', timeStyle: 'medium' },
) => {
const { locale } = useI18n()