@cloudbase/lowcode-builder 1.8.96 → 1.8.97
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/mp/wxml.js +1 -0
- package/lib/builder.web.js +2 -2
- package/package.json +1 -1
- package/template/mp/app/weapps-api.js +2 -0
- package/template/mp/app.js +1 -3
- package/template/mp/common/util.js +5 -0
- package/template/mp/package.json +4 -3
- package/template/mp/packages/$wd_system/pages/login/index.wxml +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.97",
|
|
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",
|
package/template/mp/app.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import '<%= wedaRootRelativePath %>datasources/index';
|
|
1
|
+
import { app, $app } from '<%= wedaRootRelativePath %>app/weapps-api';
|
|
3
2
|
<%= importor.lifecycle? `import lifeCycle from '${wedaRootRelativePath}lowcode/lifecycle'` : "const lifeCycle = {}" %>
|
|
4
3
|
// 引入数据源管理器并进行初始化
|
|
5
|
-
import { app, $app } from '<%= wedaRootRelativePath %>app/weapps-api';
|
|
6
4
|
import {
|
|
7
5
|
EXTRA_API,
|
|
8
6
|
createStateDataSourceVar,
|
|
@@ -522,6 +522,11 @@ export function formatErrorMsg(e) {
|
|
|
522
522
|
export async function checkAuth(app, appId, $page) {
|
|
523
523
|
<% if(skipCheckAuth){ %> return true <% } %>
|
|
524
524
|
|
|
525
|
+
// 免密登录
|
|
526
|
+
if (await app?.cloud?.judgePasswordFreeLogin()) {
|
|
527
|
+
return true;
|
|
528
|
+
}
|
|
529
|
+
|
|
525
530
|
const loginConfig = await getLoginConfig();
|
|
526
531
|
const hasPhoneLoginType = loginConfig?.miniprogram?.find(v => v.type === 'miniprogram_phone');
|
|
527
532
|
const hasOpenIdLoginType = loginConfig?.miniprogram?.find(v => v.type === 'openid_login');
|
package/template/mp/package.json
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
"version": "1.0.8",
|
|
4
4
|
"scripts": {},
|
|
5
5
|
"dependencies": {<% if(importJSSDK) {%>
|
|
6
|
-
"@cloudbase/js-sdk": "2.5.
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"@cloudbase/js-sdk": "2.5.42-beta.0",<%
|
|
7
|
+
} %>
|
|
8
|
+
"@cloudbase/oauth": "0.1.1-alpha.6",
|
|
9
|
+
"@cloudbase/weda-client": "1.0.32",
|
|
9
10
|
"@cloudbase/weda-cloud-sdk": "1.0.61",
|
|
10
11
|
"mobx": "^5.15.4",
|
|
11
12
|
"lodash.get": "^4.4.2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<page-meta page-style="{{pageStyle}}">
|
|
2
|
-
<view wx:if="{{!initing && !error}}" id="wd-page-root" data-weui-theme="light">
|
|
2
|
+
<view wx:if="{{!initing && !error}}" id="wd-page-root" class="wd-mp-root" data-weui-theme="light">
|
|
3
3
|
<view id="id33" style="width:90%;margin:0px auto;display:flex;flex-direction:column;max-width:50rem;" class="login-class">
|
|
4
4
|
<view id="id44" style="margin:80px 0px;">
|
|
5
5
|
<image id="id15" style="margin:0px auto;display:flex;justify-content:center;width: 120px;height: 120px;" class="weda-ui weda-image" mode="aspectFit" src="{{settingData.logo}}" />
|