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

33
composables/about.ts Normal file
View file

@ -0,0 +1,33 @@
export interface Team {
github: string
display: string
twitter: string
mastodon: string
}
export const teams: Team[] = [
{
github: 'antfu',
display: 'Anthony Fu',
twitter: 'antfu7',
mastodon: 'antfu@mas.to',
},
{
github: 'patak-dev',
display: 'Patak',
twitter: 'patak_dev',
mastodon: 'patak@webtoo.ls',
},
{
github: 'danielroe',
display: 'Daniel Roe',
twitter: 'danielcroe',
mastodon: 'daniel@roe.dev',
},
{
github: 'sxzz',
display: 'sxzz',
twitter: 'sanxiaozhizi',
mastodon: 'sxzz@mas.to',
},
].sort(() => Math.random() - 0.5)

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()