@next-core/brick-container 2.98.6 → 2.98.9
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/{dll.1aba6ab3.js → dll.d380e1bb.js} +4 -4
- package/dist/{dll.1aba6ab3.js.map → dll.d380e1bb.js.map} +1 -1
- package/dist/icons--app.1b844852.js +2 -0
- package/dist/{icons--app.5327c14b.js.map → icons--app.1b844852.js.map} +1 -1
- package/dist/{icons--blueprint.dcc20ce0.js → icons--blueprint.e4507345.js} +2 -2
- package/dist/{icons--blueprint.dcc20ce0.js.map → icons--blueprint.e4507345.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/main.3f69080aa53551c82efb.js +2 -0
- package/dist/{main.c014e8e4c0988fe82085.js.map → main.3f69080aa53551c82efb.js.map} +1 -1
- package/dist/{preview.d633590bef44d91b5fad.js → preview.f4f8313e298f19aa59b0.js} +2 -2
- package/dist/{preview.d633590bef44d91b5fad.js.map → preview.f4f8313e298f19aa59b0.js.map} +1 -1
- package/dist/preview.html +1 -1
- package/package.json +6 -6
- package/tools/report_installed_micro_app_sa.py +5 -3
- package/dist/icons--app.5327c14b.js +0 -2
- package/dist/main.c014e8e4c0988fe82085.js +0 -2
package/dist/preview.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"/><base href="<!--# echo var='base_href' default='/' -->"/><script>window.DEVELOPER_PREVIEW = true;</script><link href="preview.5fb551513edc8051ce6c.css" rel="stylesheet"></head><body><div id="preview-root"><div id="main-mount-point"></div><div id="bg-mount-point" style="display: none"></div><div id="portal-mount-point"></div></div><script src="dll.
|
|
1
|
+
<!doctype html><html lang="zh-CN" data-theme="light" data-mode="default"><head><meta charset="utf-8"/><base href="<!--# echo var='base_href' default='/' -->"/><script>window.DEVELOPER_PREVIEW = true;</script><link href="preview.5fb551513edc8051ce6c.css" rel="stylesheet"></head><body><div id="preview-root"><div id="main-mount-point"></div><div id="bg-mount-point" style="display: none"></div><div id="portal-mount-point"></div></div><script src="dll.d380e1bb.js"></script><script src="polyfill.3e88f145a0893497373b.js"></script><script src="preview.f4f8313e298f19aa59b0.js"></script></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-container",
|
|
3
|
-
"version": "2.98.
|
|
3
|
+
"version": "2.98.9",
|
|
4
4
|
"description": "Brick Container Server",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/brick-container",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"ws": "^8.11.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@next-core/brick-dll": "^2.50.
|
|
44
|
+
"@next-core/brick-dll": "^2.50.10",
|
|
45
45
|
"@next-core/brick-icons": "^2.34.9",
|
|
46
46
|
"@next-core/custom-antd-styles": "^1.27.1",
|
|
47
47
|
"@next-core/illustrations": "^0.11.37",
|
|
48
48
|
"@next-core/less-plugin-css-variables": "^0.2.8",
|
|
49
49
|
"@next-core/theme": "^1.5.4",
|
|
50
50
|
"@next-core/webpack-config-factory": "^2.25.2",
|
|
51
|
-
"@next-dll/ace": "^2.0.
|
|
51
|
+
"@next-dll/ace": "^2.0.811",
|
|
52
52
|
"@next-dll/d3": "^2.0.84",
|
|
53
53
|
"@next-dll/echarts": "^2.0.85",
|
|
54
|
-
"@next-dll/editor-bricks-helper": "^0.41.
|
|
55
|
-
"@next-dll/react-dnd": "^0.1.
|
|
54
|
+
"@next-dll/editor-bricks-helper": "^0.41.10",
|
|
55
|
+
"@next-dll/react-dnd": "^0.1.749",
|
|
56
56
|
"babel-loader": "^8.3.0",
|
|
57
57
|
"clean-webpack-plugin": "^4.0.0",
|
|
58
58
|
"copy-webpack-plugin": "^6.4.1",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"webpack-dev-server": "^4.11.1",
|
|
74
74
|
"webpack-merge": "^5.8.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "7abe7997b030fcd4a990e17476432f393704611b"
|
|
77
77
|
}
|
|
@@ -9,6 +9,9 @@ import simplejson
|
|
|
9
9
|
reload(sys)
|
|
10
10
|
sys.setdefaultencoding("utf-8")
|
|
11
11
|
|
|
12
|
+
sys.path.append(os.path.dirname(os.path.abspath(__file__))) # 将 tools 目录加入 path
|
|
13
|
+
from utils.get_headers import get_headers
|
|
14
|
+
|
|
12
15
|
class NameServiceError(Exception):
|
|
13
16
|
pass
|
|
14
17
|
|
|
@@ -107,7 +110,7 @@ def report(org, app):
|
|
|
107
110
|
raise e
|
|
108
111
|
|
|
109
112
|
def create_or_update_micro_app_sa(org, app):
|
|
110
|
-
headers =
|
|
113
|
+
headers = get_headers(org)
|
|
111
114
|
url = "http://{}/api/v1/micro_app_standalone/report".format(MICRO_APP_SA_ADDR)
|
|
112
115
|
rsp = requests.post(url, json=app, headers=headers)
|
|
113
116
|
rsp.raise_for_status()
|
|
@@ -116,10 +119,9 @@ def create_or_update_micro_app_sa(org, app):
|
|
|
116
119
|
def import_micro_app_permissions(install_path, version, org):
|
|
117
120
|
permission_path = os.path.join(install_path, "versions", version, "webroot", "permissions", "permissions.json")
|
|
118
121
|
if not os.path.exists(permission_path):
|
|
119
|
-
print "could not find permission path {}, will not import permissions".format(permission_path)
|
|
120
122
|
return
|
|
121
123
|
|
|
122
|
-
headers =
|
|
124
|
+
headers = get_headers(org)
|
|
123
125
|
url = "http://{}/api/micro_app/v1/permission/import".format(MICRO_APP_ADDR)
|
|
124
126
|
|
|
125
127
|
with open(permission_path) as f:
|