antd-management-fast-framework 1.12.39 → 1.12.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,69 @@
1
+ export function getAppInitConfigData(): {
2
+ platformName: string;
3
+ appName: string;
4
+ appDescription: string;
5
+ entranceLogo: string;
6
+ shareLogo: string;
7
+ shareLogoName: string;
8
+ leftBarText: string;
9
+ companyName: string;
10
+ copyright: string;
11
+ apiPrefix: {
12
+ corsTargetProduction: string;
13
+ };
14
+ showSelectLanguage: boolean;
15
+ showLogoInEntrance: boolean;
16
+ emptyLogo: string;
17
+ leftBarLogo: string;
18
+ apiSuccessCode: number;
19
+ authenticationFailCode: number;
20
+ entrancePath: string;
21
+ showLogInConsole: boolean;
22
+ showRequestInfo: boolean;
23
+ useVirtualRequest: boolean;
24
+ showUseVirtualRequestMessage: boolean;
25
+ apiVersion: string;
26
+ imageUploadMaxSize: number;
27
+ audioUploadMaxSize: number;
28
+ videoUploadMaxSize: number;
29
+ fileUploadMaxSize: number;
30
+ useNprogress: boolean;
31
+ tinymceApiKey: string;
32
+ tinymceImagesUploadUrl: string;
33
+ };
34
+ export function getTinymceImagesUploadUrl(): string;
35
+ export function getTinymceApiKey(): string;
36
+ export function getUseNprogress(): boolean;
37
+ export function getFileUploadMaxSize(): number;
38
+ export function getAudioUploadMaxSize(): number;
39
+ export function getVideoUploadMaxSize(): number;
40
+ export function getImageUploadMaxSize(): number;
41
+ export function getShowSelectLanguage(): boolean;
42
+ export function getShowLogoInEntrance(): boolean;
43
+ export function getEmptyLogo(): string;
44
+ export function getApiSuccessCode(): number;
45
+ export function getAuthenticationFailCode(): number;
46
+ export function getEntrancePath(): string;
47
+ export function getApiVersion(): string;
48
+ export function getUseVirtualRequest(): boolean;
49
+ export function getShowUseVirtualRequestMessage(): boolean;
50
+ export function getShowLogInConsole(): boolean;
51
+ export function getShowRequestInfo(): boolean;
52
+ export function getPlatformName(): string;
53
+ export function getAppName(): string;
54
+ export function getAppDescription(): string;
55
+ export function getTitle(): string;
56
+ export function getEntranceLogo(): string;
57
+ export function getShareLogo(): string;
58
+ export function getShareLogoName(): string;
59
+ export function getCompanyName(): string;
60
+ export function getLeftBarLogo(remoteLogo: any): any;
61
+ export function getLeftBarText(): string;
62
+ export function getCopyright(): string;
63
+ /**
64
+ * 占位函数
65
+ *
66
+ * @export
67
+ * @returns
68
+ */
69
+ export function empty(): {};
@@ -0,0 +1,396 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.empty = empty;
7
+ exports.getApiSuccessCode = getApiSuccessCode;
8
+ exports.getApiVersion = getApiVersion;
9
+ exports.getAppDescription = getAppDescription;
10
+ exports.getAppInitConfigData = getAppInitConfigData;
11
+ exports.getAppName = getAppName;
12
+ exports.getAudioUploadMaxSize = getAudioUploadMaxSize;
13
+ exports.getAuthenticationFailCode = getAuthenticationFailCode;
14
+ exports.getCompanyName = getCompanyName;
15
+ exports.getCopyright = getCopyright;
16
+ exports.getEmptyLogo = getEmptyLogo;
17
+ exports.getEntranceLogo = getEntranceLogo;
18
+ exports.getEntrancePath = getEntrancePath;
19
+ exports.getFileUploadMaxSize = getFileUploadMaxSize;
20
+ exports.getImageUploadMaxSize = getImageUploadMaxSize;
21
+ exports.getLeftBarLogo = getLeftBarLogo;
22
+ exports.getLeftBarText = getLeftBarText;
23
+ exports.getPlatformName = getPlatformName;
24
+ exports.getShareLogo = getShareLogo;
25
+ exports.getShareLogoName = getShareLogoName;
26
+ exports.getShowLogInConsole = getShowLogInConsole;
27
+ exports.getShowLogoInEntrance = getShowLogoInEntrance;
28
+ exports.getShowRequestInfo = getShowRequestInfo;
29
+ exports.getShowSelectLanguage = getShowSelectLanguage;
30
+ exports.getShowUseVirtualRequestMessage = getShowUseVirtualRequestMessage;
31
+ exports.getTinymceApiKey = getTinymceApiKey;
32
+ exports.getTinymceImagesUploadUrl = getTinymceImagesUploadUrl;
33
+ exports.getTitle = getTitle;
34
+ exports.getUseNprogress = getUseNprogress;
35
+ exports.getUseVirtualRequest = getUseVirtualRequest;
36
+ exports.getVideoUploadMaxSize = getVideoUploadMaxSize;
37
+
38
+ var _constants = require("./constants");
39
+
40
+ var _core = require("./core");
41
+
42
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
43
+
44
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
45
+
46
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
47
+
48
+ function getAppInitConfigData() {
49
+ var appInitConfig = _constants.appInitDefault;
50
+
51
+ if ((0, _core.isBrowser)()) {
52
+ if ((window.appInitCustomLocal || null) != null) {
53
+ appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.appInitCustomLocal);
54
+ }
55
+
56
+ if ((window.appInitCustomRemote || null) != null) {
57
+ appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.appInitCustomRemote);
58
+ }
59
+ }
60
+
61
+ return appInitConfig;
62
+ }
63
+
64
+ function getTinymceImagesUploadUrl() {
65
+ var appInit = getAppInitConfigData();
66
+
67
+ var _tinymceImagesUploadU = _objectSpread(_objectSpread({}, {
68
+ tinymceImagesUploadUrl: null
69
+ }), appInit || {}),
70
+ tinymceImagesUploadUrl = _tinymceImagesUploadU.tinymceImagesUploadUrl;
71
+
72
+ return tinymceImagesUploadUrl || '';
73
+ }
74
+
75
+ function getTinymceApiKey() {
76
+ var appInit = getAppInitConfigData();
77
+
78
+ var _tinymceApiKey = _objectSpread(_objectSpread({}, {
79
+ tinymceApiKey: ''
80
+ }), appInit || {}),
81
+ tinymceApiKey = _tinymceApiKey.tinymceApiKey;
82
+
83
+ return tinymceApiKey || '';
84
+ }
85
+
86
+ function getUseNprogress() {
87
+ var appInit = getAppInitConfigData();
88
+
89
+ var _useNprogress = _objectSpread(_objectSpread({}, {
90
+ useNprogress: true
91
+ }), appInit || {}),
92
+ useNprogress = _useNprogress.useNprogress;
93
+
94
+ return useNprogress;
95
+ }
96
+
97
+ function getFileUploadMaxSize() {
98
+ var appInit = getAppInitConfigData();
99
+
100
+ var _fileUploadMaxSize = _objectSpread(_objectSpread({}, {
101
+ fileUploadMaxSize: 2
102
+ }), appInit || {}),
103
+ fileUploadMaxSize = _fileUploadMaxSize.fileUploadMaxSize;
104
+
105
+ return fileUploadMaxSize || 2;
106
+ }
107
+
108
+ function getAudioUploadMaxSize() {
109
+ var appInit = getAppInitConfigData();
110
+
111
+ var _audioUploadMaxSize = _objectSpread(_objectSpread({}, {
112
+ audioUploadMaxSize: 4
113
+ }), appInit || {}),
114
+ audioUploadMaxSize = _audioUploadMaxSize.audioUploadMaxSize;
115
+
116
+ return audioUploadMaxSize || 4;
117
+ }
118
+
119
+ function getVideoUploadMaxSize() {
120
+ var appInit = getAppInitConfigData();
121
+
122
+ var _videoUploadMaxSize = _objectSpread(_objectSpread({}, {
123
+ videoUploadMaxSize: 4
124
+ }), appInit || {}),
125
+ videoUploadMaxSize = _videoUploadMaxSize.videoUploadMaxSize;
126
+
127
+ return videoUploadMaxSize || 4;
128
+ }
129
+
130
+ function getImageUploadMaxSize() {
131
+ var appInit = getAppInitConfigData();
132
+
133
+ var _imageUploadMaxSize = _objectSpread(_objectSpread({}, {
134
+ imageUploadMaxSize: 2
135
+ }), appInit || {}),
136
+ imageUploadMaxSize = _imageUploadMaxSize.imageUploadMaxSize;
137
+
138
+ return imageUploadMaxSize || 2;
139
+ }
140
+
141
+ function getShowSelectLanguage() {
142
+ var appInit = getAppInitConfigData();
143
+
144
+ var _showSelectLanguage = _objectSpread(_objectSpread({}, {
145
+ showSelectLanguage: false
146
+ }), appInit || {}),
147
+ showSelectLanguage = _showSelectLanguage.showSelectLanguage;
148
+
149
+ return showSelectLanguage || false;
150
+ }
151
+
152
+ function getShowLogoInEntrance() {
153
+ var appInit = getAppInitConfigData();
154
+
155
+ var _showLogoInEntrance = _objectSpread(_objectSpread({}, {
156
+ showLogoInEntrance: false
157
+ }), appInit || {}),
158
+ showLogoInEntrance = _showLogoInEntrance.showLogoInEntrance;
159
+
160
+ return showLogoInEntrance || false;
161
+ }
162
+
163
+ function getEmptyLogo() {
164
+ var appInit = getAppInitConfigData();
165
+
166
+ var _emptyLogo = _objectSpread(_objectSpread({}, {
167
+ emptyLogo: _constants.emptyLogo
168
+ }), appInit || {}),
169
+ emptyLogo = _emptyLogo.emptyLogo;
170
+
171
+ return emptyLogo || _constants.emptyLogo;
172
+ }
173
+
174
+ function getApiSuccessCode() {
175
+ var appInit = getAppInitConfigData();
176
+
177
+ var _apiSuccessCode = _objectSpread(_objectSpread({}, {
178
+ apiSuccessCode: _constants.apiSuccessCode
179
+ }), appInit || {}),
180
+ apiSuccessCode = _apiSuccessCode.apiSuccessCode;
181
+
182
+ return apiSuccessCode || _constants.apiSuccessCode;
183
+ }
184
+
185
+ function getAuthenticationFailCode() {
186
+ var appInit = getAppInitConfigData();
187
+
188
+ var _authenticationFailCo = _objectSpread({}, _objectSpread({
189
+ authenticationFailCode: _constants.authenticationFailCode
190
+ }, appInit || {})),
191
+ authenticationFailCode = _authenticationFailCo.authenticationFailCode;
192
+
193
+ return authenticationFailCode || _constants.authenticationFailCode;
194
+ }
195
+
196
+ function getEntrancePath() {
197
+ var appInit = getAppInitConfigData();
198
+
199
+ var _entrancePath = _objectSpread(_objectSpread({}, {
200
+ entrancePath: ''
201
+ }), appInit || {}),
202
+ entrancePath = _entrancePath.entrancePath;
203
+
204
+ return entrancePath || '';
205
+ }
206
+
207
+ function getApiVersion() {
208
+ var appInit = getAppInitConfigData();
209
+
210
+ var _apiVersion = _objectSpread(_objectSpread({}, {
211
+ apiVersion: ''
212
+ }), appInit || {}),
213
+ apiVersion = _apiVersion.apiVersion;
214
+
215
+ return apiVersion || '';
216
+ }
217
+
218
+ function getUseVirtualRequest() {
219
+ var appInit = getAppInitConfigData();
220
+
221
+ var _useVirtualRequest = _objectSpread(_objectSpread({}, {
222
+ useVirtualRequest: false
223
+ }), appInit || {}),
224
+ useVirtualRequest = _useVirtualRequest.useVirtualRequest;
225
+
226
+ return useVirtualRequest || false;
227
+ }
228
+
229
+ function getShowUseVirtualRequestMessage() {
230
+ var appInit = getAppInitConfigData();
231
+
232
+ var _showUseVirtualReques = _objectSpread(_objectSpread({}, {
233
+ showUseVirtualRequestMessage: false
234
+ }), appInit || {}),
235
+ showUseVirtualRequestMessage = _showUseVirtualReques.showUseVirtualRequestMessage;
236
+
237
+ return showUseVirtualRequestMessage || false;
238
+ }
239
+
240
+ function getShowLogInConsole() {
241
+ var appInit = getAppInitConfigData();
242
+
243
+ var _showLogInConsole = _objectSpread(_objectSpread({}, {
244
+ showLogInConsole: false
245
+ }), appInit || {}),
246
+ showLogInConsole = _showLogInConsole.showLogInConsole;
247
+
248
+ return showLogInConsole || false;
249
+ }
250
+
251
+ function getShowRequestInfo() {
252
+ var appInit = getAppInitConfigData();
253
+
254
+ var _showRequestInfo = _objectSpread(_objectSpread({}, {
255
+ showRequestInfo: false
256
+ }), appInit || {}),
257
+ showRequestInfo = _showRequestInfo.showRequestInfo;
258
+
259
+ return showRequestInfo || false;
260
+ }
261
+
262
+ function getPlatformName() {
263
+ var appInit = getAppInitConfigData();
264
+
265
+ var _platformName = _objectSpread(_objectSpread({}, {
266
+ platformName: ''
267
+ }), appInit || {}),
268
+ platformName = _platformName.platformName;
269
+
270
+ return platformName || '';
271
+ }
272
+
273
+ function getAppName() {
274
+ var appInit = getAppInitConfigData();
275
+
276
+ var _appName = _objectSpread(_objectSpread({}, {
277
+ appName: ''
278
+ }), appInit || {}),
279
+ appName = _appName.appName;
280
+
281
+ return appName || '';
282
+ }
283
+
284
+ function getAppDescription() {
285
+ var appInit = getAppInitConfigData();
286
+
287
+ var _appDescription = _objectSpread(_objectSpread({}, {
288
+ appDescription: ''
289
+ }), appInit || {}),
290
+ appDescription = _appDescription.appDescription;
291
+
292
+ return appDescription || '';
293
+ }
294
+
295
+ function getTitle() {
296
+ var appInit = getAppInitConfigData();
297
+
298
+ var _appName2 = _objectSpread(_objectSpread({}, {
299
+ appName: ''
300
+ }), appInit || {}),
301
+ appName = _appName2.appName;
302
+
303
+ return appName || '';
304
+ }
305
+
306
+ function getEntranceLogo() {
307
+ var appInit = getAppInitConfigData();
308
+
309
+ var _entranceLogo = _objectSpread(_objectSpread({}, {
310
+ entranceLogo: _constants.emptyLogo
311
+ }), appInit || {}),
312
+ entranceLogo = _entranceLogo.entranceLogo;
313
+
314
+ return entranceLogo || _constants.emptyLogo;
315
+ }
316
+
317
+ function getShareLogo() {
318
+ var appInit = getAppInitConfigData();
319
+
320
+ var _shareLogo = _objectSpread(_objectSpread({}, {
321
+ shareLogo: _constants.emptyLogo
322
+ }), appInit || {}),
323
+ shareLogo = _shareLogo.shareLogo;
324
+
325
+ return shareLogo || _constants.emptyLogo;
326
+ }
327
+
328
+ function getShareLogoName() {
329
+ var appInit = getAppInitConfigData();
330
+
331
+ var _shareLogoName = _objectSpread(_objectSpread({}, {
332
+ shareLogoName: ''
333
+ }), appInit || {}),
334
+ shareLogoName = _shareLogoName.shareLogoName;
335
+
336
+ return shareLogoName || '';
337
+ }
338
+
339
+ function getCompanyName() {
340
+ var appInit = getAppInitConfigData();
341
+
342
+ var _companyName = _objectSpread(_objectSpread({}, {
343
+ companyName: ''
344
+ }), appInit || {}),
345
+ companyName = _companyName.companyName;
346
+
347
+ return companyName || '';
348
+ }
349
+
350
+ function getLeftBarLogo(remoteLogo) {
351
+ if (!(0, _core.stringIsNullOrWhiteSpace)(remoteLogo || null)) {
352
+ return remoteLogo;
353
+ }
354
+
355
+ var appInit = getAppInitConfigData();
356
+
357
+ var _leftBarLogo = _objectSpread(_objectSpread({}, {
358
+ leftBarLogo: _constants.emptyLogo
359
+ }), appInit || {}),
360
+ leftBarLogo = _leftBarLogo.leftBarLogo;
361
+
362
+ return leftBarLogo || _constants.emptyLogo;
363
+ }
364
+
365
+ function getLeftBarText() {
366
+ var appInit = getAppInitConfigData();
367
+
368
+ var _leftBarText = _objectSpread(_objectSpread({}, {
369
+ leftBarText: ''
370
+ }), appInit || {}),
371
+ leftBarText = _leftBarText.leftBarText;
372
+
373
+ return leftBarText || '';
374
+ }
375
+
376
+ function getCopyright() {
377
+ var appInit = getAppInitConfigData();
378
+
379
+ var _copyright = _objectSpread(_objectSpread({}, {
380
+ copyright: ''
381
+ }), appInit || {}),
382
+ copyright = _copyright.copyright;
383
+
384
+ return copyright || '';
385
+ }
386
+ /**
387
+ * 占位函数
388
+ *
389
+ * @export
390
+ * @returns
391
+ */
392
+
393
+
394
+ function empty() {
395
+ return {};
396
+ }
@@ -0,0 +1,11 @@
1
+ export function replace(source: any, pattern: any, replacement: any): string;
2
+ export function trim(source: any): string;
3
+ export function stringIsNullOrWhiteSpace(value: any): boolean;
4
+ export function isBrowser(): boolean;
5
+ /**
6
+ * 占位函数
7
+ *
8
+ * @export
9
+ * @returns
10
+ */
11
+ export function empty(): {};
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.empty = empty;
7
+ exports.isBrowser = isBrowser;
8
+ exports.replace = replace;
9
+ exports.stringIsNullOrWhiteSpace = stringIsNullOrWhiteSpace;
10
+ exports.trim = trim;
11
+
12
+ var _lodash = require("lodash");
13
+
14
+ function replace(source, pattern, replacement) {
15
+ return (0, _lodash.replace)(source, pattern, replacement);
16
+ }
17
+
18
+ function trim(source) {
19
+ return (0, _lodash.trim)(source);
20
+ }
21
+
22
+ function stringIsNullOrWhiteSpace(value) {
23
+ return trim(replace(value || '', ' ', '')) === '';
24
+ }
25
+
26
+ function isBrowser() {
27
+ return typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined';
28
+ }
29
+ /**
30
+ * 占位函数
31
+ *
32
+ * @export
33
+ * @returns
34
+ */
35
+
36
+
37
+ function empty() {
38
+ return {};
39
+ }
@@ -6,33 +6,62 @@
6
6
  */
