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