@next-core/brick-container 2.92.2 → 2.92.4
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/index.html +1 -1
- package/dist/{main.41a1e3f42980984bd268.js → main.9ad7cf2136dd21b5c63d.js} +2 -2
- package/dist/{main.41a1e3f42980984bd268.js.map → main.9ad7cf2136dd21b5c63d.js.map} +1 -1
- package/dist/{main.e85f7a2965dbeeb6f9d7.css → main.c814546d1257c82a9a78.css} +1 -1
- package/dist/main.c814546d1257c82a9a78.css.map +1 -0
- package/dist/{preview.e7710f48f98a5746d50a.css → preview.d7c580cd31a9c96a53f7.css} +1 -1
- package/dist/preview.d7c580cd31a9c96a53f7.css.map +1 -0
- package/dist/preview.html +1 -1
- package/package.json +2 -2
- package/tools/report_installed_brick_next_package.py +4 -5
- package/dist/main.e85f7a2965dbeeb6f9d7.css.map +0 -1
- package/dist/preview.e7710f48f98a5746d50a.css.map +0 -1
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.
|
|
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.d7c580cd31a9c96a53f7.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.49218ca1.js"></script><script src="polyfill.5f60d909121d6c84d42d.js"></script><script src="preview.16f41cd133904776f25f.js"></script></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/brick-container",
|
|
3
|
-
"version": "2.92.
|
|
3
|
+
"version": "2.92.4",
|
|
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",
|
|
@@ -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": "58ae4d904998b92025f5ca5d5774f2907722c325"
|
|
77
77
|
}
|
|
@@ -166,16 +166,15 @@ def collect_stories(install_path):
|
|
|
166
166
|
examples_path = os.path.join(install_path, "dist", "examples.json")
|
|
167
167
|
types_path = os.path.join(install_path, "dist", "types.json")
|
|
168
168
|
bricks_path = os.path.join(install_path, "dist", "bricks.json")
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
isV3Brick = "id" in bricks_content
|
|
169
|
+
if not os.path.exists(stories_path):
|
|
170
|
+
return []
|
|
172
171
|
with open(stories_path) as stories_file:
|
|
173
172
|
stories_content = simplejson.load(stories_file)
|
|
174
173
|
# v2 brick
|
|
175
|
-
if
|
|
174
|
+
if not os.path.exists(manifest_path):
|
|
176
175
|
return stories_content
|
|
177
176
|
# v3 brick
|
|
178
|
-
elif
|
|
177
|
+
elif os.path.exists(manifest_path):
|
|
179
178
|
stories_list = []
|
|
180
179
|
with open(manifest_path) as manifest_file:
|
|
181
180
|
manifest_content = simplejson.load(manifest_file)
|