zcw-shared 1.9.0 → 1.10.1
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/dist/constants/colorPatterns.d.ts +8 -0
- package/dist/constants/colorPatterns.js +9 -1
- package/dist/constants/colorPatterns.js.map +1 -1
- package/dist/functions/color/detectColorFormat.js +11 -11
- package/dist/functions/color/detectColorFormat.js.map +1 -1
- package/dist/functions/color/extractColors.d.ts +1 -0
- package/dist/functions/color/extractColors.js +13 -79
- package/dist/functions/color/extractColors.js.map +1 -1
- package/package.json +2 -1
- package/references/xpath.d.ts +60 -0
- package/types/android-build.d.ts +2 -0
- package/types/uniapp-android-build.d.ts +2 -0
- package/dist/constants/namedColors.d.ts +0 -16
- package/dist/constants/namedColors.js +0 -17
- package/dist/constants/namedColors.js.map +0 -1
- package/dist/constants/softwareConfigs.d.ts +0 -14
- package/dist/constants/softwareConfigs.js +0 -156
- package/dist/constants/softwareConfigs.js.map +0 -1
- package/dist/functions/ag-grid/generateLicense.d.ts +0 -3
- package/dist/functions/ag-grid/generateLicense.js +0 -12
- package/dist/functions/ag-grid/generateLicense.js.map +0 -1
- package/dist/functions/altool/createAltoolClient.d.ts +0 -21
- package/dist/functions/altool/createAltoolClient.js +0 -53
- package/dist/functions/altool/createAltoolClient.js.map +0 -1
- package/dist/functions/altool/getAltoolAuth.d.ts +0 -2
- package/dist/functions/altool/getAltoolAuth.js +0 -8
- package/dist/functions/altool/getAltoolAuth.js.map +0 -1
- package/dist/functions/altool/getAppInfo.d.ts +0 -13
- package/dist/functions/altool/getAppInfo.js +0 -39
- package/dist/functions/altool/getAppInfo.js.map +0 -1
- package/dist/functions/altool/index.d.ts +0 -10
- package/dist/functions/altool/index.js +0 -6
- package/dist/functions/altool/index.js.map +0 -1
- package/dist/functions/altool/isApiKeyAuth.d.ts +0 -2
- package/dist/functions/altool/isApiKeyAuth.js +0 -4
- package/dist/functions/altool/isApiKeyAuth.js.map +0 -1
- package/dist/functions/altool/isCredentialsAuth.d.ts +0 -2
- package/dist/functions/altool/isCredentialsAuth.js +0 -4
- package/dist/functions/altool/isCredentialsAuth.js.map +0 -1
- package/dist/functions/altool/parseAppInfoOutput.d.ts +0 -2
- package/dist/functions/altool/parseAppInfoOutput.js +0 -55
- package/dist/functions/altool/parseAppInfoOutput.js.map +0 -1
- package/dist/functions/altool/parseValidationOutput.d.ts +0 -6
- package/dist/functions/altool/parseValidationOutput.js +0 -21
- package/dist/functions/altool/parseValidationOutput.js.map +0 -1
- package/dist/functions/altool/types.d.ts +0 -26
- package/dist/functions/altool/types.js +0 -7
- package/dist/functions/altool/types.js.map +0 -1
- package/dist/functions/altool/uploadApp.d.ts +0 -6
- package/dist/functions/altool/uploadApp.js +0 -36
- package/dist/functions/altool/uploadApp.js.map +0 -1
- package/dist/functions/altool/validateApp.d.ts +0 -17
- package/dist/functions/altool/validateApp.js +0 -40
- package/dist/functions/altool/validateApp.js.map +0 -1
- package/dist/functions/android/buildProject.d.ts +0 -12
- package/dist/functions/android/buildProject.js +0 -123
- package/dist/functions/android/buildProject.js.map +0 -1
- package/dist/functions/android/modifyGradle.d.ts +0 -17
- package/dist/functions/android/modifyGradle.js +0 -69
- package/dist/functions/android/modifyGradle.js.map +0 -1
- package/dist/functions/android/modifyManifest.d.ts +0 -23
- package/dist/functions/android/modifyManifest.js +0 -198
- package/dist/functions/android/modifyManifest.js.map +0 -1
- package/dist/functions/android/permission.d.ts +0 -30
- package/dist/functions/android/permission.js +0 -65
- package/dist/functions/android/permission.js.map +0 -1
- package/dist/functions/base64/strToBase64.d.ts +0 -2
- package/dist/functions/base64/strToBase64.js +0 -6
- package/dist/functions/base64/strToBase64.js.map +0 -1
- package/dist/functions/color/colorValidation.d.ts +0 -11
- package/dist/functions/color/colorValidation.js +0 -35
- package/dist/functions/color/colorValidation.js.map +0 -1
- package/dist/functions/color/deduplicateColors.d.ts +0 -4
- package/dist/functions/color/deduplicateColors.js +0 -40
- package/dist/functions/color/deduplicateColors.js.map +0 -1
- package/dist/functions/color-converter/COLOR_PATTERNS.d.ts +0 -2
- package/dist/functions/color-converter/COLOR_PATTERNS.js +0 -9
- package/dist/functions/color-converter/COLOR_PATTERNS.js.map +0 -1
- package/dist/functions/color-converter/colorPatterns.d.ts +0 -4
- package/dist/functions/color-converter/colorPatterns.js +0 -41
- package/dist/functions/color-converter/colorPatterns.js.map +0 -1
- package/dist/functions/color-converter/convertColor.d.ts +0 -6
- package/dist/functions/color-converter/convertColor.js +0 -12
- package/dist/functions/color-converter/convertColor.js.map +0 -1
- package/dist/functions/color-converter/createColorReference.d.ts +0 -2
- package/dist/functions/color-converter/createColorReference.js +0 -12
- package/dist/functions/color-converter/createColorReference.js.map +0 -1
- package/dist/functions/color-converter/detectColorFormat.d.ts +0 -2
- package/dist/functions/color-converter/detectColorFormat.js +0 -19
- package/dist/functions/color-converter/detectColorFormat.js.map +0 -1
- package/dist/functions/color-converter/extractColors.d.ts +0 -3
- package/dist/functions/color-converter/extractColors.js +0 -16
- package/dist/functions/color-converter/extractColors.js.map +0 -1
- package/dist/functions/color-converter/extractColorsFromLine.d.ts +0 -2
- package/dist/functions/color-converter/extractColorsFromLine.js +0 -18
- package/dist/functions/color-converter/extractColorsFromLine.js.map +0 -1
- package/dist/functions/color-converter/extractColorsGeneric.d.ts +0 -2
- package/dist/functions/color-converter/extractColorsGeneric.js +0 -12
- package/dist/functions/color-converter/extractColorsGeneric.js.map +0 -1
- package/dist/functions/color-converter/extractCssVariableReferences.d.ts +0 -2
- package/dist/functions/color-converter/extractCssVariableReferences.js +0 -15
- package/dist/functions/color-converter/extractCssVariableReferences.js.map +0 -1
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.d.ts +0 -2
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.js +0 -15
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.js.map +0 -1
- package/dist/functions/color-converter/formatColorOutput.d.ts +0 -5
- package/dist/functions/color-converter/formatColorOutput.js +0 -48
- package/dist/functions/color-converter/formatColorOutput.js.map +0 -1
- package/dist/functions/color-converter/getColorPatterns.d.ts +0 -2
- package/dist/functions/color-converter/getColorPatterns.js +0 -11
- package/dist/functions/color-converter/getColorPatterns.js.map +0 -1
- package/dist/functions/color-converter/getNamedColorMap.d.ts +0 -2
- package/dist/functions/color-converter/getNamedColorMap.js +0 -19
- package/dist/functions/color-converter/getNamedColorMap.js.map +0 -1
- package/dist/functions/color-converter/hexToRgb.d.ts +0 -2
- package/dist/functions/color-converter/hexToRgb.js +0 -42
- package/dist/functions/color-converter/hexToRgb.js.map +0 -1
- package/dist/functions/color-converter/hslToRgb.d.ts +0 -2
- package/dist/functions/color-converter/hslToRgb.js +0 -78
- package/dist/functions/color-converter/hslToRgb.js.map +0 -1
- package/dist/functions/color-converter/hslToRgbInternal.d.ts +0 -2
- package/dist/functions/color-converter/hslToRgbInternal.js +0 -24
- package/dist/functions/color-converter/hslToRgbInternal.js.map +0 -1
- package/dist/functions/color-converter/hueToRgb.d.ts +0 -1
- package/dist/functions/color-converter/hueToRgb.js +0 -14
- package/dist/functions/color-converter/hueToRgb.js.map +0 -1
- package/dist/functions/color-converter/isColorValue.d.ts +0 -2
- package/dist/functions/color-converter/isColorValue.js +0 -79
- package/dist/functions/color-converter/isColorValue.js.map +0 -1
- package/dist/functions/color-converter/isValidColorValue.d.ts +0 -1
- package/dist/functions/color-converter/isValidColorValue.js +0 -4
- package/dist/functions/color-converter/isValidColorValue.js.map +0 -1
- package/dist/functions/color-converter/isValidHslColor.d.ts +0 -2
- package/dist/functions/color-converter/isValidHslColor.js +0 -14
- package/dist/functions/color-converter/isValidHslColor.js.map +0 -1
- package/dist/functions/color-converter/isValidRgbColor.d.ts +0 -2
- package/dist/functions/color-converter/isValidRgbColor.js +0 -14
- package/dist/functions/color-converter/isValidRgbColor.js.map +0 -1
- package/dist/functions/color-converter/normalizeColor.d.ts +0 -1
- package/dist/functions/color-converter/normalizeColor.js +0 -49
- package/dist/functions/color-converter/normalizeColor.js.map +0 -1
- package/dist/functions/color-converter/normalizeColorInput.d.ts +0 -6
- package/dist/functions/color-converter/normalizeColorInput.js +0 -94
- package/dist/functions/color-converter/normalizeColorInput.js.map +0 -1
- package/dist/functions/color-converter/parseColorString.d.ts +0 -12
- package/dist/functions/color-converter/parseColorString.js +0 -89
- package/dist/functions/color-converter/parseColorString.js.map +0 -1
- package/dist/functions/color-converter/parseCssVariables.d.ts +0 -2
- package/dist/functions/color-converter/parseCssVariables.js +0 -19
- package/dist/functions/color-converter/parseCssVariables.js.map +0 -1
- package/dist/functions/color-converter/parseHexColor.d.ts +0 -6
- package/dist/functions/color-converter/parseHexColor.js +0 -42
- package/dist/functions/color-converter/parseHexColor.js.map +0 -1
- package/dist/functions/color-converter/rgbToHex.d.ts +0 -2
- package/dist/functions/color-converter/rgbToHex.js +0 -65
- package/dist/functions/color-converter/rgbToHex.js.map +0 -1
- package/dist/functions/color-converter/rgbToHslInternal.d.ts +0 -2
- package/dist/functions/color-converter/rgbToHslInternal.js +0 -31
- package/dist/functions/color-converter/rgbToHslInternal.js.map +0 -1
- package/dist/functions/color-converter/standardizeColor.d.ts +0 -1
- package/dist/functions/color-converter/standardizeColor.js +0 -147
- package/dist/functions/color-converter/standardizeColor.js.map +0 -1
- package/dist/functions/css/extractCssVariables.d.ts +0 -12
- package/dist/functions/css/extractCssVariables.js +0 -53
- package/dist/functions/css/extractCssVariables.js.map +0 -1
- package/dist/functions/debug/createDebugger.d.ts +0 -21
- package/dist/functions/debug/createDebugger.js +0 -89
- package/dist/functions/debug/createDebugger.js.map +0 -1
- package/dist/functions/desensitize/desensitizeName.d.ts +0 -1
- package/dist/functions/desensitize/desensitizeName.js +0 -8
- package/dist/functions/desensitize/desensitizeName.js.map +0 -1
- package/dist/functions/desensitize/desensitizePhone.d.ts +0 -1
- package/dist/functions/desensitize/desensitizePhone.js +0 -8
- package/dist/functions/desensitize/desensitizePhone.js.map +0 -1
- package/dist/functions/dom/detectOverflow.d.ts +0 -8
- package/dist/functions/dom/detectOverflow.js +0 -17
- package/dist/functions/dom/detectOverflow.js.map +0 -1
- package/dist/functions/dom/getElementRect.d.ts +0 -3
- package/dist/functions/dom/getElementRect.js +0 -14
- package/dist/functions/dom/getElementRect.js.map +0 -1
- package/dist/functions/dom/getRelativePosition.d.ts +0 -3
- package/dist/functions/dom/getRelativePosition.js +0 -14
- package/dist/functions/dom/getRelativePosition.js.map +0 -1
- package/dist/functions/dom/getViewportRect.d.ts +0 -3
- package/dist/functions/dom/getViewportRect.js +0 -15
- package/dist/functions/dom/getViewportRect.js.map +0 -1
- package/dist/functions/dom/getViewportSize.d.ts +0 -5
- package/dist/functions/dom/getViewportSize.js +0 -7
- package/dist/functions/dom/getViewportSize.js.map +0 -1
- package/dist/functions/image/generateMacIcons.d.ts +0 -6
- package/dist/functions/image/generateMacIcons.js +0 -15
- package/dist/functions/image/generateMacIcons.js.map +0 -1
- package/dist/functions/image/generateMacTrayIcon.d.ts +0 -7
- package/dist/functions/image/generateMacTrayIcon.js +0 -15
- package/dist/functions/image/generateMacTrayIcon.js.map +0 -1
- package/dist/functions/image/generatePaddedImage.d.ts +0 -3
- package/dist/functions/image/generatePaddedImage.js +0 -14
- package/dist/functions/image/generatePaddedImage.js.map +0 -1
- package/dist/functions/image/generatePwaIcons.d.ts +0 -6
- package/dist/functions/image/generatePwaIcons.js +0 -15
- package/dist/functions/image/generatePwaIcons.js.map +0 -1
- package/dist/functions/image/generateRoundedImage.d.ts +0 -3
- package/dist/functions/image/generateRoundedImage.js +0 -17
- package/dist/functions/image/generateRoundedImage.js.map +0 -1
- package/dist/functions/ipc/dispatchIpcRequest.d.ts +0 -6
- package/dist/functions/ipc/dispatchIpcRequest.js +0 -10
- package/dist/functions/ipc/dispatchIpcRequest.js.map +0 -1
- package/dist/functions/software/buildPathExecutables.d.ts +0 -1
- package/dist/functions/software/buildPathExecutables.js +0 -14
- package/dist/functions/software/buildPathExecutables.js.map +0 -1
- package/dist/functions/software/buildSoftwarePaths.d.ts +0 -2
- package/dist/functions/software/buildSoftwarePaths.js +0 -22
- package/dist/functions/software/buildSoftwarePaths.js.map +0 -1
- package/dist/functions/software/createConfigGenerator.d.ts +0 -8
- package/dist/functions/software/createConfigGenerator.js +0 -13
- package/dist/functions/software/createConfigGenerator.js.map +0 -1
- package/dist/functions/software/detectPlatform.d.ts +0 -2
- package/dist/functions/software/detectPlatform.js +0 -9
- package/dist/functions/software/detectPlatform.js.map +0 -1
- package/dist/functions/software/find.d.ts +0 -2
- package/dist/functions/software/find.js +0 -12
- package/dist/functions/software/find.js.map +0 -1
- package/dist/functions/software/findSoftware.d.ts +0 -13
- package/dist/functions/software/findSoftware.js +0 -41
- package/dist/functions/software/findSoftware.js.map +0 -1
- package/dist/functions/software/findSoftwareWithGenerator.d.ts +0 -3
- package/dist/functions/software/findSoftwareWithGenerator.js +0 -8
- package/dist/functions/software/findSoftwareWithGenerator.js.map +0 -1
- package/dist/functions/software/getConfigGenerator.d.ts +0 -2
- package/dist/functions/software/getConfigGenerator.js +0 -10
- package/dist/functions/software/getConfigGenerator.js.map +0 -1
- package/dist/functions/software/getEnvironmentSoftwarePath.d.ts +0 -1
- package/dist/functions/software/getEnvironmentSoftwarePath.js +0 -8
- package/dist/functions/software/getEnvironmentSoftwarePath.js.map +0 -1
- package/dist/functions/software/getSupportedSoftware.d.ts +0 -1
- package/dist/functions/software/getSupportedSoftware.js +0 -5
- package/dist/functions/software/getSupportedSoftware.js.map +0 -1
- package/dist/functions/software/parseEnvironmentPaths.d.ts +0 -1
- package/dist/functions/software/parseEnvironmentPaths.js +0 -11
- package/dist/functions/software/parseEnvironmentPaths.js.map +0 -1
- package/dist/functions/software/softwareConfigs.d.ts +0 -2
- package/dist/functions/software/softwareConfigs.js +0 -148
- package/dist/functions/software/softwareConfigs.js.map +0 -1
- package/dist/functions/software/softwareNameMap.d.ts +0 -1
- package/dist/functions/software/softwareNameMap.js +0 -9
- package/dist/functions/software/softwareNameMap.js.map +0 -1
- package/dist/functions/software/types.d.ts +0 -11
- package/dist/functions/software/types.js +0 -2
- package/dist/functions/software/types.js.map +0 -1
- package/dist/functions/string/base64.d.ts +0 -2
- package/dist/functions/string/base64.js +0 -6
- package/dist/functions/string/base64.js.map +0 -1
- package/dist/functions/string/camelCase.d.ts +0 -1
- package/dist/functions/string/camelCase.js +0 -8
- package/dist/functions/string/camelCase.js.map +0 -1
- package/dist/functions/string/capitalize.d.ts +0 -1
- package/dist/functions/string/capitalize.js +0 -6
- package/dist/functions/string/capitalize.js.map +0 -1
- package/dist/functions/string/caseConverter.d.ts +0 -19
- package/dist/functions/string/caseConverter.js +0 -94
- package/dist/functions/string/caseConverter.js.map +0 -1
- package/dist/functions/string/desensitize.d.ts +0 -13
- package/dist/functions/string/desensitize.js +0 -107
- package/dist/functions/string/desensitize.js.map +0 -1
- package/dist/functions/string/escape.d.ts +0 -1
- package/dist/functions/string/escape.js +0 -13
- package/dist/functions/string/escape.js.map +0 -1
- package/dist/functions/string/htmlEscape.d.ts +0 -20
- package/dist/functions/string/htmlEscape.js +0 -80
- package/dist/functions/string/htmlEscape.js.map +0 -1
- package/dist/functions/string/kebabCase.d.ts +0 -1
- package/dist/functions/string/kebabCase.js +0 -10
- package/dist/functions/string/kebabCase.js.map +0 -1
- package/dist/functions/string/levenshtein.d.ts +0 -1
- package/dist/functions/string/levenshtein.js +0 -27
- package/dist/functions/string/levenshtein.js.map +0 -1
- package/dist/functions/string/mask.d.ts +0 -1
- package/dist/functions/string/mask.js +0 -40
- package/dist/functions/string/mask.js.map +0 -1
- package/dist/functions/string/normalize.d.ts +0 -8
- package/dist/functions/string/normalize.js +0 -37
- package/dist/functions/string/normalize.js.map +0 -1
- package/dist/functions/string/pad.d.ts +0 -13
- package/dist/functions/string/pad.js +0 -50
- package/dist/functions/string/pad.js.map +0 -1
- package/dist/functions/string/padEnd.d.ts +0 -1
- package/dist/functions/string/padEnd.js +0 -8
- package/dist/functions/string/padEnd.js.map +0 -1
- package/dist/functions/string/padStart.d.ts +0 -1
- package/dist/functions/string/padStart.js +0 -8
- package/dist/functions/string/padStart.js.map +0 -1
- package/dist/functions/string/palindrome.d.ts +0 -3
- package/dist/functions/string/palindrome.js +0 -15
- package/dist/functions/string/palindrome.js.map +0 -1
- package/dist/functions/string/pascalCase.d.ts +0 -1
- package/dist/functions/string/pascalCase.js +0 -8
- package/dist/functions/string/pascalCase.js.map +0 -1
- package/dist/functions/string/similarity.d.ts +0 -1
- package/dist/functions/string/similarity.js +0 -13
- package/dist/functions/string/similarity.js.map +0 -1
- package/dist/functions/string/snakeCase.d.ts +0 -1
- package/dist/functions/string/snakeCase.js +0 -10
- package/dist/functions/string/snakeCase.js.map +0 -1
- package/dist/functions/string/template.d.ts +0 -4
- package/dist/functions/string/template.js +0 -21
- package/dist/functions/string/template.js.map +0 -1
- package/dist/functions/string/unescape.d.ts +0 -1
- package/dist/functions/string/unescape.js +0 -13
- package/dist/functions/string/unescape.js.map +0 -1
- package/dist/functions/string/wordCount.d.ts +0 -5
- package/dist/functions/string/wordCount.js +0 -11
- package/dist/functions/string/wordCount.js.map +0 -1
- package/dist/functions/tencent-cloud/getSecret.d.ts +0 -6
- package/dist/functions/tencent-cloud/getSecret.js +0 -18
- package/dist/functions/tencent-cloud/getSecret.js.map +0 -1
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.d.ts +0 -13
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js +0 -175
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js.map +0 -1
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.d.ts +0 -19
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.js +0 -55
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.js.map +0 -1
- package/dist/functions/uniapp/app-plus/buildAndroidApp.d.ts +0 -2
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js +0 -149
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +0 -1
- package/dist/functions/uniapp/app-plus/buildAndroidProject.d.ts +0 -3
- package/dist/functions/uniapp/app-plus/buildAndroidProject.js +0 -60
- package/dist/functions/uniapp/app-plus/buildAndroidProject.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.d.ts +0 -5
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.js +0 -51
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureAndroidProject.d.ts +0 -3
- package/dist/functions/uniapp/app-plus/configureAndroidProject.js +0 -63
- package/dist/functions/uniapp/app-plus/configureAndroidProject.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureBuildGradle.d.ts +0 -9
- package/dist/functions/uniapp/app-plus/configureBuildGradle.js +0 -57
- package/dist/functions/uniapp/app-plus/configureBuildGradle.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureDcloudControl.d.ts +0 -5
- package/dist/functions/uniapp/app-plus/configureDcloudControl.js +0 -34
- package/dist/functions/uniapp/app-plus/configureDcloudControl.js.map +0 -1
- package/dist/functions/uniapp/app-plus/configureStrings.d.ts +0 -5
- package/dist/functions/uniapp/app-plus/configureStrings.js +0 -42
- package/dist/functions/uniapp/app-plus/configureStrings.js.map +0 -1
- package/dist/functions/uniapp/app-plus/copyAppResources.d.ts +0 -8
- package/dist/functions/uniapp/app-plus/copyAppResources.js +0 -25
- package/dist/functions/uniapp/app-plus/copyAppResources.js.map +0 -1
- package/dist/functions/uniapp/app-plus/copyDirectory.d.ts +0 -2
- package/dist/functions/uniapp/app-plus/copyDirectory.js +0 -18
- package/dist/functions/uniapp/app-plus/copyDirectory.js.map +0 -1
- package/dist/functions/uniapp/app-plus/generateUniAppResources.d.ts +0 -2
- package/dist/functions/uniapp/app-plus/generateUniAppResources.js +0 -35
- package/dist/functions/uniapp/app-plus/generateUniAppResources.js.map +0 -1
- package/dist/functions/uniapp/app-plus/parseManifest.d.ts +0 -14
- package/dist/functions/uniapp/app-plus/parseManifest.js +0 -44
- package/dist/functions/uniapp/app-plus/parseManifest.js.map +0 -1
- package/dist/functions/uniapp/app-plus/validateOptions.d.ts +0 -3
- package/dist/functions/uniapp/app-plus/validateOptions.js +0 -10
- package/dist/functions/uniapp/app-plus/validateOptions.js.map +0 -1
- package/dist/functions/uniapp/build.d.ts +0 -20
- package/dist/functions/uniapp/build.js +0 -84
- package/dist/functions/uniapp/build.js.map +0 -1
- package/dist/functions/uniapp/detectAndroidProjectStructure.d.ts +0 -7
- package/dist/functions/uniapp/detectAndroidProjectStructure.js +0 -30
- package/dist/functions/uniapp/detectAndroidProjectStructure.js.map +0 -1
- package/dist/functions/uniapp/detectProjectType.d.ts +0 -16
- package/dist/functions/uniapp/detectProjectType.js +0 -68
- package/dist/functions/uniapp/detectProjectType.js.map +0 -1
- package/dist/functions/uniapp/parseManifest.d.ts +0 -12
- package/dist/functions/uniapp/parseManifest.js +0 -46
- package/dist/functions/uniapp/parseManifest.js.map +0 -1
- package/dist/functions/uniapp/waitForPages.d.ts +0 -3
- package/dist/functions/uniapp/waitForPages.js +0 -20
- package/dist/functions/uniapp/waitForPages.js.map +0 -1
- package/dist/functions/utils/compose.d.ts +0 -1
- package/dist/functions/utils/compose.js +0 -10
- package/dist/functions/utils/compose.js.map +0 -1
- package/dist/functions/utils/cond.d.ts +0 -1
- package/dist/functions/utils/cond.js +0 -15
- package/dist/functions/utils/cond.js.map +0 -1
- package/dist/functions/utils/curry.d.ts +0 -1
- package/dist/functions/utils/curry.js +0 -13
- package/dist/functions/utils/curry.js.map +0 -1
- package/dist/functions/utils/debounce.d.ts +0 -1
- package/dist/functions/utils/debounce.js +0 -13
- package/dist/functions/utils/debounce.js.map +0 -1
- package/dist/functions/utils/evolve.d.ts +0 -3
- package/dist/functions/utils/evolve.js +0 -15
- package/dist/functions/utils/evolve.js.map +0 -1
- package/dist/functions/utils/flow.d.ts +0 -1
- package/dist/functions/utils/flow.js +0 -14
- package/dist/functions/utils/flow.js.map +0 -1
- package/dist/functions/utils/generateExports.d.ts +0 -16
- package/dist/functions/utils/generateExports.js +0 -34
- package/dist/functions/utils/generateExports.js.map +0 -1
- package/dist/functions/utils/isType.d.ts +0 -11
- package/dist/functions/utils/isType.js +0 -30
- package/dist/functions/utils/isType.js.map +0 -1
- package/dist/functions/utils/memoize.d.ts +0 -1
- package/dist/functions/utils/memoize.js +0 -13
- package/dist/functions/utils/memoize.js.map +0 -1
- package/dist/functions/utils/once.d.ts +0 -1
- package/dist/functions/utils/once.js +0 -13
- package/dist/functions/utils/once.js.map +0 -1
- package/dist/functions/utils/partial.d.ts +0 -1
- package/dist/functions/utils/partial.js +0 -13
- package/dist/functions/utils/partial.js.map +0 -1
- package/dist/functions/utils/pipe.d.ts +0 -1
- package/dist/functions/utils/pipe.js +0 -10
- package/dist/functions/utils/pipe.js.map +0 -1
- package/dist/functions/utils/retryWithBackoff.d.ts +0 -9
- package/dist/functions/utils/retryWithBackoff.js +0 -30
- package/dist/functions/utils/retryWithBackoff.js.map +0 -1
- package/dist/functions/utils/tap.d.ts +0 -1
- package/dist/functions/utils/tap.js +0 -14
- package/dist/functions/utils/tap.js.map +0 -1
- package/dist/functions/utils/throttle.d.ts +0 -1
- package/dist/functions/utils/throttle.js +0 -11
- package/dist/functions/utils/throttle.js.map +0 -1
- package/dist/functions/utils/until.d.ts +0 -1
- package/dist/functions/utils/until.js +0 -10
- package/dist/functions/utils/until.js.map +0 -1
- package/dist/functions/utils/validate.d.ts +0 -8
- package/dist/functions/utils/validate.js +0 -45
- package/dist/functions/utils/validate.js.map +0 -1
- package/dist/functions/utils/walk.d.ts +0 -11
- package/dist/functions/utils/walk.js +0 -27
- package/dist/functions/utils/walk.js.map +0 -1
- package/dist/functions/vue/checkVueType.d.ts +0 -8
- package/dist/functions/vue/checkVueType.js +0 -29
- package/dist/functions/vue/checkVueType.js.map +0 -1
- package/dist/functions/vue/deduplicateColors.d.ts +0 -2
- package/dist/functions/vue/deduplicateColors.js +0 -13
- package/dist/functions/vue/deduplicateColors.js.map +0 -1
- package/dist/functions/vue/dynamicMount.d.ts +0 -15
- package/dist/functions/vue/dynamicMount.js +0 -25
- package/dist/functions/vue/dynamicMount.js.map +0 -1
- package/dist/functions/vue/filterSections.d.ts +0 -2
- package/dist/functions/vue/filterSections.js +0 -11
- package/dist/functions/vue/filterSections.js.map +0 -1
- package/dist/functions/vue/isVNode.d.ts +0 -2
- package/dist/functions/vue/isVNode.js +0 -6
- package/dist/functions/vue/isVNode.js.map +0 -1
- package/dist/functions/vue/isVueComponent.d.ts +0 -2
- package/dist/functions/vue/isVueComponent.js +0 -6
- package/dist/functions/vue/isVueComponent.js.map +0 -1
- package/dist/functions/vue/parseVueFile.d.ts +0 -2
- package/dist/functions/vue/parseVueFile.js +0 -53
- package/dist/functions/vue/parseVueFile.js.map +0 -1
- package/dist/functions/vue/processVueFile.d.ts +0 -3
- package/dist/functions/vue/processVueFile.js +0 -26
- package/dist/functions/vue/processVueFile.js.map +0 -1
- package/dist/functions/vue/saveVueSection.d.ts +0 -2
- package/dist/functions/vue/saveVueSection.js +0 -11
- package/dist/functions/vue/saveVueSection.js.map +0 -1
- package/dist/functions/wechat/miniapp/downloadFile.d.ts +0 -2
- package/dist/functions/wechat/miniapp/downloadFile.js +0 -39
- package/dist/functions/wechat/miniapp/downloadFile.js.map +0 -1
- package/dist/functions/xml/modifyXml.d.ts +0 -11
- package/dist/functions/xml/modifyXml.js +0 -46
- package/dist/functions/xml/modifyXml.js.map +0 -1
- package/dist/hooks/useAi.d.ts +0 -27
- package/dist/hooks/useAi.js +0 -163
- package/dist/hooks/useAi.js.map +0 -1
- package/dist/hooks/useAltool.d.ts +0 -39
- package/dist/hooks/useAltool.js +0 -350
- package/dist/hooks/useAltool.js.map +0 -1
- package/dist/hooks/useCache.d.ts +0 -18
- package/dist/hooks/useCache.js +0 -82
- package/dist/hooks/useCache.js.map +0 -1
- package/dist/hooks/useFetch.d.ts +0 -3
- package/dist/hooks/useFetch.js +0 -154
- package/dist/hooks/useFetch.js.map +0 -1
- package/dist/hooks/useLocalStorage.d.ts +0 -4
- package/dist/hooks/useLocalStorage.js +0 -100
- package/dist/hooks/useLocalStorage.js.map +0 -1
- package/dist/hooks/usePluginSystem.d.ts +0 -11
- package/dist/hooks/usePluginSystem.js +0 -34
- package/dist/hooks/usePluginSystem.js.map +0 -1
- package/dist/hooks/useRequest.d.ts +0 -3
- package/dist/hooks/useRequest.js +0 -139
- package/dist/hooks/useRequest.js.map +0 -1
- package/dist/hooks/useSessionStorage.d.ts +0 -4
- package/dist/hooks/useSessionStorage.js +0 -100
- package/dist/hooks/useSessionStorage.js.map +0 -1
- package/dist/hooks/useStorage.d.ts +0 -10
- package/dist/hooks/useStorage.js +0 -62
- package/dist/hooks/useStorage.js.map +0 -1
- package/dist/hooks/useStorageWithIndexedDB.d.ts +0 -4
- package/dist/hooks/useStorageWithIndexedDB.js +0 -119
- package/dist/hooks/useStorageWithIndexedDB.js.map +0 -1
- package/dist/hooks/useWASM.d.ts +0 -4
- package/dist/hooks/useWASM.js +0 -263
- package/dist/hooks/useWASM.js.map +0 -1
- package/dist/hooks/useWebWorker.d.ts +0 -25
- package/dist/hooks/useWebWorker.js +0 -209
- package/dist/hooks/useWebWorker.js.map +0 -1
- package/dist/hooks/useWorkerFunction.d.ts +0 -22
- package/dist/hooks/useWorkerFunction.js +0 -191
- package/dist/hooks/useWorkerFunction.js.map +0 -1
- package/dist/hooks/useWorkerPool.d.ts +0 -30
- package/dist/hooks/useWorkerPool.js +0 -242
- package/dist/hooks/useWorkerPool.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"partial.js","sourceRoot":"","sources":["../../../src/functions/utils/partial.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,OAAO,CACrB,EAAK,EACL,IAAW,EACX,YAA8B,MAAM;IAEpC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAA;IAEhC,OAAO,CAAC,GAAG,QAAe,EAAE,EAAE;QAC5B,IAAI,SAAS,KAAK,MAAM,EAAE,CAAC;YACzB,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,QAAQ,CAAC,CAAA;QACjC,CAAC;aAAM,CAAC;YACN,OAAO,EAAE,CAAC,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAA;QACjC,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function pipe<T>(...functions: Array<(arg: T) => T>): (arg: T) => T;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function pipe(...functions) {
|
|
2
|
-
if (functions.length === 0)
|
|
3
|
-
return (arg) => arg;
|
|
4
|
-
if (functions.length === 1)
|
|
5
|
-
return functions[0];
|
|
6
|
-
return (arg) => {
|
|
7
|
-
return functions.reduce((result, fn) => fn(result), arg);
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipe.js","sourceRoot":"","sources":["../../../src/functions/utils/pipe.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,IAAI,CAAI,GAAG,SAA+B;IACxD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,GAAM,EAAE,EAAE,CAAC,GAAG,CAAA;IAClD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC,CAAC,CAAC,CAAA;IAE/C,OAAO,CAAC,GAAM,EAAE,EAAE;QAChB,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAA;IAC1D,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function retryWithBackoff<T extends (...args: any[]) => Promise<any>>(fn: T, options?: {
|
|
2
|
-
maxAttempts?: number;
|
|
3
|
-
baseDelay?: number;
|
|
4
|
-
maxDelay?: number;
|
|
5
|
-
backoffMultiplier?: number;
|
|
6
|
-
jitter?: boolean;
|
|
7
|
-
shouldRetry?: (error: any, attempt: number) => boolean;
|
|
8
|
-
onRetry?: (error: any, attempt: number, delay: number) => void;
|
|
9
|
-
}): T;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { setTimeout } from '../../../references/timer.d';
|
|
2
|
-
export function retryWithBackoff(fn, options = {}) {
|
|
3
|
-
const { maxAttempts = 3, baseDelay = 1000, maxDelay = 10000, backoffMultiplier = 2, jitter = true, shouldRetry, onRetry } = options;
|
|
4
|
-
return ((...args) => {
|
|
5
|
-
const attempt = async (attemptNumber) => {
|
|
6
|
-
try {
|
|
7
|
-
return await fn(...args);
|
|
8
|
-
}
|
|
9
|
-
catch (error) {
|
|
10
|
-
if (attemptNumber >= maxAttempts) {
|
|
11
|
-
throw error;
|
|
12
|
-
}
|
|
13
|
-
if (shouldRetry && !shouldRetry(error, attemptNumber)) {
|
|
14
|
-
throw error;
|
|
15
|
-
}
|
|
16
|
-
const delay = Math.min(baseDelay * Math.pow(backoffMultiplier, attemptNumber - 1), maxDelay);
|
|
17
|
-
const finalDelay = jitter
|
|
18
|
-
? delay * (0.5 + Math.random() * 0.5)
|
|
19
|
-
: delay;
|
|
20
|
-
if (onRetry) {
|
|
21
|
-
onRetry(error, attemptNumber, finalDelay);
|
|
22
|
-
}
|
|
23
|
-
await new Promise(resolve => setTimeout(resolve, finalDelay));
|
|
24
|
-
return attempt(attemptNumber + 1);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
return attempt(1);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=retryWithBackoff.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retryWithBackoff.js","sourceRoot":"","sources":["../../../src/functions/utils/retryWithBackoff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,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C,CAAC,CAAA;YACnC,CAAC;QACH,CAAC,CAAA;QAED,OAAO,OAAO,CAAC,CAAC,CAAC,CAAA;IACnB,CAAC,CAAM,CAAA;AACT,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function tap<T extends (...args: any[]) => any>(fn: T, interceptor: (args: Parameters<T>, result: ReturnType<T>) => void): T;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function tap(fn, interceptor) {
|
|
2
|
-
return ((...args) => {
|
|
3
|
-
const result = fn(...args);
|
|
4
|
-
if (result instanceof Promise) {
|
|
5
|
-
return result.then(res => {
|
|
6
|
-
interceptor(args, res);
|
|
7
|
-
return res;
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
interceptor(args, result);
|
|
11
|
-
return result;
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=tap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../src/functions/utils/tap.ts"],"names":[],"mappings":"AAaA,MAAM,UAAU,GAAG,CACjB,EAAK,EACL,WAAiE;IAEjE,OAAO,CAAC,CAAC,GAAG,IAAmB,EAAiB,EAAE;QAChD,MAAM,MAAM,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;QAG1B,IAAI,MAAM,YAAY,OAAO,EAAE,CAAC;YAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;gBACvB,WAAW,CAAC,IAAI,EAAE,GAAoB,CAAC,CAAA;gBACvC,OAAO,GAAG,CAAA;YACZ,CAAC,CAAkB,CAAA;QACrB,CAAC;QAGD,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QACzB,OAAO,MAAM,CAAA;IACf,CAAC,CAAM,CAAA;AACT,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function throttle<T extends (...args: any[]) => any>(func: T, delay: number): (...args: Parameters<T>) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../src/functions/utils/throttle.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,QAAQ,CACtB,IAAO,EACP,KAAa;IAEb,IAAI,YAAY,GAAG,CAAC,CAAA;IAEpB,OAAO,CAAC,GAAG,IAAmB,EAAE,EAAE;QAChC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;QAEtB,IAAI,GAAG,GAAG,YAAY,IAAI,KAAK,EAAE,CAAC;YAChC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAA;YACb,YAAY,GAAG,GAAG,CAAA;QACpB,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function until<T>(predicate: (result: T) => boolean, fn: (arg: T) => T | Promise<T>): (arg: T) => T | Promise<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"until.js","sourceRoot":"","sources":["../../../src/functions/utils/until.ts"],"names":[],"mappings":"AAaA,MAAM,UAAU,KAAK,CACnB,SAAiC,EACjC,EAA8B;IAE9B,OAAO,KAAK,EAAE,GAAM,EAAc,EAAE;QAClC,IAAI,MAAM,GAAG,GAAG,CAAA;QAEhB,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1B,MAAM,GAAG,MAAM,EAAE,CAAC,MAAM,CAAC,CAAA;QAC3B,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { URL } from '../../../references/url.d';
|
|
2
|
-
export const validate = {
|
|
3
|
-
isEmail(value) {
|
|
4
|
-
if (!value || typeof value !== 'string')
|
|
5
|
-
return false;
|
|
6
|
-
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
7
|
-
return emailRegex.test(value);
|
|
8
|
-
},
|
|
9
|
-
isPhone(value) {
|
|
10
|
-
if (!value || typeof value !== 'string')
|
|
11
|
-
return false;
|
|
12
|
-
const phoneRegex = /^1[3-9]\d{9}$/;
|
|
13
|
-
return phoneRegex.test(value);
|
|
14
|
-
},
|
|
15
|
-
isUrl(value) {
|
|
16
|
-
if (!value || typeof value !== 'string')
|
|
17
|
-
return false;
|
|
18
|
-
try {
|
|
19
|
-
new URL(value);
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
catch {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
isStrongPassword(value) {
|
|
27
|
-
if (!value || typeof value !== 'string')
|
|
28
|
-
return false;
|
|
29
|
-
const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;
|
|
30
|
-
return passwordRegex.test(value);
|
|
31
|
-
},
|
|
32
|
-
isIdCard(value) {
|
|
33
|
-
if (!value || typeof value !== 'string')
|
|
34
|
-
return false;
|
|
35
|
-
const idCardRegex = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
|
36
|
-
return idCardRegex.test(value);
|
|
37
|
-
},
|
|
38
|
-
isPostalCode(value) {
|
|
39
|
-
if (!value || typeof value !== 'string')
|
|
40
|
-
return false;
|
|
41
|
-
const postalCodeRegex = /^[1-9]\d{5}$/;
|
|
42
|
-
return postalCodeRegex.test(value);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/functions/utils/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAW/C,MAAM,CAAC,MAAM,QAAQ,GAAG;IAItB,OAAO,CAAC,KAAa;QACnB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C,IAAI,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC;CACF,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FileSystem, Path } from '../../../references/node.d';
|
|
2
|
-
export interface WalkDependencies {
|
|
3
|
-
fs: FileSystem;
|
|
4
|
-
path: Path;
|
|
5
|
-
}
|
|
6
|
-
export declare function walk(dir: string, options: {
|
|
7
|
-
prefix?: string;
|
|
8
|
-
extensions?: string[];
|
|
9
|
-
excludeExtensions?: string[];
|
|
10
|
-
excludeNames?: string[];
|
|
11
|
-
} | undefined, deps: WalkDependencies): string[];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export function walk(dir, options = {}, deps) {
|
|
2
|
-
const { fs, path } = deps;
|
|
3
|
-
const { prefix = '', extensions = ['.ts'], excludeExtensions = ['.d.ts'], excludeNames = ['index'] } = options;
|
|
4
|
-
let results = [];
|
|
5
|
-
if (!fs.existsSync(dir)) {
|
|
6
|
-
return results;
|
|
7
|
-
}
|
|
8
|
-
fs.readdirSync(dir).forEach((file) => {
|
|
9
|
-
const fullPath = path.join(dir, file);
|
|
10
|
-
const relPath = path.join(prefix, file);
|
|
11
|
-
if (fs.statSync(fullPath).isDirectory()) {
|
|
12
|
-
results = results.concat(walk(fullPath, { ...options, prefix: relPath }, deps));
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
const hasValidExtension = extensions.some(ext => file.endsWith(ext));
|
|
16
|
-
const hasExcludedExtension = excludeExtensions.some(ext => file.endsWith(ext));
|
|
17
|
-
const fileName = file.substring(0, file.lastIndexOf('.'));
|
|
18
|
-
const isExcludedName = excludeNames.includes(fileName);
|
|
19
|
-
if (hasValidExtension && !hasExcludedExtension && !isExcludedName) {
|
|
20
|
-
const posixPath = path.posix.join(prefix.split(path.sep).join(path.posix.sep), fileName);
|
|
21
|
-
results.push(posixPath);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
return results;
|
|
26
|
-
}
|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,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/E,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1D,MAAM,cAAc,GAAG,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAEvD,IAAI,iBAAiB,IAAI,CAAC,oBAAoB,IAAI,CAAC,cAAc,EAAE,CAAC;gBAElE,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAC/B,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAC3C,QAAQ,CACT,CAAC;gBACF,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC1B,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Component, VNode } from '../../../references/vue.d';
|
|
2
|
-
export type VueTypeCheckResult = {
|
|
3
|
-
isComponent: boolean;
|
|
4
|
-
isVNode: boolean;
|
|
5
|
-
type: 'component' | 'vnode' | 'unknown';
|
|
6
|
-
};
|
|
7
|
-
export declare function checkVueType(content: unknown): VueTypeCheckResult;
|
|
8
|
-
export declare function isVueRelated(content: unknown): content is Component | VNode;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export function checkVueType(content) {
|
|
2
|
-
const isComponent = (typeof content === 'object' &&
|
|
3
|
-
content !== null &&
|
|
4
|
-
('render' in content || 'setup' in content || 'template' in content));
|
|
5
|
-
const isVNodeResult = (typeof content === 'object' && content !== null && '__v_isVNode' in content);
|
|
6
|
-
let type;
|
|
7
|
-
if (isComponent) {
|
|
8
|
-
type = 'component';
|
|
9
|
-
}
|
|
10
|
-
else if (isVNodeResult) {
|
|
11
|
-
type = 'vnode';
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
type = 'unknown';
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
isComponent,
|
|
18
|
-
isVNode: isVNodeResult,
|
|
19
|
-
type
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export function isVueRelated(content) {
|
|
23
|
-
const isComponent = (typeof content === 'object' &&
|
|
24
|
-
content !== null &&
|
|
25
|
-
('render' in content || 'setup' in content || 'template' in content));
|
|
26
|
-
const isVNodeResult = (typeof content === 'object' && content !== null && '__v_isVNode' in content);
|
|
27
|
-
return isComponent || isVNodeResult;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=checkVueType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkVueType.js","sourceRoot":"","sources":["../../../src/functions/vue/checkVueType.ts"],"names":[],"mappings":"AAgCA,MAAM,UAAU,YAAY,CAAC,OAAgB;IAE3C,MAAM,WAAW,GAAG,CAClB,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,KAAK,IAAI;QAChB,CAAC,QAAQ,IAAI,OAAO,IAAI,OAAO,IAAI,OAAO,IAAI,UAAU,IAAI,OAAO,CAAC,CACrE,CAAA;IAGD,MAAM,aAAa,GAAG,CACpB,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,IAAI,aAAa,IAAI,OAAO,CAC5E,CAAA;IAED,IAAI,IAAuC,CAAA;IAC3C,IAAI,WAAW,EAAE,CAAC;QAChB,IAAI,GAAG,WAAW,CAAA;IACpB,CAAC;SAAM,IAAI,aAAa,EAAE,CAAC;QACzB,IAAI,GAAG,OAAO,CAAA;IAChB,CAAC;SAAM,CAAC;QACN,IAAI,GAAG,SAAS,CAAA;IAClB,CAAC;IAED,OAAO;QACL,WAAW;QACX,OAAO,EAAE,aAAa;QACtB,IAAI;KACL,CAAA;AACH,CAAC;AAOD,MAAM,UAAU,YAAY,CAAC,OAAgB;IAE3C,MAAM,WAAW,GAAG,CAClB,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,KAAK,IAAI;QAChB,CAAC,QAAQ,IAAI,OAAO,IAAI,OAAO,IAAI,OAAO,IAAI,UAAU,IAAI,OAAO,CAAC,CACrE,CAAA;IAED,MAAM,aAAa,GAAG,CACpB,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,IAAI,aAAa,IAAI,OAAO,CAC5E,CAAA;IAED,OAAO,WAAW,IAAI,aAAa,CAAA;AACrC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export function deduplicateColors(colors) {
|
|
2
|
-
const seen = new Set();
|
|
3
|
-
const result = [];
|
|
4
|
-
for (const color of colors) {
|
|
5
|
-
const key = `${color.file}:${color.line}:${color.originalValue}`;
|
|
6
|
-
if (!seen.has(key)) {
|
|
7
|
-
seen.add(key);
|
|
8
|
-
result.push(color);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return result;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=deduplicateColors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deduplicateColors.js","sourceRoot":"","sources":["../../../src/functions/vue/deduplicateColors.ts"],"names":[],"mappings":"AA0BA,MAAM,UAAU,iBAAiB,CAAC,MAAwB;IACxD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAA;IAC9B,MAAM,MAAM,GAAqB,EAAE,CAAA;IAEnC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,GAAG,GAAG,GAAG,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,aAAa,EAAE,CAAA;QAChE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACb,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { VueRuntime, VNode, Component, AppContext } from '../../../references/vue.d';
|
|
2
|
-
import type { HTMLElement, Document } from '../../../references/dom.d';
|
|
3
|
-
export interface DynamicMountOptions {
|
|
4
|
-
props: Record<string, any>;
|
|
5
|
-
container: HTMLElement;
|
|
6
|
-
appContext: AppContext;
|
|
7
|
-
vue: VueRuntime;
|
|
8
|
-
document: Document;
|
|
9
|
-
}
|
|
10
|
-
export declare function dynamicMount(Comp: Component, options: DynamicMountOptions): {
|
|
11
|
-
vnode: VNode;
|
|
12
|
-
update: (newProps: typeof options.props) => void;
|
|
13
|
-
destroy: () => void;
|
|
14
|
-
el: HTMLElement;
|
|
15
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export function dynamicMount(Comp, options) {
|
|
2
|
-
let vnode = null;
|
|
3
|
-
const el = options.document.createElement('div');
|
|
4
|
-
options.container.appendChild(el);
|
|
5
|
-
vnode = options.vue.createVNode(Comp, options.props);
|
|
6
|
-
if (vnode) {
|
|
7
|
-
vnode.appContext = options.appContext;
|
|
8
|
-
}
|
|
9
|
-
options.vue.render(vnode, el);
|
|
10
|
-
function update(newProps) {
|
|
11
|
-
vnode = options.vue.createVNode(Comp, newProps);
|
|
12
|
-
if (vnode) {
|
|
13
|
-
vnode.appContext = options.appContext;
|
|
14
|
-
}
|
|
15
|
-
options.vue.render(vnode, el);
|
|
16
|
-
}
|
|
17
|
-
function destroy() {
|
|
18
|
-
options.vue.render(null, el);
|
|
19
|
-
if (el.parentNode) {
|
|
20
|
-
el.parentNode.removeChild(el);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return { vnode, update, destroy, el };
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=dynamicMount.js.map
|
|
@@ -1 +0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-
export function filterSections(sections, options) {
|
|
2
|
-
let filteredSections = sections;
|
|
3
|
-
if (options.includeSections && options.includeSections.length > 0) {
|
|
4
|
-
filteredSections = filteredSections.filter(section => options.includeSections.includes(section.type));
|
|
5
|
-
}
|
|
6
|
-
if (options.excludeSections && options.excludeSections.length > 0) {
|
|
7
|
-
filteredSections = filteredSections.filter(section => !options.excludeSections.includes(section.type));
|
|
8
|
-
}
|
|
9
|
-
return filteredSections;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=filterSections.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterSections.js","sourceRoot":"","sources":["../../../src/functions/vue/filterSections.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,cAAc,CAC5B,QAAsB,EACtB,OAA6B;IAE7B,IAAI,gBAAgB,GAAG,QAAQ,CAAA;IAG/B,IAAI,OAAO,CAAC,eAAe,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClE,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CACnD,OAAO,CAAC,eAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAChD,CAAA;IACH,CAAC;IAGD,IAAI,OAAO,CAAC,eAAe,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClE,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CACnD,CAAC,OAAO,CAAC,eAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CACjD,CAAA;IACH,CAAC;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isVNode.js","sourceRoot":"","sources":["../../../src/functions/vue/isVNode.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,OAAO,CAAC,OAAgB;IACtC,OAAO,CACL,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,KAAK,IAAI;QAChB,aAAa,IAAI,OAAO,CACzB,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isVueComponent.js","sourceRoot":"","sources":["../../../src/functions/vue/isVueComponent.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,OAAO,CACL,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,KAAK,IAAI;QAChB,CAAC,QAAQ,IAAI,OAAO,IAAI,OAAO,IAAI,OAAO,IAAI,UAAU,IAAI,OAAO,CAAC,CACrE,CAAA;AACH,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export function parseVueFile(code) {
|
|
2
|
-
const sections = [];
|
|
3
|
-
const lines = code.split('\n');
|
|
4
|
-
let currentSection = null;
|
|
5
|
-
let sectionStartLine = 0;
|
|
6
|
-
let sectionContent = [];
|
|
7
|
-
for (let i = 0; i < lines.length; i++) {
|
|
8
|
-
const line = lines[i];
|
|
9
|
-
const trimmedLine = line.trim();
|
|
10
|
-
if (trimmedLine.startsWith('<template') && !trimmedLine.includes('</template>')) {
|
|
11
|
-
saveSectionIfValid(sections, currentSection, sectionStartLine, sectionContent);
|
|
12
|
-
currentSection = 'template';
|
|
13
|
-
sectionStartLine = i + 1;
|
|
14
|
-
sectionContent = [];
|
|
15
|
-
}
|
|
16
|
-
else if (trimmedLine.startsWith('<script') && !trimmedLine.includes('</script>')) {
|
|
17
|
-
saveSectionIfValid(sections, currentSection, sectionStartLine, sectionContent);
|
|
18
|
-
currentSection = 'script';
|
|
19
|
-
sectionStartLine = i + 1;
|
|
20
|
-
sectionContent = [];
|
|
21
|
-
}
|
|
22
|
-
else if (trimmedLine.startsWith('<style') && !trimmedLine.includes('</style>')) {
|
|
23
|
-
saveSectionIfValid(sections, currentSection, sectionStartLine, sectionContent);
|
|
24
|
-
currentSection = 'style';
|
|
25
|
-
sectionStartLine = i + 1;
|
|
26
|
-
sectionContent = [];
|
|
27
|
-
}
|
|
28
|
-
else if (trimmedLine === '</template>' ||
|
|
29
|
-
trimmedLine === '</script>' ||
|
|
30
|
-
trimmedLine === '</style>') {
|
|
31
|
-
if (currentSection) {
|
|
32
|
-
saveSectionIfValid(sections, currentSection, sectionStartLine, sectionContent);
|
|
33
|
-
currentSection = null;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
else if (currentSection) {
|
|
37
|
-
sectionContent.push(line);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
saveSectionIfValid(sections, currentSection, sectionStartLine, sectionContent);
|
|
41
|
-
return sections;
|
|
42
|
-
}
|
|
43
|
-
function saveSectionIfValid(sections, sectionType, startLine, content) {
|
|
44
|
-
if (sectionType && content.length > 0) {
|
|
45
|
-
sections.push({
|
|
46
|
-
type: sectionType,
|
|
47
|
-
content: content.join('\n'),
|
|
48
|
-
startLine,
|
|
49
|
-
endLine: startLine + content.length - 1
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=parseVueFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseVueFile.js","sourceRoot":"","sources":["../../../src/functions/vue/parseVueFile.ts"],"names":[],"mappings":"AAaA,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,MAAM,QAAQ,GAAiB,EAAE,CAAA;IACjC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAE9B,IAAI,cAAc,GAA0B,IAAI,CAAA;IAChD,IAAI,gBAAgB,GAAG,CAAC,CAAA;IACxB,IAAI,cAAc,GAAa,EAAE,CAAA;IAEjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC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H,CAAC;aAAM,IAAI,cAAc,EAAE,CAAC;YAC1B,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,CAAC;IACH,CAAC;IAGD,kBAAkB,CAAC,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAA;IAE9E,OAAO,QAAQ,CAAA;AACjB,CAAC;AAMD,SAAS,kBAAkB,CACzB,QAAsB,EACtB,WAAkC,EAClC,SAAiB,EACjB,OAAiB;IAEjB,IAAI,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtC,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3B,SAAS;YACT,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC;SACxC,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ColorReference } from '../../../types/color.d';
|
|
2
|
-
import type { VueProcessorDependencies, VueProcessingOptions } from '../../../types/vue.d';
|
|
3
|
-
export declare function processVueFile(code: string, filePath: string, dependencies: VueProcessorDependencies, options?: VueProcessingOptions): ColorReference[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { parseVueFile } from './parseVueFile';
|
|
2
|
-
import { extractColorsFromVueSection } from './extractColorsFromVueSection';
|
|
3
|
-
import { deduplicateColors } from './deduplicateColors';
|
|
4
|
-
export function processVueFile(code, filePath, dependencies, options = {}) {
|
|
5
|
-
const colors = [];
|
|
6
|
-
const globalColors = dependencies.extractColors(code, filePath, dependencies, options);
|
|
7
|
-
const sections = parseVueFile(code);
|
|
8
|
-
const filteredSections = filterVueSections(sections, options);
|
|
9
|
-
for (const section of filteredSections) {
|
|
10
|
-
const sectionColors = extractColorsFromVueSection(section, filePath, dependencies, options);
|
|
11
|
-
colors.push(...sectionColors);
|
|
12
|
-
}
|
|
13
|
-
const allColors = [...globalColors, ...colors];
|
|
14
|
-
return deduplicateColors(allColors);
|
|
15
|
-
}
|
|
16
|
-
function filterVueSections(sections, options) {
|
|
17
|
-
let filteredSections = sections;
|
|
18
|
-
if (options.includeSections && options.includeSections.length > 0) {
|
|
19
|
-
filteredSections = filteredSections.filter(section => options.includeSections.includes(section.type));
|
|
20
|
-
}
|
|
21
|
-
if (options.excludeSections && options.excludeSections.length > 0) {
|
|
22
|
-
filteredSections = filteredSections.filter(section => !options.excludeSections.includes(section.type));
|
|
23
|
-
}
|
|
24
|
-
return filteredSections;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=processVueFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"processVueFile.js","sourceRoot":"","sources":["../../../src/functions/vue/processVueFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAE3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAkCvD,MAAM,UAAU,cAAc,CAC5B,IAAY,EACZ,QAAgB,EAChB,YAAsC,EACtC,UAAgC,EAAE;IAElC,MAAM,MAAM,GAAqB,EAAE,CAAA;IAGnC,MAAM,YAAY,GAAG,YAAY,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,CAAC,CAAA;IAGtF,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;IAGnC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IAG7D,KAAK,MAAM,OAAO,IAAI,gBAAgB,EAAE,CAAC;QACvC,MAAM,aAAa,GAAG,2BAA2B,CAC/C,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,OAAO,CACR,CAAA;QACD,MAAM,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAA;IAC/B,CAAC;IAGD,MAAM,SAAS,GAAG,CAAC,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC,CAAA;IAC9C,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAA;AACrC,CAAC;AAMD,SAAS,iBAAiB,CACxB,QAAsB,EACtB,OAA6B;IAE7B,IAAI,gBAAgB,GAAG,QAAQ,CAAA;IAG/B,IAAI,OAAO,CAAC,eAAe,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClE,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CACnD,OAAO,CAAC,eAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAChD,CAAA;IACH,CAAC;IAGD,IAAI,OAAO,CAAC,eAAe,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClE,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CACnD,CAAC,OAAO,CAAC,eAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CACjD,CAAA;IACH,CAAC;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export function saveVueSection(sections, sectionType, startLine, content) {
|
|
2
|
-
if (sectionType && content.length > 0) {
|
|
3
|
-
sections.push({
|
|
4
|
-
type: sectionType,
|
|
5
|
-
content: content.join('\n'),
|
|
6
|
-
startLine,
|
|
7
|
-
endLine: startLine + content.length - 1
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=saveVueSection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saveVueSection.js","sourceRoot":"","sources":["../../../src/functions/vue/saveVueSection.ts"],"names":[],"mappings":"AA6BA,MAAM,UAAU,cAAc,CAC5B,QAAsB,EACtB,WAAkC,EAClC,SAAiB,EACjB,OAAiB;IAEjB,IAAI,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtC,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3B,SAAS;YACT,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC;SACxC,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export const wxDownloadFile = (url, fileName, wx) => {
|
|
2
|
-
return new Promise((resolve, reject) => {
|
|
3
|
-
if (!url || typeof url !== 'string') {
|
|
4
|
-
reject(new Error('Download URL cannot be empty and must be a string'));
|
|
5
|
-
return;
|
|
6
|
-
}
|
|
7
|
-
if (!fileName || typeof fileName !== 'string') {
|
|
8
|
-
reject(new Error('File name cannot be empty and must be a string'));
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
const downloadOptions = {
|
|
12
|
-
url,
|
|
13
|
-
filePath: `${wx.env.USER_DATA_PATH}/${fileName}`,
|
|
14
|
-
success: (res) => {
|
|
15
|
-
if (res.statusCode === 200) {
|
|
16
|
-
resolve(res.filePath);
|
|
17
|
-
}
|
|
18
|
-
else if (res.statusCode === 404) {
|
|
19
|
-
reject(new Error(`File not found, please check the download URL: ${url}`));
|
|
20
|
-
}
|
|
21
|
-
else if (res.statusCode >= 400 && res.statusCode < 500) {
|
|
22
|
-
reject(new Error(`Client error, status code: ${res.statusCode}`));
|
|
23
|
-
}
|
|
24
|
-
else if (res.statusCode >= 500) {
|
|
25
|
-
reject(new Error(`Server error, status code: ${res.statusCode}`));
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
reject(new Error(`Download failed, status code: ${res.statusCode}`));
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
fail: (err) => {
|
|
32
|
-
const errorMessage = typeof err === 'string' ? err : err?.errMsg || 'Unknown error';
|
|
33
|
-
reject(new Error(`File download failed: ${errorMessage}`));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
wx.downloadFile(downloadOptions);
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=downloadFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"downloadFile.js","sourceRoot":"","sources":["../../../../src/functions/wechat/miniapp/downloadFile.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,QAAgB,EAAE,EAAM,EAAmB,EAAE;IACvF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAErC,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YACpC,MAAM,CAAC,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC,CAAC;YACvE,OAAO;QACT,CAAC;QAED,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC9C,MAAM,CAAC,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC,CAAC;YACpE,OAAO;QACT,CAAC;QAED,MAAM,eAAe,GAAG;YACtB,GAAG;YAEH,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,cAAc,IAAI,QAAQ,EAAE;YAChD,OAAO,EAAE,CAAC,GAA6C,EAAE,EAAE;gBACzD,IAAI,GAAG,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;oBAC3B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACxB,CAAC;qBAAM,IAAI,GAAG,CAAC,UAAU,KAAK,GAAG,EAAE,CAAC;oBAClC,MAAM,CAAC,IAAI,KAAK,CAAC,kDAAkD,GAAG,EAAE,CAAC,CAAC,CAAC;gBAC7E,CAAC;qBAAM,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,GAAG,GAAG,EAAE,CAAC;oBACzD,MAAM,CAAC,IAAI,KAAK,CAAC,8BAA8B,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;gBACpE,CAAC;qBAAM,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,EAAE,CAAC;oBACjC,MAAM,CAAC,IAAI,KAAK,CAAC,8BAA8B,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;gBACpE,CAAC;qBAAM,CAAC;oBACN,MAAM,CAAC,IAAI,KAAK,CAAC,iCAAiC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;gBACvE,CAAC;YACH,CAAC;YACD,IAAI,EAAE,CAAC,GAAQ,EAAE,EAAE;gBACjB,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,IAAI,eAAe,CAAC;gBACpF,MAAM,CAAC,IAAI,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAC,CAAC;YAC7D,CAAC;SACF,CAAC;QAEF,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SystemDependencies } from '../../../types/android-build.d';
|
|
2
|
-
import type { FileSystem } from '../../../references/node.d';
|
|
3
|
-
export declare function modifyXml(xmlFilePath: string, keyValuePairs: Record<string, string>, fs: FileSystem, deps: SystemDependencies): Promise<{
|
|
4
|
-
success: boolean;
|
|
5
|
-
error: string;
|
|
6
|
-
message?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
success: boolean;
|
|
9
|
-
message: string;
|
|
10
|
-
error?: undefined;
|
|
11
|
-
}>;
|