zcw-shared 1.7.0 → 1.9.0
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/README.md +512 -512
- package/assets/logo-colorful.svg +18 -18
- package/assets/logo-name.svg +7 -7
- package/assets/logo-transparent.svg +14 -14
- package/assets/logo.svg +8 -8
- package/dist/constants/softwareConfigs.d.ts +14 -0
- package/dist/constants/softwareConfigs.js +156 -0
- package/dist/constants/softwareConfigs.js.map +1 -0
- package/dist/functions/ag-grid/generateLicense.d.ts +3 -0
- package/dist/functions/ag-grid/generateLicense.js +12 -0
- package/dist/functions/ag-grid/generateLicense.js.map +1 -0
- package/dist/functions/altool/createAltoolClient.d.ts +21 -0
- package/dist/functions/altool/createAltoolClient.js +53 -0
- package/dist/functions/altool/createAltoolClient.js.map +1 -0
- package/dist/functions/altool/getAltoolAuth.d.ts +2 -0
- package/dist/functions/altool/getAltoolAuth.js +8 -0
- package/dist/functions/altool/getAltoolAuth.js.map +1 -0
- package/dist/functions/altool/getAppInfo.d.ts +13 -0
- package/dist/functions/altool/getAppInfo.js +39 -0
- package/dist/functions/altool/getAppInfo.js.map +1 -0
- package/dist/functions/altool/index.d.ts +10 -0
- package/dist/functions/altool/index.js +6 -0
- package/dist/functions/altool/index.js.map +1 -0
- package/dist/functions/altool/isApiKeyAuth.d.ts +2 -0
- package/dist/functions/altool/isApiKeyAuth.js +4 -0
- package/dist/functions/altool/isApiKeyAuth.js.map +1 -0
- package/dist/functions/altool/isCredentialsAuth.d.ts +2 -0
- package/dist/functions/altool/isCredentialsAuth.js +4 -0
- package/dist/functions/altool/isCredentialsAuth.js.map +1 -0
- package/dist/functions/altool/parseAppInfoOutput.d.ts +2 -0
- package/dist/functions/altool/parseAppInfoOutput.js +55 -0
- package/dist/functions/altool/parseAppInfoOutput.js.map +1 -0
- package/dist/functions/altool/parseValidationOutput.d.ts +6 -0
- package/dist/functions/altool/parseValidationOutput.js +21 -0
- package/dist/functions/altool/parseValidationOutput.js.map +1 -0
- package/dist/functions/altool/types.d.ts +26 -0
- package/dist/functions/altool/types.js +7 -0
- package/dist/functions/altool/types.js.map +1 -0
- package/dist/functions/altool/uploadApp.d.ts +6 -0
- package/dist/functions/altool/uploadApp.js +36 -0
- package/dist/functions/altool/uploadApp.js.map +1 -0
- package/dist/functions/altool/validateApp.d.ts +17 -0
- package/dist/functions/altool/validateApp.js +40 -0
- package/dist/functions/altool/validateApp.js.map +1 -0
- package/dist/functions/android/buildProject.d.ts +2 -1
- package/dist/functions/android/buildProject.js +32 -6
- package/dist/functions/android/buildProject.js.map +1 -1
- package/dist/functions/android/modifyGradle.js +10 -10
- package/dist/functions/base64/strToBase64.d.ts +2 -0
- package/dist/functions/base64/strToBase64.js +6 -0
- package/dist/functions/base64/strToBase64.js.map +1 -0
- package/dist/functions/color-converter/COLOR_PATTERNS.d.ts +2 -0
- package/dist/functions/color-converter/COLOR_PATTERNS.js +9 -0
- package/dist/functions/color-converter/COLOR_PATTERNS.js.map +1 -0
- package/dist/functions/color-converter/colorPatterns.d.ts +4 -0
- package/dist/functions/color-converter/colorPatterns.js +41 -0
- package/dist/functions/color-converter/colorPatterns.js.map +1 -0
- package/dist/functions/color-converter/convertColor.d.ts +6 -0
- package/dist/functions/color-converter/convertColor.js +12 -0
- package/dist/functions/color-converter/convertColor.js.map +1 -0
- package/dist/functions/color-converter/createColorReference.d.ts +2 -0
- package/dist/functions/color-converter/createColorReference.js +12 -0
- package/dist/functions/color-converter/createColorReference.js.map +1 -0
- package/dist/functions/color-converter/detectColorFormat.d.ts +2 -0
- package/dist/functions/color-converter/detectColorFormat.js +19 -0
- package/dist/functions/color-converter/detectColorFormat.js.map +1 -0
- package/dist/functions/color-converter/extractColors.d.ts +3 -0
- package/dist/functions/color-converter/extractColors.js +16 -0
- package/dist/functions/color-converter/extractColors.js.map +1 -0
- package/dist/functions/color-converter/extractColorsFromLine.d.ts +2 -0
- package/dist/functions/color-converter/extractColorsFromLine.js +18 -0
- package/dist/functions/color-converter/extractColorsFromLine.js.map +1 -0
- package/dist/functions/color-converter/extractColorsGeneric.d.ts +2 -0
- package/dist/functions/color-converter/extractColorsGeneric.js +12 -0
- package/dist/functions/color-converter/extractColorsGeneric.js.map +1 -0
- package/dist/functions/color-converter/extractCssVariableReferences.d.ts +2 -0
- package/dist/functions/color-converter/extractCssVariableReferences.js +15 -0
- package/dist/functions/color-converter/extractCssVariableReferences.js.map +1 -0
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.d.ts +2 -0
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.js +15 -0
- package/dist/functions/color-converter/extractThirdPartyVariableReferences.js.map +1 -0
- package/dist/functions/color-converter/formatColorOutput.d.ts +5 -0
- package/dist/functions/color-converter/formatColorOutput.js +48 -0
- package/dist/functions/color-converter/formatColorOutput.js.map +1 -0
- package/dist/functions/color-converter/getColorPatterns.d.ts +2 -0
- package/dist/functions/color-converter/getColorPatterns.js +11 -0
- package/dist/functions/color-converter/getColorPatterns.js.map +1 -0
- package/dist/functions/color-converter/getNamedColorMap.d.ts +2 -0
- package/dist/functions/color-converter/getNamedColorMap.js +19 -0
- package/dist/functions/color-converter/getNamedColorMap.js.map +1 -0
- package/dist/functions/color-converter/hexToRgb.d.ts +2 -0
- package/dist/functions/color-converter/hexToRgb.js +42 -0
- package/dist/functions/color-converter/hexToRgb.js.map +1 -0
- package/dist/functions/color-converter/hslToRgb.d.ts +2 -0
- package/dist/functions/color-converter/hslToRgb.js +78 -0
- package/dist/functions/color-converter/hslToRgb.js.map +1 -0
- package/dist/functions/color-converter/hslToRgbInternal.d.ts +2 -0
- package/dist/functions/color-converter/hslToRgbInternal.js +24 -0
- package/dist/functions/color-converter/hslToRgbInternal.js.map +1 -0
- package/dist/functions/color-converter/hueToRgb.d.ts +1 -0
- package/dist/functions/color-converter/hueToRgb.js +14 -0
- package/dist/functions/color-converter/hueToRgb.js.map +1 -0
- package/dist/functions/color-converter/isColorValue.d.ts +2 -0
- package/dist/functions/color-converter/isColorValue.js +79 -0
- package/dist/functions/color-converter/isColorValue.js.map +1 -0
- package/dist/functions/color-converter/isValidColorValue.d.ts +1 -0
- package/dist/functions/color-converter/isValidColorValue.js +4 -0
- package/dist/functions/color-converter/isValidColorValue.js.map +1 -0
- package/dist/functions/color-converter/isValidHslColor.d.ts +2 -0
- package/dist/functions/color-converter/isValidHslColor.js +14 -0
- package/dist/functions/color-converter/isValidHslColor.js.map +1 -0
- package/dist/functions/color-converter/isValidRgbColor.d.ts +2 -0
- package/dist/functions/color-converter/isValidRgbColor.js +14 -0
- package/dist/functions/color-converter/isValidRgbColor.js.map +1 -0
- package/dist/functions/color-converter/normalizeColor.d.ts +1 -0
- package/dist/functions/color-converter/normalizeColor.js +49 -0
- package/dist/functions/color-converter/normalizeColor.js.map +1 -0
- package/dist/functions/color-converter/normalizeColorInput.d.ts +6 -0
- package/dist/functions/color-converter/normalizeColorInput.js +94 -0
- package/dist/functions/color-converter/normalizeColorInput.js.map +1 -0
- package/dist/functions/color-converter/parseColorString.d.ts +12 -0
- package/dist/functions/color-converter/parseColorString.js +89 -0
- package/dist/functions/color-converter/parseColorString.js.map +1 -0
- package/dist/functions/color-converter/parseCssVariables.d.ts +2 -0
- package/dist/functions/color-converter/parseCssVariables.js +19 -0
- package/dist/functions/color-converter/parseCssVariables.js.map +1 -0
- package/dist/functions/color-converter/parseHexColor.d.ts +6 -0
- package/dist/functions/color-converter/parseHexColor.js +42 -0
- package/dist/functions/color-converter/parseHexColor.js.map +1 -0
- package/dist/functions/color-converter/rgbToHex.d.ts +2 -0
- package/dist/functions/color-converter/rgbToHex.js +65 -0
- package/dist/functions/color-converter/rgbToHex.js.map +1 -0
- package/dist/functions/color-converter/rgbToHslInternal.d.ts +2 -0
- package/dist/functions/color-converter/rgbToHslInternal.js +31 -0
- package/dist/functions/color-converter/rgbToHslInternal.js.map +1 -0
- package/dist/functions/color-converter/standardizeColor.d.ts +1 -0
- package/dist/functions/color-converter/standardizeColor.js +147 -0
- package/dist/functions/color-converter/standardizeColor.js.map +1 -0
- package/dist/functions/desensitize/desensitizeName.d.ts +1 -0
- package/dist/functions/desensitize/desensitizeName.js +8 -0
- package/dist/functions/desensitize/desensitizeName.js.map +1 -0
- package/dist/functions/desensitize/desensitizePhone.d.ts +1 -0
- package/dist/functions/desensitize/desensitizePhone.js +8 -0
- package/dist/functions/desensitize/desensitizePhone.js.map +1 -0
- package/dist/functions/dom/getViewportSize.d.ts +5 -0
- package/dist/functions/dom/getViewportSize.js +7 -0
- package/dist/functions/dom/getViewportSize.js.map +1 -0
- package/dist/functions/software/buildPathExecutables.d.ts +1 -0
- package/dist/functions/software/buildPathExecutables.js +14 -0
- package/dist/functions/software/buildPathExecutables.js.map +1 -0
- package/dist/functions/software/buildSoftwarePaths.d.ts +2 -0
- package/dist/functions/software/buildSoftwarePaths.js +22 -0
- package/dist/functions/software/buildSoftwarePaths.js.map +1 -0
- package/dist/functions/software/createConfigGenerator.d.ts +8 -0
- package/dist/functions/software/createConfigGenerator.js +13 -0
- package/dist/functions/software/createConfigGenerator.js.map +1 -0
- package/dist/functions/software/detectPlatform.d.ts +2 -0
- package/dist/functions/software/detectPlatform.js +9 -0
- package/dist/functions/software/detectPlatform.js.map +1 -0
- package/dist/functions/software/find.d.ts +2 -0
- package/dist/functions/software/find.js +12 -0
- package/dist/functions/software/find.js.map +1 -0
- package/dist/functions/software/findSoftware.js.map +1 -1
- package/dist/functions/software/findSoftwareWithGenerator.d.ts +3 -0
- package/dist/functions/software/findSoftwareWithGenerator.js +8 -0
- package/dist/functions/software/findSoftwareWithGenerator.js.map +1 -0
- package/dist/functions/software/getConfigGenerator.d.ts +2 -0
- package/dist/functions/software/getConfigGenerator.js +10 -0
- package/dist/functions/software/getConfigGenerator.js.map +1 -0
- package/dist/functions/software/getEnvironmentSoftwarePath.d.ts +1 -0
- package/dist/functions/software/getEnvironmentSoftwarePath.js +8 -0
- package/dist/functions/software/getEnvironmentSoftwarePath.js.map +1 -0
- package/dist/functions/software/getSupportedSoftware.d.ts +1 -0
- package/dist/functions/software/getSupportedSoftware.js +5 -0
- package/dist/functions/software/getSupportedSoftware.js.map +1 -0
- package/dist/functions/software/parseEnvironmentPaths.d.ts +1 -0
- package/dist/functions/software/parseEnvironmentPaths.js +11 -0
- package/dist/functions/software/parseEnvironmentPaths.js.map +1 -0
- package/dist/functions/software/softwareConfigs.d.ts +2 -0
- package/dist/functions/software/softwareConfigs.js +148 -0
- package/dist/functions/software/softwareConfigs.js.map +1 -0
- package/dist/functions/software/softwareNameMap.d.ts +1 -0
- package/dist/functions/software/softwareNameMap.js +9 -0
- package/dist/functions/software/softwareNameMap.js.map +1 -0
- package/dist/functions/software/types.d.ts +11 -0
- package/dist/functions/software/types.js +2 -0
- package/dist/functions/software/types.js.map +1 -0
- package/dist/functions/string/base64.d.ts +2 -0
- package/dist/functions/string/base64.js +6 -0
- package/dist/functions/string/base64.js.map +1 -0
- package/dist/functions/string/camelCase.d.ts +1 -0
- package/dist/functions/string/camelCase.js +8 -0
- package/dist/functions/string/camelCase.js.map +1 -0
- package/dist/functions/string/capitalize.d.ts +1 -0
- package/dist/functions/string/capitalize.js +6 -0
- package/dist/functions/string/capitalize.js.map +1 -0
- package/dist/functions/string/caseConverter.d.ts +19 -0
- package/dist/functions/string/caseConverter.js +94 -0
- package/dist/functions/string/caseConverter.js.map +1 -0
- package/dist/functions/string/desensitize.d.ts +13 -0
- package/dist/functions/string/desensitize.js +107 -0
- package/dist/functions/string/desensitize.js.map +1 -0
- package/dist/functions/string/escape.d.ts +1 -0
- package/dist/functions/string/escape.js +13 -0
- package/dist/functions/string/escape.js.map +1 -0
- package/dist/functions/string/htmlEscape.d.ts +20 -0
- package/dist/functions/string/htmlEscape.js +80 -0
- package/dist/functions/string/htmlEscape.js.map +1 -0
- package/dist/functions/string/kebabCase.d.ts +1 -0
- package/dist/functions/string/kebabCase.js +10 -0
- package/dist/functions/string/kebabCase.js.map +1 -0
- package/dist/functions/string/levenshtein.d.ts +1 -0
- package/dist/functions/string/levenshtein.js +27 -0
- package/dist/functions/string/levenshtein.js.map +1 -0
- package/dist/functions/string/mask.d.ts +1 -0
- package/dist/functions/string/mask.js +40 -0
- package/dist/functions/string/mask.js.map +1 -0
- package/dist/functions/string/normalize.d.ts +8 -0
- package/dist/functions/string/normalize.js +37 -0
- package/dist/functions/string/normalize.js.map +1 -0
- package/dist/functions/string/pad.d.ts +13 -0
- package/dist/functions/string/pad.js +50 -0
- package/dist/functions/string/pad.js.map +1 -0
- package/dist/functions/string/padEnd.d.ts +1 -0
- package/dist/functions/string/padEnd.js +8 -0
- package/dist/functions/string/padEnd.js.map +1 -0
- package/dist/functions/string/padStart.d.ts +1 -0
- package/dist/functions/string/padStart.js +8 -0
- package/dist/functions/string/padStart.js.map +1 -0
- package/dist/functions/string/palindrome.d.ts +3 -0
- package/dist/functions/string/palindrome.js +15 -0
- package/dist/functions/string/palindrome.js.map +1 -0
- package/dist/functions/string/pascalCase.d.ts +1 -0
- package/dist/functions/string/pascalCase.js +8 -0
- package/dist/functions/string/pascalCase.js.map +1 -0
- package/dist/functions/string/similarity.d.ts +1 -0
- package/dist/functions/string/similarity.js +13 -0
- package/dist/functions/string/similarity.js.map +1 -0
- package/dist/functions/string/snakeCase.d.ts +1 -0
- package/dist/functions/string/snakeCase.js +10 -0
- package/dist/functions/string/snakeCase.js.map +1 -0
- package/dist/functions/string/template.d.ts +4 -0
- package/dist/functions/string/template.js +21 -0
- package/dist/functions/string/template.js.map +1 -0
- package/dist/functions/string/unescape.d.ts +1 -0
- package/dist/functions/string/unescape.js +13 -0
- package/dist/functions/string/unescape.js.map +1 -0
- package/dist/functions/string/wordCount.d.ts +5 -0
- package/dist/functions/string/wordCount.js +11 -0
- package/dist/functions/string/wordCount.js.map +1 -0
- package/dist/functions/tencent-cloud/getSecret.d.ts +6 -0
- package/dist/functions/tencent-cloud/getSecret.js +18 -0
- package/dist/functions/tencent-cloud/getSecret.js.map +1 -0
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.d.ts +13 -0
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js +175 -0
- package/dist/functions/uniapp/app-plus/androidProjectConfigSteps.js.map +1 -0
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.d.ts +19 -0
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.js +55 -0
- package/dist/functions/uniapp/app-plus/androidProjectStrategy.js.map +1 -0
- package/dist/functions/uniapp/app-plus/buildAndroidApp.d.ts +2 -2
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js +1 -0
- package/dist/functions/uniapp/app-plus/buildAndroidApp.js.map +1 -1
- package/dist/functions/uniapp/app-plus/buildAndroidProject.d.ts +3 -0
- package/dist/functions/uniapp/app-plus/buildAndroidProject.js +60 -0
- package/dist/functions/uniapp/app-plus/buildAndroidProject.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.d.ts +5 -0
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.js +51 -0
- package/dist/functions/uniapp/app-plus/configureAndroidManifest.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureAndroidProject.d.ts +3 -0
- package/dist/functions/uniapp/app-plus/configureAndroidProject.js +63 -0
- package/dist/functions/uniapp/app-plus/configureAndroidProject.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureBuildGradle.d.ts +9 -0
- package/dist/functions/uniapp/app-plus/configureBuildGradle.js +57 -0
- package/dist/functions/uniapp/app-plus/configureBuildGradle.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureDcloudControl.d.ts +5 -0
- package/dist/functions/uniapp/app-plus/configureDcloudControl.js +34 -0
- package/dist/functions/uniapp/app-plus/configureDcloudControl.js.map +1 -0
- package/dist/functions/uniapp/app-plus/configureStrings.d.ts +5 -0
- package/dist/functions/uniapp/app-plus/configureStrings.js +42 -0
- package/dist/functions/uniapp/app-plus/configureStrings.js.map +1 -0
- package/dist/functions/uniapp/app-plus/copyAppResources.d.ts +8 -0
- package/dist/functions/uniapp/app-plus/copyAppResources.js +25 -0
- package/dist/functions/uniapp/app-plus/copyAppResources.js.map +1 -0
- package/dist/functions/uniapp/app-plus/copyDirectory.d.ts +2 -0
- package/dist/functions/uniapp/app-plus/copyDirectory.js +18 -0
- package/dist/functions/uniapp/app-plus/copyDirectory.js.map +1 -0
- package/dist/functions/uniapp/app-plus/generateUniAppResources.d.ts +2 -0
- package/dist/functions/uniapp/app-plus/generateUniAppResources.js +35 -0
- package/dist/functions/uniapp/app-plus/generateUniAppResources.js.map +1 -0
- package/dist/functions/uniapp/app-plus/parseManifest.d.ts +14 -0
- package/dist/functions/uniapp/app-plus/parseManifest.js +44 -0
- package/dist/functions/uniapp/app-plus/parseManifest.js.map +1 -0
- package/dist/functions/uniapp/app-plus/validateOptions.d.ts +3 -0
- package/dist/functions/uniapp/app-plus/validateOptions.js +10 -0
- package/dist/functions/uniapp/app-plus/validateOptions.js.map +1 -0
- package/dist/functions/uniapp/waitForPages.d.ts +3 -0
- package/dist/functions/uniapp/waitForPages.js +20 -0
- package/dist/functions/uniapp/waitForPages.js.map +1 -0
- package/dist/functions/utils/compose.d.ts +1 -0
- package/dist/functions/utils/compose.js +10 -0
- package/dist/functions/utils/compose.js.map +1 -0
- package/dist/functions/utils/cond.d.ts +1 -0
- package/dist/functions/utils/cond.js +15 -0
- package/dist/functions/utils/cond.js.map +1 -0
- package/dist/functions/utils/curry.d.ts +1 -0
- package/dist/functions/utils/curry.js +13 -0
- package/dist/functions/utils/curry.js.map +1 -0
- package/dist/functions/utils/debounce.d.ts +1 -0
- package/dist/functions/utils/debounce.js +13 -0
- package/dist/functions/utils/debounce.js.map +1 -0
- package/dist/functions/utils/evolve.d.ts +3 -0
- package/dist/functions/utils/evolve.js +15 -0
- package/dist/functions/utils/evolve.js.map +1 -0
- package/dist/functions/utils/flow.d.ts +1 -0
- package/dist/functions/utils/flow.js +14 -0
- package/dist/functions/utils/flow.js.map +1 -0
- package/dist/functions/utils/generateExports.js +1 -1
- package/dist/functions/utils/generateExports.js.map +1 -1
- package/dist/functions/utils/isType.d.ts +11 -0
- package/dist/functions/utils/isType.js +30 -0
- package/dist/functions/utils/isType.js.map +1 -0
- package/dist/functions/utils/memoize.d.ts +1 -0
- package/dist/functions/utils/memoize.js +13 -0
- package/dist/functions/utils/memoize.js.map +1 -0
- package/dist/functions/utils/once.d.ts +1 -0
- package/dist/functions/utils/once.js +13 -0
- package/dist/functions/utils/once.js.map +1 -0
- package/dist/functions/utils/partial.d.ts +1 -0
- package/dist/functions/utils/partial.js +13 -0
- package/dist/functions/utils/partial.js.map +1 -0
- package/dist/functions/utils/pipe.d.ts +1 -0
- package/dist/functions/utils/pipe.js +10 -0
- package/dist/functions/utils/pipe.js.map +1 -0
- package/dist/functions/utils/retryWithBackoff.d.ts +9 -0
- package/dist/functions/utils/retryWithBackoff.js +30 -0
- package/dist/functions/utils/retryWithBackoff.js.map +1 -0
- package/dist/functions/utils/tap.d.ts +1 -0
- package/dist/functions/utils/tap.js +14 -0
- package/dist/functions/utils/tap.js.map +1 -0
- package/dist/functions/utils/throttle.d.ts +1 -0
- package/dist/functions/utils/throttle.js +11 -0
- package/dist/functions/utils/throttle.js.map +1 -0
- package/dist/functions/utils/until.d.ts +1 -0
- package/dist/functions/utils/until.js +10 -0
- package/dist/functions/utils/until.js.map +1 -0
- package/dist/functions/utils/validate.d.ts +8 -0
- package/dist/functions/utils/validate.js +45 -0
- package/dist/functions/utils/validate.js.map +1 -0
- package/dist/functions/utils/walk.d.ts +11 -0
- package/dist/functions/utils/walk.js +27 -0
- package/dist/functions/utils/walk.js.map +1 -0
- package/dist/functions/vue/checkVueType.d.ts +8 -0
- package/dist/functions/vue/checkVueType.js +29 -0
- package/dist/functions/vue/checkVueType.js.map +1 -0
- package/dist/functions/vue/deduplicateColors.d.ts +2 -0
- package/dist/functions/vue/deduplicateColors.js +13 -0
- package/dist/functions/vue/deduplicateColors.js.map +1 -0
- package/dist/functions/vue/dynamicMount.d.ts +15 -0
- package/dist/functions/vue/dynamicMount.js +25 -0
- package/dist/functions/vue/dynamicMount.js.map +1 -0
- package/dist/functions/vue/filterSections.js +11 -0
- package/dist/functions/vue/filterSections.js.map +1 -0
- package/dist/functions/vue/isVNode.d.ts +2 -0
- package/dist/functions/vue/isVNode.js +6 -0
- package/dist/functions/vue/isVNode.js.map +1 -0
- package/dist/functions/vue/isVueComponent.d.ts +2 -0
- package/dist/functions/vue/isVueComponent.js +6 -0
- package/dist/functions/vue/isVueComponent.js.map +1 -0
- package/dist/functions/vue/parseVueFile.js +53 -0
- package/dist/functions/vue/parseVueFile.js.map +1 -0
- package/dist/functions/vue/processVueFile.d.ts +3 -0
- package/dist/functions/vue/processVueFile.js +26 -0
- package/dist/functions/vue/processVueFile.js.map +1 -0
- package/dist/functions/vue/saveVueSection.d.ts +2 -0
- package/dist/functions/vue/saveVueSection.js +11 -0
- package/dist/functions/vue/saveVueSection.js.map +1 -0
- package/dist/functions/wechat/miniapp/downloadFile.d.ts +2 -0
- package/dist/functions/wechat/miniapp/downloadFile.js +39 -0
- package/dist/functions/wechat/miniapp/downloadFile.js.map +1 -0
- package/dist/hooks/useAi.d.ts +27 -0
- package/dist/hooks/useAi.js +163 -0
- package/dist/hooks/useAi.js.map +1 -0
- package/dist/hooks/useCache.d.ts +18 -0
- package/dist/hooks/useCache.js +82 -0
- package/dist/hooks/useCache.js.map +1 -0
- package/dist/hooks/useFetch.d.ts +3 -0
- package/dist/hooks/useFetch.js +154 -0
- package/dist/hooks/useFetch.js.map +1 -0
- package/dist/hooks/usePluginSystem.d.ts +11 -0
- package/dist/hooks/usePluginSystem.js +34 -0
- package/dist/hooks/usePluginSystem.js.map +1 -0
- package/dist/hooks/useRequest.d.ts +3 -0
- package/dist/hooks/useRequest.js +139 -0
- package/dist/hooks/useRequest.js.map +1 -0
- package/dist/hooks/useStorageWithIndexedDB.d.ts +2 -1
- package/dist/hooks/useStorageWithIndexedDB.js +1 -1
- package/dist/hooks/useStorageWithIndexedDB.js.map +1 -1
- package/dist/hooks/useWASM.d.ts +4 -0
- package/dist/hooks/useWASM.js +263 -0
- package/dist/hooks/useWASM.js.map +1 -0
- package/dist/hooks/useWorkerFunction.js +27 -27
- package/package.json +1 -1
- package/references/arraybuffer.d.ts +108 -108
- package/references/blob.d.ts +36 -36
- package/references/browser.d.ts +69 -69
- package/references/chrome.extension.d.ts +82 -82
- package/references/console.d.ts +24 -24
- package/references/crypto-js.d.ts +57 -57
- package/references/dom.d.ts +40 -40
- package/references/encoding.d.ts +23 -23
- package/references/fetch.d.ts +123 -123
- package/references/indexeddb.d.ts +48 -48
- package/references/json5.d.ts +21 -21
- package/references/location.d.ts +15 -15
- package/references/node.d.ts +121 -115
- package/references/sharp.d.ts +18 -18
- package/references/storage.d.ts +17 -17
- package/references/timer.d.ts +44 -44
- package/references/uniapp.d.ts +50 -50
- package/references/url.d.ts +55 -55
- package/references/vue.d.ts +85 -85
- package/references/webassembly.d.ts +100 -100
- package/references/wechat.d.ts +48 -48
- package/references/worker.d.ts +152 -152
- package/references/xml.d.ts +87 -88
- package/types/android-build.d.ts +60 -60
- package/types/color.d.ts +72 -72
- package/types/geometry.d.ts +28 -28
- package/types/platform.d.ts +3 -3
- package/types/software.d.ts +14 -14
- package/types/storage.d.ts +50 -50
- package/types/uniapp-android-build.d.ts +48 -48
- package/types/vue.d.ts +29 -29
- package/types/worker.d.ts +177 -177
package/assets/logo-colorful.svg
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<svg width="1024.000000" height="1024.000000" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
-
<desc>
|
|
3
|
-
Created with Pixso.
|
|
4
|
-
</desc>
|
|
5
|
-
<defs>
|
|
6
|
-
<clipPath id="clip2_7">
|
|
7
|
-
<rect id="logo-transparent.svg" width="1024.000000" height="1024.000000" fill="white" fill-opacity="0"/>
|
|
8
|
-
</clipPath>
|
|
9
|
-
<linearGradient x1="211.999863" y1="57.000076" x2="666.000061" y2="722.499939" id="paint_linear_2_12_0" gradientUnits="userSpaceOnUse">
|
|
10
|
-
<stop offset="0.003135" stop-color="#F41F1F"/>
|
|
11
|
-
<stop offset="0.488260" stop-color="#FF5340"/>
|
|
12
|
-
<stop offset="1.000000" stop-color="#FF68CF"/>
|
|
13
|
-
</linearGradient>
|
|
14
|
-
</defs>
|
|
15
|
-
<g clip-path="url(#clip2_7)">
|
|
16
|
-
<path id="矢量 1" d="M701.17 222.36L406.96 142L287 462.9L737 492.76L530.71 881L287 643.71" stroke="url(#paint_linear_2_12_0)" stroke-opacity="1.000000" stroke-width="120.000000"/>
|
|
17
|
-
</g>
|
|
18
|
-
</svg>
|
|
1
|
+
<svg width="1024.000000" height="1024.000000" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<desc>
|
|
3
|
+
Created with Pixso.
|
|
4
|
+
</desc>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip2_7">
|
|
7
|
+
<rect id="logo-transparent.svg" width="1024.000000" height="1024.000000" fill="white" fill-opacity="0"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
<linearGradient x1="211.999863" y1="57.000076" x2="666.000061" y2="722.499939" id="paint_linear_2_12_0" gradientUnits="userSpaceOnUse">
|
|
10
|
+
<stop offset="0.003135" stop-color="#F41F1F"/>
|
|
11
|
+
<stop offset="0.488260" stop-color="#FF5340"/>
|
|
12
|
+
<stop offset="1.000000" stop-color="#FF68CF"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
</defs>
|
|
15
|
+
<g clip-path="url(#clip2_7)">
|
|
16
|
+
<path id="矢量 1" d="M701.17 222.36L406.96 142L287 462.9L737 492.76L530.71 881L287 643.71" stroke="url(#paint_linear_2_12_0)" stroke-opacity="1.000000" stroke-width="120.000000"/>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
package/assets/logo-name.svg
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<svg width="226.605591" height="69.890625" viewBox="0 0 226.606 69.8906" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
-
<desc>
|
|
3
|
-
Created with Pixso.
|
|
4
|
-
</desc>
|
|
5
|
-
<defs/>
|
|
6
|
-
<path id="矢量 2" d="M26.69 69.89Q18.53 69.89 12.46 66.44Q10.07 65.07 8.12 63.23L8.12 63.23Q5.15 60.41 3.21 56.5Q0 50.01 0 40.99Q0 31.63 3.39 23.74Q4.21 21.85 5.22 20.03Q8.54 14.09 13.32 9.77L13.32 9.77Q16.08 7.29 19.33 5.34Q22.9 3.19 26.75 1.91Q32.49 0 38.88 0Q43.59 0 48.32 1.07Q53.08 2.13 56.34 3.93L52.89 15.65Q44.34 11.81 37.24 11.81Q30.65 11.81 25.75 14.68L25.75 14.68Q25.02 15.11 24.32 15.6Q22.8 16.69 21.49 17.99L21.49 17.99Q18.22 21.23 16.26 25.8Q13.54 32.17 13.54 39.84Q13.54 50.37 18.75 54.83Q22.56 58.1 29.17 58.1Q36.28 58.1 46.07 54.25L45.39 65.95Q41.57 67.78 36.42 68.83Q31.28 69.89 26.69 69.89ZM55.26 65.9L55.26 65.9L55.26 65.9Q54.3 65.47 53.36 64.99L57.2 50.97Q60.67 54.07 65.5 56.08Q70.35 58.1 76.21 58.1Q84.85 58.1 87.47 54.13L87.47 54.13Q88.61 52.4 88.61 49.92Q88.61 47.16 87.34 45.24Q86.71 44.29 85.77 43.54Q82.94 41.29 75.84 38.78Q70.35 36.86 67 34.71Q64.53 33.12 62.92 30.91L62.92 30.91L62.91 30.9Q62.34 30.11 61.87 29.25Q60.09 25.92 60.09 20.92Q60.09 16.94 61.48 13.52L61.48 13.52Q62.2 11.76 63.3 10.14Q63.76 9.46 64.28 8.82L64.28 8.82L64.28 8.82L64.28 8.82Q67.36 5 72.32 2.69Q78.13 0 85.82 0Q92.34 0 97.92 1.54Q103.49 3.09 106.94 5.2L103.49 17.76Q98.2 14.6 93.98 13.17Q89.76 11.71 84.86 11.71Q79.49 11.71 76.17 13.64Q74.69 14.49 73.87 15.77L73.87 15.77Q72.86 17.36 72.86 19.59Q72.86 21.42 73.66 22.79L73.66 22.79Q74.32 23.92 75.53 24.72Q78.23 26.5 84.09 28.52Q90.04 30.53 93.79 32.46Q94.81 32.98 95.75 33.63L95.75 33.63L95.75 33.63L95.75 33.63Q98.24 35.36 100.12 37.99Q102.72 41.57 102.72 47.34Q102.72 49.99 102.14 52.52L102.14 52.52Q101.46 55.47 99.98 58.24Q97.24 63.37 90.95 66.63Q84.67 69.89 74.78 69.89Q64.13 69.89 55.26 65.9ZM113.75 55.02L134.21 55.02L133.35 61.18L112.93 61.18L112.13 66.31L139.23 66.31Q139.81 66.31 140.35 66.15L140.35 66.15Q141.21 65.9 141.96 65.25Q142.62 64.67 142.99 63.95L142.99 63.95Q143.29 63.35 143.38 62.64L147.22 35.59L116.45 35.59L113.75 55.02ZM173.9 55.02L153.44 55.02L156.14 35.59L186.91 35.59L183.07 62.64Q182.98 63.35 182.68 63.95Q182.31 64.67 181.65 65.25Q180.9 65.9 180.04 66.15Q179.5 66.31 178.92 66.31L151.82 66.31L152.62 61.18L173.04 61.18L173.9 55.02ZM193.13 55.02L213.59 55.02L212.73 61.18L192.31 61.18L191.51 66.31L218.61 66.31Q219.19 66.31 219.73 66.15Q220.59 65.9 221.34 65.25Q222 64.67 222.37 63.95Q222.67 63.35 222.76 62.64L226.6 35.59L195.83 35.59L193.13 55.02ZM124.65 49.89L126.01 40.66L136.27 40.66L134.96 49.89L124.65 49.89ZM165.7 40.66L164.34 49.89L174.65 49.89L175.96 40.66L165.7 40.66ZM204.03 49.89L205.39 40.66L215.65 40.66L214.34 49.89L204.03 49.89Z" fill="#000000" fill-opacity="1.000000" fill-rule="evenodd"/>
|
|
7
|
-
</svg>
|
|
1
|
+
<svg width="226.605591" height="69.890625" viewBox="0 0 226.606 69.8906" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<desc>
|
|
3
|
+
Created with Pixso.
|
|
4
|
+
</desc>
|
|
5
|
+
<defs/>
|
|
6
|
+
<path id="矢量 2" d="M26.69 69.89Q18.53 69.89 12.46 66.44Q10.07 65.07 8.12 63.23L8.12 63.23Q5.15 60.41 3.21 56.5Q0 50.01 0 40.99Q0 31.63 3.39 23.74Q4.21 21.85 5.22 20.03Q8.54 14.09 13.32 9.77L13.32 9.77Q16.08 7.29 19.33 5.34Q22.9 3.19 26.75 1.91Q32.49 0 38.88 0Q43.59 0 48.32 1.07Q53.08 2.13 56.34 3.93L52.89 15.65Q44.34 11.81 37.24 11.81Q30.65 11.81 25.75 14.68L25.75 14.68Q25.02 15.11 24.32 15.6Q22.8 16.69 21.49 17.99L21.49 17.99Q18.22 21.23 16.26 25.8Q13.54 32.17 13.54 39.84Q13.54 50.37 18.75 54.83Q22.56 58.1 29.17 58.1Q36.28 58.1 46.07 54.25L45.39 65.95Q41.57 67.78 36.42 68.83Q31.28 69.89 26.69 69.89ZM55.26 65.9L55.26 65.9L55.26 65.9Q54.3 65.47 53.36 64.99L57.2 50.97Q60.67 54.07 65.5 56.08Q70.35 58.1 76.21 58.1Q84.85 58.1 87.47 54.13L87.47 54.13Q88.61 52.4 88.61 49.92Q88.61 47.16 87.34 45.24Q86.71 44.29 85.77 43.54Q82.94 41.29 75.84 38.78Q70.35 36.86 67 34.71Q64.53 33.12 62.92 30.91L62.92 30.91L62.91 30.9Q62.34 30.11 61.87 29.25Q60.09 25.92 60.09 20.92Q60.09 16.94 61.48 13.52L61.48 13.52Q62.2 11.76 63.3 10.14Q63.76 9.46 64.28 8.82L64.28 8.82L64.28 8.82L64.28 8.82Q67.36 5 72.32 2.69Q78.13 0 85.82 0Q92.34 0 97.92 1.54Q103.49 3.09 106.94 5.2L103.49 17.76Q98.2 14.6 93.98 13.17Q89.76 11.71 84.86 11.71Q79.49 11.71 76.17 13.64Q74.69 14.49 73.87 15.77L73.87 15.77Q72.86 17.36 72.86 19.59Q72.86 21.42 73.66 22.79L73.66 22.79Q74.32 23.92 75.53 24.72Q78.23 26.5 84.09 28.52Q90.04 30.53 93.79 32.46Q94.81 32.98 95.75 33.63L95.75 33.63L95.75 33.63L95.75 33.63Q98.24 35.36 100.12 37.99Q102.72 41.57 102.72 47.34Q102.72 49.99 102.14 52.52L102.14 52.52Q101.46 55.47 99.98 58.24Q97.24 63.37 90.95 66.63Q84.67 69.89 74.78 69.89Q64.13 69.89 55.26 65.9ZM113.75 55.02L134.21 55.02L133.35 61.18L112.93 61.18L112.13 66.31L139.23 66.31Q139.81 66.31 140.35 66.15L140.35 66.15Q141.21 65.9 141.96 65.25Q142.62 64.67 142.99 63.95L142.99 63.95Q143.29 63.35 143.38 62.64L147.22 35.59L116.45 35.59L113.75 55.02ZM173.9 55.02L153.44 55.02L156.14 35.59L186.91 35.59L183.07 62.64Q182.98 63.35 182.68 63.95Q182.31 64.67 181.65 65.25Q180.9 65.9 180.04 66.15Q179.5 66.31 178.92 66.31L151.82 66.31L152.62 61.18L173.04 61.18L173.9 55.02ZM193.13 55.02L213.59 55.02L212.73 61.18L192.31 61.18L191.51 66.31L218.61 66.31Q219.19 66.31 219.73 66.15Q220.59 65.9 221.34 65.25Q222 64.67 222.37 63.95Q222.67 63.35 222.76 62.64L226.6 35.59L195.83 35.59L193.13 55.02ZM124.65 49.89L126.01 40.66L136.27 40.66L134.96 49.89L124.65 49.89ZM165.7 40.66L164.34 49.89L174.65 49.89L175.96 40.66L165.7 40.66ZM204.03 49.89L205.39 40.66L215.65 40.66L214.34 49.89L204.03 49.89Z" fill="#000000" fill-opacity="1.000000" fill-rule="evenodd"/>
|
|
7
|
+
</svg>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<svg width="1024.000000" height="1024.000000" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
-
<desc>
|
|
3
|
-
Created with Pixso.
|
|
4
|
-
</desc>
|
|
5
|
-
<defs>
|
|
6
|
-
<clipPath id="clip2_7">
|
|
7
|
-
<rect id="logo-transparent.svg" width="1024.000000" height="1024.000000" fill="white" fill-opacity="0"/>
|
|
8
|
-
</clipPath>
|
|
9
|
-
</defs>
|
|
10
|
-
<g clip-path="url(#clip2_7)">
|
|
11
|
-
<path id="矢量 1" d="" fill="#000000" fill-opacity="1.000000" fill-rule="nonzero"/>
|
|
12
|
-
<path id="矢量 1" d="M701.17 222.36L406.96 142L287 462.9L737 492.76L530.71 881L287 643.71" stroke="#FFFFFF" stroke-opacity="1.000000" stroke-width="120.000000"/>
|
|
13
|
-
</g>
|
|
14
|
-
</svg>
|
|
1
|
+
<svg width="1024.000000" height="1024.000000" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<desc>
|
|
3
|
+
Created with Pixso.
|
|
4
|
+
</desc>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip2_7">
|
|
7
|
+
<rect id="logo-transparent.svg" width="1024.000000" height="1024.000000" fill="white" fill-opacity="0"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
<g clip-path="url(#clip2_7)">
|
|
11
|
+
<path id="矢量 1" d="" fill="#000000" fill-opacity="1.000000" fill-rule="nonzero"/>
|
|
12
|
+
<path id="矢量 1" d="M701.17 222.36L406.96 142L287 462.9L737 492.76L530.71 881L287 643.71" stroke="#FFFFFF" stroke-opacity="1.000000" stroke-width="120.000000"/>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
package/assets/logo.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<svg width="1024.000000" height="1024.000000" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
-
<desc>
|
|
3
|
-
Created with Pixso.
|
|
4
|
-
</desc>
|
|
5
|
-
<defs/>
|
|
6
|
-
<rect id="矩形 1" width="1024.000000" height="1024.000000" fill="#1D90ED" fill-opacity="1.000000"/>
|
|
7
|
-
<path id="矢量 1" d="M686.5 246L415.5 172L305 467.5L719.5 495L529.5 852.5L305 634" stroke="#FFFFFF" stroke-opacity="1.000000" stroke-width="120.000000"/>
|
|
8
|
-
</svg>
|
|
1
|
+
<svg width="1024.000000" height="1024.000000" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<desc>
|
|
3
|
+
Created with Pixso.
|
|
4
|
+
</desc>
|
|
5
|
+
<defs/>
|
|
6
|
+
<rect id="矩形 1" width="1024.000000" height="1024.000000" fill="#1D90ED" fill-opacity="1.000000"/>
|
|
7
|
+
<path id="矢量 1" d="M686.5 246L415.5 172L305 467.5L719.5 495L529.5 852.5L305 634" stroke="#FFFFFF" stroke-opacity="1.000000" stroke-width="120.000000"/>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PlatformSoftwareConfig {
|
|
2
|
+
executable: string;
|
|
3
|
+
possiblePaths: string[];
|
|
4
|
+
userPaths: string[];
|
|
5
|
+
registryKey?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SoftwareConfigDefinition {
|
|
8
|
+
win32: PlatformSoftwareConfig;
|
|
9
|
+
darwin: PlatformSoftwareConfig;
|
|
10
|
+
linux: PlatformSoftwareConfig;
|
|
11
|
+
envVar: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SOFTWARE_CONFIGS: Record<string, SoftwareConfigDefinition>;
|
|
14
|
+
export declare const SOFTWARE_NAME_MAP: Record<string, string>;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export const SOFTWARE_CONFIGS = {
|
|
2
|
+
git: {
|
|
3
|
+
win32: {
|
|
4
|
+
executable: 'git.exe',
|
|
5
|
+
possiblePaths: [
|
|
6
|
+
'C:\\Program Files\\Git\\bin',
|
|
7
|
+
'C:\\Program Files (x86)\\Git\\bin'
|
|
8
|
+
],
|
|
9
|
+
userPaths: ['AppData\\Local\\Programs\\Git\\bin'],
|
|
10
|
+
registryKey: 'HKEY_LOCAL_MACHINE\\SOFTWARE\\GitForWindows'
|
|
11
|
+
},
|
|
12
|
+
darwin: {
|
|
13
|
+
executable: 'git',
|
|
14
|
+
possiblePaths: ['/usr/bin', '/usr/local/bin', '/opt/homebrew/bin'],
|
|
15
|
+
userPaths: ['~/.local/bin']
|
|
16
|
+
},
|
|
17
|
+
linux: {
|
|
18
|
+
executable: 'git',
|
|
19
|
+
possiblePaths: ['/usr/bin', '/usr/local/bin'],
|
|
20
|
+
userPaths: ['~/.local/bin']
|
|
21
|
+
},
|
|
22
|
+
envVar: 'GIT_PATH'
|
|
23
|
+
},
|
|
24
|
+
chrome: {
|
|
25
|
+
win32: {
|
|
26
|
+
executable: 'chrome.exe',
|
|
27
|
+
possiblePaths: [
|
|
28
|
+
'C:\\Program Files\\Google\\Chrome\\Application',
|
|
29
|
+
'C:\\Program Files (x86)\\Google\\Chrome\\Application'
|
|
30
|
+
],
|
|
31
|
+
userPaths: ['AppData\\Local\\Google\\Chrome\\Application'],
|
|
32
|
+
registryKey: 'HKEY_CURRENT_USER\\Software\\Google\\Chrome'
|
|
33
|
+
},
|
|
34
|
+
darwin: {
|
|
35
|
+
executable: 'Google Chrome',
|
|
36
|
+
possiblePaths: ['/Applications/Google Chrome.app/Contents/MacOS'],
|
|
37
|
+
userPaths: ['~/Applications/Google Chrome.app/Contents/MacOS']
|
|
38
|
+
},
|
|
39
|
+
linux: {
|
|
40
|
+
executable: 'google-chrome',
|
|
41
|
+
possiblePaths: ['/usr/bin', '/usr/local/bin', '/opt/google/chrome'],
|
|
42
|
+
userPaths: ['~/.local/bin']
|
|
43
|
+
},
|
|
44
|
+
envVar: 'CHROME_PATH'
|
|
45
|
+
},
|
|
46
|
+
nodejs: {
|
|
47
|
+
win32: {
|
|
48
|
+
executable: 'node.exe',
|
|
49
|
+
possiblePaths: [
|
|
50
|
+
'C:\\Program Files\\nodejs',
|
|
51
|
+
'C:\\Program Files (x86)\\nodejs'
|
|
52
|
+
],
|
|
53
|
+
userPaths: ['AppData\\Roaming\\npm'],
|
|
54
|
+
registryKey: 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Node.js'
|
|
55
|
+
},
|
|
56
|
+
darwin: {
|
|
57
|
+
executable: 'node',
|
|
58
|
+
possiblePaths: ['/usr/local/bin', '/opt/homebrew/bin', '/usr/bin'],
|
|
59
|
+
userPaths: ['~/.local/bin']
|
|
60
|
+
},
|
|
61
|
+
linux: {
|
|
62
|
+
executable: 'node',
|
|
63
|
+
possiblePaths: ['/usr/bin', '/usr/local/bin'],
|
|
64
|
+
userPaths: ['~/.local/bin']
|
|
65
|
+
},
|
|
66
|
+
envVar: 'NODE_PATH'
|
|
67
|
+
},
|
|
68
|
+
wechat: {
|
|
69
|
+
win32: {
|
|
70
|
+
executable: 'cli.bat',
|
|
71
|
+
possiblePaths: [
|
|
72
|
+
'C:\\Program Files (x86)\\Tencent\\微信web开发者工具',
|
|
73
|
+
'C:\\Program Files\\Tencent\\微信web开发者工具'
|
|
74
|
+
],
|
|
75
|
+
userPaths: [
|
|
76
|
+
'AppData\\Local\\微信web开发者工具',
|
|
77
|
+
'AppData\\Roaming\\微信web开发者工具'
|
|
78
|
+
],
|
|
79
|
+
registryKey: 'HKEY_CURRENT_USER\\Software\\Tencent\\微信web开发者工具'
|
|
80
|
+
},
|
|
81
|
+
darwin: {
|
|
82
|
+
executable: 'cli',
|
|
83
|
+
possiblePaths: [
|
|
84
|
+
'/Applications/wechatwebdevtools.app/Contents/MacOS',
|
|
85
|
+
'/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/bin'
|
|
86
|
+
],
|
|
87
|
+
userPaths: [
|
|
88
|
+
'/Applications/wechatwebdevtools.app/Contents/MacOS',
|
|
89
|
+
'/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/bin'
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
linux: {
|
|
93
|
+
executable: 'cli',
|
|
94
|
+
possiblePaths: ['/usr/local/bin', '/usr/bin'],
|
|
95
|
+
userPaths: ['.local/bin']
|
|
96
|
+
},
|
|
97
|
+
envVar: 'WECHAT_DEV_TOOLS_PATH'
|
|
98
|
+
},
|
|
99
|
+
hbuilderx: {
|
|
100
|
+
win32: {
|
|
101
|
+
executable: 'HBuilderX.exe',
|
|
102
|
+
possiblePaths: [
|
|
103
|
+
'C:\\Program Files\\HBuilderX',
|
|
104
|
+
'C:\\Program Files (x86)\\HBuilderX'
|
|
105
|
+
],
|
|
106
|
+
userPaths: [
|
|
107
|
+
'AppData\\Local\\HBuilderX',
|
|
108
|
+
'AppData\\Roaming\\HBuilderX'
|
|
109
|
+
],
|
|
110
|
+
registryKey: 'HKEY_CURRENT_USER\\Software\\DCloud\\HBuilderX'
|
|
111
|
+
},
|
|
112
|
+
darwin: {
|
|
113
|
+
executable: 'HBuilderX',
|
|
114
|
+
possiblePaths: ['/Applications/HBuilderX.app/Contents/MacOS'],
|
|
115
|
+
userPaths: ['~/Applications/HBuilderX.app/Contents/MacOS']
|
|
116
|
+
},
|
|
117
|
+
linux: {
|
|
118
|
+
executable: 'HBuilderX',
|
|
119
|
+
possiblePaths: ['/opt/HBuilderX', '/usr/local/HBuilderX'],
|
|
120
|
+
userPaths: ['~/.local/share/HBuilderX', '~/HBuilderX']
|
|
121
|
+
},
|
|
122
|
+
envVar: 'HBUILDERX_PATH'
|
|
123
|
+
},
|
|
124
|
+
altool: {
|
|
125
|
+
win32: {
|
|
126
|
+
executable: 'altool.exe',
|
|
127
|
+
possiblePaths: [],
|
|
128
|
+
userPaths: []
|
|
129
|
+
},
|
|
130
|
+
darwin: {
|
|
131
|
+
executable: 'altool',
|
|
132
|
+
possiblePaths: [
|
|
133
|
+
'/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support',
|
|
134
|
+
'/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin',
|
|
135
|
+
'/Applications/Xcode.app/Contents/Developer/usr/bin',
|
|
136
|
+
'/usr/local/bin'
|
|
137
|
+
],
|
|
138
|
+
userPaths: ['~/Applications/Xcode.app/Contents/Developer/usr/bin']
|
|
139
|
+
},
|
|
140
|
+
linux: {
|
|
141
|
+
executable: 'altool',
|
|
142
|
+
possiblePaths: [],
|
|
143
|
+
userPaths: []
|
|
144
|
+
},
|
|
145
|
+
envVar: 'ALTOOL_PATH'
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
export const SOFTWARE_NAME_MAP = {
|
|
149
|
+
wechat: 'wechat',
|
|
150
|
+
chrome: 'chrome',
|
|
151
|
+
git: 'git',
|
|
152
|
+
hbuilderx: 'hbuilderx',
|
|
153
|
+
nodejs: 'nodejs',
|
|
154
|
+
node: 'nodejs',
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=softwareConfigs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"softwareConfigs.js","sourceRoot":"","sources":["../../src/constants/softwareConfigs.ts"],"names":[],"mappings":"AAmCA,MAAM,CAAC,MAAM,gBAAgB,GAA6C;IACxE,GAAG,EAAE;QACH,KAAK,EAAE;YACL,UAAU,EAAE,SAAS;YACrB,aAAa,EAAE;gBACb,6BAA6B;gBAC7B,mCAAmC;aACpC;YACD,SAAS,EAAE,CAAC,oCAAoC,CAAC;YACjD,WAAW,EAAE,6CAA6C;SAC3D;QACD,MAAM,EAAE;YACN,UAAU,EAAE,KAAK;YACjB,aAAa,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,mBAAmB,CAAC;YAClE,SAAS,EAAE,CAAC,cAAc,CAAC;SAC5B;QACD,KAAK,EAAE;YACL,UAAU,EAAE,KAAK;YACjB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E;YACjB,SAAS,EAAE,EAAE;SACd;QACD,MAAM,EAAE,aAAa;KACtB;CACF,CAAA;AAKD,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;CACf,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function generateLicense(crypto, base64Encoder) {
|
|
2
|
+
let expiredDate = new Date();
|
|
3
|
+
expiredDate.setFullYear(expiredDate.getFullYear() + 99);
|
|
4
|
+
const milliSeconds = expiredDate.getTime();
|
|
5
|
+
const expired = base64Encoder.btoa(milliSeconds.toString());
|
|
6
|
+
const license = `[v3][RELEASE][0102]_${expired}`;
|
|
7
|
+
const hashResult = crypto.MD5(license);
|
|
8
|
+
const hash = typeof hashResult === 'string' ? hashResult : hashResult.toString();
|
|
9
|
+
const licenseKey = `${license}${hash}`;
|
|
10
|
+
return licenseKey;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=generateLicense.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateLicense.js","sourceRoot":"","sources":["../../../src/functions/ag-grid/generateLicense.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,eAAe,CAAC,MAAgB,EAAE,aAA4B;IAC5E,IAAI,WAAW,GAAG,IAAI,IAAI,EAAE,CAAA;IAC5B,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,CAAA;IACvD,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,EAAE,CAAA;IAC1C,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC3D,MAAM,OAAO,GAAG,uBAAuB,OAAO,EAAE,CAAA;IAChD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACtC,MAAM,IAAI,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAA;IAChF,MAAM,UAAU,GAAG,GAAG,OAAO,GAAG,IAAI,EAAE,CAAA;IACtC,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NodeChildProcess } from '../../../references/node.d';
|
|
2
|
+
import type { AltoolAuth, AltoolAppType, AltoolOutputFormat } from '../../../types/altool.d';
|
|
3
|
+
import { type AppInfo } from './getAppInfo';
|
|
4
|
+
export interface AltoolClientConfig {
|
|
5
|
+
altoolPath: string;
|
|
6
|
+
childProcess: NodeChildProcess;
|
|
7
|
+
defaultAuth?: AltoolAuth;
|
|
8
|
+
defaultOutputFormat?: AltoolOutputFormat;
|
|
9
|
+
}
|
|
10
|
+
export interface AltoolClient {
|
|
11
|
+
upload(file: string, type: AltoolAppType, auth?: AltoolAuth, outputFormat?: AltoolOutputFormat): Promise<string>;
|
|
12
|
+
validate(file: string, type: AltoolAppType, auth?: AltoolAuth, outputFormat?: AltoolOutputFormat): Promise<{
|
|
13
|
+
hasWarnings: boolean;
|
|
14
|
+
hasErrors: boolean;
|
|
15
|
+
warnings: string[];
|
|
16
|
+
errors: string[];
|
|
17
|
+
}>;
|
|
18
|
+
listApps(type: AltoolAppType, auth?: AltoolAuth, outputFormat?: AltoolOutputFormat): Promise<AppInfo[]>;
|
|
19
|
+
checkAvailability(): Promise<string>;
|
|
20
|
+
}
|
|
21
|
+
export declare function createAltoolClient(config: AltoolClientConfig): AltoolClient;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { uploadApp } from './uploadApp';
|
|
2
|
+
import { validateApp } from './validateApp';
|
|
3
|
+
import { getAppInfo } from './getAppInfo';
|
|
4
|
+
import { getAltoolAuth } from './getAltoolAuth';
|
|
5
|
+
export function createAltoolClient(config) {
|
|
6
|
+
const { altoolPath, childProcess, defaultAuth, defaultOutputFormat = 'normal' } = config;
|
|
7
|
+
return {
|
|
8
|
+
async upload(file, type, auth, outputFormat = defaultOutputFormat) {
|
|
9
|
+
const options = {
|
|
10
|
+
file,
|
|
11
|
+
type,
|
|
12
|
+
auth: getAltoolAuth(auth, defaultAuth),
|
|
13
|
+
outputFormat
|
|
14
|
+
};
|
|
15
|
+
const result = await uploadApp(altoolPath, options, childProcess);
|
|
16
|
+
return typeof result === 'string' ? result : JSON.stringify(result);
|
|
17
|
+
},
|
|
18
|
+
async validate(file, type, auth, outputFormat = defaultOutputFormat) {
|
|
19
|
+
const options = {
|
|
20
|
+
file,
|
|
21
|
+
type,
|
|
22
|
+
auth: getAltoolAuth(auth, defaultAuth),
|
|
23
|
+
outputFormat
|
|
24
|
+
};
|
|
25
|
+
return validateApp(altoolPath, options, childProcess);
|
|
26
|
+
},
|
|
27
|
+
async listApps(type, auth, outputFormat = defaultOutputFormat) {
|
|
28
|
+
const options = {
|
|
29
|
+
type,
|
|
30
|
+
auth: getAltoolAuth(auth, defaultAuth),
|
|
31
|
+
outputFormat
|
|
32
|
+
};
|
|
33
|
+
return getAppInfo(altoolPath, options, childProcess);
|
|
34
|
+
},
|
|
35
|
+
async checkAvailability() {
|
|
36
|
+
const command = `"${altoolPath}" --version`;
|
|
37
|
+
return new Promise((resolve, reject) => {
|
|
38
|
+
childProcess.exec(command, (error, stdout, stderr) => {
|
|
39
|
+
const output = stdout || '';
|
|
40
|
+
const errorOutput = stderr || '';
|
|
41
|
+
if (error) {
|
|
42
|
+
const errorMessage = errorOutput || error.message;
|
|
43
|
+
reject(new Error(errorMessage));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
resolve(output);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=createAltoolClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAltoolClient.js","sourceRoot":"","sources":["../../../src/functions/altool/createAltoolClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAA4B,MAAM,aAAa,CAAA;AACjE,OAAO,EAAE,WAAW,EAA8B,MAAM,eAAe,CAAA;AACvE,OAAO,EAAE,UAAU,EAA2C,MAAM,cAAc,CAAA;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAuE/C,MAAM,UAAU,kBAAkB,CAAC,MAA0B;IAC3D,MAAM,EACJ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,mBAAmB,GAAG,QAAQ,EAC/B,GAAG,MAAM,CAAA;IAIV,OAAO;QACL,KAAK,CAAC,MAAM,CACV,IAAY,EACZ,IAAmB,EACnB,IAAiB,EACjB,eAAmC,mBAAmB;YAEtD,MAAM,OAAO,GAAwB;gBACnC,IAAI;gBACJ,IAAI;gBACJ,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC;gBACtC,YAAY;aACb,CAAA;YAED,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,UAAU,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;YACjE,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QACrE,CAAC;QAED,KAAK,CAAC,QAAQ,CACZ,IAAY,EACZ,IAAmB,EACnB,IAAiB,EACjB,eAAmC,mBAAmB;YAEtD,MAAM,OAAO,GAA0B;gBACrC,IAAI;gBACJ,IAAI;gBACJ,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC;gBACtC,YAAY;aACb,CAAA;YAED,OAAO,WAAW,CAAC,UAAU,EAAE,OAAO,EAAE,YAAY,CAAgG,CAAA;QACtJ,CAAC;QAED,KAAK,CAAC,QAAQ,CACZ,IAA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|
1
|
+
import type { NodeChildProcess } from '../../../references/node.d';
|
|
2
|
+
import type { AltoolBaseOptions } from '../../../types/altool.d';
|
|
3
|
+
export interface AltoolAppInfoOptions extends AltoolBaseOptions {
|
|
4
|
+
}
|
|
5
|
+
export interface AppInfo {
|
|
6
|
+
bundleId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
version: string;
|
|
9
|
+
buildNumber: string;
|
|
10
|
+
status: string;
|
|
11
|
+
uploadDate?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function getAppInfo(altoolPath: string, options: AltoolAppInfoOptions, childProcess: NodeChildProcess): Promise<AppInfo[]>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { isApiKeyAuth } from './isApiKeyAuth';
|
|
2
|
+
import { parseAppInfoOutput } from './parseAppInfoOutput';
|
|
3
|
+
export async function getAppInfo(altoolPath, options, childProcess) {
|
|
4
|
+
const { type, auth, outputFormat = 'normal' } = options;
|
|
5
|
+
const args = [
|
|
6
|
+
'--list-apps',
|
|
7
|
+
'--type', type,
|
|
8
|
+
'--output-format', outputFormat
|
|
9
|
+
];
|
|
10
|
+
if (isApiKeyAuth(auth)) {
|
|
11
|
+
args.push('--apiKey', auth.apiKey);
|
|
12
|
+
args.push('--apiIssuer', auth.apiIssuer);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
args.push('--username', auth.username);
|
|
16
|
+
args.push('--password', auth.password);
|
|
17
|
+
}
|
|
18
|
+
const command = `"${altoolPath}" ${args.map(arg => `"${arg}"`).join(' ')}`;
|
|
19
|
+
return new Promise((resolve, reject) => {
|
|
20
|
+
childProcess.exec(command, (error, stdout, stderr) => {
|
|
21
|
+
const output = stdout || '';
|
|
22
|
+
const errorOutput = stderr || '';
|
|
23
|
+
if (error) {
|
|
24
|
+
const errorMessage = errorOutput || error.message;
|
|
25
|
+
reject(new Error(errorMessage));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
try {
|
|
29
|
+
const apps = parseAppInfoOutput(output, outputFormat);
|
|
30
|
+
resolve(apps);
|
|
31
|
+
}
|
|
32
|
+
catch (parseError) {
|
|
33
|
+
reject(new Error(`Failed to parse app info: ${parseError}`));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=getAppInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAppInfo.js","sourceRoot":"","sources":["../../../src/functions/altool/getAppInfo.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AA+DzD,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,UAAkB,EAClB,OAA6B,EAC7B,YAA8B;IAE9B,MAAM,EACJ,IAAI,EACJ,IAAI,EACJ,YAAY,GAAG,QAAQ,EACxB,GAAG,OAAO,CAAA;IAGX,MAAM,IAAI,GAAG;QACX,aAAa;QACb,QAAQ,EAAE,IAAI;QACd,iBAAiB,EAAE,YAAY;KAChC,CAAA;IAGD,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;QAEvB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC1C,CAAC;SAAM,CAAC;QAEN,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;QACtC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACxC,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,UAAU,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAA;IAE1E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;YACnD,MAAM,MAAM,GAAG,MAAM,IAAI,EAAE,CAAA;YAC3B,MAAM,WAAW,GAAG,MAAM,IAAI,EAAE,CAAA;YAEhC,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,YAAY,GAAG,WAAW,IAAI,KAAK,CAAC,OAAO,CAAA;gBACjD,MAAM,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,CAAA;YACjC,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC;oBACH,MAAM,IAAI,GAAG,kBAAkB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;oBACrD,OAAO,CAAC,IAAI,CAAC,CAAA;gBACf,CAAC;gBAAC,OAAO,UAAU,EAAE,CAAC;oBACpB,MAAM,CAAC,IAAI,KAAK,CAAC,6BAA6B,UAAU,EAAE,CAAC,CAAC,CAAA;gBAC9D,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { AltoolAppType, AltoolOutputFormat, AltoolAuthCredentials, AltoolAuthApiKey, AltoolAuth, AltoolBaseOptions, AltoolCommand, AltoolBaseResult } from './types';
|
|
2
|
+
export { isApiKeyAuth, isCredentialsAuth } from './types';
|
|
3
|
+
export type { AltoolUploadOptions, AltoolUploadResult } from './uploadApp';
|
|
4
|
+
export { uploadApp } from './uploadApp';
|
|
5
|
+
export type { AltoolValidateOptions, AltoolValidateResult } from './validateApp';
|
|
6
|
+
export { validateApp } from './validateApp';
|
|
7
|
+
export type { AltoolAppInfoOptions, AppInfo, AltoolAppInfoResult } from './getAppInfo';
|
|
8
|
+
export { getAppInfo } from './getAppInfo';
|
|
9
|
+
export type { AltoolClientConfig, AltoolClient } from './createAltoolClient';
|
|
10
|
+
export { createAltoolClient } from './createAltoolClient';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { isApiKeyAuth, isCredentialsAuth } from './types';
|
|
2
|
+
export { uploadApp } from './uploadApp';
|
|
3
|
+
export { validateApp } from './validateApp';
|
|
4
|
+
export { getAppInfo } from './getAppInfo';
|
|
5
|
+
export { createAltoolClient } from './createAltoolClient';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/functions/altool/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,YAAY,EACZ,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAQhB,OAAO,EACL,SAAS,EACV,MAAM,aAAa,CAAA;AAQpB,OAAO,EACL,WAAW,EACZ,MAAM,eAAe,CAAA;AAStB,OAAO,EACL,UAAU,EACX,MAAM,cAAc,CAAA;AAQrB,OAAO,EACL,kBAAkB,EACnB,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isApiKeyAuth.js","sourceRoot":"","sources":["../../../src/functions/altool/isApiKeyAuth.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,YAAY,CAAC,IAAgB;IAC3C,OAAO,QAAQ,IAAI,IAAI,IAAI,WAAW,IAAI,IAAI,CAAA;AAChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isCredentialsAuth.js","sourceRoot":"","sources":["../../../src/functions/altool/isCredentialsAuth.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,iBAAiB,CAAC,IAAgB;IAChD,OAAO,UAAU,IAAI,IAAI,IAAI,UAAU,IAAI,IAAI,CAAA;AACjD,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export function parseAppInfoOutput(output, outputFormat) {
|
|
2
|
+
const apps = [];
|
|
3
|
+
if (outputFormat === 'xml') {
|
|
4
|
+
const appMatches = output.match(/<dict[^>]*>[\s\S]*?<\/dict>/g) || [];
|
|
5
|
+
for (const appMatch of appMatches) {
|
|
6
|
+
const bundleIdMatch = appMatch.match(/<key>CFBundleIdentifier<\/key>\s*<string>([^<]+)<\/string>/);
|
|
7
|
+
const nameMatch = appMatch.match(/<key>CFBundleDisplayName<\/key>\s*<string>([^<]+)<\/string>/);
|
|
8
|
+
const versionMatch = appMatch.match(/<key>CFBundleShortVersionString<\/key>\s*<string>([^<]+)<\/string>/);
|
|
9
|
+
const buildMatch = appMatch.match(/<key>CFBundleVersion<\/key>\s*<string>([^<]+)<\/string>/);
|
|
10
|
+
if (bundleIdMatch) {
|
|
11
|
+
apps.push({
|
|
12
|
+
bundleId: bundleIdMatch[1],
|
|
13
|
+
name: nameMatch?.[1] || '',
|
|
14
|
+
version: versionMatch?.[1] || '',
|
|
15
|
+
buildNumber: buildMatch?.[1] || '',
|
|
16
|
+
status: 'Unknown'
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const lines = output.split('\n');
|
|
23
|
+
let currentApp = {};
|
|
24
|
+
for (const line of lines) {
|
|
25
|
+
const trimmedLine = line.trim();
|
|
26
|
+
if (trimmedLine.includes('Bundle ID:')) {
|
|
27
|
+
currentApp.bundleId = trimmedLine.split('Bundle ID:')[1]?.trim();
|
|
28
|
+
}
|
|
29
|
+
else if (trimmedLine.includes('Name:')) {
|
|
30
|
+
currentApp.name = trimmedLine.split('Name:')[1]?.trim();
|
|
31
|
+
}
|
|
32
|
+
else if (trimmedLine.includes('Version:')) {
|
|
33
|
+
currentApp.version = trimmedLine.split('Version:')[1]?.trim();
|
|
34
|
+
}
|
|
35
|
+
else if (trimmedLine.includes('Build:')) {
|
|
36
|
+
currentApp.buildNumber = trimmedLine.split('Build:')[1]?.trim();
|
|
37
|
+
}
|
|
38
|
+
else if (trimmedLine.includes('Status:')) {
|
|
39
|
+
currentApp.status = trimmedLine.split('Status:')[1]?.trim();
|
|
40
|
+
if (currentApp.bundleId) {
|
|
41
|
+
apps.push({
|
|
42
|
+
bundleId: currentApp.bundleId,
|
|
43
|
+
name: currentApp.name || '',
|
|
44
|
+
version: currentApp.version || '',
|
|
45
|
+
buildNumber: currentApp.buildNumber || '',
|
|
46
|
+
status: currentApp.status || 'Unknown'
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
currentApp = {};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return apps;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=parseAppInfoOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseAppInfoOutput.js","sourceRoot":"","sources":["../../../src/functions/altool/parseAppInfoOutput.ts"],"names":[],"mappings":"AAsCA,MAAM,UAAU,kBAAkB,CAAC,MAAc,EAAE,YAAoB;IACrE,MAAM,IAAI,GAAc,EAAE,CAAA;IAE1B,IAAI,YAAY,KAAK,KAAK,EAAE,CAAC;QAE3B,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,IAAI,EAAE,CAAA;QAErE,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;YAClC,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAA;YAClG,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAA;YAC/F,MAAM,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAA;YACzG,MAAM,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAA;YAE5F,IAAI,aAAa,EAAE,CAAC;gBAClB,IAAI,CAAC,IAAI,CAAC;oBACR,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;oBAC1B,IAAI,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AAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC3C,UAAU,CAAC,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAA;gBAG3D,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;oBACxB,IAAI,CAAC,IAAI,CAAC;wBACR,QAAQ,EAAE,UAAU,CAAC,QAAQ;wBAC7B,IAAI,EAAE,UAAU,CAAC,IAAI,IAAI,EAAE;wBAC3B,OAAO,EAAE,UAAU,CAAC,OAAO,IAAI,EAAE;wBACjC,WAAW,EAAE,UAAU,CAAC,WAAW,IAAI,EAAE;wBACzC,MAAM,EAAE,UAAU,CAAC,MAAM,IAAI,SAAS;qBACvC,CAAC,CAAA;gBACJ,CAAC;gBAED,UAAU,GAAG,EAAE,CAAA;YACjB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function parseValidationOutput(output) {
|
|
2
|
+
const warnings = [];
|
|
3
|
+
const errors = [];
|
|
4
|
+
const lines = output.split('\n');
|
|
5
|
+
for (const line of lines) {
|
|
6
|
+
const trimmedLine = line.trim();
|
|
7
|
+
if (trimmedLine.includes('WARNING:') || trimmedLine.includes('Warning:')) {
|
|
8
|
+
warnings.push(trimmedLine);
|
|
9
|
+
}
|
|
10
|
+
else if (trimmedLine.includes('ERROR:') || trimmedLine.includes('Error:')) {
|
|
11
|
+
errors.push(trimmedLine);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
hasWarnings: warnings.length > 0,
|
|
16
|
+
hasErrors: errors.length > 0,
|
|
17
|
+
warnings,
|
|
18
|
+
errors
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=parseValidationOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseValidationOutput.js","sourceRoot":"","sources":["../../../src/functions/altool/parseValidationOutput.ts"],"names":[],"mappings":"AAwBA,MAAM,UAAU,qBAAqB,CAAC,MAAc;IAClD,MAAM,QAAQ,GAAa,EAAE,CAAA;IAC7B,MAAM,MAAM,GAAa,EAAE,CAAA;IAE3B,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAEhC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;QAC/B,IAAI,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAC5B,CAAC;aAAM,IAAI,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5E,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC;IAED,OAAO;QACL,WAAW,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC;QAChC,SAAS,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC;QAC5B,QAAQ;QACR,MAAM;KACP,CAAA;AACH,CAAC"}
|