zcw-shared 1.20.0 → 1.22.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/dist/functions/algorithm/binarySearch.d.ts +3 -0
- package/dist/functions/algorithm/binarySearch.js +58 -0
- package/dist/functions/algorithm/binarySearch.js.map +1 -0
- package/dist/functions/algorithm/canJump.d.ts +2 -0
- package/dist/functions/algorithm/canJump.js +27 -0
- package/dist/functions/algorithm/canJump.js.map +1 -0
- package/dist/functions/algorithm/climbStairs.d.ts +2 -0
- package/dist/functions/algorithm/climbStairs.js +27 -0
- package/dist/functions/algorithm/climbStairs.js.map +1 -0
- package/dist/functions/algorithm/coinChange.d.ts +2 -0
- package/dist/functions/algorithm/coinChange.js +25 -0
- package/dist/functions/algorithm/coinChange.js.map +1 -0
- package/dist/functions/algorithm/combinationSum.d.ts +1 -0
- package/dist/functions/algorithm/combinationSum.js +24 -0
- package/dist/functions/algorithm/combinationSum.js.map +1 -0
- package/dist/functions/algorithm/editDistance.d.ts +2 -0
- package/dist/functions/algorithm/editDistance.js +96 -0
- package/dist/functions/algorithm/editDistance.js.map +1 -0
- package/dist/functions/algorithm/generateParenthesis.d.ts +1 -0
- package/dist/functions/algorithm/generateParenthesis.js +18 -0
- package/dist/functions/algorithm/generateParenthesis.js.map +1 -0
- package/dist/functions/algorithm/kmp.d.ts +2 -0
- package/dist/functions/algorithm/kmp.js +58 -0
- package/dist/functions/algorithm/kmp.js.map +1 -0
- package/dist/functions/algorithm/knapsack01.d.ts +2 -0
- package/dist/functions/algorithm/knapsack01.js +34 -0
- package/dist/functions/algorithm/knapsack01.js.map +1 -0
- package/dist/functions/algorithm/lengthOfLongestSubstring.d.ts +2 -0
- package/dist/functions/algorithm/lengthOfLongestSubstring.js +33 -0
- package/dist/functions/algorithm/lengthOfLongestSubstring.js.map +1 -0
- package/dist/functions/algorithm/longestCommonSubsequence.d.ts +2 -0
- package/dist/functions/algorithm/longestCommonSubsequence.js +37 -0
- package/dist/functions/algorithm/longestCommonSubsequence.js.map +1 -0
- package/dist/functions/algorithm/longestIncreasingSubsequence.d.ts +2 -0
- package/dist/functions/algorithm/longestIncreasingSubsequence.js +49 -0
- package/dist/functions/algorithm/longestIncreasingSubsequence.js.map +1 -0
- package/dist/functions/algorithm/maxArea.d.ts +1 -0
- package/dist/functions/algorithm/maxArea.js +19 -0
- package/dist/functions/algorithm/maxArea.js.map +1 -0
- package/dist/functions/algorithm/maxProfit.d.ts +2 -0
- package/dist/functions/algorithm/maxProfit.js +23 -0
- package/dist/functions/algorithm/maxProfit.js.map +1 -0
- package/dist/functions/algorithm/meetingRooms.d.ts +6 -0
- package/dist/functions/algorithm/meetingRooms.js +31 -0
- package/dist/functions/algorithm/meetingRooms.js.map +1 -0
- package/dist/functions/algorithm/mergeSort.d.ts +2 -0
- package/dist/functions/algorithm/mergeSort.js +72 -0
- package/dist/functions/algorithm/mergeSort.js.map +1 -0
- package/dist/functions/algorithm/minPathSum.d.ts +2 -0
- package/dist/functions/algorithm/minPathSum.js +39 -0
- package/dist/functions/algorithm/minPathSum.js.map +1 -0
- package/dist/functions/algorithm/minWindow.d.ts +1 -0
- package/dist/functions/algorithm/minWindow.js +40 -0
- package/dist/functions/algorithm/minWindow.js.map +1 -0
- package/dist/functions/algorithm/nQueens.d.ts +1 -0
- package/dist/functions/algorithm/nQueens.js +30 -0
- package/dist/functions/algorithm/nQueens.js.map +1 -0
- package/dist/functions/algorithm/numIslands.d.ts +2 -0
- package/dist/functions/algorithm/numIslands.js +59 -0
- package/dist/functions/algorithm/numIslands.js.map +1 -0
- package/dist/functions/algorithm/permutations.d.ts +1 -0
- package/dist/functions/algorithm/permutations.js +22 -0
- package/dist/functions/algorithm/permutations.js.map +1 -0
- package/dist/functions/algorithm/quickSort.d.ts +3 -0
- package/dist/functions/algorithm/quickSort.js +68 -0
- package/dist/functions/algorithm/quickSort.js.map +1 -0
- package/dist/functions/algorithm/rabinKarp.d.ts +1 -0
- package/dist/functions/algorithm/rabinKarp.js +40 -0
- package/dist/functions/algorithm/rabinKarp.js.map +1 -0
- package/dist/functions/algorithm/taskScheduler.d.ts +1 -0
- package/dist/functions/algorithm/taskScheduler.js +15 -0
- package/dist/functions/algorithm/taskScheduler.js.map +1 -0
- package/dist/functions/algorithm/threeSum.d.ts +2 -0
- package/dist/functions/algorithm/threeSum.js +56 -0
- package/dist/functions/algorithm/threeSum.js.map +1 -0
- package/dist/functions/algorithm/topologicalSort.d.ts +6 -0
- package/dist/functions/algorithm/topologicalSort.js +68 -0
- package/dist/functions/algorithm/topologicalSort.js.map +1 -0
- package/dist/functions/algorithm/trap.d.ts +2 -0
- package/dist/functions/algorithm/trap.js +51 -0
- package/dist/functions/algorithm/trap.js.map +1 -0
- package/dist/functions/array-object/chunk.d.ts +1 -0
- package/dist/functions/array-object/chunk.js +11 -0
- package/dist/functions/array-object/chunk.js.map +1 -0
- package/dist/functions/array-object/deepClone.d.ts +12 -0
- package/dist/functions/array-object/deepClone.js +131 -0
- package/dist/functions/array-object/deepClone.js.map +1 -0
- package/dist/functions/array-object/evolve.d.ts +3 -0
- package/dist/functions/array-object/evolve.js +15 -0
- package/dist/functions/array-object/evolve.js.map +1 -0
- package/dist/functions/array-object/flatten.d.ts +7 -0
- package/dist/functions/array-object/flatten.js +60 -0
- package/dist/functions/array-object/flatten.js.map +1 -0
- package/dist/functions/array-object/flattenObject.d.ts +5 -0
- package/dist/functions/array-object/flattenObject.js +102 -0
- package/dist/functions/array-object/flattenObject.js.map +1 -0
- package/dist/functions/array-object/groupBy.d.ts +1 -0
- package/dist/functions/array-object/groupBy.js +14 -0
- package/dist/functions/array-object/groupBy.js.map +1 -0
- package/dist/functions/array-object/omit.d.ts +1 -0
- package/dist/functions/array-object/omit.js +8 -0
- package/dist/functions/array-object/omit.js.map +1 -0
- package/dist/functions/array-object/pick.d.ts +1 -0
- package/dist/functions/array-object/pick.js +10 -0
- package/dist/functions/array-object/pick.js.map +1 -0
- package/dist/functions/array-object/shuffle.d.ts +1 -0
- package/dist/functions/array-object/shuffle.js +9 -0
- package/dist/functions/array-object/shuffle.js.map +1 -0
- package/dist/functions/array-object/sortBy.d.ts +1 -0
- package/dist/functions/array-object/sortBy.js +13 -0
- package/dist/functions/array-object/sortBy.js.map +1 -0
- package/dist/functions/array-object/unique.d.ts +10 -0
- package/dist/functions/array-object/unique.js +85 -0
- package/dist/functions/array-object/unique.js.map +1 -0
- package/dist/functions/async/cachedAsync.d.ts +27 -0
- package/dist/functions/async/cachedAsync.js +123 -0
- package/dist/functions/async/cachedAsync.js.map +1 -0
- package/dist/functions/async/promiseLimit.d.ts +10 -0
- package/dist/functions/async/promiseLimit.js +125 -0
- package/dist/functions/async/promiseLimit.js.map +1 -0
- package/dist/functions/async/retryWithBackoff.d.ts +12 -0
- package/dist/functions/async/retryWithBackoff.js +29 -0
- package/dist/functions/async/retryWithBackoff.js.map +1 -0
- package/dist/functions/browser/detectBrowser.d.ts +39 -0
- package/dist/functions/browser/detectBrowser.js +193 -0
- package/dist/functions/browser/detectBrowser.js.map +1 -0
- package/dist/functions/browser/detectOS.d.ts +5 -0
- package/dist/functions/browser/detectOS.js +20 -0
- package/dist/functions/browser/detectOS.js.map +1 -0
- package/dist/functions/browser/isMobile.d.ts +6 -0
- package/dist/functions/browser/isMobile.js +5 -0
- package/dist/functions/browser/isMobile.js.map +1 -0
- package/dist/functions/data-structures/AVLTree.d.ts +19 -0
- package/dist/functions/data-structures/AVLTree.js +197 -0
- package/dist/functions/data-structures/AVLTree.js.map +1 -0
- package/dist/functions/data-structures/BinarySearchTree.d.ts +19 -0
- package/dist/functions/data-structures/BinarySearchTree.js +150 -0
- package/dist/functions/data-structures/BinarySearchTree.js.map +1 -0
- package/dist/functions/data-structures/Graph.d.ts +19 -0
- package/dist/functions/data-structures/Graph.js +190 -0
- package/dist/functions/data-structures/Graph.js.map +1 -0
- package/dist/functions/data-structures/HashMap.d.ts +13 -0
- package/dist/functions/data-structures/HashMap.js +128 -0
- package/dist/functions/data-structures/HashMap.js.map +1 -0
- package/dist/functions/data-structures/Heap.d.ts +11 -0
- package/dist/functions/data-structures/Heap.js +91 -0
- package/dist/functions/data-structures/Heap.js.map +1 -0
- package/dist/functions/data-structures/LRUCache.d.ts +41 -0
- package/dist/functions/data-structures/LRUCache.js +182 -0
- package/dist/functions/data-structures/LRUCache.js.map +1 -0
- package/dist/functions/data-structures/LinkedList.d.ts +18 -0
- package/dist/functions/data-structures/LinkedList.js +135 -0
- package/dist/functions/data-structures/LinkedList.js.map +1 -0
- package/dist/functions/data-structures/PriorityQueue.d.ts +14 -0
- package/dist/functions/data-structures/PriorityQueue.js +77 -0
- package/dist/functions/data-structures/PriorityQueue.js.map +1 -0
- package/dist/functions/data-structures/Queue.d.ts +10 -0
- package/dist/functions/data-structures/Queue.js +27 -0
- package/dist/functions/data-structures/Queue.js.map +1 -0
- package/dist/functions/data-structures/Stack.d.ts +10 -0
- package/dist/functions/data-structures/Stack.js +27 -0
- package/dist/functions/data-structures/Stack.js.map +1 -0
- package/dist/functions/data-structures/Trie.d.ts +16 -0
- package/dist/functions/data-structures/Trie.js +127 -0
- package/dist/functions/data-structures/Trie.js.map +1 -0
- package/dist/functions/data-structures/UnionFind.d.ts +8 -0
- package/dist/functions/data-structures/UnionFind.js +53 -0
- package/dist/functions/data-structures/UnionFind.js.map +1 -0
- package/dist/functions/date/dateRange.d.ts +1 -0
- package/dist/functions/date/dateRange.js +18 -0
- package/dist/functions/date/dateRange.js.map +1 -0
- package/dist/functions/date/formatDate.d.ts +1 -0
- package/dist/functions/date/formatDate.js +21 -0
- package/dist/functions/date/formatDate.js.map +1 -0
- package/dist/functions/date/timeAgo.d.ts +1 -0
- package/dist/functions/date/timeAgo.js +49 -0
- package/dist/functions/date/timeAgo.js.map +1 -0
- package/dist/functions/design-tokens/buildTokens.d.ts +76 -0
- package/dist/functions/design-tokens/buildTokens.js +183 -0
- package/dist/functions/design-tokens/buildTokens.js.map +1 -0
- package/dist/functions/design-tokens/generateVariables.d.ts +7 -0
- package/dist/functions/design-tokens/generateVariables.js +135 -0
- package/dist/functions/design-tokens/generateVariables.js.map +1 -0
- package/dist/functions/design-tokens/mixColors.d.ts +1 -0
- package/dist/functions/design-tokens/mixColors.js +38 -0
- package/dist/functions/design-tokens/mixColors.js.map +1 -0
- package/dist/functions/design-tokens/parseDesignTokens.d.ts +10 -0
- package/dist/functions/design-tokens/parseDesignTokens.js +216 -0
- package/dist/functions/design-tokens/parseDesignTokens.js.map +1 -0
- package/dist/functions/file/formatFileSize.d.ts +1 -0
- package/dist/functions/file/formatFileSize.js +16 -0
- package/dist/functions/file/formatFileSize.js.map +1 -0
- package/dist/functions/file/getFileExtension.d.ts +5 -0
- package/dist/functions/file/getFileExtension.js +18 -0
- package/dist/functions/file/getFileExtension.js.map +1 -0
- package/dist/functions/functional/compose.d.ts +1 -0
- package/dist/functions/functional/compose.js +10 -0
- package/dist/functions/functional/compose.js.map +1 -0
- package/dist/functions/functional/cond.d.ts +1 -0
- package/dist/functions/functional/cond.js +15 -0
- package/dist/functions/functional/cond.js.map +1 -0
- package/dist/functions/functional/curry.d.ts +1 -0
- package/dist/functions/functional/curry.js +13 -0
- package/dist/functions/functional/curry.js.map +1 -0
- package/dist/functions/functional/curryAdvanced.d.ts +8 -0
- package/dist/functions/functional/curryAdvanced.js +87 -0
- package/dist/functions/functional/curryAdvanced.js.map +1 -0
- package/dist/functions/functional/flow.d.ts +1 -0
- package/dist/functions/functional/flow.js +14 -0
- package/dist/functions/functional/flow.js.map +1 -0
- package/dist/functions/functional/partial.d.ts +1 -0
- package/dist/functions/functional/partial.js +13 -0
- package/dist/functions/functional/partial.js.map +1 -0
- package/dist/functions/functional/pipe.d.ts +1 -0
- package/dist/functions/functional/pipe.js +10 -0
- package/dist/functions/functional/pipe.js.map +1 -0
- package/dist/functions/functional/tap.d.ts +1 -0
- package/dist/functions/functional/tap.js +14 -0
- package/dist/functions/functional/tap.js.map +1 -0
- package/dist/functions/functional/until.d.ts +1 -0
- package/dist/functions/functional/until.js +10 -0
- package/dist/functions/functional/until.js.map +1 -0
- package/dist/functions/math/average.d.ts +1 -0
- package/dist/functions/math/average.js +8 -0
- package/dist/functions/math/average.js.map +1 -0
- package/dist/functions/math/median.d.ts +1 -0
- package/dist/functions/math/median.js +14 -0
- package/dist/functions/math/median.js.map +1 -0
- package/dist/functions/math/percentile.d.ts +1 -0
- package/dist/functions/math/percentile.js +18 -0
- package/dist/functions/math/percentile.js.map +1 -0
- package/dist/functions/math/sum.d.ts +1 -0
- package/dist/functions/math/sum.js +4 -0
- package/dist/functions/math/sum.js.map +1 -0
- package/dist/functions/number/clamp.d.ts +1 -0
- package/dist/functions/number/clamp.js +7 -0
- package/dist/functions/number/clamp.js.map +1 -0
- package/dist/functions/number/formatNumber.d.ts +8 -0
- package/dist/functions/number/formatNumber.js +16 -0
- package/dist/functions/number/formatNumber.js.map +1 -0
- package/dist/functions/number/random.d.ts +4 -0
- package/dist/functions/number/random.js +9 -0
- package/dist/functions/number/random.js.map +1 -0
- package/dist/functions/number/range.d.ts +1 -0
- package/dist/functions/number/range.js +18 -0
- package/dist/functions/number/range.js.map +1 -0
- package/dist/functions/patterns/EventEmitter.d.ts +32 -0
- package/dist/functions/patterns/EventEmitter.js +108 -0
- package/dist/functions/patterns/EventEmitter.js.map +1 -0
- package/dist/functions/patterns/adapter.d.ts +8 -0
- package/dist/functions/patterns/adapter.js +14 -0
- package/dist/functions/patterns/adapter.js.map +1 -0
- package/dist/functions/patterns/builder.d.ts +9 -0
- package/dist/functions/patterns/builder.js +28 -0
- package/dist/functions/patterns/builder.js.map +1 -0
- package/dist/functions/patterns/chainOfResponsibility.d.ts +9 -0
- package/dist/functions/patterns/chainOfResponsibility.js +19 -0
- package/dist/functions/patterns/chainOfResponsibility.js.map +1 -0
- package/dist/functions/patterns/command.d.ts +15 -0
- package/dist/functions/patterns/command.js +49 -0
- package/dist/functions/patterns/command.js.map +1 -0
- package/dist/functions/patterns/decorator.d.ts +10 -0
- package/dist/functions/patterns/decorator.js +72 -0
- package/dist/functions/patterns/decorator.js.map +1 -0
- package/dist/functions/patterns/factory.d.ts +8 -0
- package/dist/functions/patterns/factory.js +25 -0
- package/dist/functions/patterns/factory.js.map +1 -0
- package/dist/functions/patterns/observer.d.ts +19 -0
- package/dist/functions/patterns/observer.js +89 -0
- package/dist/functions/patterns/observer.js.map +1 -0
- package/dist/functions/patterns/prototype.d.ts +4 -0
- package/dist/functions/patterns/prototype.js +30 -0
- package/dist/functions/patterns/prototype.js.map +1 -0
- package/dist/functions/patterns/proxy.d.ts +8 -0
- package/dist/functions/patterns/proxy.js +41 -0
- package/dist/functions/patterns/proxy.js.map +1 -0
- package/dist/functions/patterns/singleton.d.ts +11 -0
- package/dist/functions/patterns/singleton.js +32 -0
- package/dist/functions/patterns/singleton.js.map +1 -0
- package/dist/functions/patterns/strategy.d.ts +12 -0
- package/dist/functions/patterns/strategy.js +34 -0
- package/dist/functions/patterns/strategy.js.map +1 -0
- package/dist/functions/patterns/templateMethod.d.ts +8 -0
- package/dist/functions/patterns/templateMethod.js +19 -0
- package/dist/functions/patterns/templateMethod.js.map +1 -0
- package/dist/functions/patterns/usePluginSystem.d.ts +11 -0
- package/dist/functions/patterns/usePluginSystem.js +34 -0
- package/dist/functions/patterns/usePluginSystem.js.map +1 -0
- package/dist/functions/performance/debounce.d.ts +5 -0
- package/dist/functions/performance/debounce.js +12 -0
- package/dist/functions/performance/debounce.js.map +1 -0
- package/dist/functions/performance/memoize.d.ts +1 -0
- package/dist/functions/performance/memoize.js +13 -0
- package/dist/functions/performance/memoize.js.map +1 -0
- package/dist/functions/performance/once.d.ts +1 -0
- package/dist/functions/performance/once.js +13 -0
- package/dist/functions/performance/once.js.map +1 -0
- package/dist/functions/performance/throttle.d.ts +1 -0
- package/dist/functions/performance/throttle.js +11 -0
- package/dist/functions/performance/throttle.js.map +1 -0
- package/dist/functions/performance/useCache.d.ts +18 -0
- package/dist/functions/performance/useCache.js +82 -0
- package/dist/functions/performance/useCache.js.map +1 -0
- package/dist/functions/platform/tencent-cloud/deploy.tcb.d.ts +13 -0
- package/dist/functions/platform/tencent-cloud/deploy.tcb.js +46 -0
- package/dist/functions/platform/tencent-cloud/deploy.tcb.js.map +1 -0
- package/dist/functions/platform/tencent-cloud/getSecret.d.ts +4 -0
- package/dist/functions/platform/tencent-cloud/getSecret.js +19 -0
- package/dist/functions/platform/tencent-cloud/getSecret.js.map +1 -0
- package/dist/functions/platform/uniapp/app-plus/buildAndroidApp.d.ts +27 -0
- package/dist/functions/platform/uniapp/app-plus/buildAndroidApp.js +287 -0
- package/dist/functions/platform/uniapp/app-plus/buildAndroidApp.js.map +1 -0
- package/dist/functions/platform/uniapp/build.d.ts +21 -0
- package/dist/functions/platform/uniapp/build.js +83 -0
- package/dist/functions/platform/uniapp/build.js.map +1 -0
- package/dist/functions/platform/uniapp/detectAndroidProjectStructure.d.ts +11 -0
- package/dist/functions/platform/uniapp/detectAndroidProjectStructure.js +30 -0
- package/dist/functions/platform/uniapp/detectAndroidProjectStructure.js.map +1 -0
- package/dist/functions/platform/uniapp/detectProjectType.d.ts +20 -0
- package/dist/functions/platform/uniapp/detectProjectType.js +68 -0
- package/dist/functions/platform/uniapp/detectProjectType.js.map +1 -0
- package/dist/functions/platform/uniapp/parseManifest.d.ts +18 -0
- package/dist/functions/platform/uniapp/parseManifest.js +49 -0
- package/dist/functions/platform/uniapp/parseManifest.js.map +1 -0
- package/dist/functions/platform/uniapp/waitForPages.d.ts +7 -0
- package/dist/functions/platform/uniapp/waitForPages.js +20 -0
- package/dist/functions/platform/uniapp/waitForPages.js.map +1 -0
- package/dist/functions/principles/MyPromise.d.ts +32 -0
- package/dist/functions/principles/MyPromise.js +254 -0
- package/dist/functions/principles/MyPromise.js.map +1 -0
- package/dist/functions/principles/functionBind.d.ts +4 -0
- package/dist/functions/principles/functionBind.js +33 -0
- package/dist/functions/principles/functionBind.js.map +1 -0
- package/dist/functions/principles/myInstanceof.d.ts +5 -0
- package/dist/functions/principles/myInstanceof.js +56 -0
- package/dist/functions/principles/myInstanceof.js.map +1 -0
- package/dist/functions/principles/myNew.d.ts +3 -0
- package/dist/functions/principles/myNew.js +19 -0
- package/dist/functions/principles/myNew.js.map +1 -0
- package/dist/functions/promise/sleep.d.ts +5 -0
- package/dist/functions/promise/sleep.js +6 -0
- package/dist/functions/promise/sleep.js.map +1 -0
- package/dist/functions/promise/timeout.d.ts +6 -0
- package/dist/functions/promise/timeout.js +12 -0
- package/dist/functions/promise/timeout.js.map +1 -0
- package/dist/functions/storage/useLocalStorage.d.ts +8 -0
- package/dist/functions/storage/useLocalStorage.js +101 -0
- package/dist/functions/storage/useLocalStorage.js.map +1 -0
- package/dist/functions/storage/useSessionStorage.d.ts +8 -0
- package/dist/functions/storage/useSessionStorage.js +101 -0
- package/dist/functions/storage/useSessionStorage.js.map +1 -0
- package/dist/functions/storage/useStorage.d.ts +13 -0
- package/dist/functions/storage/useStorage.js +62 -0
- package/dist/functions/storage/useStorage.js.map +1 -0
- package/dist/functions/storage/useStorageWithIndexedDB.d.ts +8 -0
- package/dist/functions/storage/useStorageWithIndexedDB.js +132 -0
- package/dist/functions/storage/useStorageWithIndexedDB.js.map +1 -0
- package/dist/functions/tencent-cloud/upload.cos.d.ts +20 -0
- package/dist/functions/tencent-cloud/upload.cos.js +119 -0
- package/dist/functions/tencent-cloud/upload.cos.js.map +1 -0
- package/dist/functions/tree/buildTree.d.ts +7 -0
- package/dist/functions/tree/buildTree.js +27 -0
- package/dist/functions/tree/buildTree.js.map +1 -0
- package/dist/functions/tree/filterTree.d.ts +4 -0
- package/dist/functions/tree/filterTree.js +21 -0
- package/dist/functions/tree/filterTree.js.map +1 -0
- package/dist/functions/tree/findNode.d.ts +4 -0
- package/dist/functions/tree/findNode.js +21 -0
- package/dist/functions/tree/findNode.js.map +1 -0
- package/dist/functions/tree/flattenTree.d.ts +6 -0
- package/dist/functions/tree/flattenTree.js +21 -0
- package/dist/functions/tree/flattenTree.js.map +1 -0
- package/dist/functions/url/buildQueryString.d.ts +5 -0
- package/dist/functions/url/buildQueryString.js +15 -0
- package/dist/functions/url/buildQueryString.js.map +1 -0
- package/dist/functions/url/parseUrl.d.ts +11 -0
- package/dist/functions/url/parseUrl.js +34 -0
- package/dist/functions/url/parseUrl.js.map +1 -0
- package/dist/functions/utils/cachedAsync.d.ts +27 -0
- package/dist/functions/utils/cachedAsync.js +123 -0
- package/dist/functions/utils/cachedAsync.js.map +1 -0
- package/dist/functions/utils/createI18n.d.ts +2 -0
- package/dist/functions/utils/createI18n.js +97 -0
- package/dist/functions/utils/createI18n.js.map +1 -0
- package/dist/functions/utils/createReactive.d.ts +10 -0
- package/dist/functions/utils/createReactive.js +50 -0
- package/dist/functions/utils/createReactive.js.map +1 -0
- package/dist/functions/utils/diff.d.ts +25 -0
- package/dist/functions/utils/diff.js +316 -0
- package/dist/functions/utils/diff.js.map +1 -0
- package/dist/functions/utils/errorManager.d.ts +63 -0
- package/dist/functions/utils/errorManager.js +199 -0
- package/dist/functions/utils/errorManager.js.map +1 -0
- package/dist/functions/utils/formatString.d.ts +5 -0
- package/dist/functions/utils/formatString.js +9 -0
- package/dist/functions/utils/formatString.js.map +1 -0
- package/dist/functions/utils/i18n.d.ts +27 -0
- package/dist/functions/utils/i18n.js +119 -0
- package/dist/functions/utils/i18n.js.map +1 -0
- package/dist/functions/utils/permission.d.ts +40 -0
- package/dist/functions/utils/permission.js +189 -0
- package/dist/functions/utils/permission.js.map +1 -0
- package/dist/functions/utils/pinia.d.ts +52 -0
- package/dist/functions/utils/pinia.js +183 -0
- package/dist/functions/utils/pinia.js.map +1 -0
- package/dist/functions/utils/useAltool.d.ts +39 -0
- package/dist/functions/utils/useAltool.js +350 -0
- package/dist/functions/utils/useAltool.js.map +1 -0
- package/dist/functions/utils/vueDiff.d.ts +38 -0
- package/dist/functions/utils/vueDiff.js +333 -0
- package/dist/functions/utils/vueDiff.js.map +1 -0
- package/dist/functions/validation/isEmail.d.ts +1 -0
- package/dist/functions/validation/isEmail.js +8 -0
- package/dist/functions/validation/isEmail.js.map +1 -0
- package/dist/functions/validation/isIdCard.d.ts +1 -0
- package/dist/functions/validation/isIdCard.js +49 -0
- package/dist/functions/validation/isIdCard.js.map +1 -0
- package/dist/functions/validation/isIpAddress.d.ts +1 -0
- package/dist/functions/validation/isIpAddress.js +15 -0
- package/dist/functions/validation/isIpAddress.js.map +1 -0
- package/dist/functions/validation/isPhone.d.ts +1 -0
- package/dist/functions/validation/isPhone.js +12 -0
- package/dist/functions/validation/isPhone.js.map +1 -0
- package/dist/functions/validation/isUrl.d.ts +5 -0
- package/dist/functions/validation/isUrl.js +33 -0
- package/dist/functions/validation/isUrl.js.map +1 -0
- package/dist/hooks/usePermission.d.ts +7 -0
- package/dist/hooks/usePermission.js +123 -0
- package/dist/hooks/usePermission.js.map +1 -0
- package/dist/reactive/createReactive.d.ts +10 -0
- package/dist/reactive/createReactive.js +50 -0
- package/dist/reactive/createReactive.js.map +1 -0
- package/dist/reactive/createReactiveErrorManager.d.ts +63 -0
- package/dist/reactive/createReactiveErrorManager.js +199 -0
- package/dist/reactive/createReactiveErrorManager.js.map +1 -0
- package/dist/reactive/createReactiveI18n.d.ts +27 -0
- package/dist/reactive/createReactiveI18n.js +119 -0
- package/dist/reactive/createReactiveI18n.js.map +1 -0
- package/dist/reactive/createReactivePermission.d.ts +40 -0
- package/dist/reactive/createReactivePermission.js +189 -0
- package/dist/reactive/createReactivePermission.js.map +1 -0
- package/dist/reactive/createReactivePinia.d.ts +52 -0
- package/dist/reactive/createReactivePinia.js +183 -0
- package/dist/reactive/createReactivePinia.js.map +1 -0
- package/dist/reactive/useReactiveCookie.d.ts +19 -0
- package/dist/reactive/useReactiveCookie.js +84 -0
- package/dist/reactive/useReactiveCookie.js.map +1 -0
- package/dist/vue-hooks/browser/useBattery.d.ts +16 -0
- package/dist/vue-hooks/browser/useBattery.js +70 -0
- package/dist/vue-hooks/browser/useBattery.js.map +1 -0
- package/dist/vue-hooks/browser/useBluetooth.d.ts +25 -0
- package/dist/vue-hooks/browser/useBluetooth.js +72 -0
- package/dist/vue-hooks/browser/useBluetooth.js.map +1 -0
- package/dist/vue-hooks/browser/useCamera.d.ts +21 -0
- package/dist/vue-hooks/browser/useCamera.js +52 -0
- package/dist/vue-hooks/browser/useCamera.js.map +1 -0
- package/dist/vue-hooks/browser/useClipboard.d.ts +18 -0
- package/dist/vue-hooks/browser/useClipboard.js +33 -0
- package/dist/vue-hooks/browser/useClipboard.js.map +1 -0
- package/dist/vue-hooks/browser/useFullscreen.d.ts +20 -0
- package/dist/vue-hooks/browser/useFullscreen.js +73 -0
- package/dist/vue-hooks/browser/useFullscreen.js.map +1 -0
- package/dist/vue-hooks/browser/useGamepad.d.ts +25 -0
- package/dist/vue-hooks/browser/useGamepad.js +69 -0
- package/dist/vue-hooks/browser/useGamepad.js.map +1 -0
- package/dist/vue-hooks/browser/useGeolocation.d.ts +24 -0
- package/dist/vue-hooks/browser/useGeolocation.js +85 -0
- package/dist/vue-hooks/browser/useGeolocation.js.map +1 -0
- package/dist/vue-hooks/browser/useMediaSession.d.ts +19 -0
- package/dist/vue-hooks/browser/useMediaSession.js +71 -0
- package/dist/vue-hooks/browser/useMediaSession.js.map +1 -0
- package/dist/vue-hooks/browser/useMicrophone.d.ts +23 -0
- package/dist/vue-hooks/browser/useMicrophone.js +66 -0
- package/dist/vue-hooks/browser/useMicrophone.js.map +1 -0
- package/dist/vue-hooks/browser/useNetwork.d.ts +23 -0
- package/dist/vue-hooks/browser/useNetwork.js +57 -0
- package/dist/vue-hooks/browser/useNetwork.js.map +1 -0
- package/dist/vue-hooks/browser/useOrientation.d.ts +22 -0
- package/dist/vue-hooks/browser/useOrientation.js +54 -0
- package/dist/vue-hooks/browser/useOrientation.js.map +1 -0
- package/dist/vue-hooks/browser/usePageVisibility.d.ts +15 -0
- package/dist/vue-hooks/browser/usePageVisibility.js +25 -0
- package/dist/vue-hooks/browser/usePageVisibility.js.map +1 -0
- package/dist/vue-hooks/browser/useScreenOrientation.d.ts +24 -0
- package/dist/vue-hooks/browser/useScreenOrientation.js +67 -0
- package/dist/vue-hooks/browser/useScreenOrientation.js.map +1 -0
- package/dist/vue-hooks/browser/useScreenWakeLock.d.ts +15 -0
- package/dist/vue-hooks/browser/useScreenWakeLock.js +57 -0
- package/dist/vue-hooks/browser/useScreenWakeLock.js.map +1 -0
- package/dist/vue-hooks/browser/useShare.d.ts +21 -0
- package/dist/vue-hooks/browser/useShare.js +39 -0
- package/dist/vue-hooks/browser/useShare.js.map +1 -0
- package/dist/vue-hooks/browser/useVibration.d.ts +17 -0
- package/dist/vue-hooks/browser/useVibration.js +40 -0
- package/dist/vue-hooks/browser/useVibration.js.map +1 -0
- package/dist/vue-hooks/dom/useClickOutside.d.ts +9 -0
- package/dist/vue-hooks/dom/useClickOutside.js +16 -0
- package/dist/vue-hooks/dom/useClickOutside.js.map +1 -0
- package/dist/vue-hooks/dom/useDraggable.d.ts +33 -0
- package/dist/vue-hooks/dom/useDraggable.js +163 -0
- package/dist/vue-hooks/dom/useDraggable.js.map +1 -0
- package/dist/vue-hooks/dom/useEventListener.d.ts +11 -0
- package/dist/vue-hooks/dom/useEventListener.js +18 -0
- package/dist/vue-hooks/dom/useEventListener.js.map +1 -0
- package/dist/vue-hooks/dom/useResizable.d.ts +50 -0
- package/dist/vue-hooks/dom/useResizable.js +178 -0
- package/dist/vue-hooks/dom/useResizable.js.map +1 -0
- package/dist/vue-hooks/history/useDebouncedRefHistory.d.ts +17 -0
- package/dist/vue-hooks/history/useDebouncedRefHistory.js +46 -0
- package/dist/vue-hooks/history/useDebouncedRefHistory.js.map +1 -0
- package/dist/vue-hooks/history/useManualRefHistory.d.ts +26 -0
- package/dist/vue-hooks/history/useManualRefHistory.js +80 -0
- package/dist/vue-hooks/history/useManualRefHistory.js.map +1 -0
- package/dist/vue-hooks/history/useRefHistory.d.ts +15 -0
- package/dist/vue-hooks/history/useRefHistory.js +41 -0
- package/dist/vue-hooks/history/useRefHistory.js.map +1 -0
- package/dist/vue-hooks/state/createGlobalState.d.ts +2 -0
- package/dist/vue-hooks/state/createGlobalState.js +11 -0
- package/dist/vue-hooks/state/createGlobalState.js.map +1 -0
- package/dist/vue-hooks/state/createInjectionState.d.ts +10 -0
- package/dist/vue-hooks/state/createInjectionState.js +20 -0
- package/dist/vue-hooks/state/createInjectionState.js.map +1 -0
- package/dist/vue-hooks/state/createSharedComposable.d.ts +2 -0
- package/dist/vue-hooks/state/createSharedComposable.js +13 -0
- package/dist/vue-hooks/state/createSharedComposable.js.map +1 -0
- package/dist/vue-hooks/state/injectLocal.d.ts +8 -0
- package/dist/vue-hooks/state/injectLocal.js +12 -0
- package/dist/vue-hooks/state/injectLocal.js.map +1 -0
- package/dist/vue-hooks/state/provideLocal.d.ts +7 -0
- package/dist/vue-hooks/state/provideLocal.js +7 -0
- package/dist/vue-hooks/state/provideLocal.js.map +1 -0
- package/dist/vue-hooks/state/useAsyncState.d.ts +27 -0
- package/dist/vue-hooks/state/useAsyncState.js +46 -0
- package/dist/vue-hooks/state/useAsyncState.js.map +1 -0
- package/dist/vue-hooks/state/useCounter.d.ts +17 -0
- package/dist/vue-hooks/state/useCounter.js +44 -0
- package/dist/vue-hooks/state/useCounter.js.map +1 -0
- package/dist/vue-hooks/state/useToggle.d.ts +13 -0
- package/dist/vue-hooks/state/useToggle.js +23 -0
- package/dist/vue-hooks/state/useToggle.js.map +1 -0
- package/dist/vue-hooks/time/useInterval.d.ts +16 -0
- package/dist/vue-hooks/time/useInterval.js +33 -0
- package/dist/vue-hooks/time/useInterval.js.map +1 -0
- package/dist/vue-hooks/time/useTimeout.d.ts +17 -0
- package/dist/vue-hooks/time/useTimeout.js +40 -0
- package/dist/vue-hooks/time/useTimeout.js.map +1 -0
- package/dist/vue-hooks/worker/useWebWorker.d.ts +25 -0
- package/dist/vue-hooks/worker/useWebWorker.js +207 -0
- package/dist/vue-hooks/worker/useWebWorker.js.map +1 -0
- package/dist/vue-hooks/worker/useWorkerFunction.d.ts +26 -0
- package/dist/vue-hooks/worker/useWorkerFunction.js +191 -0
- package/dist/vue-hooks/worker/useWorkerFunction.js.map +1 -0
- package/dist/vue-hooks/worker/useWorkerPool.d.ts +33 -0
- package/dist/vue-hooks/worker/useWorkerPool.js +247 -0
- package/dist/vue-hooks/worker/useWorkerPool.js.map +1 -0
- package/package.json +175 -60
- package/references/browser.d.ts +12 -0
- package/references/device.d.ts +340 -0
- package/references/dom.d.ts +31 -6
- package/references/node.d.ts +2 -0
- package/references/tencent-cloud.d.ts +38 -0
- package/references/xlsx.d.ts +51 -0
- package/types/algorithm-visual.d.ts +79 -0
- package/types/algorithm.d.ts +85 -0
- package/types/reactive.d.ts +67 -0
- package/types/tencent-cloud.d.ts +29 -0
- package/types/vue.d.ts +22 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import useWebWorker from './useWebWorker';
|
|
2
|
+
export default function useWorkerPool(deps, options) {
|
|
3
|
+
if (!deps.Worker) {
|
|
4
|
+
throw new Error('Web Workers are not supported in this environment');
|
|
5
|
+
}
|
|
6
|
+
const { scriptURL, poolSize = 4, maxQueueSize = 100, taskTimeout = 30000, autoScale = true, minPoolSize = 1, maxPoolSize = 8 } = options;
|
|
7
|
+
const isReady = deps.ref(false);
|
|
8
|
+
const isLoading = deps.ref(true);
|
|
9
|
+
const error = deps.ref(null);
|
|
10
|
+
const workers = [];
|
|
11
|
+
const taskQueue = [];
|
|
12
|
+
let taskId = 0;
|
|
13
|
+
const activeTasks = new Map();
|
|
14
|
+
const createWorker = () => {
|
|
15
|
+
const worker = useWebWorker({
|
|
16
|
+
Worker: deps.Worker,
|
|
17
|
+
setTimeout: deps.setTimeout,
|
|
18
|
+
clearTimeout: deps.clearTimeout,
|
|
19
|
+
ref: deps.ref
|
|
20
|
+
}, {
|
|
21
|
+
scriptURL,
|
|
22
|
+
timeout: taskTimeout,
|
|
23
|
+
autoRestart: true
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
worker,
|
|
27
|
+
busy: false,
|
|
28
|
+
taskCount: 0,
|
|
29
|
+
lastUsed: Date.now()
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
const initializePool = async () => {
|
|
33
|
+
try {
|
|
34
|
+
isLoading.value = true;
|
|
35
|
+
error.value = null;
|
|
36
|
+
for (let i = 0; i < poolSize; i++) {
|
|
37
|
+
workers.push(createWorker());
|
|
38
|
+
}
|
|
39
|
+
await Promise.all(workers.map(w => new Promise((resolve) => {
|
|
40
|
+
const checkReady = () => {
|
|
41
|
+
if (w.worker.isReady.value) {
|
|
42
|
+
resolve();
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
deps.setTimeout(checkReady, 100);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
checkReady();
|
|
49
|
+
})));
|
|
50
|
+
isReady.value = true;
|
|
51
|
+
isLoading.value = false;
|
|
52
|
+
processQueue();
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
const errorObj = err instanceof Error ? err : new Error(String(err));
|
|
56
|
+
error.value = errorObj;
|
|
57
|
+
isLoading.value = false;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const getAvailableWorker = () => {
|
|
61
|
+
for (let i = 0; i < workers.length; i++) {
|
|
62
|
+
if (!workers[i].busy && workers[i].worker.isReady.value) {
|
|
63
|
+
return i;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (autoScale && workers.length < maxPoolSize) {
|
|
67
|
+
const newWorker = createWorker();
|
|
68
|
+
workers.push(newWorker);
|
|
69
|
+
return workers.length - 1;
|
|
70
|
+
}
|
|
71
|
+
return -1;
|
|
72
|
+
};
|
|
73
|
+
const processQueue = () => {
|
|
74
|
+
while (taskQueue.length > 0) {
|
|
75
|
+
const workerId = getAvailableWorker();
|
|
76
|
+
if (workerId === -1) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
taskQueue.sort((a, b) => b.priority - a.priority);
|
|
80
|
+
const queueItem = taskQueue.shift();
|
|
81
|
+
const worker = workers[workerId];
|
|
82
|
+
worker.busy = true;
|
|
83
|
+
worker.taskCount++;
|
|
84
|
+
worker.lastUsed = Date.now();
|
|
85
|
+
executeTask(workerId, queueItem);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const executeTask = async (workerId, queueItem) => {
|
|
89
|
+
const { task, resolve, reject } = queueItem;
|
|
90
|
+
const worker = workers[workerId];
|
|
91
|
+
const currentTaskId = ++taskId;
|
|
92
|
+
try {
|
|
93
|
+
const timeout = deps.setTimeout(() => {
|
|
94
|
+
activeTasks.delete(currentTaskId);
|
|
95
|
+
worker.busy = false;
|
|
96
|
+
reject(new Error('Task timeout'));
|
|
97
|
+
processQueue();
|
|
98
|
+
}, taskTimeout);
|
|
99
|
+
activeTasks.set(currentTaskId, { workerId, timeout });
|
|
100
|
+
const result = await worker.worker.postMessage(task.data, task.transfer);
|
|
101
|
+
deps.clearTimeout(timeout);
|
|
102
|
+
activeTasks.delete(currentTaskId);
|
|
103
|
+
worker.busy = false;
|
|
104
|
+
resolve({
|
|
105
|
+
success: result.success,
|
|
106
|
+
data: result.data,
|
|
107
|
+
error: result.error,
|
|
108
|
+
workerId,
|
|
109
|
+
executionTime: Date.now() - queueItem.timestamp
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
catch (err) {
|
|
113
|
+
const errorObj = err instanceof Error ? err : new Error(String(err));
|
|
114
|
+
worker.busy = false;
|
|
115
|
+
reject(errorObj);
|
|
116
|
+
}
|
|
117
|
+
processQueue();
|
|
118
|
+
};
|
|
119
|
+
const execute = async (task) => {
|
|
120
|
+
if (!isReady.value) {
|
|
121
|
+
throw new Error('Worker pool is not ready');
|
|
122
|
+
}
|
|
123
|
+
if (taskQueue.length >= maxQueueSize) {
|
|
124
|
+
throw new Error('Task queue is full');
|
|
125
|
+
}
|
|
126
|
+
return new Promise((resolve, reject) => {
|
|
127
|
+
const priority = task.priority === 'high' ? 3 :
|
|
128
|
+
task.priority === 'normal' ? 2 : 1;
|
|
129
|
+
taskQueue.push({
|
|
130
|
+
task,
|
|
131
|
+
resolve,
|
|
132
|
+
reject,
|
|
133
|
+
priority,
|
|
134
|
+
timestamp: Date.now()
|
|
135
|
+
});
|
|
136
|
+
processQueue();
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const executeBatch = async (tasks) => {
|
|
140
|
+
const promises = tasks.map(task => execute(task));
|
|
141
|
+
return Promise.all(promises);
|
|
142
|
+
};
|
|
143
|
+
const cancelTask = (taskId) => {
|
|
144
|
+
const activeTask = activeTasks.get(taskId);
|
|
145
|
+
if (activeTask) {
|
|
146
|
+
deps.clearTimeout(activeTask.timeout);
|
|
147
|
+
activeTasks.delete(taskId);
|
|
148
|
+
workers[activeTask.workerId].busy = false;
|
|
149
|
+
processQueue();
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
return false;
|
|
153
|
+
};
|
|
154
|
+
const clearQueue = () => {
|
|
155
|
+
while (taskQueue.length > 0) {
|
|
156
|
+
const queueItem = taskQueue.shift();
|
|
157
|
+
queueItem.reject(new Error('Task cancelled'));
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const resize = async (newSize) => {
|
|
161
|
+
const targetSize = Math.max(minPoolSize, Math.min(maxPoolSize, newSize));
|
|
162
|
+
if (targetSize > workers.length) {
|
|
163
|
+
for (let i = workers.length; i < targetSize; i++) {
|
|
164
|
+
workers.push(createWorker());
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
else if (targetSize < workers.length) {
|
|
168
|
+
const workersToRemove = workers.length - targetSize;
|
|
169
|
+
let removed = 0;
|
|
170
|
+
for (let i = workers.length - 1; i >= 0 && removed < workersToRemove; i--) {
|
|
171
|
+
if (!workers[i].busy) {
|
|
172
|
+
workers[i].worker.terminate();
|
|
173
|
+
workers.splice(i, 1);
|
|
174
|
+
removed++;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const getStats = () => {
|
|
180
|
+
const busyWorkers = workers.filter(w => w.busy).length;
|
|
181
|
+
const totalTasks = workers.reduce((sum, w) => sum + w.taskCount, 0);
|
|
182
|
+
return {
|
|
183
|
+
poolSize: workers.length,
|
|
184
|
+
busyWorkers,
|
|
185
|
+
idleWorkers: workers.length - busyWorkers,
|
|
186
|
+
queueSize: taskQueue.length,
|
|
187
|
+
activeTasks: activeTasks.size,
|
|
188
|
+
totalTasksProcessed: totalTasks,
|
|
189
|
+
isReady: isReady.value,
|
|
190
|
+
isLoading: isLoading.value,
|
|
191
|
+
error: error.value
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
const terminate = () => {
|
|
195
|
+
clearQueue();
|
|
196
|
+
for (const [taskId, activeTask] of activeTasks) {
|
|
197
|
+
deps.clearTimeout(activeTask.timeout);
|
|
198
|
+
}
|
|
199
|
+
activeTasks.clear();
|
|
200
|
+
workers.forEach(w => w.worker.terminate());
|
|
201
|
+
workers.length = 0;
|
|
202
|
+
isReady.value = false;
|
|
203
|
+
isLoading.value = false;
|
|
204
|
+
};
|
|
205
|
+
const restart = async () => {
|
|
206
|
+
terminate();
|
|
207
|
+
await initializePool();
|
|
208
|
+
};
|
|
209
|
+
const healthCheck = () => {
|
|
210
|
+
const now = Date.now();
|
|
211
|
+
workers.forEach((worker, index) => {
|
|
212
|
+
if (!worker.worker.isReady.value && !worker.busy) {
|
|
213
|
+
worker.worker.restart().catch(() => {
|
|
214
|
+
workers[index] = createWorker();
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
if (autoScale &&
|
|
218
|
+
workers.length > minPoolSize &&
|
|
219
|
+
!worker.busy &&
|
|
220
|
+
now - worker.lastUsed > 60000) {
|
|
221
|
+
worker.worker.terminate();
|
|
222
|
+
workers.splice(index, 1);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
initializePool();
|
|
227
|
+
const healthCheckInterval = deps.setInterval(healthCheck, 30000);
|
|
228
|
+
const cleanup = () => {
|
|
229
|
+
deps.clearInterval(healthCheckInterval);
|
|
230
|
+
terminate();
|
|
231
|
+
};
|
|
232
|
+
return {
|
|
233
|
+
isReady,
|
|
234
|
+
isLoading,
|
|
235
|
+
error,
|
|
236
|
+
execute,
|
|
237
|
+
executeBatch,
|
|
238
|
+
cancelTask,
|
|
239
|
+
clearQueue,
|
|
240
|
+
resize,
|
|
241
|
+
getStats,
|
|
242
|
+
terminate,
|
|
243
|
+
restart,
|
|
244
|
+
cleanup
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=useWorkerPool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWorkerPool.js","sourceRoot":"","sources":["../../../src/vue-hooks/worker/useWorkerPool.ts"],"names":[],"mappings":"AASA,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAkCzC,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,IAAoB,EACpB,OAOC;IAED,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;IACtE,CAAC;IAED,MAAM,EACJ,SAAS,EACT,QAAQ,GAAG,CAAC,EACZ,YAAY,GAAG,GAAG,EAClB,WAAW,GAAG,KAAK,EACnB,SAAS,GAAG,IAAI,EAChB,WAAW,GAAG,CAAC,EACf,WAAW,GAAG,CAAC,EAChB,GAAG,OAAO,CAAA;IAGX,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAChC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAe,IAAI,CAAC,CAAA;IAG1C,MAAM,OAAO,GAKR,EAAE,CAAA;IAEP,MAAM,SAAS,GAMV,EAAE,CAAA;IAEP,IAAI,MAAM,GAAG,CAAC,CAAA;IAC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YAGD,IAAI,SAAS;gBACT,OAAO,CAAC,MAAM,GAAG,WAAW;gBAC5B,CAAC,MAAM,CAAC,IAAI;gBACZ,GAAG,GAAG,MAAM,CAAC,QAAQ,GAAG,KAAK,EAAE,CAAC;gBAClC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,CAAA;gBACzB,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;YAC1B,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAA;IAGD,cAAc,EAAE,CAAA;IAGhB,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA;IAGhE,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAA;QACvC,SAAS,EAAE,CAAA;IACb,CAAC,CAAA;IAED,OAAO;QACL,OAAO;QACP,SAAS;QACT,KAAK;QACL,OAAO;QACP,YAAY;QACZ,UAAU;QACV,UAAU;QACV,MAAM;QACN,QAAQ;QACR,SAAS;QACT,OAAO;QACP,OAAO;KACR,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcw-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"references",
|
|
6
6
|
"dist",
|
|
@@ -26,35 +26,111 @@
|
|
|
26
26
|
"docs:preview": "vitepress preview docs"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
+
"@cloudbase/manager-node": "^4.3.2",
|
|
29
30
|
"tsx": "^4.20.3",
|
|
30
31
|
"typescript": "^5.8.3",
|
|
31
32
|
"vitepress": "^1.6.4",
|
|
32
33
|
"vue": "^3.5.22",
|
|
33
|
-
"zcw-
|
|
34
|
+
"zcw-shared": "^1.20.0",
|
|
35
|
+
"zcw-vue-ui": "^1.11.3"
|
|
34
36
|
},
|
|
35
37
|
"exports": {
|
|
36
38
|
"./constants/colorPatterns": "./dist/constants/colorPatterns.js",
|
|
37
39
|
"./constants/namedColors": "./dist/constants/namedColors.js",
|
|
38
40
|
"./constants/softwareConfigs": "./dist/constants/softwareConfigs.js",
|
|
39
41
|
"./functions/ag-grid/generateLicense": "./dist/functions/ag-grid/generateLicense.js",
|
|
42
|
+
"./functions/algorithm/binarySearch": "./dist/functions/algorithm/binarySearch.js",
|
|
43
|
+
"./functions/algorithm/canJump": "./dist/functions/algorithm/canJump.js",
|
|
44
|
+
"./functions/algorithm/climbStairs": "./dist/functions/algorithm/climbStairs.js",
|
|
45
|
+
"./functions/algorithm/coinChange": "./dist/functions/algorithm/coinChange.js",
|
|
46
|
+
"./functions/algorithm/combinationSum": "./dist/functions/algorithm/combinationSum.js",
|
|
47
|
+
"./functions/algorithm/editDistance": "./dist/functions/algorithm/editDistance.js",
|
|
48
|
+
"./functions/algorithm/generateParenthesis": "./dist/functions/algorithm/generateParenthesis.js",
|
|
49
|
+
"./functions/algorithm/kmp": "./dist/functions/algorithm/kmp.js",
|
|
50
|
+
"./functions/algorithm/knapsack01": "./dist/functions/algorithm/knapsack01.js",
|
|
51
|
+
"./functions/algorithm/lengthOfLongestSubstring": "./dist/functions/algorithm/lengthOfLongestSubstring.js",
|
|
52
|
+
"./functions/algorithm/longestCommonSubsequence": "./dist/functions/algorithm/longestCommonSubsequence.js",
|
|
53
|
+
"./functions/algorithm/longestIncreasingSubsequence": "./dist/functions/algorithm/longestIncreasingSubsequence.js",
|
|
54
|
+
"./functions/algorithm/maxArea": "./dist/functions/algorithm/maxArea.js",
|
|
55
|
+
"./functions/algorithm/maxProfit": "./dist/functions/algorithm/maxProfit.js",
|
|
56
|
+
"./functions/algorithm/meetingRooms": "./dist/functions/algorithm/meetingRooms.js",
|
|
57
|
+
"./functions/algorithm/mergeSort": "./dist/functions/algorithm/mergeSort.js",
|
|
58
|
+
"./functions/algorithm/minPathSum": "./dist/functions/algorithm/minPathSum.js",
|
|
59
|
+
"./functions/algorithm/minWindow": "./dist/functions/algorithm/minWindow.js",
|
|
60
|
+
"./functions/algorithm/nQueens": "./dist/functions/algorithm/nQueens.js",
|
|
61
|
+
"./functions/algorithm/numIslands": "./dist/functions/algorithm/numIslands.js",
|
|
62
|
+
"./functions/algorithm/permutations": "./dist/functions/algorithm/permutations.js",
|
|
63
|
+
"./functions/algorithm/quickSort": "./dist/functions/algorithm/quickSort.js",
|
|
64
|
+
"./functions/algorithm/rabinKarp": "./dist/functions/algorithm/rabinKarp.js",
|
|
65
|
+
"./functions/algorithm/taskScheduler": "./dist/functions/algorithm/taskScheduler.js",
|
|
66
|
+
"./functions/algorithm/threeSum": "./dist/functions/algorithm/threeSum.js",
|
|
67
|
+
"./functions/algorithm/topologicalSort": "./dist/functions/algorithm/topologicalSort.js",
|
|
68
|
+
"./functions/algorithm/trap": "./dist/functions/algorithm/trap.js",
|
|
40
69
|
"./functions/android/buildProject": "./dist/functions/android/buildProject.js",
|
|
41
70
|
"./functions/android/detectAndroidModules": "./dist/functions/android/detectAndroidModules.js",
|
|
42
71
|
"./functions/android/modifyGradle": "./dist/functions/android/modifyGradle.js",
|
|
43
72
|
"./functions/android/modifyManifest": "./dist/functions/android/modifyManifest.js",
|
|
44
73
|
"./functions/android/permission": "./dist/functions/android/permission.js",
|
|
74
|
+
"./functions/array-object/chunk": "./dist/functions/array-object/chunk.js",
|
|
75
|
+
"./functions/array-object/deepClone": "./dist/functions/array-object/deepClone.js",
|
|
76
|
+
"./functions/array-object/evolve": "./dist/functions/array-object/evolve.js",
|
|
77
|
+
"./functions/array-object/flatten": "./dist/functions/array-object/flatten.js",
|
|
78
|
+
"./functions/array-object/flattenObject": "./dist/functions/array-object/flattenObject.js",
|
|
79
|
+
"./functions/array-object/groupBy": "./dist/functions/array-object/groupBy.js",
|
|
80
|
+
"./functions/array-object/omit": "./dist/functions/array-object/omit.js",
|
|
81
|
+
"./functions/array-object/pick": "./dist/functions/array-object/pick.js",
|
|
82
|
+
"./functions/array-object/shuffle": "./dist/functions/array-object/shuffle.js",
|
|
83
|
+
"./functions/array-object/sortBy": "./dist/functions/array-object/sortBy.js",
|
|
84
|
+
"./functions/array-object/unique": "./dist/functions/array-object/unique.js",
|
|
85
|
+
"./functions/async/cachedAsync": "./dist/functions/async/cachedAsync.js",
|
|
45
86
|
"./functions/async/createInterruptibleTask": "./dist/functions/async/createInterruptibleTask.js",
|
|
87
|
+
"./functions/async/promiseLimit": "./dist/functions/async/promiseLimit.js",
|
|
88
|
+
"./functions/async/retryWithBackoff": "./dist/functions/async/retryWithBackoff.js",
|
|
89
|
+
"./functions/browser/detectBrowser": "./dist/functions/browser/detectBrowser.js",
|
|
90
|
+
"./functions/browser/detectOS": "./dist/functions/browser/detectOS.js",
|
|
91
|
+
"./functions/browser/isMobile": "./dist/functions/browser/isMobile.js",
|
|
46
92
|
"./functions/color/colorValidation": "./dist/functions/color/colorValidation.js",
|
|
47
93
|
"./functions/color/convertColor": "./dist/functions/color/convertColor.js",
|
|
48
94
|
"./functions/color/deduplicateColors": "./dist/functions/color/deduplicateColors.js",
|
|
49
95
|
"./functions/color/detectColorFormat": "./dist/functions/color/detectColorFormat.js",
|
|
50
96
|
"./functions/color/extractColors": "./dist/functions/color/extractColors.js",
|
|
51
97
|
"./functions/css/extractCssVariables": "./dist/functions/css/extractCssVariables.js",
|
|
98
|
+
"./functions/data-structures/AVLTree": "./dist/functions/data-structures/AVLTree.js",
|
|
99
|
+
"./functions/data-structures/BinarySearchTree": "./dist/functions/data-structures/BinarySearchTree.js",
|
|
100
|
+
"./functions/data-structures/Graph": "./dist/functions/data-structures/Graph.js",
|
|
101
|
+
"./functions/data-structures/HashMap": "./dist/functions/data-structures/HashMap.js",
|
|
102
|
+
"./functions/data-structures/Heap": "./dist/functions/data-structures/Heap.js",
|
|
103
|
+
"./functions/data-structures/LRUCache": "./dist/functions/data-structures/LRUCache.js",
|
|
104
|
+
"./functions/data-structures/LinkedList": "./dist/functions/data-structures/LinkedList.js",
|
|
105
|
+
"./functions/data-structures/PriorityQueue": "./dist/functions/data-structures/PriorityQueue.js",
|
|
106
|
+
"./functions/data-structures/Queue": "./dist/functions/data-structures/Queue.js",
|
|
107
|
+
"./functions/data-structures/Stack": "./dist/functions/data-structures/Stack.js",
|
|
108
|
+
"./functions/data-structures/Trie": "./dist/functions/data-structures/Trie.js",
|
|
109
|
+
"./functions/data-structures/UnionFind": "./dist/functions/data-structures/UnionFind.js",
|
|
110
|
+
"./functions/date/dateRange": "./dist/functions/date/dateRange.js",
|
|
111
|
+
"./functions/date/formatDate": "./dist/functions/date/formatDate.js",
|
|
112
|
+
"./functions/date/timeAgo": "./dist/functions/date/timeAgo.js",
|
|
52
113
|
"./functions/debug/createDebugger": "./dist/functions/debug/createDebugger.js",
|
|
114
|
+
"./functions/design-tokens/buildTokens": "./dist/functions/design-tokens/buildTokens.js",
|
|
115
|
+
"./functions/design-tokens/generateVariables": "./dist/functions/design-tokens/generateVariables.js",
|
|
116
|
+
"./functions/design-tokens/mixColors": "./dist/functions/design-tokens/mixColors.js",
|
|
117
|
+
"./functions/design-tokens/parseDesignTokens": "./dist/functions/design-tokens/parseDesignTokens.js",
|
|
53
118
|
"./functions/dom/demonstrateResourceLoading": "./dist/functions/dom/demonstrateResourceLoading.js",
|
|
54
119
|
"./functions/dom/detectOverflow": "./dist/functions/dom/detectOverflow.js",
|
|
55
120
|
"./functions/dom/getElementRect": "./dist/functions/dom/getElementRect.js",
|
|
56
121
|
"./functions/dom/getRelativePosition": "./dist/functions/dom/getRelativePosition.js",
|
|
57
122
|
"./functions/dom/getViewportRect": "./dist/functions/dom/getViewportRect.js",
|
|
123
|
+
"./functions/file/formatFileSize": "./dist/functions/file/formatFileSize.js",
|
|
124
|
+
"./functions/file/getFileExtension": "./dist/functions/file/getFileExtension.js",
|
|
125
|
+
"./functions/functional/compose": "./dist/functions/functional/compose.js",
|
|
126
|
+
"./functions/functional/cond": "./dist/functions/functional/cond.js",
|
|
127
|
+
"./functions/functional/curry": "./dist/functions/functional/curry.js",
|
|
128
|
+
"./functions/functional/curryAdvanced": "./dist/functions/functional/curryAdvanced.js",
|
|
129
|
+
"./functions/functional/flow": "./dist/functions/functional/flow.js",
|
|
130
|
+
"./functions/functional/partial": "./dist/functions/functional/partial.js",
|
|
131
|
+
"./functions/functional/pipe": "./dist/functions/functional/pipe.js",
|
|
132
|
+
"./functions/functional/tap": "./dist/functions/functional/tap.js",
|
|
133
|
+
"./functions/functional/until": "./dist/functions/functional/until.js",
|
|
58
134
|
"./functions/image/compressToTargetSize": "./dist/functions/image/compressToTargetSize.js",
|
|
59
135
|
"./functions/image/generateMacIcons": "./dist/functions/image/generateMacIcons.js",
|
|
60
136
|
"./functions/image/generateMacTrayIcon": "./dist/functions/image/generateMacTrayIcon.js",
|
|
@@ -63,7 +139,44 @@
|
|
|
63
139
|
"./functions/image/generateRoundedImage": "./dist/functions/image/generateRoundedImage.js",
|
|
64
140
|
"./functions/image/getImageDimensions": "./dist/functions/image/getImageDimensions.js",
|
|
65
141
|
"./functions/ipc/dispatchIpcRequest": "./dist/functions/ipc/dispatchIpcRequest.js",
|
|
142
|
+
"./functions/math/average": "./dist/functions/math/average.js",
|
|
143
|
+
"./functions/math/median": "./dist/functions/math/median.js",
|
|
144
|
+
"./functions/math/percentile": "./dist/functions/math/percentile.js",
|
|
145
|
+
"./functions/math/sum": "./dist/functions/math/sum.js",
|
|
146
|
+
"./functions/number/clamp": "./dist/functions/number/clamp.js",
|
|
147
|
+
"./functions/number/formatNumber": "./dist/functions/number/formatNumber.js",
|
|
148
|
+
"./functions/number/random": "./dist/functions/number/random.js",
|
|
149
|
+
"./functions/number/range": "./dist/functions/number/range.js",
|
|
150
|
+
"./functions/patterns/EventEmitter": "./dist/functions/patterns/EventEmitter.js",
|
|
151
|
+
"./functions/patterns/adapter": "./dist/functions/patterns/adapter.js",
|
|
152
|
+
"./functions/patterns/builder": "./dist/functions/patterns/builder.js",
|
|
153
|
+
"./functions/patterns/chainOfResponsibility": "./dist/functions/patterns/chainOfResponsibility.js",
|
|
154
|
+
"./functions/patterns/command": "./dist/functions/patterns/command.js",
|
|
155
|
+
"./functions/patterns/decorator": "./dist/functions/patterns/decorator.js",
|
|
156
|
+
"./functions/patterns/factory": "./dist/functions/patterns/factory.js",
|
|
157
|
+
"./functions/patterns/observer": "./dist/functions/patterns/observer.js",
|
|
158
|
+
"./functions/patterns/prototype": "./dist/functions/patterns/prototype.js",
|
|
159
|
+
"./functions/patterns/proxy": "./dist/functions/patterns/proxy.js",
|
|
160
|
+
"./functions/patterns/singleton": "./dist/functions/patterns/singleton.js",
|
|
161
|
+
"./functions/patterns/strategy": "./dist/functions/patterns/strategy.js",
|
|
162
|
+
"./functions/patterns/templateMethod": "./dist/functions/patterns/templateMethod.js",
|
|
163
|
+
"./functions/patterns/usePluginSystem": "./dist/functions/patterns/usePluginSystem.js",
|
|
164
|
+
"./functions/performance/debounce": "./dist/functions/performance/debounce.js",
|
|
165
|
+
"./functions/performance/memoize": "./dist/functions/performance/memoize.js",
|
|
166
|
+
"./functions/performance/once": "./dist/functions/performance/once.js",
|
|
167
|
+
"./functions/performance/throttle": "./dist/functions/performance/throttle.js",
|
|
168
|
+
"./functions/performance/useCache": "./dist/functions/performance/useCache.js",
|
|
169
|
+
"./functions/principles/MyPromise": "./dist/functions/principles/MyPromise.js",
|
|
170
|
+
"./functions/principles/functionBind": "./dist/functions/principles/functionBind.js",
|
|
171
|
+
"./functions/principles/myInstanceof": "./dist/functions/principles/myInstanceof.js",
|
|
172
|
+
"./functions/principles/myNew": "./dist/functions/principles/myNew.js",
|
|
173
|
+
"./functions/promise/sleep": "./dist/functions/promise/sleep.js",
|
|
174
|
+
"./functions/promise/timeout": "./dist/functions/promise/timeout.js",
|
|
66
175
|
"./functions/software/findSoftware": "./dist/functions/software/findSoftware.js",
|
|
176
|
+
"./functions/storage/useLocalStorage": "./dist/functions/storage/useLocalStorage.js",
|
|
177
|
+
"./functions/storage/useSessionStorage": "./dist/functions/storage/useSessionStorage.js",
|
|
178
|
+
"./functions/storage/useStorage": "./dist/functions/storage/useStorage.js",
|
|
179
|
+
"./functions/storage/useStorageWithIndexedDB": "./dist/functions/storage/useStorageWithIndexedDB.js",
|
|
67
180
|
"./functions/string/base64": "./dist/functions/string/base64.js",
|
|
68
181
|
"./functions/string/capitalize": "./dist/functions/string/capitalize.js",
|
|
69
182
|
"./functions/string/caseConverter": "./dist/functions/string/caseConverter.js",
|
|
@@ -78,54 +191,32 @@
|
|
|
78
191
|
"./functions/string/wordCount": "./dist/functions/string/wordCount.js",
|
|
79
192
|
"./functions/tencent-cloud/deploy.tcb": "./dist/functions/tencent-cloud/deploy.tcb.js",
|
|
80
193
|
"./functions/tencent-cloud/getSecret": "./dist/functions/tencent-cloud/getSecret.js",
|
|
194
|
+
"./functions/tencent-cloud/upload.cos": "./dist/functions/tencent-cloud/upload.cos.js",
|
|
195
|
+
"./functions/tree/buildTree": "./dist/functions/tree/buildTree.js",
|
|
196
|
+
"./functions/tree/filterTree": "./dist/functions/tree/filterTree.js",
|
|
197
|
+
"./functions/tree/findNode": "./dist/functions/tree/findNode.js",
|
|
198
|
+
"./functions/tree/flattenTree": "./dist/functions/tree/flattenTree.js",
|
|
81
199
|
"./functions/uniapp/app-plus/buildAndroidApp": "./dist/functions/uniapp/app-plus/buildAndroidApp.js",
|
|
82
200
|
"./functions/uniapp/build": "./dist/functions/uniapp/build.js",
|
|
83
201
|
"./functions/uniapp/detectAndroidProjectStructure": "./dist/functions/uniapp/detectAndroidProjectStructure.js",
|
|
84
202
|
"./functions/uniapp/detectProjectType": "./dist/functions/uniapp/detectProjectType.js",
|
|
85
203
|
"./functions/uniapp/parseManifest": "./dist/functions/uniapp/parseManifest.js",
|
|
86
204
|
"./functions/uniapp/waitForPages": "./dist/functions/uniapp/waitForPages.js",
|
|
87
|
-
"./functions/
|
|
88
|
-
"./functions/
|
|
89
|
-
"./functions/utils/
|
|
90
|
-
"./functions/utils/Graph": "./dist/functions/utils/Graph.js",
|
|
91
|
-
"./functions/utils/HashMap": "./dist/functions/utils/HashMap.js",
|
|
92
|
-
"./functions/utils/Heap": "./dist/functions/utils/Heap.js",
|
|
93
|
-
"./functions/utils/LRUCache": "./dist/functions/utils/LRUCache.js",
|
|
94
|
-
"./functions/utils/LinkedList": "./dist/functions/utils/LinkedList.js",
|
|
95
|
-
"./functions/utils/MyPromise": "./dist/functions/utils/MyPromise.js",
|
|
96
|
-
"./functions/utils/PriorityQueue": "./dist/functions/utils/PriorityQueue.js",
|
|
97
|
-
"./functions/utils/Queue": "./dist/functions/utils/Queue.js",
|
|
98
|
-
"./functions/utils/Stack": "./dist/functions/utils/Stack.js",
|
|
99
|
-
"./functions/utils/Trie": "./dist/functions/utils/Trie.js",
|
|
100
|
-
"./functions/utils/UnionFind": "./dist/functions/utils/UnionFind.js",
|
|
101
|
-
"./functions/utils/compose": "./dist/functions/utils/compose.js",
|
|
102
|
-
"./functions/utils/cond": "./dist/functions/utils/cond.js",
|
|
103
|
-
"./functions/utils/curry": "./dist/functions/utils/curry.js",
|
|
104
|
-
"./functions/utils/curryAdvanced": "./dist/functions/utils/curryAdvanced.js",
|
|
105
|
-
"./functions/utils/debounce": "./dist/functions/utils/debounce.js",
|
|
106
|
-
"./functions/utils/deepClone": "./dist/functions/utils/deepClone.js",
|
|
107
|
-
"./functions/utils/evolve": "./dist/functions/utils/evolve.js",
|
|
108
|
-
"./functions/utils/flatten": "./dist/functions/utils/flatten.js",
|
|
109
|
-
"./functions/utils/flattenObject": "./dist/functions/utils/flattenObject.js",
|
|
110
|
-
"./functions/utils/flow": "./dist/functions/utils/flow.js",
|
|
111
|
-
"./functions/utils/functionBind": "./dist/functions/utils/functionBind.js",
|
|
205
|
+
"./functions/url/buildQueryString": "./dist/functions/url/buildQueryString.js",
|
|
206
|
+
"./functions/url/parseUrl": "./dist/functions/url/parseUrl.js",
|
|
207
|
+
"./functions/utils/diff": "./dist/functions/utils/diff.js",
|
|
112
208
|
"./functions/utils/generateExports": "./dist/functions/utils/generateExports.js",
|
|
113
209
|
"./functions/utils/generatorUtils": "./dist/functions/utils/generatorUtils.js",
|
|
114
210
|
"./functions/utils/isType": "./dist/functions/utils/isType.js",
|
|
115
|
-
"./functions/utils/
|
|
116
|
-
"./functions/utils/myInstanceof": "./dist/functions/utils/myInstanceof.js",
|
|
117
|
-
"./functions/utils/myNew": "./dist/functions/utils/myNew.js",
|
|
118
|
-
"./functions/utils/once": "./dist/functions/utils/once.js",
|
|
119
|
-
"./functions/utils/partial": "./dist/functions/utils/partial.js",
|
|
120
|
-
"./functions/utils/pipe": "./dist/functions/utils/pipe.js",
|
|
121
|
-
"./functions/utils/promiseLimit": "./dist/functions/utils/promiseLimit.js",
|
|
122
|
-
"./functions/utils/retryWithBackoff": "./dist/functions/utils/retryWithBackoff.js",
|
|
123
|
-
"./functions/utils/tap": "./dist/functions/utils/tap.js",
|
|
124
|
-
"./functions/utils/throttle": "./dist/functions/utils/throttle.js",
|
|
125
|
-
"./functions/utils/unique": "./dist/functions/utils/unique.js",
|
|
126
|
-
"./functions/utils/until": "./dist/functions/utils/until.js",
|
|
211
|
+
"./functions/utils/useAltool": "./dist/functions/utils/useAltool.js",
|
|
127
212
|
"./functions/utils/validate": "./dist/functions/utils/validate.js",
|
|
213
|
+
"./functions/utils/vueDiff": "./dist/functions/utils/vueDiff.js",
|
|
128
214
|
"./functions/utils/walk": "./dist/functions/utils/walk.js",
|
|
215
|
+
"./functions/validation/isEmail": "./dist/functions/validation/isEmail.js",
|
|
216
|
+
"./functions/validation/isIdCard": "./dist/functions/validation/isIdCard.js",
|
|
217
|
+
"./functions/validation/isIpAddress": "./dist/functions/validation/isIpAddress.js",
|
|
218
|
+
"./functions/validation/isPhone": "./dist/functions/validation/isPhone.js",
|
|
219
|
+
"./functions/validation/isUrl": "./dist/functions/validation/isUrl.js",
|
|
129
220
|
"./functions/version/incrementVersion": "./dist/functions/version/incrementVersion.js",
|
|
130
221
|
"./functions/version/parseVersion": "./dist/functions/version/parseVersion.js",
|
|
131
222
|
"./functions/vue/dynamicMount": "./dist/functions/vue/dynamicMount.js",
|
|
@@ -137,33 +228,57 @@
|
|
|
137
228
|
"./functions/vue/parseVueFile": "./dist/functions/vue/parseVueFile.js",
|
|
138
229
|
"./functions/wechat/miniapp/downloadFile": "./dist/functions/wechat/miniapp/downloadFile.js",
|
|
139
230
|
"./functions/xml/modifyXml": "./dist/functions/xml/modifyXml.js",
|
|
140
|
-
"./
|
|
141
|
-
"./
|
|
142
|
-
"./
|
|
143
|
-
"./
|
|
144
|
-
"./
|
|
145
|
-
"./
|
|
146
|
-
"./hooks/
|
|
147
|
-
"./hooks/
|
|
148
|
-
"./hooks/
|
|
149
|
-
"./hooks/
|
|
150
|
-
"./hooks/
|
|
151
|
-
"./hooks/
|
|
152
|
-
"./hooks/
|
|
153
|
-
"./hooks/
|
|
154
|
-
"./hooks/
|
|
155
|
-
"./hooks/
|
|
156
|
-
"./hooks/
|
|
157
|
-
"./hooks/
|
|
158
|
-
"./hooks/
|
|
159
|
-
"./hooks/
|
|
160
|
-
"./hooks/
|
|
231
|
+
"./reactive/createReactive": "./dist/reactive/createReactive.js",
|
|
232
|
+
"./reactive/createReactiveErrorManager": "./dist/reactive/createReactiveErrorManager.js",
|
|
233
|
+
"./reactive/createReactiveI18n": "./dist/reactive/createReactiveI18n.js",
|
|
234
|
+
"./reactive/createReactivePermission": "./dist/reactive/createReactivePermission.js",
|
|
235
|
+
"./reactive/createReactivePinia": "./dist/reactive/createReactivePinia.js",
|
|
236
|
+
"./reactive/useReactiveCookie": "./dist/reactive/useReactiveCookie.js",
|
|
237
|
+
"./vue-hooks/browser/useBattery": "./dist/vue-hooks/browser/useBattery.js",
|
|
238
|
+
"./vue-hooks/browser/useBluetooth": "./dist/vue-hooks/browser/useBluetooth.js",
|
|
239
|
+
"./vue-hooks/browser/useCamera": "./dist/vue-hooks/browser/useCamera.js",
|
|
240
|
+
"./vue-hooks/browser/useClipboard": "./dist/vue-hooks/browser/useClipboard.js",
|
|
241
|
+
"./vue-hooks/browser/useFullscreen": "./dist/vue-hooks/browser/useFullscreen.js",
|
|
242
|
+
"./vue-hooks/browser/useGamepad": "./dist/vue-hooks/browser/useGamepad.js",
|
|
243
|
+
"./vue-hooks/browser/useGeolocation": "./dist/vue-hooks/browser/useGeolocation.js",
|
|
244
|
+
"./vue-hooks/browser/useMediaSession": "./dist/vue-hooks/browser/useMediaSession.js",
|
|
245
|
+
"./vue-hooks/browser/useMicrophone": "./dist/vue-hooks/browser/useMicrophone.js",
|
|
246
|
+
"./vue-hooks/browser/useNetwork": "./dist/vue-hooks/browser/useNetwork.js",
|
|
247
|
+
"./vue-hooks/browser/useOrientation": "./dist/vue-hooks/browser/useOrientation.js",
|
|
248
|
+
"./vue-hooks/browser/usePageVisibility": "./dist/vue-hooks/browser/usePageVisibility.js",
|
|
249
|
+
"./vue-hooks/browser/useScreenOrientation": "./dist/vue-hooks/browser/useScreenOrientation.js",
|
|
250
|
+
"./vue-hooks/browser/useScreenWakeLock": "./dist/vue-hooks/browser/useScreenWakeLock.js",
|
|
251
|
+
"./vue-hooks/browser/useShare": "./dist/vue-hooks/browser/useShare.js",
|
|
252
|
+
"./vue-hooks/browser/useVibration": "./dist/vue-hooks/browser/useVibration.js",
|
|
253
|
+
"./vue-hooks/dom/useClickOutside": "./dist/vue-hooks/dom/useClickOutside.js",
|
|
254
|
+
"./vue-hooks/dom/useDraggable": "./dist/vue-hooks/dom/useDraggable.js",
|
|
255
|
+
"./vue-hooks/dom/useEventListener": "./dist/vue-hooks/dom/useEventListener.js",
|
|
256
|
+
"./vue-hooks/dom/useResizable": "./dist/vue-hooks/dom/useResizable.js",
|
|
257
|
+
"./vue-hooks/history/useDebouncedRefHistory": "./dist/vue-hooks/history/useDebouncedRefHistory.js",
|
|
258
|
+
"./vue-hooks/history/useManualRefHistory": "./dist/vue-hooks/history/useManualRefHistory.js",
|
|
259
|
+
"./vue-hooks/history/useRefHistory": "./dist/vue-hooks/history/useRefHistory.js",
|
|
260
|
+
"./vue-hooks/state/createGlobalState": "./dist/vue-hooks/state/createGlobalState.js",
|
|
261
|
+
"./vue-hooks/state/createInjectionState": "./dist/vue-hooks/state/createInjectionState.js",
|
|
262
|
+
"./vue-hooks/state/createSharedComposable": "./dist/vue-hooks/state/createSharedComposable.js",
|
|
263
|
+
"./vue-hooks/state/injectLocal": "./dist/vue-hooks/state/injectLocal.js",
|
|
264
|
+
"./vue-hooks/state/provideLocal": "./dist/vue-hooks/state/provideLocal.js",
|
|
265
|
+
"./vue-hooks/state/useAsyncState": "./dist/vue-hooks/state/useAsyncState.js",
|
|
266
|
+
"./vue-hooks/state/useCounter": "./dist/vue-hooks/state/useCounter.js",
|
|
267
|
+
"./vue-hooks/state/useToggle": "./dist/vue-hooks/state/useToggle.js",
|
|
268
|
+
"./vue-hooks/time/useInterval": "./dist/vue-hooks/time/useInterval.js",
|
|
269
|
+
"./vue-hooks/time/useTimeout": "./dist/vue-hooks/time/useTimeout.js",
|
|
270
|
+
"./vue-hooks/worker/useWebWorker": "./dist/vue-hooks/worker/useWebWorker.js",
|
|
271
|
+
"./vue-hooks/worker/useWorkerFunction": "./dist/vue-hooks/worker/useWorkerFunction.js",
|
|
272
|
+
"./vue-hooks/worker/useWorkerPool": "./dist/vue-hooks/worker/useWorkerPool.js",
|
|
273
|
+
"./types/algorithm-visual": "./types/algorithm-visual.d.ts",
|
|
274
|
+
"./types/algorithm": "./types/algorithm.d.ts",
|
|
161
275
|
"./types/altool": "./types/altool.d.ts",
|
|
162
276
|
"./types/android-build": "./types/android-build.d.ts",
|
|
163
277
|
"./types/color": "./types/color.d.ts",
|
|
164
278
|
"./types/design-system": "./types/design-system.d.ts",
|
|
165
279
|
"./types/geometry": "./types/geometry.d.ts",
|
|
166
280
|
"./types/platform": "./types/platform.d.ts",
|
|
281
|
+
"./types/reactive": "./types/reactive.d.ts",
|
|
167
282
|
"./types/semver": "./types/semver.d.ts",
|
|
168
283
|
"./types/software": "./types/software.d.ts",
|
|
169
284
|
"./types/storage": "./types/storage.d.ts",
|
package/references/browser.d.ts
CHANGED
|
@@ -11,6 +11,15 @@ import type { TextDecoderConstructor, TextEncoderConstructor } from './encoding.
|
|
|
11
11
|
import type { Location } from './location.d'
|
|
12
12
|
import type { ArrayBufferConstructor, Uint8ArrayConstructor, DataViewConstructor } from './arraybuffer.d'
|
|
13
13
|
|
|
14
|
+
// Navigator 接口
|
|
15
|
+
export interface Navigator {
|
|
16
|
+
clipboard: {
|
|
17
|
+
writeText(text: string): Promise<void>
|
|
18
|
+
readText(): Promise<string>
|
|
19
|
+
}
|
|
20
|
+
userAgent: string
|
|
21
|
+
}
|
|
22
|
+
|
|
14
23
|
// File 接口定义
|
|
15
24
|
export interface FilePropertyBag extends BlobPropertyBag {
|
|
16
25
|
lastModified?: number
|
|
@@ -99,6 +108,9 @@ export interface Window {
|
|
|
99
108
|
// 样式计算API
|
|
100
109
|
getComputedStyle: (element: Element, pseudoElement?: string | null) => CSSStyleDeclaration
|
|
101
110
|
|
|
111
|
+
// Navigator API
|
|
112
|
+
navigator: Navigator
|
|
113
|
+
|
|
102
114
|
// 开发环境标识
|
|
103
115
|
__DEV__?: boolean
|
|
104
116
|
|