7
7
  export function empty(): {};
8
8
  export namespace defaultSettingsLayoutCustom {
9
- function getTinymceImagesUploadUrl(): string;
10
- function getTinymceApiKey(): string;
11
- function getUseNprogress(): boolean;
12
- function getFileUploadMaxSize(): number;
13
- function getAudioUploadMaxSize(): number;
14
- function getVideoUploadMaxSize(): number;
15
- function getImageUploadMaxSize(): number;
16
- function getShowSelectLanguage(): boolean;
17
- function getShowLogoInEntrance(): boolean;
18
- function getEmptyLogo(): string;
19
- function getApiSuccessCode(): number;
20
- function getAuthenticationFailCode(): number;
21
- function getEntrancePath(): string;
22
- function getApiVersion(): string;
23
- function getUseVirtualRequest(): boolean;
24
- function getShowUseVirtualRequestMessage(): boolean;
25
- function getShowLogInConsole(): boolean;
26
- function getShowRequestInfo(): boolean;
27
- function getPlatformName(): string;
28
- function getAppName(): string;
29
- function getAppDescription(): string;
30
- function getTitle(): string;
31
- function getEntranceLogo(): string;
32
- function getShareLogo(): string;
33
- function getShareLogoName(): string;
34
- function getCompanyName(): string;
35
- function getLeftBarLogo(remoteLogo: any): any;
36
- function getLeftBarText(): string;
37
- function getCopyright(): string;
9
+ export { getTinymceImagesUploadUrl };
10
+ export { getTinymceApiKey };
11
+ export { getUseNprogress };
12
+ export { getFileUploadMaxSize };
13
+ export { getAudioUploadMaxSize };
14
+ export { getVideoUploadMaxSize };
15
+ export { getImageUploadMaxSize };
16
+ export { getShowSelectLanguage };
17
+ export { getShowLogoInEntrance };
18
+ export { getEmptyLogo };
19
+ export { getApiSuccessCode };
20
+ export { getAuthenticationFailCode };
21
+ export { getEntrancePath };
22
+ export { getApiVersion };
23
+ export { getUseVirtualRequest };
24
+ export { getShowUseVirtualRequestMessage };
25
+ export { getShowLogInConsole };
26
+ export { getShowRequestInfo };
27
+ export { getPlatformName };
28
+ export { getAppName };
29
+ export { getAppDescription };
30
+ export { getTitle };
31
+ export { getEntranceLogo };
32
+ export { getShareLogo };
33
+ export { getShareLogoName };
34
+ export { getCompanyName };
35
+ export { getLeftBarLogo };
36
+ export { getLeftBarText };
37
+ export { getCopyright };
38
38
  }
