mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-15 05:36:39 +00:00
chore: remove moment.js
This commit is contained in:
parent
94a211e279
commit
70fb8308f9
@ -24,7 +24,6 @@
|
|||||||
"intl-messageformat": "^9.3.1",
|
"intl-messageformat": "^9.3.1",
|
||||||
"jsonuri": "^2.1.2",
|
"jsonuri": "^2.1.2",
|
||||||
"lodash": "^4.17.11",
|
"lodash": "^4.17.11",
|
||||||
"moment": "^2.24.0",
|
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"react-is": "^16.10.1",
|
"react-is": "^16.10.1",
|
||||||
"socket.io-client": "^2.2.0",
|
"socket.io-client": "^2.2.0",
|
||||||
|
|||||||
@ -2,9 +2,6 @@
|
|||||||
/* eslint-disable no-new-func */
|
/* eslint-disable no-new-func */
|
||||||
import logger from './logger';
|
import logger from './logger';
|
||||||
import { isI18nData, RootSchema, NodeSchema, isJSExpression, JSSlot } from '@alilc/lowcode-types';
|
import { isI18nData, RootSchema, NodeSchema, isJSExpression, JSSlot } from '@alilc/lowcode-types';
|
||||||
// moment对象配置
|
|
||||||
import _moment from 'moment';
|
|
||||||
import 'moment/locale/zh-cn';
|
|
||||||
import { isEmpty } from 'lodash';
|
import { isEmpty } from 'lodash';
|
||||||
import IntlMessageFormat from 'intl-messageformat';
|
import IntlMessageFormat from 'intl-messageformat';
|
||||||
import pkg from '../../package.json';
|
import pkg from '../../package.json';
|
||||||
@ -12,8 +9,6 @@ import * as ReactIs from 'react-is';
|
|||||||
import { default as ReactPropTypesSecret } from 'prop-types/lib/ReactPropTypesSecret';
|
import { default as ReactPropTypesSecret } from 'prop-types/lib/ReactPropTypesSecret';
|
||||||
import { default as factoryWithTypeCheckers } from 'prop-types/factoryWithTypeCheckers';
|
import { default as factoryWithTypeCheckers } from 'prop-types/factoryWithTypeCheckers';
|
||||||
|
|
||||||
export const moment = _moment;
|
|
||||||
moment.locale('zh-cn');
|
|
||||||
(window as any).sdkVersion = pkg.version;
|
(window as any).sdkVersion = pkg.version;
|
||||||
|
|
||||||
export { pick, isEqualWith as deepEqual, cloneDeep as clone, isEmpty, throttle, debounce } from 'lodash';
|
export { pick, isEqualWith as deepEqual, cloneDeep as clone, isEmpty, throttle, debounce } from 'lodash';
|
||||||
@ -372,4 +367,4 @@ export function serializeParams(obj: any) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
return result.join('&');
|
return result.join('&');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user