mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
500 B
16 lines
500 B
2 years ago
|
import dayjs from 'dayjs'
|
||
2 years ago
|
import relativeTime from 'dayjs/plugin/relativeTime.js'
|
||
|
import customParseFormat from 'dayjs/plugin/customParseFormat.js'
|
||
|
import duration from 'dayjs/plugin/duration.js'
|
||
|
import utc from 'dayjs/plugin/utc.js'
|
||
|
import weekday from 'dayjs/plugin/weekday.js'
|
||
2 years ago
|
import { defineNuxtPlugin } from '#imports'
|
||
2 years ago
|
|
||
2 years ago
|
export default defineNuxtPlugin(() => {
|
||
|
dayjs.extend(utc)
|
||
|
dayjs.extend(relativeTime)
|
||
|
dayjs.extend(customParseFormat)
|
||
|
dayjs.extend(duration)
|
||
2 years ago
|
dayjs.extend(weekday)
|
||
2 years ago
|
})
|