Included missing dayjs plugins
This commit is contained in:
parent
bc8f2980d3
commit
4c62c7c97f
2 changed files with 16 additions and 0 deletions
|
@ -1,6 +1,13 @@
|
||||||
import dayjs, {Dayjs} from "dayjs";
|
import dayjs, {Dayjs} from "dayjs";
|
||||||
import EventMail from "./EventMail";
|
import EventMail from "./EventMail";
|
||||||
|
|
||||||
|
import utc from 'dayjs/plugin/utc';
|
||||||
|
import timezone from 'dayjs/plugin/timezone';
|
||||||
|
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
||||||
|
dayjs.extend(utc);
|
||||||
|
dayjs.extend(timezone);
|
||||||
|
dayjs.extend(localizedFormat);
|
||||||
|
|
||||||
export default class EventAttendeeMail extends EventMail {
|
export default class EventAttendeeMail extends EventMail {
|
||||||
/**
|
/**
|
||||||
* Returns the email text as HTML representation.
|
* Returns the email text as HTML representation.
|
||||||
|
|
|
@ -2,6 +2,15 @@ import {createEvent} from "ics";
|
||||||
import dayjs, {Dayjs} from "dayjs";
|
import dayjs, {Dayjs} from "dayjs";
|
||||||
import EventMail from "./EventMail";
|
import EventMail from "./EventMail";
|
||||||
|
|
||||||
|
import utc from 'dayjs/plugin/utc';
|
||||||
|
import timezone from 'dayjs/plugin/timezone';
|
||||||
|
import toArray from 'dayjs/plugin/toArray';
|
||||||
|
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
||||||
|
dayjs.extend(utc);
|
||||||
|
dayjs.extend(timezone);
|
||||||
|
dayjs.extend(toArray);
|
||||||
|
dayjs.extend(localizedFormat);
|
||||||
|
|
||||||
export default class EventOrganizerMail extends EventMail {
|
export default class EventOrganizerMail extends EventMail {
|
||||||
/**
|
/**
|
||||||
* Returns the instance's event as an iCal event in string representation.
|
* Returns the instance's event as an iCal event in string representation.
|
||||||
|
|
Loading…
Reference in a new issue