Content-Length: 310698 | pFad | http://github.com/lowcoder-org/lowcoder/pull/770/commits/dafdd3a5b3f7f836f41605a4a6f2c416d994e06b

F8 Cherry release - hotfix by FalkWolsky · Pull Request #770 · lowcoder-org/lowcoder · GitHub
Skip to content

Cherry release - hotfix #770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixing - adding all DayJS plugins by Default
  • Loading branch information
FalkWolsky committed Mar 24, 2024
commit dafdd3a5b3f7f836f41605a4a6f2c416d994e06b
68 changes: 32 additions & 36 deletions client/packages/lowcoder/src/util/dateTimeUtils.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
import { time } from "console";
import dayjs from "dayjs";
var relativeTime = require ("dayjs/plugin/relativeTime");
var timezone = require ("dayjs/plugin/timezone");
var duration = require ("dayjs/plugin/duration");
var utc = require ("dayjs/plugin/utc");
var quarterOfYear = require ("dayjs/plugin/quarterOfYear");
var weekOfYear = require ("dayjs/plugin/weekOfYear");
var isBetween = require ("dayjs/plugin/isBetween");
var isToday = require ("dayjs/plugin/isToday");
var isTomorrow = require ("dayjs/plugin/isTomorrow");
var isYesterday = require ("dayjs/plugin/isYesterday");
var customParseFormat = require ("dayjs/plugin/customParseFormat");
var advancedFormat = require ("dayjs/plugin/advancedFormat");
var updateLocale = require ("dayjs/plugin/updateLocale");
var localeData = require ("dayjs/plugin/localeData");
var localizedFormat = require ("dayjs/plugin/localizedFormat");
var isLeapYear = require ("dayjs/plugin/isLeapYear");
var isSameOrAfter = require ("dayjs/plugin/isSameOrAfter");
var isSameOrBefore = require ("dayjs/plugin/isSameOrBefore");
var isoWeek = require ("dayjs/plugin/isoWeek");
var isoWeeksInYear = require ("dayjs/plugin/isoWeeksInYear");
var weekYear = require ("dayjs/plugin/weekYear");
var isMoment = require ("dayjs/plugin/isMoment");
var calendar = require ("dayjs/plugin/calendar");
var buddhistEra = require ("dayjs/plugin/buddhistEra");
var minmax = require ("dayjs/plugin/minMax");
var relativetime = require ("dayjs/plugin/relativeTime");
var bigIntSupport = require("dayjs/plugin/bigIntSupport");
var localizedFormat = require('dayjs/plugin/localizedFormat');
var objectSupport = require("dayjs/plugin/objectSupport");
var pluralGetSet = require('dayjs/plugin/pluralGetSet');
var preParsePostFormat = require('dayjs/plugin/preParsePostFormat');
var toObject = require('dayjs/plugin/toObject');
var toUnix = require('dayjs/plugin/toUnix');
var toArray = require('dayjs/plugin/toArray');
import relativeTime from "dayjs/plugin/relativeTime";
import timezone from "dayjs/plugin/timezone";
import duration from "dayjs/plugin/duration";
import utc from "dayjs/plugin/utc";
import quarterOfYear from "dayjs/plugin/quarterOfYear";
import weekOfYear from "dayjs/plugin/weekOfYear";
import isBetween from "dayjs/plugin/isBetween";
import isToday from "dayjs/plugin/isToday";
import isTomorrow from "dayjs/plugin/isTomorrow";
import isYesterday from "dayjs/plugin/isYesterday";
import customParseFormat from "dayjs/plugin/customParseFormat";
import advancedFormat from "dayjs/plugin/advancedFormat";
import updateLocale from "dayjs/plugin/updateLocale";
import localeData from "dayjs/plugin/localeData";
import localizedFormat from "dayjs/plugin/localizedFormat";
import isLeapYear from "dayjs/plugin/isLeapYear";
import isSameOrAfter from "dayjs/plugin/isSameOrAfter";
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
import isoWeek from "dayjs/plugin/isoWeek";
import isoWeeksInYear from "dayjs/plugin/isoWeeksInYear";
import weekYear from "dayjs/plugin/weekYear";
import isMoment from "dayjs/plugin/isMoment";
import calendar from "dayjs/plugin/calendar";
import buddhistEra from "dayjs/plugin/buddhistEra";
import minmax from "dayjs/plugin/minMax";
import bigIntSupport from "dayjs/plugin/bigIntSupport";
import objectSupport from "dayjs/plugin/objectSupport";
import pluralGetSet from 'dayjs/plugin/pluralGetSet';
import preParsePostFormat from 'dayjs/plugin/preParsePostFormat';
import toObject from 'dayjs/plugin/toObject';
import toArray from 'dayjs/plugin/toArray';

dayjs.extend(relativeTime);
dayjs.extend(timezone);
Expand All @@ -60,14 +57,13 @@ dayjs.extend(isMoment);
dayjs.extend(calendar);
dayjs.extend(buddhistEra);
dayjs.extend(minmax);
dayjs.extend(relativetime);
dayjs.extend(relativeTime);
dayjs.extend(bigIntSupport);
dayjs.extend(localizedFormat);
dayjs.extend(objectSupport);
dayjs.extend(pluralGetSet);
dayjs.extend(preParsePostFormat);
dayjs.extend(toObject);
dayjs.extend(toUnix);
dayjs.extend(toArray);

export const TIME_FORMAT = "HH:mm:ss";
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/770/commits/dafdd3a5b3f7f836f41605a4a6f2c416d994e06b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy