Browse Source

Merge pull request #2935 from nocodb/feat/dayjs-plugin

chore(gui-v2): add plugin export from dayjs plugin file
pull/2936/head
Braks 2 years ago committed by GitHub
parent
commit
023b46fe90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      packages/nc-gui-v2/plugins/a.dayjs.ts

11
packages/nc-gui-v2/plugins/a.dayjs.ts

@ -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)
})

Loading…
Cancel
Save