@next-core/brick-container 2.62.3 → 2.63.2
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/CHANGELOG.md +53 -0
- package/dist/assets/illustrations/default/browser-version-low-dark.070ea4ba43589f48.png +0 -0
- package/dist/assets/illustrations/default/create-content-dark.756b7b17e33f78d6.png +0 -0
- package/dist/assets/illustrations/default/no-content-dark.4b00189fe3073a93.png +0 -0
- package/dist/assets/illustrations/default/no-history-dark.8164f87ff7c3bccf.png +0 -0
- package/dist/assets/illustrations/default/search-empty-dark.9f404e5eff4adbb9.png +0 -0
- package/dist/assets/illustrations/exception/http-403-dark.ef32a74be2c7fda4.png +0 -0
- package/dist/assets/illustrations/exception/http-404-dark.bb7ef10a563d9899.png +0 -0
- package/dist/assets/illustrations/exception/http-500-dark.b53804258f967a1f.png +0 -0
- package/dist/assets/illustrations/feedback/exception-dark.1b9cf6edbaff4c08.png +0 -0
- package/dist/assets/illustrations/feedback/fail-dark.315c90cbee982055.png +0 -0
- package/dist/assets/illustrations/feedback/info-dark.1323848910129900.png +0 -0
- package/dist/assets/illustrations/feedback/success-dark.4c961b1f73139d0b.png +0 -0
- package/dist/{dll.37e22699.js → dll.0e5c5d39.js} +2 -2
- package/dist/{dll.37e22699.js.map → dll.0e5c5d39.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.49c0fa1ef3a38bb5b9e1.js → main.35d060bd68c62bdbdc27.js} +2 -2
- package/dist/{main.49c0fa1ef3a38bb5b9e1.js.map → main.35d060bd68c62bdbdc27.js.map} +1 -1
- package/dist/{main.9c56456b19ca962fe4b2.css → main.85d26f22755fe84686d6.css} +218 -18
- package/dist/main.85d26f22755fe84686d6.css.map +1 -0
- package/package.json +8 -8
- package/tools/report_installed_theme_template.py +45 -0
- package/dist/main.9c56456b19ca962fe4b2.css.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-container",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.63.2",
|
|
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.3.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@next-core/brick-dll": "^2.28.
|
|
44
|
+
"@next-core/brick-dll": "^2.28.9",
|
|
45
45
|
"@next-core/brick-icons": "^2.26.1",
|
|
46
46
|
"@next-core/color-theme": "^0.4.0",
|
|
47
|
-
"@next-core/custom-antd-styles": "^1.23.
|
|
48
|
-
"@next-core/illustrations": "^0.
|
|
47
|
+
"@next-core/custom-antd-styles": "^1.23.3",
|
|
48
|
+
"@next-core/illustrations": "^0.5.0",
|
|
49
49
|
"@next-core/less-plugin-css-variables": "^0.2.1",
|
|
50
50
|
"@next-core/webpack-config-factory": "^2.15.2",
|
|
51
|
-
"@next-dll/ace": "^2.0.
|
|
51
|
+
"@next-dll/ace": "^2.0.319",
|
|
52
52
|
"@next-dll/d3": "^2.0.54",
|
|
53
53
|
"@next-dll/echarts": "^2.0.55",
|
|
54
|
-
"@next-dll/editor-bricks-helper": "^0.25.
|
|
55
|
-
"@next-dll/react-dnd": "^0.1.
|
|
54
|
+
"@next-dll/editor-bricks-helper": "^0.25.9",
|
|
55
|
+
"@next-dll/react-dnd": "^0.1.257",
|
|
56
56
|
"babel-loader": "^8.2.3",
|
|
57
57
|
"clean-webpack-plugin": "^4.0.0",
|
|
58
58
|
"copy-webpack-plugin": "^6.4.1",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"webpack-dev-server": "^4.6.0",
|
|
73
73
|
"webpack-merge": "^5.8.0"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "bf554d695b9f5e9a3c1ce283ff2154bda62bff02"
|
|
76
76
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
import sys
|
|
3
|
+
import os
|
|
4
|
+
import simplejson
|
|
5
|
+
import requests
|
|
6
|
+
import ens_api
|
|
7
|
+
|
|
8
|
+
def collect(install_path):
|
|
9
|
+
if not os.path.exists(install_path):
|
|
10
|
+
raise Exception("could not find install path {}".format(install_path))
|
|
11
|
+
theme_template_path = os.path.join(install_path, "theme.json")
|
|
12
|
+
if not os.path.exists(theme_template_path):
|
|
13
|
+
raise Exception("could not find theme path {}".format(theme_template_path))
|
|
14
|
+
with open(theme_template_path) as f:
|
|
15
|
+
theme_content = f.read()
|
|
16
|
+
theme_json = simplejson.loads(theme_content)
|
|
17
|
+
return theme_json
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def create_or_update_theme_template_data(data, org):
|
|
21
|
+
session_id, ip, port = ens_api.get_service_by_name("web.brick_next", "logic.next_builder_service")
|
|
22
|
+
if session_id <= 0:
|
|
23
|
+
raise Exception("get nameservice logic.micro_app_service error, session_id={}".format(session_id))
|
|
24
|
+
address = "{}:{}".format(ip, port)
|
|
25
|
+
headers = {"org": str(org), "user": "defaultUser"}
|
|
26
|
+
url = "http://{}/api/v1/next-builder/theme-data-import".format(address)
|
|
27
|
+
param = {"themeData": data}
|
|
28
|
+
rsp = requests.post(url, json=param, headers=headers)
|
|
29
|
+
rsp.raise_for_status()
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def report(org, theme_template_data):
|
|
33
|
+
create_or_update_theme_template_data(theme_template_data, org)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
if __name__ == "__main__":
|
|
37
|
+
if len(sys.argv) < 3:
|
|
38
|
+
print "Usage: ./report_installed_theme_template.py $org $install_path"
|
|
39
|
+
sys.exit(1)
|
|
40
|
+
|
|
41
|
+
org = sys.argv[1]
|
|
42
|
+
install_path = sys.argv[2]
|
|
43
|
+
theme_template_json = collect(install_path)
|
|
44
|
+
if theme_template_json:
|
|
45
|
+
report(org, theme_template_json)
|