@cloudbase/framework-plugin-low-code 0.6.51 → 0.6.52
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/package.json +2 -2
- package/template/html/index.html.ejs +17 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/framework-plugin-low-code",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.52",
|
|
4
4
|
"description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
|
|
5
5
|
"author": "yhsunshining@gmail.com",
|
|
6
6
|
"homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
|
|
@@ -87,4 +87,4 @@
|
|
|
87
87
|
"jest": "^26.0.1",
|
|
88
88
|
"typescript": "^3.8.3"
|
|
89
89
|
}
|
|
90
|
-
}
|
|
90
|
+
}
|
|
@@ -388,19 +388,21 @@
|
|
|
388
388
|
<div id="react-body" class="main-wrap"></div>
|
|
389
389
|
<script>
|
|
390
390
|
(function () {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
391
|
+
try {
|
|
392
|
+
const url = new URL(location.href);
|
|
393
|
+
const isPrivate =
|
|
394
|
+
sessionStorage.getItem('__URL_QUERY_IS_PRIVATE') ||
|
|
395
|
+
url.searchParams.get('isPrivate');
|
|
396
|
+
const tcbEndpoint =
|
|
397
|
+
sessionStorage.getItem('__URL_QUERY_TCB_ENDPOINT') ||
|
|
398
|
+
url.searchParams.get('tcbEndpoint');
|
|
399
|
+
if (isPrivate) {
|
|
400
|
+
sessionStorage.setItem('__URL_QUERY_IS_PRIVATE', isPrivate);
|
|
401
|
+
}
|
|
402
|
+
if (tcbEndpoint) {
|
|
403
|
+
sessionStorage.setItem('__URL_QUERY_TCB_ENDPOINT', tcbEndpoint);
|
|
404
|
+
}
|
|
405
|
+
} catch (e) {}
|
|
404
406
|
})();
|
|
405
407
|
</script>
|
|
406
408
|
<% if(!isAdminPortal){ %>
|
|
@@ -409,11 +411,11 @@
|
|
|
409
411
|
const isPrivate = sessionStorage.getItem('__URL_QUERY_IS_PRIVATE');
|
|
410
412
|
if (isPrivate === 'true') {
|
|
411
413
|
document.write(
|
|
412
|
-
`<script
|
|
414
|
+
`<script src="//static.cloudbase.net/cloudbase-js-sdk/2.0.1-alpha.0/cloudbase.full.js?v=1><\/script>`
|
|
413
415
|
);
|
|
414
416
|
} else {
|
|
415
417
|
document.write(
|
|
416
|
-
`<script
|
|
418
|
+
`<script src="//static.cloudbase.net/cloudbase-js-sdk/1.5.3-alpha.0/cloudbase.full.js?v=1"><\/script>`
|
|
417
419
|
);
|
|
418
420
|
}
|
|
419
421
|
})();
|