-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(babel.config.js): use polyfill of Array.prototype.at
- Loading branch information
Showing
9 changed files
with
57 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ module.exports = { | |
'@babel/preset-env', | ||
{ | ||
useBuiltIns: 'entry', | ||
corejs: 3, | ||
corejs: 3.23, | ||
}, | ||
], | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
// import { useFormModal } from './useFormModal' | ||
import { useModal } from './useModal'; | ||
|
||
export { useModal }; | ||
export { useModal } from './useModal'; | ||
export { useBattery } from './useBattery'; | ||
export { useEventbus } from './useEventbus'; | ||
export { useI18n } from './useI18n'; | ||
export { useOnline } from './useOnline'; | ||
export { useTime } from './useTime'; | ||
export { useSortable } from './useSortable'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// reference https://github.com/scopsy/await-to-js | ||
|
||
/** | ||
* @param { Promise } promise | ||
* @param { Object= } errorExt - Additional Information you can pass to the err object | ||
* @return { Promise } | ||
*/ | ||
export function to<T, U = Error>( | ||
promise: Promise<T>, | ||
errorExt?: object, | ||
): Promise<[U, undefined] | [null, T]> { | ||
return promise | ||
.then<[null, T]>((data: T) => [null, data]) | ||
.catch<[U, undefined]>((err: U) => { | ||
if (errorExt) { | ||
const parsedError = Object.assign({}, err, errorExt); | ||
return [parsedError, undefined]; | ||
} | ||
|
||
return [err, undefined]; | ||
}); | ||
} | ||
|
||
export default to; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4210,10 +4210,10 @@ [email protected]: | |
resolve "^1.22.0" | ||
tsconfig-paths "^3.14.1" | ||
|
||
eslint-plugin-prettier@^4.1.0: | ||
version "4.1.0" | ||
resolved "https://registry.npmmirror.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.1.0.tgz#1cd4b3fadf3b3cdb30b1874b55e7f93f85eb43ad" | ||
integrity sha512-A3AXIEfTnq3D5qDFjWJdQ9c4BLhw/TqhSR+6+SVaoPJBAWciFEuJiNQh275OnjRrAi7yssZzuWBRw66VG2g6UA== | ||
eslint-plugin-prettier@^4.2.1: | ||
version "4.2.1" | ||
resolved "https://registry.npmmirror.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" | ||
integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== | ||
dependencies: | ||
prettier-linter-helpers "^1.0.0" | ||
|
||
|
c0b25f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vue3-antd-admin – ./
vue3-antd-admin-git-main-buqiyuan.vercel.app
vue3-antd-admin-buqiyuan.vercel.app
vue3-antd-admin.vercel.app