@steedos/standard-ui 2.3.3 → 2.4.0-beta.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.
@@ -18,23 +18,13 @@ amis_schema: |-
18
18
  "weight": 0
19
19
  }
20
20
  },
21
- "className": "slds-button slds-button--neutral p-0"
21
+ "className": ""
22
22
  }
23
23
  ],
24
24
  "regions": [
25
25
  "body"
26
26
  ],
27
27
  "data": {
28
- "context": {
29
- "rootUrl": "http://127.0.0.1:5800"
30
- },
31
- "app_id": "",
32
- "tab_id": "",
33
- "object_name": "",
34
- "dataComponentId": "",
35
- "record_id": "",
36
- "record": {},
37
- "permissions": {}
38
28
  },
39
29
  "bodyClassName": "p-0",
40
30
  "id": "u:15c4ad9486da"
@@ -20,7 +20,7 @@ amis_schema: |-
20
20
  "weight": 0
21
21
  }
22
22
  },
23
- "className": "slds-button slds-button--neutral p-0",
23
+ "className": "",
24
24
  "level": "default"
25
25
  }
26
26
  ],
@@ -28,16 +28,6 @@ amis_schema: |-
28
28
  "body"
29
29
  ],
30
30
  "data": {
31
- "context": {
32
- "rootUrl": "http://127.0.0.1:5800"
33
- },
34
- "app_id": "",
35
- "tab_id": "",
36
- "object_name": "",
37
- "dataComponentId": "",
38
- "record_id": "",
39
- "record": {},
40
- "permissions": {}
41
31
  },
42
32
  "bodyClassName": "p-0",
43
33
  "id": "u:15c4ad9486da"
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: baozhoutao@hotoa.com
3
3
  * @Date: 2021-12-27 10:49:33
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-05-30 11:53:17
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2022-12-20 16:51:05
6
6
  * @Description:
7
7
  */
8
8
  module.exports = {
@@ -41,37 +41,37 @@ module.exports = {
41
41
  }
42
42
  },
43
43
  createOAuth2App: function (object_name) {
44
- const fields = Creator.getObject(object_name).fields;
45
- const oauthAppFields = {};
46
- _.map(fields, function (v, k) {
47
- if (k) {
48
- if (_.include(['name', 'code', 'visible', 'description', 'is_creator', 'mobile', 'sort', 'is_use_iframe', 'is_new_window'], k) || k.startsWith("oauth2")) {
49
- oauthAppFields[k] = v;
50
- }
51
- }
52
- });
53
- const onFinish = async (values = {}) => {
54
- return new Promise((resolve, reject) => {
55
- try {
56
- console.log(`values`, values)
57
- Creator.odata.insert(object_name, values)
58
- setTimeout(function () { FlowRouter.reload() }, 100)
59
- resolve(true);
60
- } catch (error) {
61
- console.error(`e2`, error);
62
- reject(false);
63
- }
64
- })
65
- }
66
- SteedosUI.showModal(stores.ComponentRegistry.components.ObjectForm, {
67
- name: "createOAuth2App",
68
- title: '创建 OAuth 应用',
69
- objectSchema: {
70
- fields: oauthAppFields
71
- },
72
- // initialValues: initialValues,
73
- onFinish: onFinish //onFinishByFrame
74
- }, null, { iconPath: '/assets/icons' })
44
+ // const fields = Creator.getObject(object_name).fields;
45
+ // const oauthAppFields = {};
46
+ // _.map(fields, function (v, k) {
47
+ // if (k) {
48
+ // if (_.include(['name', 'code', 'visible', 'description', 'is_creator', 'mobile', 'sort', 'is_use_iframe', 'is_new_window'], k) || k.startsWith("oauth2")) {
49
+ // oauthAppFields[k] = v;
50
+ // }
51
+ // }
52
+ // });
53
+ // const onFinish = async (values = {}) => {
54
+ // return new Promise((resolve, reject) => {
55
+ // try {
56
+ // console.log(`values`, values)
57
+ // Creator.odata.insert(object_name, values)
58
+ // setTimeout(function () { FlowRouter.reload() }, 100)
59
+ // resolve(true);
60
+ // } catch (error) {
61
+ // console.error(`e2`, error);
62
+ // reject(false);
63
+ // }
64
+ // })
65
+ // }
66
+ // SteedosUI.showModal(stores.ComponentRegistry.components.ObjectForm, {
67
+ // name: "createOAuth2App",
68
+ // title: '创建 OAuth 应用',
69
+ // objectSchema: {
70
+ // fields: oauthAppFields
71
+ // },
72
+ // // initialValues: initialValues,
73
+ // onFinish: onFinish //onFinishByFrame
74
+ // }, null, { iconPath: '/assets/icons' })
75
75
  },
76
76
  createOAuth2AppVisible: function () {
77
77
  return false && Creator.baseObject.actions.standard_new.visible();
@@ -18,23 +18,14 @@ amis_schema: |-
18
18
  "weight": 0
19
19
  }
20
20
  },
21
- "className": "slds-button slds-button--neutral p-0"
21
+ "className": ""
22
22
  }
23
23
  ],
24
24
  "regions": [
25
25
  "body"
26
26
  ],
27
27
  "data": {
28
- "context": {
29
- "rootUrl": "https://5000-steedos-steedosplatform-uwiv6wkdp2o.ws-us77.gitpod.io"
30
- },
31
- "app_id": "",
32
- "tab_id": "",
33
- "object_name": "",
34
- "dataComponentId": "",
35
- "record_id": "",
36
- "record": {},
37
- "permissions": {}
28
+ "context": "${context}"
38
29
  },
39
30
  "id": "u:4bb4769d2fd7",
40
31
  "bodyClassName": "p-0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.3.3",
3
+ "version": "2.4.0-beta.3",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,5 +12,5 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "9d46ca700b9fc9586b66bcc8410684ff7343f5fb"
15
+ "gitHead": "1c901ac5b13f425f28aedf0f1bf61199f0012663"
16
16
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-07-29 09:40:31
4
4
  * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-07-29 14:37:14
5
+ * @LastEditTime: 2022-12-09 13:41:00
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -22,7 +22,8 @@ module.exports = {
22
22
  settings: {
23
23
  packageInfo: {
24
24
  path: __dirname,
25
- name: packageName
25
+ name: packageName,
26
+ isPackage: false
26
27
  }
27
28
  },
28
29