1
0

fix moderation dash

This commit is contained in:
Jai A
2024-03-29 22:09:45 -07:00
parent 1abfb175b5
commit 3b0216ca7e
3 changed files with 2 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
// eslint-disable-next-line import/no-named-as-default-member
dayjs.extend(relativeTime)
export const useCurrentDate = () => useState('currentDate', () => Date.now())

View File

@@ -123,7 +123,7 @@ const TIME_24H = 86400000
const TIME_48H = TIME_24H * 2
const { data: projects } = await useAsyncData('moderation/projects?count=1000', () =>
useBaseFetch('moderation/projects?count=1000')
useBaseFetch('moderation/projects?count=1000', { internal: true })
)
const members = ref([])
const projectType = ref('all')

View File

@@ -2,7 +2,7 @@ import dayjs from 'dayjs'
// note: build step can miss unix import for some reason, so
// we have to import it like this
// eslint-disable-next-line import/no-named-as-default-member
const { unix } = dayjs
export function useCountryNames(style = 'long') {