@dao42/d42paas-front 0.7.31 → 0.7.32
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/README.md +47 -0
- package/package.json +2 -2
package/dist/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
# PaaS SDK
|
|
3
|
+
<!-- ## 使用示例 -->
|
|
4
|
+
## Install
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npm install @dao42/d42paas-front@latest
|
|
8
|
+
```
|
|
9
|
+
## Usage
|
|
10
|
+
```js
|
|
11
|
+
|
|
12
|
+
import DaoPaaS from '@dao42/d42paas-front';
|
|
13
|
+
|
|
14
|
+
let options = {
|
|
15
|
+
debug: true,
|
|
16
|
+
playgroundId: '364948495318253568',
|
|
17
|
+
tenantId: '1',
|
|
18
|
+
ticket: 'MXwzNjQ5NDg0OTUzMTgyNTM1Njh8MXxudWxsfDE4OTU2NTMzODMwMDA=',
|
|
19
|
+
userId: '1',
|
|
20
|
+
serviceWorkerOrigin: 'https://develop.1024paas.com',
|
|
21
|
+
components: [
|
|
22
|
+
{
|
|
23
|
+
container: '.Tree',
|
|
24
|
+
item: 'Tree',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
container: '.Editor',
|
|
28
|
+
item: 'Editor',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
container: '.Shell',
|
|
32
|
+
item: 'Shell',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
onMessage: (message) => {},
|
|
36
|
+
onError: (error) => {},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
let Dao = new DaoPaaS(options);
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## JS API
|
|
44
|
+
|
|
45
|
+
### DaoPaaS(options)
|
|
46
|
+
|
|
47
|
+
If a string is provided, it is treated as a shortcut for [`options`](https://develop.1024paas.com/tsdoc/interfaces/Options.html).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dao42/d42paas-front",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.32",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "eric183 <kk297466058@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/dao42/d42paas_frontend#readme",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"copyTS": "shx cp ./src/types/editor.d.ts ./dist",
|
|
40
40
|
"copyMD": "shx cp ../../README.md ./dist",
|
|
41
41
|
"np": "npm publish --access-public",
|
|
42
|
-
"patch": "yarn vite && npm version patch && yarn clean",
|
|
42
|
+
"patch": "yarn vite && npm version patch && yarn clean && yarn copyMD",
|
|
43
43
|
"test": "jest --verbose",
|
|
44
44
|
"clean": "node config/patchClean.js",
|
|
45
45
|
"workNameSpaceToFix": "node ./config/workNameSpaceToFix.js"
|