@cloudbase/lowcode-builder 1.10.12-private.1.3.0-0 → 1.10.13
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/lib/builder/config/dependencies.js +3 -3
- package/lib/builder/mp/util.js +2 -2
- package/lib/builder.web.js +2 -2
- package/package.json +2 -2
- package/template/html/index.html.ejs +3 -3
- package/template/mp/component/index.js +1 -1
- package/template/mp/packages/$wd_system/pages/login/index.js +4 -3
- package/template/mp/page/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.13",
|
|
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",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@babel/core": "7.21.4",
|
|
51
51
|
"@babel/preset-env": "7.21.4",
|
|
52
52
|
"@cloudbase/cals": "^1.2.14",
|
|
53
|
-
"@cloudbase/lowcode-generator": "^1.8.
|
|
53
|
+
"@cloudbase/lowcode-generator": "^1.8.40",
|
|
54
54
|
"axios": "^0.21.0",
|
|
55
55
|
"chalk": "^2.4.2",
|
|
56
56
|
"compare-versions": "^3.6.0",
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
<script type="module" src="/src/index.jsx"></script>
|
|
465
465
|
<% } %> <% if(!isAdminPortal){ %>
|
|
466
466
|
<script src="<%= wedaPrivateConfigEndpoint ? wedaPrivateConfigEndpoint : '' %>/weda-config/weda-private.js"></script>
|
|
467
|
-
<script src="<%= cdnEndpoints.cloudbase %>/cloudbase-js-sdk/2.
|
|
467
|
+
<script src="<%= cdnEndpoints.cloudbase %>/cloudbase-js-sdk/2.13.0/cloudbase.full.js?v=1"></script>
|
|
468
468
|
<script
|
|
469
469
|
crossorigin
|
|
470
470
|
src="<%= cdnEndpoints.cdngo %>/lcap/lcap-resource-cdngo/-/release/_npm/cloudbase-adapter-privatelink@0.0.2/dist/index.js"
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
crossorigin="anonymous"
|
|
529
529
|
src="<%=
|
|
530
530
|
cdnEndpoints.cdngo
|
|
531
|
-
%>/lcap/lcap-resource-cdngo/-/release/_npm/@cloudbase/weda-cloud-sdk@1.0.
|
|
531
|
+
%>/lcap/lcap-resource-cdngo/-/release/_npm/@cloudbase/weda-cloud-sdk@1.0.101/dist/h5.browser.js"
|
|
532
532
|
></script>
|
|
533
533
|
<script
|
|
534
534
|
crossorigin
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
crossorigin
|
|
558
558
|
src="<%=
|
|
559
559
|
cdnEndpoints.cdngo
|
|
560
|
-
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.
|
|
560
|
+
%>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.5462abc9519dc439c01e.bundle.js"
|
|
561
561
|
></script>
|
|
562
562
|
</body>
|
|
563
563
|
</html>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getWedaAPI, createComponent, concatClassList, px2rpx } from '@cloudbase/weda-client'
|
|
1
|
+
import { getWedaAPI, createComponent, concatClassList, px2rpx, style2CssProperties } from '@cloudbase/weda-client'
|
|
2
2
|
<%= importor.lifecycle? "import lifeCycle from './lowcode/lifecycle'" : "const lifeCycle = {}" %>
|
|
3
3
|
<%= importor.state? "import stateFn from './lowcode/state'" : "const stateFn = {}" %>
|
|
4
4
|
<%= importor.computed? "import computedFuncs from './lowcode/computed'" : "const computedFuncs = {}" %>
|
|
@@ -137,13 +137,14 @@ Component({
|
|
|
137
137
|
miniprogram: (config.miniprogram || []).map(v => ({
|
|
138
138
|
...v,
|
|
139
139
|
label: v.label?.replace(/^微信小程序/, '')
|
|
140
|
-
|
|
140
|
+
})),
|
|
141
|
+
access: { ...config.access },
|
|
141
142
|
};
|
|
142
143
|
|
|
143
144
|
const enableSms = this._getEnableSms(settingData);
|
|
144
145
|
const smsDelay =
|
|
145
146
|
enableSms && !cache.phoneNum ? Math.max(0, Math.ceil(((cache?.smsDelay || 0) - +new Date()) / 1000)) : 0;
|
|
146
|
-
const baseInfoShow = query.baseInfoShow === 'true'
|
|
147
|
+
const baseInfoShow = !settingData.access?.disabledCollectUserInfo && query.baseInfoShow === 'true'
|
|
147
148
|
const currentLoginType = query.currentLoginType || settingData.miniprogram.filter(v => !AUTO_LOGIN_TYPE.includes(v.type))?.[0]?.type || settingData.miniprogram[0]?.type;
|
|
148
149
|
const currentLoginList = query.currentLoginType ? [] : settingData.miniprogram.filter(v => v.type !== currentLoginType)
|
|
149
150
|
|
|
@@ -422,7 +423,7 @@ Component({
|
|
|
422
423
|
SDKVersion
|
|
423
424
|
} = wx.getSystemInfoSync();
|
|
424
425
|
// 2.21.2以下版本不支持获取用户头像/昵称,暂时跳过
|
|
425
|
-
if ((!avatarUrl || !nickName) && this.compareVersion(SDKVersion, '2.21.2') >= 0) {
|
|
426
|
+
if (!this.data.settingData?.access?.disabledCollectUserInfo && (!avatarUrl || !nickName) && this.compareVersion(SDKVersion, '2.21.2') >= 0) {
|
|
426
427
|
const avatarRealUrl = await this.getAvatarUrl(avatarUrl)
|
|
427
428
|
this.setData({
|
|
428
429
|
avatarRealUrl,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createPage, PAGE_ROOT_SYMBOL } from '<%= subLevelPath %>../../common/weapp-page'
|
|
2
|
-
import { concatClassList, px2rpx } from '@cloudbase/weda-client'
|
|
2
|
+
import { concatClassList, px2rpx, style2CssProperties } from '@cloudbase/weda-client'
|
|
3
3
|
import { app, $app } from '<%= subLevelPath %>../../app/weapps-api'
|
|
4
4
|
import { <%= pageNameVar %> as handlers } from '../../app/handlers'
|
|
5
5
|
<%= importor.lifecycle? `import lifecycle from '../../lowcode/${pageName}/lifecycle'` : "const lifecycle = {}" %>
|