39
+ import { getTinymceImagesUploadUrl } from "./appConfiguration";
40
+ import { getTinymceApiKey } from "./appConfiguration";
41
+ import { getUseNprogress } from "./appConfiguration";
42
+ import { getFileUploadMaxSize } from "./appConfiguration";
43
+ import { getAudioUploadMaxSize } from "./appConfiguration";
44
+ import { getVideoUploadMaxSize } from "./appConfiguration";
45
+ import { getImageUploadMaxSize } from "./appConfiguration";
46
+ import { getShowSelectLanguage } from "./appConfiguration";
47
+ import { getShowLogoInEntrance } from "./appConfiguration";
48
+ import { getEmptyLogo } from "./appConfiguration";
49
+ import { getApiSuccessCode } from "./appConfiguration";
50
+ import { getAuthenticationFailCode } from "./appConfiguration";
51
+ import { getEntrancePath } from "./appConfiguration";
52
+ import { getApiVersion } from "./appConfiguration";
53
+ import { getUseVirtualRequest } from "./appConfiguration";
54
+ import { getShowUseVirtualRequestMessage } from "./appConfiguration";
55
+ import { getShowLogInConsole } from "./appConfiguration";
56
+ import { getShowRequestInfo } from "./appConfiguration";
57
+ import { getPlatformName } from "./appConfiguration";
58
+ import { getAppName } from "./appConfiguration";
59
+ import { getAppDescription } from "./appConfiguration";
60
+ import { getTitle } from "./appConfiguration";
61
+ import { getEntranceLogo } from "./appConfiguration";
62
+ import { getShareLogo } from "./appConfiguration";
63
+ import { getShareLogoName } from "./appConfiguration";
64
+ import { getCompanyName } from "./appConfiguration";
65
+ import { getLeftBarLogo } from "./appConfiguration";
66
+ import { getLeftBarText } from "./appConfiguration";
67
+ import { getCopyright } from "./appConfiguration";
@@ -6,311 +6,38 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.defaultSettingsLayoutCustom = void 0;
7
7
  exports.empty = empty;
