@dao42/d42paas-front 0.5.20 → 0.5.26
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 +338 -348
- package/dist/DaoPaaS.umd.js +409 -406
- package/dist/editor.d.ts +80 -14
- package/dist/index.html +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/assets/css.worker.fcb4bd78.js +0 -62
- package/dist/assets/editor.worker.d0372abe.js +0 -4
- package/dist/assets/html.worker.446a9d97.js +0 -452
- package/dist/assets/json.worker.4dd01dd8.js +0 -35
- package/dist/assets/ts.worker.bb4527d0.js +0 -35320
package/dist/editor.d.ts
CHANGED
|
@@ -12,42 +12,55 @@ export type T_PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
|
|
|
12
12
|
export type TReplay = 'stop' | 'disabled' | 'pause';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* the arguments of the Playground
|
|
15
|
+
* the arguments of the Playground.
|
|
17
16
|
*/
|
|
18
17
|
interface TConstructor {
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
19
|
+
*
|
|
20
|
+
* initing the playground ticket needed.
|
|
21
|
+
*
|
|
21
22
|
*/
|
|
22
23
|
ticket: string;
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
*
|
|
27
|
+
* to init the playground with this id.
|
|
28
|
+
*
|
|
26
29
|
*/
|
|
27
30
|
playgroundId: string;
|
|
28
31
|
|
|
29
32
|
/**
|
|
30
|
-
*
|
|
33
|
+
*
|
|
34
|
+
* userId for the playground.
|
|
35
|
+
*
|
|
31
36
|
*/
|
|
32
37
|
userId: string;
|
|
33
38
|
|
|
34
39
|
/**
|
|
35
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* tenantId for the playground.
|
|
42
|
+
*
|
|
36
43
|
*/
|
|
37
44
|
tenantId: string;
|
|
38
45
|
|
|
39
46
|
/**
|
|
40
|
-
*
|
|
47
|
+
*
|
|
48
|
+
* username for the playground.
|
|
49
|
+
*
|
|
41
50
|
*/
|
|
42
51
|
username?: string;
|
|
43
52
|
|
|
44
53
|
/**
|
|
45
|
-
*
|
|
54
|
+
*
|
|
55
|
+
* avatar for the playground but not necessarily.
|
|
56
|
+
*
|
|
46
57
|
*/
|
|
47
58
|
avatar?: string;
|
|
48
59
|
|
|
49
60
|
/**
|
|
50
|
-
*
|
|
61
|
+
*
|
|
62
|
+
* avatarUrl for the playground but not necessarily.
|
|
63
|
+
*
|
|
51
64
|
*/
|
|
52
65
|
avatarUrl?: string;
|
|
53
66
|
|
|
@@ -57,17 +70,20 @@ interface TConstructor {
|
|
|
57
70
|
*
|
|
58
71
|
* @interface TComponentArgs
|
|
59
72
|
* @desc
|
|
73
|
+
*
|
|
60
74
|
*/
|
|
61
75
|
|
|
62
76
|
interface TComponentArgs {
|
|
63
77
|
|
|
64
78
|
/**
|
|
65
79
|
*
|
|
80
|
+
* the DOM for the component.
|
|
66
81
|
* @type {(string | HTMLElement | Element)}
|
|
67
82
|
* @memberof TComponentArgs
|
|
68
|
-
*
|
|
83
|
+
*
|
|
69
84
|
*/
|
|
70
85
|
container: string | HTMLElement | Element;
|
|
86
|
+
|
|
71
87
|
props?: any;
|
|
72
88
|
}
|
|
73
89
|
|
|
@@ -76,36 +92,86 @@ export class DaoPaaS {
|
|
|
76
92
|
|
|
77
93
|
get playgroundStatus(): T_PlaygroundStatus;
|
|
78
94
|
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* Replaying method for global calling.
|
|
98
|
+
* @param {TReplay} args
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
79
101
|
replay(args: TReplay): void;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* Recording method for global calling.
|
|
106
|
+
* @param {boolean} arg
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
80
109
|
record(arg: boolean): void;
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* Here you can switch language services by calling this method.
|
|
115
|
+
* @param {boolean} arg
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
81
118
|
switchLspServer(arg: boolean): void;
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* Active the playground handler.
|
|
124
|
+
* @memberof DaoPaaS
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
82
127
|
activePlayground(): void;
|
|
83
128
|
|
|
84
129
|
/**
|
|
85
130
|
*
|
|
131
|
+
* Editor component.
|
|
86
132
|
* @memberof DaoPaaS
|
|
87
|
-
*
|
|
133
|
+
*
|
|
88
134
|
*/
|
|
89
135
|
Editor(args: TComponentArgs): void;
|
|
90
136
|
|
|
91
137
|
/**
|
|
92
138
|
*
|
|
139
|
+
* Page component.
|
|
93
140
|
* @memberof DaoPaaS
|
|
94
|
-
*
|
|
141
|
+
*
|
|
95
142
|
*/
|
|
96
143
|
Page(args: TComponentArgs): void;
|
|
97
144
|
|
|
98
145
|
/**
|
|
99
146
|
*
|
|
147
|
+
* Tree component.
|
|
100
148
|
* @memberof DaoPaaS
|
|
101
|
-
*
|
|
149
|
+
*
|
|
102
150
|
*/
|
|
103
151
|
Tree(args: TComponentArgs): void;
|
|
104
152
|
|
|
105
153
|
/**
|
|
106
154
|
*
|
|
155
|
+
* Shell component.
|
|
107
156
|
* @memberof DaoPaaS
|
|
108
|
-
*
|
|
157
|
+
*
|
|
109
158
|
*/
|
|
110
159
|
Shell(args: TComponentArgs): void;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* Browser component.
|
|
164
|
+
* @memberof DaoPaaS
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
Browser(args: TComponentArgs): void;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* Console component.
|
|
172
|
+
* @memberof DaoPaaS
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
Console(args: TComponentArgs): void;
|
|
176
|
+
|
|
111
177
|
}
|
package/dist/index.html
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
window.daopaas = DaoPaaS;
|
|
33
33
|
|
|
34
34
|
var qs = new URLSearchParams(document.location.search.substring(1));
|
|
35
|
-
window.daopaas = new DaoPaaS({
|
|
35
|
+
window.daopaas = new DaoPaaS.DaoPaaS({
|
|
36
36
|
ticket: qs.get('ticket'),
|
|
37
37
|
playgroundId: qs.get('playgroundId'),
|
|
38
38
|
userId: qs.get('userId'),
|