@cloudbase/lowcode-builder 1.10.12 → 1.10.14
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 +2 -2
- package/lib/builder/mp/util.js +2 -2
- package/lib/builder.web.js +2 -2
- package/package.json +1 -1
- package/template/html/index.html.ejs +2 -2
- package/template/mp/common/info/index.js +9 -1
- package/template/mp/common/info/index.wxml +9 -7
- package/template/mp/component/index.js +1 -1
- 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.14",
|
|
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",
|
|
@@ -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.14.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"
|
|
@@ -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.abea0b0b496d1302623b.bundle.js"
|
|
561
561
|
></script>
|
|
562
562
|
</body>
|
|
563
563
|
</html>
|
|
@@ -29,6 +29,7 @@ Component({
|
|
|
29
29
|
data: {
|
|
30
30
|
message: '',
|
|
31
31
|
visible: false,
|
|
32
|
+
toLoginByMessage: false
|
|
32
33
|
},
|
|
33
34
|
|
|
34
35
|
/**
|
|
@@ -36,7 +37,7 @@ Component({
|
|
|
36
37
|
*/
|
|
37
38
|
methods: {
|
|
38
39
|
login() {
|
|
39
|
-
if (this.data.toLogin) {
|
|
40
|
+
if (this.data.toLogin || this.data.toLoginByMessage) {
|
|
40
41
|
redirectToLogin()
|
|
41
42
|
} else {
|
|
42
43
|
getWedaAPI()?.app?.relaunchHome()
|
|
@@ -100,6 +101,13 @@ Component({
|
|
|
100
101
|
}
|
|
101
102
|
this.setData(data)
|
|
102
103
|
}, 100)
|
|
104
|
+
|
|
105
|
+
this.setData({toLoginByMessage: this.data.error?.message?.includes?.('credentials not found')})
|
|
103
106
|
},
|
|
104
107
|
},
|
|
108
|
+
observers: {
|
|
109
|
+
error: function(error) {
|
|
110
|
+
this.setData({toLoginByMessage: this.data.error?.message?.includes?.('credentials not found')})
|
|
111
|
+
}
|
|
112
|
+
}
|
|
105
113
|
})
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<view class="wd-status" wx:if="{{visible}}">
|
|
2
2
|
<view style="transform: translateY(-20px);width: 100%;">
|
|
3
3
|
<view class="wd-status__img {{type === 'notfound'?'wd-status--notfound':''}}">
|
|
4
|
-
<view
|
|
5
|
-
class="icon"
|
|
6
|
-
wx:if="{{type !== 'loading'}}"
|
|
7
|
-
/>
|
|
4
|
+
<view class="icon" wx:if="{{type !== 'loading'}}" />
|
|
8
5
|
<view wx:if="{{type === 'loading'}}" class="sp sp-circle"></view>
|
|
9
6
|
</view>
|
|
10
7
|
<view class="wd-status__content">
|
|
11
8
|
<view class="wd-status__title" style="text-align: center; margin-bottom: 5px; font-size: 28rpx; font-weight: 600;">
|
|
12
9
|
{{message}}
|
|
13
|
-
<block wx:if="{{type === 'expired'}}"
|
|
10
|
+
<block wx:if="{{type === 'expired'}}">
|
|
11
|
+
<text style="text-decoration: underline" bind:tap="showCustomService">添加客服</text>
|
|
12
|
+
可获得付费套餐折扣优惠。
|
|
13
|
+
</block>
|
|
14
14
|
</view>
|
|
15
15
|
<view class="tea-status__detail" wx:if="{{error}}">
|
|
16
16
|
<view class="stack">
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
</view>
|
|
27
27
|
</view>
|
|
28
28
|
<view wx:if="{{type == 'auth'}}" class="wd-status__operate" style="display: flex;">
|
|
29
|
-
<button style="margin-top: 10px; width: 200rpx; border: 1px solid #DCDCDC; border-radius: 3px;" variant="outline" type="default" size="mini" plain="true" bind:tap="login">
|
|
29
|
+
<button style="margin-top: 10px; width: 200rpx; border: 1px solid #DCDCDC; border-radius: 3px;" variant="outline" type="default" size="mini" plain="true" bind:tap="login">
|
|
30
|
+
{{toLogin || toLoginByMessage ?'去登录':'返回首页'}}
|
|
31
|
+
</button>
|
|
30
32
|
</view>
|
|
31
33
|
</view>
|
|
32
|
-
</view>
|
|
34
|
+
</view>
|
|
@@ -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 = {}" %>
|
|
@@ -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 = {}" %>
|