@dao42/d42paas-front 0.5.45 → 0.5.52

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/editor.d.ts CHANGED
@@ -4,8 +4,6 @@
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.
@@ -17,7 +15,31 @@ export type T_PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
17
15
 
18
16
  export type TReplay = 'stop' | 'disabled' | 'pause';
19
17
 
20
- /* export type T_DockerStatus = 'RUNNING' | 'STOP'; */
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
+ }
21
43
 
22
44
  /**
23
45
  * the arguments of the Playground.
@@ -25,7 +47,7 @@ export type TReplay = 'stop' | 'disabled' | 'pause';
25
47
  interface TConstructor {
26
48
  /**
27
49
  *
28
- * init the playground with the mode
50
+ * init the playground with the mode.
29
51
  *
30
52
  */
31
53
 
@@ -33,7 +55,7 @@ interface TConstructor {
33
55
 
34
56
  /**
35
57
  *
36
- * init the playground with the env .
58
+ * init the playground with the env.
37
59
  *
38
60
  */
39
61
  env?: string;
@@ -73,13 +95,6 @@ interface TConstructor {
73
95
  */
74
96
  username?: string;
75
97
 
76
- /**
77
- *
78
- * avatar for the playground but not necessarily.
79
- *
80
- */
81
- avatar?: string;
82
-
83
98
  /**
84
99
  *
85
100
  * avatarUrl for the playground but not necessarily.
@@ -109,7 +124,6 @@ export interface UserComponent extends TComponentArgs {
109
124
  * @desc
110
125
  *
111
126
  */
112
-
113
127
  export interface TComponentArgs {
114
128
  /**
115
129
  *
@@ -128,6 +142,10 @@ export class DaoPaaS {
128
142
 
129
143
  get playgroundStatus(): T_PlaygroundStatus;
130
144
 
145
+ get dockerStatus(): T_DockerStatus;
146
+
147
+ get userList(): TUserInfo[];
148
+
131
149
  /**
132
150
  *
133
151
  * Replaying method for global calling.
@@ -150,7 +168,7 @@ export class DaoPaaS {
150
168
  * @param {keyof D42_FrontType['CRDT'][]} arg
151
169
  *
152
170
  */
153
- setReplayers(arg: keyof D42_FrontType['CRDT'][]): void;
171
+ setReplayers(arg: string[]): void;
154
172
 
155
173
  /**
156
174
  *
package/dist/index.html CHANGED
@@ -32,10 +32,13 @@
32
32
  window.daopaas = DaoPaaS;
33
33
 
34
34
  var qs = new URLSearchParams(document.location.search.substring(1));
35
- const env = qs.get('env')
35
+ const env = qs.get('env');
36
+ const ticket = qs.get('ticket');
37
+ const playgroundId = qs.get('playgroundId');
38
+
36
39
  window.daopaas = new DaoPaaS.DaoPaaS({
37
- ticket: 'MXwzNDUwMTU4NjU4MDYyOTA5NDR8MXx8MTczNzg5MjAwMDAwMA==',
38
- playgroundId: '345015865806290944',
40
+ ticket,
41
+ playgroundId,
39
42
  userId: qs.get('userId'),
40
43
  tenantId: '1',
41
44
  username: qs.get('username'),