8
8
 
9
- var _constants = require("./constants");
10
-
11
- var _tools = require("./tools");
12
-
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
-
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
-
17
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ var _appConfiguration = require("./appConfiguration");
18
10
 
19
11
  var defaultSettingsLayoutCustom = {
20
- getTinymceImagesUploadUrl: function getTinymceImagesUploadUrl() {
21
- var appInit = (0, _tools.getAppInitConfigData)();
22
-
23
- var _tinymceImagesUploadU = _objectSpread(_objectSpread({}, {
24
- tinymceImagesUploadUrl: null
25
- }), appInit || {}),
26
- tinymceImagesUploadUrl = _tinymceImagesUploadU.tinymceImagesUploadUrl;
27
-
28
- return tinymceImagesUploadUrl || '';
29
- },
30
- getTinymceApiKey: function getTinymceApiKey() {
31
- var appInit = (0, _tools.getAppInitConfigData)();
32
-
33
- var _tinymceApiKey = _objectSpread(_objectSpread({}, {
34
- tinymceApiKey: ''
35
- }), appInit || {}),
36
- tinymceApiKey = _tinymceApiKey.tinymceApiKey;
37
-
38
- return tinymceApiKey || '';
39
- },
40
- getUseNprogress: function getUseNprogress() {
41
- var appInit = (0, _tools.getAppInitConfigData)();
42
-
43
- var _useNprogress = _objectSpread(_objectSpread({}, {
44
- useNprogress: true
45
- }), appInit || {}),
46
- useNprogress = _useNprogress.useNprogress;
47
-
48
- return useNprogress;
49
- },
50
- getFileUploadMaxSize: function getFileUploadMaxSize() {
51
- var appInit = (0, _tools.getAppInitConfigData)();
52
-
53
- var _fileUploadMaxSize = _objectSpread(_objectSpread({}, {
54
- fileUploadMaxSize: 2
55
- }), appInit || {}),
56
- fileUploadMaxSize = _fileUploadMaxSize.fileUploadMaxSize;
57
-
58
- return fileUploadMaxSize || 2;
59
- },
60
- getAudioUploadMaxSize: function getAudioUploadMaxSize() {
61
- var appInit = (0, _tools.getAppInitConfigData)();
62
-
63
- var _audioUploadMaxSize = _objectSpread(_objectSpread({}, {
64
- audioUploadMaxSize: 4
65
- }), appInit || {}),
66
- audioUploadMaxSize = _audioUploadMaxSize.audioUploadMaxSize;
67
-
68
- return audioUploadMaxSize || 4;
69
- },
70
- getVideoUploadMaxSize: function getVideoUploadMaxSize() {
71
- var appInit = (0, _tools.getAppInitConfigData)();
72
-
73
- var _videoUploadMaxSize = _objectSpread(_objectSpread({}, {
74
- videoUploadMaxSize: 4
75
- }), appInit || {}),
76
- videoUploadMaxSize = _videoUploadMaxSize.videoUploadMaxSize;
77
-
78
- return videoUploadMaxSize || 4;
79
- },
80
- getImageUploadMaxSize: function getImageUploadMaxSize() {
81
- var appInit = (0, _tools.getAppInitConfigData)();
82
-
83
- var _imageUploadMaxSize = _objectSpread(_objectSpread({}, {
84
- imageUploadMaxSize: 2
85
- }), appInit || {}),
86
- imageUploadMaxSize = _imageUploadMaxSize.imageUploadMaxSize;
87
-
88
- return imageUploadMaxSize || 2;
89
- },
90
- getShowSelectLanguage: function getShowSelectLanguage() {
91
- var appInit = (0, _tools.getAppInitConfigData)();
92
-
93
- var _showSelectLanguage = _objectSpread(_objectSpread({}, {
94
- showSelectLanguage: false
95
- }), appInit || {}),
96
- showSelectLanguage = _showSelectLanguage.showSelectLanguage;
97
-
98
- return showSelectLanguage || false;
99
- },
100
- getShowLogoInEntrance: function getShowLogoInEntrance() {
101
- var appInit = (0, _tools.getAppInitConfigData)();
102
-
103
- var _showLogoInEntrance = _objectSpread(_objectSpread({}, {
104
- showLogoInEntrance: false
105
- }), appInit || {}),
106
- showLogoInEntrance = _showLogoInEntrance.showLogoInEntrance;
107
-
108
- return showLogoInEntrance || false;
109
- },
110
- getEmptyLogo: function getEmptyLogo() {
111
- var appInit = (0, _tools.getAppInitConfigData)();
112
-
113
- var _emptyLogo = _objectSpread(_objectSpread({}, {
114
- emptyLogo: _constants.emptyLogo
115
- }), appInit || {}),
116
- emptyLogo = _emptyLogo.emptyLogo;
117
-
118
- return emptyLogo || _constants.emptyLogo;
119
- },
120
- getApiSuccessCode: function getApiSuccessCode() {
121
- var appInit = (0, _tools.getAppInitConfigData)();
122
-
123
- var _apiSuccessCode = _objectSpread(_objectSpread({}, {
124
- apiSuccessCode: _constants.apiSuccessCode
125
- }), appInit || {}),
126
- apiSuccessCode = _apiSuccessCode.apiSuccessCode;
127
-
128
- return apiSuccessCode || _constants.apiSuccessCode;
129
- },
130
- getAuthenticationFailCode: function getAuthenticationFailCode() {
131
- var appInit = (0, _tools.getAppInitConfigData)();
132
-
133
- var _authenticationFailCo = _objectSpread({}, _objectSpread({
134
- authenticationFailCode: _constants.authenticationFailCode
135
- }, appInit || {})),
136
- authenticationFailCode = _authenticationFailCo.authenticationFailCode;
137
-
138
- return authenticationFailCode || _constants.authenticationFailCode;
139
- },
140
- getEntrancePath: function getEntrancePath() {
141
- var appInit = (0, _tools.getAppInitConfigData)();
142
-
143
- var _entrancePath = _objectSpread(_objectSpread({}, {
144
- entrancePath: ''
145
- }), appInit || {}),
146
- entrancePath = _entrancePath.entrancePath;
147
-
148
- return entrancePath || '';
149
- },
150
- getApiVersion: function getApiVersion() {
151
- var appInit = (0, _tools.getAppInitConfigData)();
152
-
153
- var _apiVersion = _objectSpread(_objectSpread({}, {
154
- apiVersion: ''
155
- }), appInit || {}),
156
- apiVersion = _apiVersion.apiVersion;
157
-
158
- return apiVersion || '';
159
- },
160
- getUseVirtualRequest: function getUseVirtualRequest() {
161
- var appInit = (0, _tools.getAppInitConfigData)();
162
-
163
- var _useVirtualRequest = _objectSpread(_objectSpread({}, {
164
- useVirtualRequest: false
165
- }), appInit || {}),
166
- useVirtualRequest = _useVirtualRequest.useVirtualRequest;
167
-
168
- return useVirtualRequest || false;
169
- },
170
- getShowUseVirtualRequestMessage: function getShowUseVirtualRequestMessage() {
171
- var appInit = (0, _tools.getAppInitConfigData)();
172
-
173
- var _showUseVirtualReques = _objectSpread(_objectSpread({}, {
174
- showUseVirtualRequestMessage: false
175
- }), appInit || {}),
176
- showUseVirtualRequestMessage = _showUseVirtualReques.showUseVirtualRequestMessage;
177
-
178
- return showUseVirtualRequestMessage || false;
179
- },
180
- getShowLogInConsole: function getShowLogInConsole() {
181
- var appInit = (0, _tools.getAppInitConfigData)();
182
-
183
- var _showLogInConsole = _objectSpread(_objectSpread({}, {
184
- showLogInConsole: false
185
- }), appInit || {}),
186
- showLogInConsole = _showLogInConsole.showLogInConsole;
187
-
188
- return showLogInConsole || false;
189
- },
190
- getShowRequestInfo: function getShowRequestInfo() {
191
- var appInit = (0, _tools.getAppInitConfigData)();
192
-
193
- var _showRequestInfo = _objectSpread(_objectSpread({}, {
194
- showRequestInfo: false
195
- }), appInit || {}),
196
- showRequestInfo = _showRequestInfo.showRequestInfo;
197
-
198
- return showRequestInfo || false;
199
- },
200
- getPlatformName: function getPlatformName() {
201
- var appInit = (0, _tools.getAppInitConfigData)();
202
-
203
- var _platformName = _objectSpread(_objectSpread({}, {
204
- platformName: ''
205
- }), appInit || {}),
206
- platformName = _platformName.platformName;
207
-
208
- return platformName || '';
209
- },
210
- getAppName: function getAppName() {
211
- var appInit = (0, _tools.getAppInitConfigData)();
212
-
213
- var _appName = _objectSpread(_objectSpread({}, {
214
- appName: ''
215
- }), appInit || {}),
216
- appName = _appName.appName;
217
-
218
- return appName || '';
219
- },
220
- getAppDescription: function getAppDescription() {
221
- var appInit = (0, _tools.getAppInitConfigData)();
222
-
223
- var _appDescription = _objectSpread(_objectSpread({}, {
224
- appDescription: ''
225
- }), appInit || {}),
226
- appDescription = _appDescription.appDescription;
227
-
228
- return appDescription || '';
229
- },
230
- getTitle: function getTitle() {
231
- var appInit = (0, _tools.getAppInitConfigData)();
232
-
233
- var _appName2 = _objectSpread(_objectSpread({}, {
234
- appName: ''
235
- }), appInit || {}),
236
- appName = _appName2.appName;
237
-
238
- return appName || '';
239
- },
240
- getEntranceLogo: function getEntranceLogo() {
241
- var appInit = (0, _tools.getAppInitConfigData)();
242
-
243
- var _entranceLogo = _objectSpread(_objectSpread({}, {
244
- entranceLogo: _constants.emptyLogo
245
- }), appInit || {}),
246
- entranceLogo = _entranceLogo.entranceLogo;
247
-
248
- return entranceLogo || _constants.emptyLogo;
249
- },
250
- getShareLogo: function getShareLogo() {
251
- var appInit = (0, _tools.getAppInitConfigData)();
252
-
253
- var _shareLogo = _objectSpread(_objectSpread({}, {
254
- shareLogo: _constants.emptyLogo
255
- }), appInit || {}),
256
- shareLogo = _shareLogo.shareLogo;
257
-
258
- return shareLogo || _constants.emptyLogo;
259
- },
260
- getShareLogoName: function getShareLogoName() {
261
- var appInit = (0, _tools.getAppInitConfigData)();
262
-
263
- var _shareLogoName = _objectSpread(_objectSpread({}, {
264
- shareLogoName: ''
265
- }), appInit || {}),
266
- shareLogoName = _shareLogoName.shareLogoName;
267
-
268
- return shareLogoName || '';
269
- },
270
- getCompanyName: function getCompanyName() {
271
- var appInit = (0, _tools.getAppInitConfigData)();
272
-
273
- var _companyName = _objectSpread(_objectSpread({}, {
274
- companyName: ''
275
- }), appInit || {}),
276
- companyName = _companyName.companyName;
277
-
278
- return companyName || '';
279
- },
280
- getLeftBarLogo: function getLeftBarLogo(remoteLogo) {
281
- if (!(0, _tools.stringIsNullOrWhiteSpace)(remoteLogo || null)) {
282
- return remoteLogo;
283
- }
284
-
285
- var appInit = (0, _tools.getAppInitConfigData)();
286
-
287
- var _leftBarLogo = _objectSpread(_objectSpread({}, {
288
- leftBarLogo: _constants.emptyLogo
289
- }), appInit || {}),
290
- leftBarLogo = _leftBarLogo.leftBarLogo;
291
-
292
- return leftBarLogo || _constants.emptyLogo;
293
- },
294
- getLeftBarText: function getLeftBarText() {
295
- var appInit = (0, _tools.getAppInitConfigData)();
296
-
297
- var _leftBarText = _objectSpread(_objectSpread({}, {
298
- leftBarText: ''
299
- }), appInit || {}),
300
- leftBarText = _leftBarText.leftBarText;
301
-
302
- return leftBarText || '';
303
- },
304
- getCopyright: function getCopyright() {
305
- var appInit = (0, _tools.getAppInitConfigData)();
306
-
307
- var _copyright = _objectSpread(_objectSpread({}, {
308
- copyright: ''
309
- }), appInit || {}),
310
- copyright = _copyright.copyright;
311
-
312
- return copyright || '';
313
- }
12
+ getTinymceImagesUploadUrl: _appConfiguration.getTinymceImagesUploadUrl,
13
+ getTinymceApiKey: _appConfiguration.getTinymceApiKey,
14
+ getUseNprogress: _appConfiguration.getUseNprogress,
15
+ getFileUploadMaxSize: _appConfiguration.getFileUploadMaxSize,
16
+ getAudioUploadMaxSize: _appConfiguration.getAudioUploadMaxSize,
17
+ getVideoUploadMaxSize: _appConfiguration.getVideoUploadMaxSize,
18
+ getImageUploadMaxSize: _appConfiguration.getImageUploadMaxSize,
19
+ getShowSelectLanguage: _appConfiguration.getShowSelectLanguage,
20
+ getShowLogoInEntrance: _appConfiguration.getShowLogoInEntrance,
21
+ getEmptyLogo: _appConfiguration.getEmptyLogo,
22
+ getApiSuccessCode: _appConfiguration.getApiSuccessCode,
23
+ getAuthenticationFailCode: _appConfiguration.getAuthenticationFailCode,
24
+ getEntrancePath: _appConfiguration.getEntrancePath,
25
+ getApiVersion: _appConfiguration.getApiVersion,
26
+ getUseVirtualRequest: _appConfiguration.getUseVirtualRequest,
27
+ getShowUseVirtualRequestMessage: _appConfiguration.getShowUseVirtualRequestMessage,
28
+ getShowLogInConsole: _appConfiguration.getShowLogInConsole,
29
+ getShowRequestInfo: _appConfiguration.getShowRequestInfo,
30
+ getPlatformName: _appConfiguration.getPlatformName,
31
+ getAppName: _appConfiguration.getAppName,
32
+ getAppDescription: _appConfiguration.getAppDescription,
33
+ getTitle: _appConfiguration.getTitle,
34
+ getEntranceLogo: _appConfiguration.getEntranceLogo,
35
+ getShareLogo: _appConfiguration.getShareLogo,
36
+ getShareLogoName: _appConfiguration.getShareLogoName,
37
+ getCompanyName: _appConfiguration.getCompanyName,
38
+ getLeftBarLogo: _appConfiguration.getLeftBarLogo,
39
+ getLeftBarText: _appConfiguration.getLeftBarText,
40
+ getCopyright: _appConfiguration.getCopyright
314
41
  };
