30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.parseUniXUniStatistics = exports.parseUniXSplashScreen = exports.parseUniXFlexDirection = void 0;
|
|
const shared_1 = require("@vue/shared");
|
|
const flexDirs = ['row', 'row-reverse', 'column', 'column-reverse'];
|
|
function parseUniXFlexDirection(manifestJson) {
|
|
const flexDir = manifestJson?.['uni-app-x']?.['flex-direction'];
|
|
if (flexDir && flexDirs.includes(flexDir)) {
|
|
return flexDir;
|
|
}
|
|
return 'column';
|
|
}
|
|
exports.parseUniXFlexDirection = parseUniXFlexDirection;
|
|
function parseUniXSplashScreen(manifestJson) {
|
|
const splashScreen = manifestJson?.['app']?.['splashScreen'];
|
|
if ((0, shared_1.isPlainObject)(splashScreen)) {
|
|
return splashScreen;
|
|
}
|
|
return false;
|
|
}
|
|
exports.parseUniXSplashScreen = parseUniXSplashScreen;
|
|
function parseUniXUniStatistics(manifestJson) {
|
|
const uniStatistics = manifestJson?.['app']?.['uniStatistics'];
|
|
if ((0, shared_1.isPlainObject)(uniStatistics)) {
|
|
return uniStatistics;
|
|
}
|
|
return false;
|
|
}
|
|
exports.parseUniXUniStatistics = parseUniXUniStatistics;
|