@dao42/d42paas-front 0.7.26 → 0.7.29
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.
- package/dist/DaoPaaS.es.js +43 -40
- package/dist/DaoPaaS.umd.js +222 -222
- package/dist/editor.d.ts +356 -46
- package/package.json +3 -3
package/dist/editor.d.ts
CHANGED
|
@@ -8,19 +8,30 @@
|
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
10
10
|
*--------------------------------------------------------------------------------------------*/
|
|
11
|
+
type MessageType = {
|
|
12
|
+
PlaygroundStatus?: any;
|
|
13
|
+
dockerStatus?: any;
|
|
14
|
+
userList?: any;
|
|
15
|
+
};
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
type ErrorType = {
|
|
18
|
+
PlaygroundStatus?: any;
|
|
19
|
+
dockerStatus?: any;
|
|
20
|
+
userList?: any;
|
|
21
|
+
};
|
|
13
22
|
|
|
14
|
-
export type
|
|
23
|
+
export type Mode = 'tsdoc' | 'singleFile' | 'IDE';
|
|
15
24
|
|
|
16
|
-
export type
|
|
25
|
+
export type PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
|
|
17
26
|
|
|
18
|
-
export type
|
|
27
|
+
export type Replay = 'stop' | 'disabled' | 'pause';
|
|
28
|
+
|
|
29
|
+
export type DockerStatus = 'RUNNING' | 'STOP';
|
|
19
30
|
|
|
20
31
|
/**
|
|
21
|
-
*
|
|
32
|
+
* Userinfo type
|
|
22
33
|
*/
|
|
23
|
-
interface
|
|
34
|
+
interface UserInfo {
|
|
24
35
|
playgroundId?: string;
|
|
25
36
|
operation?: any;
|
|
26
37
|
uuid?: string;
|
|
@@ -34,14 +45,24 @@ interface TUserInfo {
|
|
|
34
45
|
}
|
|
35
46
|
|
|
36
47
|
/**
|
|
37
|
-
* the
|
|
48
|
+
* Passing the values to init the playground.
|
|
38
49
|
*/
|
|
39
|
-
interface
|
|
50
|
+
interface Options {
|
|
40
51
|
debug?: boolean;
|
|
41
52
|
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* Error listener to the aplication.
|
|
56
|
+
* @param error
|
|
57
|
+
*/
|
|
42
58
|
onError?: (error: any) => void;
|
|
43
59
|
|
|
44
|
-
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* Message listener to the aplication.
|
|
63
|
+
* @param MessageType
|
|
64
|
+
*/
|
|
65
|
+
onMessage?: (message: MessageType) => void;
|
|
45
66
|
|
|
46
67
|
serviceWorkerOrigin?: string;
|
|
47
68
|
|
|
@@ -50,66 +71,65 @@ interface TConstructor {
|
|
|
50
71
|
* init the playground with the mode.
|
|
51
72
|
*
|
|
52
73
|
*/
|
|
53
|
-
|
|
54
|
-
mode?: TMode;
|
|
74
|
+
readonly mode?: Mode;
|
|
55
75
|
|
|
56
76
|
/**
|
|
57
77
|
*
|
|
58
|
-
* init the playground with the
|
|
78
|
+
* init the playground with the paasDomain.
|
|
59
79
|
*
|
|
60
80
|
*/
|
|
61
|
-
paasDomain: string;
|
|
81
|
+
readonly paasDomain: string;
|
|
62
82
|
|
|
63
83
|
/**
|
|
64
84
|
*
|
|
65
85
|
* init the playground ticket needed.
|
|
66
86
|
*
|
|
67
87
|
*/
|
|
68
|
-
ticket: string;
|
|
88
|
+
readonly ticket: string;
|
|
69
89
|
|
|
70
90
|
/**
|
|
71
91
|
*
|
|
72
92
|
* to init the playground with this id.
|
|
73
93
|
*
|
|
74
94
|
*/
|
|
75
|
-
playgroundId: string;
|
|
95
|
+
readonly playgroundId: string;
|
|
76
96
|
|
|
77
97
|
/**
|
|
78
98
|
*
|
|
79
99
|
* userId for the playground.
|
|
80
100
|
*
|
|
81
101
|
*/
|
|
82
|
-
userId: string;
|
|
102
|
+
readonly userId: string;
|
|
83
103
|
|
|
84
104
|
/**
|
|
85
105
|
*
|
|
86
106
|
* tenantId for the playground.
|
|
87
107
|
*
|
|
88
108
|
*/
|
|
89
|
-
tenantId: string;
|
|
109
|
+
readonly tenantId: string;
|
|
90
110
|
|
|
91
111
|
/**
|
|
92
112
|
*
|
|
93
113
|
* username for the playground.
|
|
94
114
|
*
|
|
95
115
|
*/
|
|
96
|
-
username?: string;
|
|
116
|
+
readonly username?: string;
|
|
97
117
|
|
|
98
118
|
/**
|
|
99
119
|
*
|
|
100
120
|
* avatarUrl for the playground but not necessarily.
|
|
101
121
|
*
|
|
102
122
|
*/
|
|
103
|
-
avatarUrl?: string;
|
|
123
|
+
readonly avatarUrl?: string;
|
|
104
124
|
|
|
105
125
|
/**
|
|
106
126
|
*
|
|
107
127
|
* this argument is to ingnore replaying patterns.
|
|
108
128
|
*
|
|
109
129
|
*/
|
|
110
|
-
ignoreReplayers?: string[];
|
|
130
|
+
readonly ignoreReplayers?: string[];
|
|
111
131
|
|
|
112
|
-
components?: UserComponent[];
|
|
132
|
+
readonly components?: UserComponent[];
|
|
113
133
|
|
|
114
134
|
/**
|
|
115
135
|
* @deprecated to fix the issue of the playground.
|
|
@@ -118,22 +138,21 @@ interface TConstructor {
|
|
|
118
138
|
*/
|
|
119
139
|
}
|
|
120
140
|
|
|
121
|
-
export interface UserComponent extends
|
|
141
|
+
export interface UserComponent extends ComponentArgs {
|
|
122
142
|
item: string;
|
|
123
143
|
}
|
|
124
144
|
|
|
125
145
|
/**
|
|
126
146
|
*
|
|
127
|
-
* @interface
|
|
147
|
+
* @interface ComponentArgs
|
|
128
148
|
* @desc
|
|
129
149
|
*
|
|
130
150
|
*/
|
|
131
|
-
export interface
|
|
151
|
+
export interface ComponentArgs {
|
|
132
152
|
/**
|
|
133
153
|
*
|
|
134
154
|
* the DOM for the component.
|
|
135
155
|
* @type {(string | HTMLElement | Element)}
|
|
136
|
-
* @memberof TComponentArgs
|
|
137
156
|
*
|
|
138
157
|
*/
|
|
139
158
|
container: string | HTMLElement | Element;
|
|
@@ -141,14 +160,17 @@ export interface TComponentArgs {
|
|
|
141
160
|
props?: any;
|
|
142
161
|
}
|
|
143
162
|
|
|
163
|
+
/**
|
|
164
|
+
* This is the entry point for the application.
|
|
165
|
+
*/
|
|
144
166
|
export class DaoPaaS {
|
|
145
|
-
constructor(
|
|
167
|
+
constructor(options: Options);
|
|
146
168
|
|
|
147
|
-
get playgroundStatus():
|
|
169
|
+
get playgroundStatus(): PlaygroundStatus;
|
|
148
170
|
|
|
149
|
-
get dockerStatus():
|
|
171
|
+
get dockerStatus(): DockerStatus;
|
|
150
172
|
|
|
151
|
-
get userList():
|
|
173
|
+
get userList(): UserInfo[];
|
|
152
174
|
|
|
153
175
|
/**
|
|
154
176
|
*
|
|
@@ -165,7 +187,6 @@ export class DaoPaaS {
|
|
|
165
187
|
* @param {followUser} args
|
|
166
188
|
*
|
|
167
189
|
*/
|
|
168
|
-
|
|
169
190
|
followUser(user: any, callback: () => void): void;
|
|
170
191
|
|
|
171
192
|
/**
|
|
@@ -174,7 +195,7 @@ export class DaoPaaS {
|
|
|
174
195
|
* @param {TReplay} args
|
|
175
196
|
*
|
|
176
197
|
*/
|
|
177
|
-
replay(args: { userId:
|
|
198
|
+
replay(args: { userId: UserInfo['userId']; timestamp: string }): void;
|
|
178
199
|
|
|
179
200
|
/**
|
|
180
201
|
*
|
|
@@ -203,7 +224,6 @@ export class DaoPaaS {
|
|
|
203
224
|
/**
|
|
204
225
|
*
|
|
205
226
|
* Active the playground handler.
|
|
206
|
-
* @memberof DaoPaaS
|
|
207
227
|
*
|
|
208
228
|
*/
|
|
209
229
|
activePlayground(): void;
|
|
@@ -211,7 +231,6 @@ export class DaoPaaS {
|
|
|
211
231
|
/**
|
|
212
232
|
*
|
|
213
233
|
* Run the playground handler.
|
|
214
|
-
* @memberof DaoPaaS
|
|
215
234
|
*
|
|
216
235
|
*/
|
|
217
236
|
runPlayground(): void;
|
|
@@ -219,7 +238,6 @@ export class DaoPaaS {
|
|
|
219
238
|
/**
|
|
220
239
|
*
|
|
221
240
|
* Stop the playground.
|
|
222
|
-
* @memberof DaoPaaS
|
|
223
241
|
*
|
|
224
242
|
*/
|
|
225
243
|
stopPlayground(): void;
|
|
@@ -227,12 +245,12 @@ export class DaoPaaS {
|
|
|
227
245
|
/**
|
|
228
246
|
*
|
|
229
247
|
* Editor component.
|
|
230
|
-
* @
|
|
248
|
+
* @param ComponentArgs
|
|
231
249
|
* CSS.Properties<string | number>
|
|
232
250
|
*/
|
|
233
251
|
Editor(
|
|
234
252
|
args:
|
|
235
|
-
|
|
|
253
|
+
| ComponentArgs
|
|
236
254
|
| {
|
|
237
255
|
containerStyle: any;
|
|
238
256
|
editorStyle: any;
|
|
@@ -243,40 +261,332 @@ export class DaoPaaS {
|
|
|
243
261
|
/**
|
|
244
262
|
*
|
|
245
263
|
* Page component.
|
|
246
|
-
* @
|
|
264
|
+
* @param ComponentArgs
|
|
247
265
|
*
|
|
248
266
|
*/
|
|
249
|
-
Page(args:
|
|
267
|
+
Page(args: ComponentArgs): void;
|
|
250
268
|
|
|
251
269
|
/**
|
|
252
270
|
*
|
|
253
271
|
* Tree component.
|
|
254
|
-
* @
|
|
272
|
+
* @param ComponentArgs
|
|
255
273
|
*
|
|
256
274
|
*/
|
|
257
|
-
Tree(args:
|
|
275
|
+
Tree(args: ComponentArgs): void;
|
|
258
276
|
|
|
259
277
|
/**
|
|
260
278
|
*
|
|
261
279
|
* Shell component.
|
|
262
|
-
* @
|
|
280
|
+
* @param ComponentArgs
|
|
263
281
|
*
|
|
264
282
|
*/
|
|
265
|
-
Shell(args:
|
|
283
|
+
Shell(args: ComponentArgs): void;
|
|
266
284
|
|
|
267
285
|
/**
|
|
268
286
|
*
|
|
269
287
|
* Browser component.
|
|
270
|
-
* @
|
|
288
|
+
* @param ComponentArgs
|
|
271
289
|
*
|
|
272
290
|
*/
|
|
273
|
-
Browser(args:
|
|
291
|
+
Browser(args: ComponentArgs): void;
|
|
274
292
|
|
|
275
293
|
/**
|
|
276
294
|
*
|
|
277
295
|
* Console component.
|
|
278
|
-
* @
|
|
296
|
+
* @param ComponentArgs
|
|
279
297
|
*
|
|
280
298
|
*/
|
|
281
|
-
Console(args:
|
|
299
|
+
Console(args: ComponentArgs): void;
|
|
282
300
|
}
|
|
301
|
+
|
|
302
|
+
// /*!-----------------------------------------------------------
|
|
303
|
+
// * Copyright (c) dao42. All rights reserved.
|
|
304
|
+
// * Type definitions for @dao42/d42paas-front
|
|
305
|
+
// * Released under the MIT license
|
|
306
|
+
// *-----------------------------------------------------------*/
|
|
307
|
+
|
|
308
|
+
// /*---------------------------------------------------------------------------------------------
|
|
309
|
+
// * Copyright (c) Microsoft Corporation. All rights reserved.
|
|
310
|
+
// * Licensed under the MIT License. See License.txt in the project root for license information.
|
|
311
|
+
// *--------------------------------------------------------------------------------------------*/
|
|
312
|
+
// type MessageType = {
|
|
313
|
+
// dockerStatus?: any;
|
|
314
|
+
// userList: any;
|
|
315
|
+
// };
|
|
316
|
+
|
|
317
|
+
// export type Mode = 'tsdoc' | 'singleFile' | 'IDE';
|
|
318
|
+
|
|
319
|
+
// export type PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
|
|
320
|
+
|
|
321
|
+
// export type Replay = 'stop' | 'disabled' | 'pause';
|
|
322
|
+
|
|
323
|
+
// export type DockerStatus = 'RUNNING' | 'STOP';
|
|
324
|
+
|
|
325
|
+
// /**
|
|
326
|
+
// * JS API
|
|
327
|
+
// */
|
|
328
|
+
// interface UserInfo {
|
|
329
|
+
// playgroundId?: string;
|
|
330
|
+
// operation?: any;
|
|
331
|
+
// uuid?: string;
|
|
332
|
+
// color?: string;
|
|
333
|
+
// name?: string;
|
|
334
|
+
// username?: string;
|
|
335
|
+
// userId?: string;
|
|
336
|
+
// role?: string;
|
|
337
|
+
// avatar?: string;
|
|
338
|
+
// onlineCount?: number;
|
|
339
|
+
// }
|
|
340
|
+
|
|
341
|
+
// /**
|
|
342
|
+
// * Passing the values to init the playground.
|
|
343
|
+
// */
|
|
344
|
+
// interface Options {
|
|
345
|
+
// debug?: boolean;
|
|
346
|
+
|
|
347
|
+
// /**
|
|
348
|
+
// *
|
|
349
|
+
// * Error listener to the aplication.
|
|
350
|
+
// * @param error
|
|
351
|
+
// */
|
|
352
|
+
// onError?: (error: MessageType) => void;
|
|
353
|
+
|
|
354
|
+
// /**
|
|
355
|
+
// *
|
|
356
|
+
// * Message listener to the aplication.
|
|
357
|
+
// * @param error
|
|
358
|
+
// */
|
|
359
|
+
// onMessage?: (message: any) => void;
|
|
360
|
+
|
|
361
|
+
// serviceWorkerOrigin?: string;
|
|
362
|
+
|
|
363
|
+
// /**
|
|
364
|
+
// *
|
|
365
|
+
// * init the playground with the mode.
|
|
366
|
+
// *
|
|
367
|
+
// */
|
|
368
|
+
// readonly mode?: Mode;
|
|
369
|
+
|
|
370
|
+
// /**
|
|
371
|
+
// *
|
|
372
|
+
// * init the playground with the paasDomain.
|
|
373
|
+
// *
|
|
374
|
+
// */
|
|
375
|
+
// readonly paasDomain: string;
|
|
376
|
+
|
|
377
|
+
// /**
|
|
378
|
+
// *
|
|
379
|
+
// * init the playground ticket needed.
|
|
380
|
+
// *
|
|
381
|
+
// */
|
|
382
|
+
// readonly ticket: string;
|
|
383
|
+
|
|
384
|
+
// /**
|
|
385
|
+
// *
|
|
386
|
+
// * to init the playground with this id.
|
|
387
|
+
// *
|
|
388
|
+
// */
|
|
389
|
+
// readonly playgroundId: string;
|
|
390
|
+
|
|
391
|
+
// /**
|
|
392
|
+
// *
|
|
393
|
+
// * userId for the playground.
|
|
394
|
+
// *
|
|
395
|
+
// */
|
|
396
|
+
// readonly userId: string;
|
|
397
|
+
|
|
398
|
+
// /**
|
|
399
|
+
// *
|
|
400
|
+
// * tenantId for the playground.
|
|
401
|
+
// *
|
|
402
|
+
// */
|
|
403
|
+
// readonly tenantId: string;
|
|
404
|
+
|
|
405
|
+
// /**
|
|
406
|
+
// *
|
|
407
|
+
// * username for the playground.
|
|
408
|
+
// *
|
|
409
|
+
// */
|
|
410
|
+
// readonly username?: string;
|
|
411
|
+
|
|
412
|
+
// /**
|
|
413
|
+
// *
|
|
414
|
+
// * avatarUrl for the playground but not necessarily.
|
|
415
|
+
// *
|
|
416
|
+
// */
|
|
417
|
+
// readonly avatarUrl?: string;
|
|
418
|
+
|
|
419
|
+
// /**
|
|
420
|
+
// *
|
|
421
|
+
// * this argument is to ingnore replaying patterns.
|
|
422
|
+
// *
|
|
423
|
+
// */
|
|
424
|
+
// readonly ignoreReplayers?: string[];
|
|
425
|
+
|
|
426
|
+
// readonly components?: UserComponent[];
|
|
427
|
+
|
|
428
|
+
// /**
|
|
429
|
+
// * @deprecated to fix the issue of the playground.
|
|
430
|
+
// *
|
|
431
|
+
// * render?: () => TComponentArgs[]; keyof D42_FrontType['CRDT'][]
|
|
432
|
+
// */
|
|
433
|
+
// }
|
|
434
|
+
|
|
435
|
+
// export interface UserComponent extends ComponentArgs {
|
|
436
|
+
// item: string;
|
|
437
|
+
// }
|
|
438
|
+
|
|
439
|
+
// /**
|
|
440
|
+
// *
|
|
441
|
+
// * @interface ComponentArgs
|
|
442
|
+
// * @desc
|
|
443
|
+
// *
|
|
444
|
+
// */
|
|
445
|
+
// export interface ComponentArgs {
|
|
446
|
+
// /**
|
|
447
|
+
// *
|
|
448
|
+
// * the DOM for the component.
|
|
449
|
+
// * @type {(string | HTMLElement | Element)}
|
|
450
|
+
// *
|
|
451
|
+
// */
|
|
452
|
+
// container: string | HTMLElement | Element;
|
|
453
|
+
|
|
454
|
+
// props?: any;
|
|
455
|
+
// }
|
|
456
|
+
|
|
457
|
+
// export class DaoPaaS {
|
|
458
|
+
// constructor(options: Options);
|
|
459
|
+
|
|
460
|
+
// get playgroundStatus(): PlaygroundStatus;
|
|
461
|
+
|
|
462
|
+
// get dockerStatus(): DockerStatus;
|
|
463
|
+
|
|
464
|
+
// get userList(): UserInfo[];
|
|
465
|
+
|
|
466
|
+
// /**
|
|
467
|
+
// *
|
|
468
|
+
// * Replaying method for global calling.
|
|
469
|
+
// * @param {unFollowUser} args
|
|
470
|
+
// *
|
|
471
|
+
// */
|
|
472
|
+
|
|
473
|
+
// unFollowUser(user: any, callback: () => void): void;
|
|
474
|
+
|
|
475
|
+
// /**
|
|
476
|
+
// *
|
|
477
|
+
// * Replaying method for global calling.
|
|
478
|
+
// * @param {followUser} args
|
|
479
|
+
// *
|
|
480
|
+
// */
|
|
481
|
+
|
|
482
|
+
// followUser(user: any, callback: () => void): void;
|
|
483
|
+
|
|
484
|
+
// /**
|
|
485
|
+
// *
|
|
486
|
+
// * Replaying method for global calling.
|
|
487
|
+
// * @param {TReplay} args
|
|
488
|
+
// *
|
|
489
|
+
// */
|
|
490
|
+
// replay(args: { userId: UserInfo['userId']; timestamp: string }): void;
|
|
491
|
+
|
|
492
|
+
// /**
|
|
493
|
+
// *
|
|
494
|
+
// * Recording method for global calling.
|
|
495
|
+
// * @param {boolean} arg
|
|
496
|
+
// *
|
|
497
|
+
// */
|
|
498
|
+
// record(arg: boolean): void;
|
|
499
|
+
|
|
500
|
+
// /**
|
|
501
|
+
// *
|
|
502
|
+
// * async method to set Replayers.
|
|
503
|
+
// * @param {keyof D42_FrontType['CRDT'][]} arg
|
|
504
|
+
// *
|
|
505
|
+
// */
|
|
506
|
+
// setReplayers(arg: string[]): void;
|
|
507
|
+
|
|
508
|
+
// /**
|
|
509
|
+
// *
|
|
510
|
+
// * Here you can switch language services by calling this method.
|
|
511
|
+
// * @param {boolean} arg
|
|
512
|
+
// *
|
|
513
|
+
// */
|
|
514
|
+
// switchLspServer(arg: boolean): void;
|
|
515
|
+
|
|
516
|
+
// /**
|
|
517
|
+
// *
|
|
518
|
+
// * Active the playground handler.
|
|
519
|
+
// *
|
|
520
|
+
// */
|
|
521
|
+
// activePlayground(): void;
|
|
522
|
+
|
|
523
|
+
// /**
|
|
524
|
+
// *
|
|
525
|
+
// * Run the playground handler.
|
|
526
|
+
// *
|
|
527
|
+
// */
|
|
528
|
+
// runPlayground(): void;
|
|
529
|
+
|
|
530
|
+
// /**
|
|
531
|
+
// *
|
|
532
|
+
// * Stop the playground.
|
|
533
|
+
// *
|
|
534
|
+
// */
|
|
535
|
+
// stopPlayground(): void;
|
|
536
|
+
|
|
537
|
+
// /**
|
|
538
|
+
// *
|
|
539
|
+
// * Editor component.
|
|
540
|
+
// * @param ComponentArgs
|
|
541
|
+
// * CSS.Properties<string | number>
|
|
542
|
+
// */
|
|
543
|
+
// Editor(
|
|
544
|
+
// args:
|
|
545
|
+
// | ComponentArgs
|
|
546
|
+
// | {
|
|
547
|
+
// containerStyle: any;
|
|
548
|
+
// editorStyle: any;
|
|
549
|
+
// menuStyle: any;
|
|
550
|
+
// },
|
|
551
|
+
// ): void;
|
|
552
|
+
|
|
553
|
+
// /**
|
|
554
|
+
// *
|
|
555
|
+
// * Page component.
|
|
556
|
+
// * @param ComponentArgs
|
|
557
|
+
// *
|
|
558
|
+
// */
|
|
559
|
+
// Page(args: ComponentArgs): void;
|
|
560
|
+
|
|
561
|
+
// /**
|
|
562
|
+
// *
|
|
563
|
+
// * Tree component.
|
|
564
|
+
// * @param ComponentArgs
|
|
565
|
+
// *
|
|
566
|
+
// */
|
|
567
|
+
// Tree(args: ComponentArgs): void;
|
|
568
|
+
|
|
569
|
+
// /**
|
|
570
|
+
// *
|
|
571
|
+
// * Shell component.
|
|
572
|
+
// * @param ComponentArgs
|
|
573
|
+
// *
|
|
574
|
+
// */
|
|
575
|
+
// Shell(args: ComponentArgs): void;
|
|
576
|
+
|
|
577
|
+
// /**
|
|
578
|
+
// *
|
|
579
|
+
// * Browser component.
|
|
580
|
+
// * @param ComponentArgs
|
|
581
|
+
// *
|
|
582
|
+
// */
|
|
583
|
+
// Browser(args: ComponentArgs): void;
|
|
584
|
+
|
|
585
|
+
// /**
|
|
586
|
+
// *
|
|
587
|
+
// * Console component.
|
|
588
|
+
// * @param ComponentArgs
|
|
589
|
+
// *
|
|
590
|
+
// */
|
|
591
|
+
// Console(args: ComponentArgs): void;
|
|
592
|
+
// }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dao42/d42paas-front",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.29",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "eric183 <kk297466058@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/dao42/d42paas_frontend#readme",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"prebuild": "rimraf dist",
|
|
28
28
|
"webpack": "cross-env TS_NODE_PROJECT=\"tsconfig.dev.json\" webpack --config ./config/webpack.prod.config.ts",
|
|
29
|
-
"start:web": "yarn vite && yarn workNameSpaceToFix",
|
|
29
|
+
"start:web": "yarn vite && yarn workNameSpaceToFix && yarn typedoc",
|
|
30
30
|
"storybook": "start-storybook -p 6006",
|
|
31
31
|
"build-storybook": "build-storybook -o .storybook/dist",
|
|
32
32
|
"dev:disble": "cross-env TS_NODE_PROJECT=\"tsconfig.dev.json\" webpack serve --open --config ./config/webpack.dev.config.ts",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"dev": "vite serve --host --config ./config/vite.config.ts",
|
|
35
35
|
"dev:patch": "vite serve --host --config ./config/vite.dev.config.ts",
|
|
36
36
|
"vite": "cross-env NODE_ENV=production vite build --config ./config/vite.config.ts && yarn run copyTS",
|
|
37
|
+
"typedoc": "npx typedoc --tsconfig ./doc.tsconfig.json",
|
|
37
38
|
"fix": "eslint --fix --ext .jsx src/**",
|
|
38
39
|
"copyTS": "shx cp ./src/types/editor.d.ts ./dist",
|
|
39
40
|
"np": "npm publish --access-public",
|
|
@@ -83,7 +84,6 @@
|
|
|
83
84
|
"@types/react-dom": "^17.0.9",
|
|
84
85
|
"@types/tailwindcss": "^2.2.4",
|
|
85
86
|
"@types/uuid": "^8.3.1",
|
|
86
|
-
"@types/webpack": "^5.28.0",
|
|
87
87
|
"@vitejs/plugin-react": "^1.0.7",
|
|
88
88
|
"autoprefixer": "^10.0.2",
|
|
89
89
|
"babel-core": "^6.26.3",
|