315
42
  /**
316
43
  * 占位函数
@@ -1,36 +1,3 @@
1
- export function getAppInitConfigData(): {
2
- platformName: string;
3
- appName: string;
4
- appDescription: string;
5
- entranceLogo: string;
6
- shareLogo: string;
7
- shareLogoName: string;
8
- leftBarText: string;
9
- companyName: string;
10
- copyright: string;
11
- apiPrefix: {
12
- corsTargetProduction: string;
13
- };
14
- showSelectLanguage: boolean;
15
- showLogoInEntrance: boolean;
16
- emptyLogo: string;
17
- leftBarLogo: string;
18
- apiSuccessCode: number;
19
- authenticationFailCode: number;
20
- entrancePath: string;
21
- showLogInConsole: boolean;
22
- showRequestInfo: boolean;
23
- useVirtualRequest: boolean;
24
- showUseVirtualRequestMessage: boolean;
25
- apiVersion: string;
26
- imageUploadMaxSize: number;
27
- audioUploadMaxSize: number;
28
- videoUploadMaxSize: number;
29
- fileUploadMaxSize: number;
30
- useNprogress: boolean;
31
- tinymceApiKey: string;
32
- tinymceImagesUploadUrl: string;
33
- };
34
1
  export function defaultBaseState(): {
35
2
  dataLoading: boolean;
36
3
  processing: boolean;
@@ -818,6 +785,6 @@ export function queryStringParse(data: any): import("qs").ParsedQs;
818
785
  * @export
819
786
  * @returns
820
787
  */
