提交 402bd2ed 编写于 作者: fxy060608's avatar fxy060608

chore: bump vite from 4.2.1 to 4.3.3

上级 001e9506
......@@ -19,7 +19,7 @@
},
"devDependencies": {
"@dcloudio/vite-plugin-uni": "../../vite-plugin-uni",
"vite": "^4.2.2"
"vite": "^4.3.3"
},
"resolutions": {
"@dcloudio/uni-app-vite": "../../uni-app-vite"
......
......@@ -1394,23 +1394,30 @@ const initI18nScanCodeMsgsOnce = /*#__PURE__*/ once(() => {
});
const initI18nStartSoterAuthenticationMsgsOnce = /*#__PURE__*/ once(() => {
const name = 'uni.startSoterAuthentication.';
const keys = ['authContent'];
const keys = ['authContent', 'waitingContent'];
{
useI18n().add(LOCALE_EN, normalizeMessages(name, keys, ['Fingerprint recognition']), false);
useI18n().add(LOCALE_EN, normalizeMessages(name, keys, [
'Fingerprint recognition',
'Unrecognizable',
]), false);
}
{
useI18n().add(LOCALE_ES, normalizeMessages(name, keys, ['Reconocimiento de huellas dactilares']), false);
useI18n().add(LOCALE_ES, normalizeMessages(name, keys, [
'Reconocimiento de huellas dactilares',
'Irreconocible',
]), false);
}
{
useI18n().add(LOCALE_FR, normalizeMessages(name, keys, [
"Reconnaissance de l'empreinte digitale",
'Méconnaissable',
]), false);
}
{
useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, keys, ['指纹识别中...']), false);
useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, keys, ['指纹识别中...', '无法识别']), false);
}
{
useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ['指紋識別中...']), false);
useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ['指紋識別中...', '無法識別']), false);
}
});
......@@ -14151,7 +14158,7 @@ const startSoterAuthentication = defineAsyncApi(API_START_SOTER_AUTHENTICATION,
4: () => {
if (waiting) {
clearTimeout(waitingTimer);
waiting.setTitle('无法识别');
waiting.setTitle(t('uni.startSoterAuthentication.waitingContent'));
waitingTimer = setTimeout(() => {
waiting && waiting.setTitle(authenticateMessage);
}, 1000);
......
......@@ -25,7 +25,7 @@
"@dcloudio/uni-nvue-styler": "3.0.0-alpha-3080220230428001",
"@dcloudio/uni-shared": "3.0.0-alpha-3080220230428001",
"@rollup/pluginutils": "^4.2.0",
"@vitejs/plugin-vue": "^4.1.0",
"@vitejs/plugin-vue": "^4.2.1",
"@vue/compiler-dom": "3.2.47",
"@vue/compiler-sfc": "3.2.47",
"debug": "^4.3.3",
......
......@@ -22,7 +22,7 @@
},
"dependencies": {
"@ampproject/remapping": "^2.1.2",
"@babel/core": "^7.21.0",
"@babel/core": "^7.21.3",
"@babel/parser": "^7.16.4",
"@babel/types": "^7.20.7",
"@dcloudio/uni-i18n": "3.0.0-alpha-3080220230428001",
......
......@@ -36,7 +36,7 @@ export function defineNVuePageCode(pagesJson: Record<string, any>) {
const pagePathWithExtname = normalizePagePath(page.path, 'app')
if (pagePathWithExtname) {
importNVuePagesCode.push(
`import('./${pagePathWithExtname}').then(()=>{})`
`import('./${pagePathWithExtname}').then((res)=>{res.length})`
)
}
})
......
......@@ -331,14 +331,14 @@ const initI18nChooseFileMsgsOnce = /* @__PURE__ */ once(() => {
if (__UNI_FEATURE_I18N_ZH_HANS__) {
useI18n().add(
LOCALE_ZH_HANS,
normalizeMessages(name, keys, ["文件选择器对话框只能在用户激活时显示"]),
normalizeMessages(name, keys, ["文件选择器对话框只能在用户激活时显示"]),
false
);
}
if (__UNI_FEATURE_I18N_ZH_HANT__) {
useI18n().add(
LOCALE_ZH_HANT,
normalizeMessages(name, keys, ["文件選擇器對話框只能在用戶激活時顯示"]),
normalizeMessages(name, keys, ["文件選擇器對話框只能在用戶激活時顯示"]),
false
);
}
......@@ -738,6 +738,9 @@ function initView() {
initLongPress();
}
}
function getDefaultExportFromCjs(x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
}
var attrs = ["top", "left", "right", "bottom"];
var inited$1;
var elementComputedStyle = {};
......@@ -924,6 +927,7 @@ var safeAreaInsets = {
offChange
};
var out = safeAreaInsets;
const safeAreaInsets$1 = /* @__PURE__ */ getDefaultExportFromCjs(out);
const onEventPrevent = /* @__PURE__ */ withModifiers(() => {
}, ["prevent"]);
const onEventStop = /* @__PURE__ */ withModifiers(() => {
......@@ -934,7 +938,7 @@ function getWindowOffsetCssVar(style, name) {
function getWindowTop() {
const style = document.documentElement.style;
const top = getWindowOffsetCssVar(style, "--window-top");
return top ? top + out.top : 0;
return top ? top + safeAreaInsets$1.top : 0;
}
function getWindowOffset() {
const style = document.documentElement.style;
......@@ -945,9 +949,9 @@ function getWindowOffset() {
const topWindowHeight = getWindowOffsetCssVar(style, "--top-window-height");
return {
top,
bottom: bottom ? bottom + out.bottom : 0,
left: left ? left + out.left : 0,
right: right ? right + out.right : 0,
bottom: bottom ? bottom + safeAreaInsets$1.bottom : 0,
left: left ? left + safeAreaInsets$1.left : 0,
right: right ? right + safeAreaInsets$1.right : 0,
topWindowHeight: topWindowHeight || 0
};
}
......@@ -15103,7 +15107,7 @@ function normalizePageMeta(pageMeta) {
);
const { type, style } = navigationBar;
if (style !== "custom" && type !== "transparent") {
pullToRefresh.offset += NAVBAR_HEIGHT + out.top;
pullToRefresh.offset += NAVBAR_HEIGHT + safeAreaInsets$1.top;
}
pageMeta.pullToRefresh = pullToRefresh;
}
......@@ -18136,14 +18140,14 @@ const getWindowInfo = /* @__PURE__ */ defineSyncApi(
const screenHeight = getScreenHeight(screenFix, landscape);
const windowWidth = getWindowWidth(screenWidth);
let windowHeight = window.innerHeight;
const statusBarHeight = out.top;
const statusBarHeight = safeAreaInsets$1.top;
const safeArea = {
left: out.left,
right: windowWidth - out.right,
top: out.top,
bottom: windowHeight - out.bottom,
width: windowWidth - out.left - out.right,
height: windowHeight - out.top - out.bottom
left: safeAreaInsets$1.left,
right: windowWidth - safeAreaInsets$1.right,
top: safeAreaInsets$1.top,
bottom: windowHeight - safeAreaInsets$1.bottom,
width: windowWidth - safeAreaInsets$1.left - safeAreaInsets$1.right,
height: windowHeight - safeAreaInsets$1.top - safeAreaInsets$1.bottom
};
const { top: windowTop, bottom: windowBottom } = getWindowOffset();
windowHeight -= windowTop;
......@@ -18159,10 +18163,10 @@ const getWindowInfo = /* @__PURE__ */ defineSyncApi(
statusBarHeight,
safeArea,
safeAreaInsets: {
top: out.top,
right: out.right,
bottom: out.bottom,
left: out.left
top: safeAreaInsets$1.top,
right: safeAreaInsets$1.right,
bottom: safeAreaInsets$1.bottom,
left: safeAreaInsets$1.left
},
screenTop: screenHeight - windowHeight
};
......
......@@ -19,6 +19,6 @@
"dependencies": {
"@vue/shared": "3.2.47",
"parse-css-font": "^4.0.0",
"postcss": "^8.4.21"
"postcss": "^8.4.23"
}
}
......@@ -25,14 +25,14 @@
},
"license": "Apache-2.0",
"dependencies": {
"@babel/core": "^7.21.0",
"@babel/core": "^7.21.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-transform-typescript": "^7.20.7",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3080220230428001",
"@dcloudio/uni-shared": "3.0.0-alpha-3080220230428001",
"@rollup/pluginutils": "^4.2.0",
"@vitejs/plugin-legacy": "^4.0.2",
"@vitejs/plugin-vue": "^4.1.0",
"@vitejs/plugin-legacy": "^4.0.3",
"@vitejs/plugin-vue": "^4.2.1",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"@vue/compiler-core": "3.2.47",
"@vue/compiler-dom": "3.2.47",
......
此差异已折叠。
......@@ -25,19 +25,19 @@ const pkgs = {
next: '9.1.9',
},
vite: {
latest: '4.2.1',
latest: '4.3.3',
},
'@vitejs/plugin-vue': {
latest: '4.1.0',
latest: '4.2.1',
},
'@vitejs/plugin-vue-jsx': {
latest: '3.0.1',
},
'@vitejs/plugin-legacy': {
latest: '4.0.2',
latest: '4.0.3',
},
'@dcloudio/types': {
latest: '3.2.11',
latest: '3.3.3',
},
autoprefixer: {
latest: '10.4.14',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册