@dao42/d42paas-front 0.5.39 → 0.5.47
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 +92 -43
- package/dist/DaoPaaS.umd.js +497 -497
- package/dist/editor.d.ts +48 -15
- package/dist/style.css +1 -1
- package/dist/tsdoc.html +60 -0
- package/package.json +1 -1
package/dist/editor.d.ts
CHANGED
|
@@ -4,33 +4,65 @@
|
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
*-----------------------------------------------------------*/
|
|
6
6
|
|
|
7
|
-
// import React from 'react';
|
|
8
|
-
|
|
9
7
|
/*---------------------------------------------------------------------------------------------
|
|
10
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
9
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
12
10
|
*--------------------------------------------------------------------------------------------*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// import * as CSS from 'csstype';
|
|
11
|
+
|
|
12
|
+
export type TMode = 'tsdoc' | 'singleFile' | 'IDE';
|
|
16
13
|
|
|
17
14
|
export type T_PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
|
|
15
|
+
|
|
18
16
|
export type TReplay = 'stop' | 'disabled' | 'pause';
|
|
19
17
|
|
|
18
|
+
/* export type T_DockerStatus = 'RUNNING' | 'STOP'; */
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* UserInfo for caller.
|
|
22
|
+
*/
|
|
23
|
+
interface TUserInfo {
|
|
24
|
+
playgroundId?: string;
|
|
25
|
+
operation?: any;
|
|
26
|
+
uuid?: string;
|
|
27
|
+
color?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
username?: string;
|
|
30
|
+
userId?: string;
|
|
31
|
+
role?: string;
|
|
32
|
+
avatar?: string;
|
|
33
|
+
onlineCount?: number;
|
|
34
|
+
// [x: string]:
|
|
35
|
+
// | string
|
|
36
|
+
// | number
|
|
37
|
+
// | qs.ParsedQs
|
|
38
|
+
// | string[]
|
|
39
|
+
// | number[]
|
|
40
|
+
// | qs.ParsedQs[];
|
|
41
|
+
// [x: string]: string | qs.ParsedQs | string[] | qs.ParsedQs[];
|
|
42
|
+
}
|
|
43
|
+
|
|
20
44
|
/**
|
|
21
45
|
* the arguments of the Playground.
|
|
22
46
|
*/
|
|
23
47
|
interface TConstructor {
|
|
24
48
|
/**
|
|
25
49
|
*
|
|
26
|
-
*
|
|
50
|
+
* init the playground with the mode.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
mode?: TMode;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* init the playground with the env.
|
|
27
59
|
*
|
|
28
60
|
*/
|
|
29
61
|
env?: string;
|
|
30
62
|
|
|
31
63
|
/**
|
|
32
64
|
*
|
|
33
|
-
*
|
|
65
|
+
* init the playground ticket needed.
|
|
34
66
|
*
|
|
35
67
|
*/
|
|
36
68
|
ticket: string;
|
|
@@ -63,13 +95,6 @@ interface TConstructor {
|
|
|
63
95
|
*/
|
|
64
96
|
username?: string;
|
|
65
97
|
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* avatar for the playground but not necessarily.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
|
-
avatar?: string;
|
|
72
|
-
|
|
73
98
|
/**
|
|
74
99
|
*
|
|
75
100
|
* avatarUrl for the playground but not necessarily.
|
|
@@ -84,7 +109,13 @@ interface TConstructor {
|
|
|
84
109
|
*/
|
|
85
110
|
ignoreReplayers?: keyof D42_FrontType['CRDT'][];
|
|
86
111
|
|
|
87
|
-
components?:
|
|
112
|
+
components?: UserComponent[];
|
|
113
|
+
|
|
114
|
+
// render?: () => TComponentArgs[];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface UserComponent extends TComponentArgs {
|
|
118
|
+
item: string;
|
|
88
119
|
}
|
|
89
120
|
|
|
90
121
|
/**
|
|
@@ -112,6 +143,8 @@ export class DaoPaaS {
|
|
|
112
143
|
|
|
113
144
|
get playgroundStatus(): T_PlaygroundStatus;
|
|
114
145
|
|
|
146
|
+
get userList(): TUserInfo[];
|
|
147
|
+
|
|
115
148
|
/**
|
|
116
149
|
*
|
|
117
150
|
* Replaying method for global calling.
|