821
- export function emptyExport(): {};
788
+ export function empty(): {};
822
789
  export const requestAnimFrame: (((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame) | (() => void);
823
790
  import moment from "moment";
package/es/utils/tools.js CHANGED
@@ -28,7 +28,7 @@ exports.defaultListState = defaultListState;
28
28
  exports.defaultPageListState = defaultPageListState;
29
29
  exports.difference = difference;
30
30
  exports.ellipsis = ellipsis;
31
- exports.emptyExport = emptyExport;
31
+ exports.empty = empty;
32
32
  exports.encodeBase64 = encodeBase64;
33
33
  exports.endsWith = endsWith;
34
34
  exports.evil = evil;
@@ -41,7 +41,6 @@ exports.formatDecimal = formatDecimal;
41
41
  exports.formatMoney = formatMoney;
42
42
  exports.formatMoneyToChinese = formatMoneyToChinese;
43
43
  exports.formatTarget = formatTarget;
44
- exports.getAppInitConfigData = getAppInitConfigData;
45
44
  exports.getBrowserInfo = getBrowserInfo;
46
45
  exports.getDerivedStateFromPropsForUrlParams = getDerivedStateFromPropsForUrlParams;
47
46
  exports.getDerivedStateFromPropsForUrlParamsCore = getDerivedStateFromPropsForUrlParamsCore;
@@ -166,8 +165,12 @@ var _umi = require("umi");
166
165
 
167
166
  var _uuid = require("uuid");
168
167
 
168
+ var _appConfiguration = require("./appConfiguration");
169
+
169
170
  var _constants = require("./constants");
170
171
 
172
+ var _core = require("./core");
173
+
171
174
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
172
175
 
173
176
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -194,26 +197,6 @@ var storageKeyCollection = {
194
197
  nearestLocalhostNotify: 'nearestLocalhostNotify'
195
198
  };
196
199
 
197
- function isBrowser() {
198
- return typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined';
199
- }
200
-
201
- function getAppInitConfigData() {
202
- var appInitConfig = _constants.appInitDefault;
203
-
204
- if (isBrowser()) {
205
- if ((window.appInitCustomLocal || null) != null) {
206
- appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.appInitCustomLocal);
207
- }
208
-
209
- if ((window.appInitCustomRemote || null) != null) {
210
- appInitConfig = _objectSpread(_objectSpread({}, appInitConfig), window.appInitCustomRemote);
211
- }
212
- }
213
-
214
- return appInitConfig;
215
- }
216
-
217
200
  function defaultBaseState() {
218
201
  return {
219
202
  dataLoading: false,
@@ -388,7 +371,7 @@ function checkDevelopment() {
388
371
 
389
372
 
390
373
  function corsTarget() {
391
- var appInit = getAppInitConfigData();
374
+ var appInit = (0, _appConfiguration.getAppInitConfigData)();
392
375
  var corsTargetDomain = '';
393
376
 
394
377
  if (appInit.apiPrefix != null) {
@@ -745,7 +728,7 @@ function recordObject(record) {
745
728
  }
746
729
 
747
730
  function logShowInConsole() {
748
- var appInit = getAppInitConfigData();
731
+ var appInit = (0, _appConfiguration.getAppInitConfigData)();
749
732
  var result = !!(appInit.showLogInConsole || false);
750
733
  return result;
751
734
  }
@@ -2022,11 +2005,11 @@ function reverse(array) {
2022
2005
  }
2023
2006
 
2024
2007
  function trim(source) {
2025
- return (0, _lodash.trim)(source);
2008
+ return (0, _core.trim)(source);
2026
2009
  }
2027
2010
 
2028
2011
  function replace(source, pattern, replacement) {
2029
- return (0, _lodash.replace)(source, pattern, replacement);
2012
+ return (0, _core.replace)(source, pattern, replacement);
2030
2013
  }
2031
2014
 
2032
2015
  function isBoolean(value) {
@@ -2076,7 +2059,7 @@ function removeFromArray(array, predicate) {
2076
2059
  }
2077
2060
 
2078
2061
  function stringIsNullOrWhiteSpace(value) {
2079
- return trim(replace(value || '', ' ', '')) === '';
2062
+ return (0, _core.stringIsNullOrWhiteSpace)(value);
2080
2063
  }
2081
2064
  /**
2082
2065
  * base64解码
@@ -2400,7 +2383,7 @@ function checkFromConfig(_ref24) {
2400
2383
  }
2401
2384
 
2402
2385
  var requestAnimFrameCustom = function () {
2403
- if (isBrowser()) {
2386
+ if ((0, _core.isBrowser)()) {
2404
2387
  return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (a) {
2405
2388
  window.setTimeout(a, 1e3 / 60);
2406
2389
  };
@@ -2537,6 +2520,6 @@ function queryStringParse(data) {
2537
2520
  */
2538
2521
 
2539
2522
 
2540
- function emptyExport() {
2523
+ function empty() {
2541
2524
  return {};
2542
2525
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 占位函数
3
+ *
4
+ * @export
5
+ * @returns
6
+ */
7
+ export function empty(): {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.empty = empty;
7
+
8
+ /**
9
+ * 占位函数
10
+ *
11
+ * @export
12
+ * @returns
13
+ */
14
+ function empty() {
15
+ return {};
16
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 占位函数
3
+ *
4
+ * @export
5
+ * @returns
6
+ */
7
+ export function empty(): {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.empty = empty;
7
+
8
+ /**
9
+ * 占位函数
10
+ *
11
+ * @export
12
+ * @returns
13
+ */
14
+ function empty() {
15
+ return {};
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-framework",
3
- "version": "1.12.39",
3
+ "version": "1.12.40",
4
4
  "description": "antd-management-fast-framework",
5
5
  "keywords": [
6
6
  "antd-management-fast-framework"
@@ -27,7 +27,7 @@
27
27
  "scripts": {
28
28
  "adjust-install": "cnpm install postcss-less",
29
29
  "build": "rimraf ./src/**/*.d.ts && rimraf ./lib && rimraf ./es && tsc -p . && father-build && rimraf ./src/**/*.d.ts",
30
- "clean-file": "rimraf ./node_modules",
30
+ "clean-file": "rimraf ./src/.umi && rimraf ./node_modules",
31
31
  "delete:dts": "rimraf ./src/**/*.d.ts",
32
32
  "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
33
33
  "lint-staged": "lint-staged",
@@ -171,7 +171,7 @@
171
171
  "src/framework",
172
172
  "src/utils"
173
173
  ],
174
- "gitHead": "4ce56e18d319bbc0636d177f8ec05ac16431f955",
174
+ "gitHead": "55680518ca2b6a07e543400bea08f667b94eb5c9",
175
175
  "gitHooks": {
176
176
  "pre-commit": "lint-staged"
177
177
  }