@dao42/d42paas-front 0.3.9 → 0.4.3
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/{7546.js → 6120.js} +31 -31
- package/dist/daoPaaS.js +4 -4
- package/dist/index.d.ts +31 -0
- package/dist/index.html +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// export = DaoPaaS;
|
|
2
|
+
// export as namespace DaoPaaS;
|
|
3
|
+
|
|
4
|
+
interface TConstructor {
|
|
5
|
+
ticket: string;
|
|
6
|
+
playgroundId: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
tenantId: string;
|
|
9
|
+
username?: string;
|
|
10
|
+
avatar?: string;
|
|
11
|
+
avatarUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type TReplay = 'stop' | 'disabled' | 'pause';
|
|
15
|
+
|
|
16
|
+
interface TComponentArgs {
|
|
17
|
+
container: string | HTMLElement | Element;
|
|
18
|
+
props?: any;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class DaoPaaS {
|
|
22
|
+
constructor(args: TConstructor): void;
|
|
23
|
+
replay(args: TReplay): void;
|
|
24
|
+
record(arg: boolean): void;
|
|
25
|
+
switchLspServer(arg: boolean): void;
|
|
26
|
+
|
|
27
|
+
/* Components */
|
|
28
|
+
Editor(args: TComponentArgs): void;
|
|
29
|
+
Page(args: TComponentArgs): void;
|
|
30
|
+
Tree(args: TComponentArgs): void;
|
|
31
|
+
}
|
package/dist/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>DaoPaaS</title><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon@v2.14.0/devicon.min.css" crossorigin="anonymous"/><script defer="defer" src="
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>DaoPaaS</title><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon@v2.14.0/devicon.min.css" crossorigin="anonymous"/><script defer="defer" src="6120.js"></script><script defer="defer" src="daoPaaS.js"></script></head><body><main><div class="edit-container"></div></main><script>window.onload = () => {
|
|
2
2
|
var qs = new URLSearchParams(document.location.search.substring(1));
|
|
3
3
|
window.daopaas = new DaoPaaS({
|
|
4
4
|
ticket: qs.get('ticket'),
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dao42/d42paas-front",
|
|
3
|
-
"version": "0.3
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "eric183 <kk297466058@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/dao42/d42paas_frontend#readme",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"main": "dist/daoPaaS.js",
|
|
9
|
+
"module": "dist/daoPaaS.js",
|
|
9
10
|
"types": "dist/index.d.ts",
|
|
10
11
|
"directories": {
|
|
11
12
|
"lib": "lib"
|