|
|
|
@ -3,8 +3,11 @@ import relativeTime from 'dayjs/plugin/relativeTime'
|
|
|
|
|
import customParseFormat from 'dayjs/plugin/customParseFormat' |
|
|
|
|
import duration from 'dayjs/plugin/duration' |
|
|
|
|
import utc from 'dayjs/plugin/utc' |
|
|
|
|
import { defineNuxtPlugin } from '#imports' |
|
|
|
|
|
|
|
|
|
dayjs.extend(utc) |
|
|
|
|
dayjs.extend(relativeTime) |
|
|
|
|
dayjs.extend(customParseFormat) |
|
|
|
|
dayjs.extend(duration) |
|
|
|
|
export default defineNuxtPlugin(() => { |
|
|
|
|
dayjs.extend(utc) |
|
|
|
|
dayjs.extend(relativeTime) |
|
|
|
|
dayjs.extend(customParseFormat) |
|
|
|
|
dayjs.extend(duration) |
|
|
|
|
}) |
|
|
|
|