@cloudbase/lowcode-builder 1.8.104 → 1.8.106
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/core/index.d.ts +3 -2
- package/lib/builder/core/index.js +5 -4
- package/lib/builder.web.js +5 -5
- package/package.json +2 -2
- package/template/mp/package.json +3 -3
- package/template/mp/packages/$wd_system/pages/login/components/captchaDialog/index.js +115 -0
- package/template/mp/packages/$wd_system/pages/login/components/captchaDialog/index.json +6 -0
- package/template/mp/packages/$wd_system/pages/login/components/captchaDialog/index.wxml +24 -0
- package/template/mp/packages/$wd_system/pages/login/components/captchaDialog/index.wxss +165 -0
- package/template/mp/packages/$wd_system/pages/login/components/input/index.js +26 -10
- package/template/mp/packages/$wd_system/pages/login/components/input/index.wxml +5 -3
- package/template/mp/packages/$wd_system/pages/login/index.js +223 -64
- package/template/mp/packages/$wd_system/pages/login/index.json +2 -1
- package/template/mp/packages/$wd_system/pages/login/index.wxml +50 -25
- package/template/mp/packages/$wd_system/pages/login/index.wxss +16 -1
- package/template/mp/packages/$wd_system/pages/login/methods/contants.js +5 -0
- package/template/mp/packages/$wd_system/pages/login/methods/errorHandler.js +152 -0
- package/template/mp/packages/$wd_system/pages/login/methods/loginBySms.js +66 -0
|
@@ -91,8 +91,9 @@ interface InormalizeOutput extends INormalizeInput {
|
|
|
91
91
|
}
|
|
92
92
|
export declare function normalizeInputs(inputs: INormalizeInput, { envId, getWebRootPath, }: {
|
|
93
93
|
envId: string;
|
|
94
|
-
getWebRootPath?: ({ appId, deployOptions }: {
|
|
95
|
-
appId:
|
|
94
|
+
getWebRootPath?: ({ appId, name, deployOptions, }: {
|
|
95
|
+
appId: string;
|
|
96
|
+
name: string;
|
|
96
97
|
deployOptions: any;
|
|
97
98
|
}) => string;
|
|
98
99
|
}): InormalizeOutput;
|
|
@@ -117,7 +117,7 @@ async function buildWedaApp({ cals, subAppCalsList: _subAppCalsList = [], depend
|
|
|
117
117
|
enableAd,
|
|
118
118
|
runtimeDynamicConfig,
|
|
119
119
|
disabled: (_c = cals.extra) === null || _c === void 0 ? void 0 : _c.disabled,
|
|
120
|
-
statusPageId: (_d = cals.extra) === null || _d === void 0 ? void 0 : _d.statusPageId,
|
|
120
|
+
statusPageId: ((_d = cals.extra) === null || _d === void 0 ? void 0 : _d.statusPageId) || undefined,
|
|
121
121
|
privatelinkConfig: privatelinkConfig ? { uin: account === null || account === void 0 ? void 0 : account.uin, ...privatelinkConfig } : undefined,
|
|
122
122
|
};
|
|
123
123
|
console.log('domain', domain);
|
|
@@ -366,7 +366,7 @@ function normalizeCals(cals, { buildTypeList, envId, deployOptions, appId, getWe
|
|
|
366
366
|
}
|
|
367
367
|
let { appConfig = {} } = cals.extra;
|
|
368
368
|
let { window = {} } = appConfig;
|
|
369
|
-
let path = getWebRootPath({ appId, deployOptions });
|
|
369
|
+
let path = getWebRootPath({ appId, name: cals.name, deployOptions });
|
|
370
370
|
cals.extra.appConfig = {
|
|
371
371
|
...appConfig,
|
|
372
372
|
window: {
|
|
@@ -385,8 +385,9 @@ function normalizeCals(cals, { buildTypeList, envId, deployOptions, appId, getWe
|
|
|
385
385
|
}
|
|
386
386
|
return cals;
|
|
387
387
|
}
|
|
388
|
-
function _getWebRootPath({ appId, deployOptions }) {
|
|
389
|
-
|
|
388
|
+
function _getWebRootPath({ appId, name, deployOptions }) {
|
|
389
|
+
const key = name || appId;
|
|
390
|
+
return (deployOptions === null || deployOptions === void 0 ? void 0 : deployOptions.mode) === types_1.DEPLOY_MODE.UPLOAD ? `/${key}/production/` : `/${key}/preview/`;
|
|
390
391
|
}
|
|
391
392
|
async function buildComposite({ dependencies, output, isBrowserMpBuilder, }) {
|
|
392
393
|
var _a, _b;
|