@dao42/d42paas-front 0.7.51 → 0.7.55
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 +424 -358
- package/dist/DaoPaaS.umd.js +451 -447
- package/dist/editor.d.ts +62 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/editor.d.ts
CHANGED
|
@@ -11,7 +11,13 @@ import { Extend } from 'schema-utils/declarations/validate';
|
|
|
11
11
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
12
12
|
*--------------------------------------------------------------------------------------------*/
|
|
13
13
|
|
|
14
|
-
export type ComponentType =
|
|
14
|
+
export type ComponentType =
|
|
15
|
+
| 'Page'
|
|
16
|
+
| 'Tree'
|
|
17
|
+
| 'Editor'
|
|
18
|
+
| 'Console'
|
|
19
|
+
| 'Browser'
|
|
20
|
+
| 'Shell';
|
|
15
21
|
|
|
16
22
|
export type Mode = 'tsdoc' | 'singleFile' | 'IDE';
|
|
17
23
|
|
|
@@ -21,10 +27,30 @@ export type DockerStatus = 'RUNNING' | 'STOP';
|
|
|
21
27
|
|
|
22
28
|
// export type Replay = 'stop' | 'disabled' | 'pause';
|
|
23
29
|
interface MessageType {
|
|
30
|
+
/**
|
|
31
|
+
* The message type is use to show up the playground status.
|
|
32
|
+
*/
|
|
24
33
|
playgroundStatus?: PlaygroundStatus;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The message type is used to show up the docker status.
|
|
37
|
+
*/
|
|
25
38
|
dockerStatus?: DockerStatus;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The message type is used to list the users in the room
|
|
42
|
+
*/
|
|
26
43
|
userList?: UserInfo[];
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The message type is used to identify the user you following.
|
|
47
|
+
*/
|
|
27
48
|
followingUser?: UserInfo;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The message type is used to indicate the users who following you.
|
|
52
|
+
*/
|
|
53
|
+
usersFollowYou?: UserInfo[];
|
|
28
54
|
}
|
|
29
55
|
|
|
30
56
|
interface ErrorType {
|
|
@@ -77,7 +103,7 @@ interface UserInfo {
|
|
|
77
103
|
// timestamp: number;
|
|
78
104
|
// }
|
|
79
105
|
|
|
80
|
-
interface TreeProps {
|
|
106
|
+
export interface TreeProps {
|
|
81
107
|
/**
|
|
82
108
|
* The background color of the tree
|
|
83
109
|
*/
|
|
@@ -118,7 +144,7 @@ interface TreeProps {
|
|
|
118
144
|
onClick?: (arg: { path: string; uri: string }) => void;
|
|
119
145
|
}
|
|
120
146
|
|
|
121
|
-
interface MenuTagProps {
|
|
147
|
+
export interface MenuTagProps {
|
|
122
148
|
/**
|
|
123
149
|
* The style of the menu tag block
|
|
124
150
|
*/
|
|
@@ -152,6 +178,11 @@ interface MenuTagProps {
|
|
|
152
178
|
* The icon hover color
|
|
153
179
|
*/
|
|
154
180
|
hoverIconColor?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The menu tag height
|
|
184
|
+
*/
|
|
185
|
+
height?: string;
|
|
155
186
|
};
|
|
156
187
|
}
|
|
157
188
|
|
|
@@ -163,21 +194,41 @@ interface EditorProps extends MenuTagProps {
|
|
|
163
194
|
/**
|
|
164
195
|
* The color of the margin view overlay
|
|
165
196
|
*/
|
|
166
|
-
|
|
197
|
+
marginViewOverlaysBgColor?: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* The width of the margin view overlay
|
|
201
|
+
*/
|
|
202
|
+
marginViewOverlaysWidth?: string;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The left position of the margin view overlay
|
|
206
|
+
*/
|
|
207
|
+
marginViewOverlaysLeft?: string;
|
|
167
208
|
|
|
168
209
|
/**
|
|
169
210
|
* The line number color
|
|
170
211
|
*/
|
|
171
|
-
|
|
212
|
+
lineNumbersColor?: string;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The line number with
|
|
216
|
+
*/
|
|
217
|
+
lineNumbersWidth?: string;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* The line number left
|
|
221
|
+
*/
|
|
222
|
+
lineNumbersLeft?: string;
|
|
172
223
|
|
|
173
224
|
/**
|
|
174
225
|
* The active line number color
|
|
175
226
|
*/
|
|
176
|
-
|
|
227
|
+
activeLineNumberColor?: string;
|
|
177
228
|
};
|
|
178
229
|
}
|
|
179
230
|
|
|
180
|
-
interface ConsoleOrShellProps {
|
|
231
|
+
export interface ConsoleOrShellProps {
|
|
181
232
|
/**
|
|
182
233
|
* The font size of the shell
|
|
183
234
|
*/
|
|
@@ -224,7 +275,7 @@ interface ConsoleOrShellProps {
|
|
|
224
275
|
};
|
|
225
276
|
}
|
|
226
277
|
|
|
227
|
-
export interface
|
|
278
|
+
export interface BrowserProps {
|
|
228
279
|
/**
|
|
229
280
|
* The url of the browser
|
|
230
281
|
*/
|
|
@@ -257,7 +308,7 @@ export interface BrowserProp {
|
|
|
257
308
|
export type ComponentPropsType =
|
|
258
309
|
| EditorProps
|
|
259
310
|
| TreeProps
|
|
260
|
-
|
|
|
311
|
+
| BrowserProps
|
|
261
312
|
| ConsoleOrShellProps;
|
|
262
313
|
|
|
263
314
|
/**
|
|
@@ -560,7 +611,7 @@ export class DaoPaaS {
|
|
|
560
611
|
* Dao.Browser({
|
|
561
612
|
* container: '#browser',
|
|
562
613
|
* item: 'browser',
|
|
563
|
-
* props: {...
|
|
614
|
+
* props: {...BrowserProps}
|
|
564
615
|
* });
|
|
565
616
|
```
|
|
566
617
|
*
|
|
@@ -569,7 +620,7 @@ export class DaoPaaS {
|
|
|
569
620
|
* @param Component
|
|
570
621
|
*
|
|
571
622
|
*/
|
|
572
|
-
Browser(args: Component<
|
|
623
|
+
Browser(args: Component<BrowserProps>): void;
|
|
573
624
|
|
|
574
625
|
/**
|
|
575
626
|
*
|