-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
575 additions
and
109 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
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,16 @@ | ||
# @alova/scene | ||
|
||
[](https://www.npmjs.com/package/@alova/scene) | ||
[](https://github.com/alovajs/alova/actions/workflows/main.yml) | ||
[](https://coveralls.io/github/alovajs/scene?branch=main) | ||
 | ||
|
||
scenario hooks with alova.js | ||
|
||
## UsePagination | ||
|
||
| Framework | available | tested | | ||
| --------- | --------- | ------ | | ||
| vue | ✅ | ✅ | | ||
| react | ✅ | ❌ | | ||
| svelte | ✅ | ❌ | |
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,26 @@ | ||
# alova 场景化方案 | ||
|
||
[](https://coveralls.io/github/alovajs/scene?branch=main) | ||
|
||
[alova](https://github.com/alovajs/alova) 是一个请求场景管理库,它的使命,就是让应用更聪明地管理 CS 数据交互,针对不同的请求场景提出更好的请求管理方案,因此也提供了一些特定场景下的请求方案,可以让开发者更优雅地实现更高性能和体验更好的功能。 | ||
|
||
## alova 示例 | ||
|
||
[这里有些示例将会展示 alova 的强大力量](https://alova.js.org/category/%E7%A4%BA%E4%BE%8B) | ||
|
||
## Packages | ||
|
||
本仓库包含以下 packages | ||
|
||
| Project | Description | | ||
| ------------------------------------------------------------------------------ | ---------------------------------- | | ||
| [@alova/mock](https://github.com/alovajs/extensions/tree/main/packages/mock) | a mock request adapter of alova.js | | ||
| [@alova/hooks](https://github.com/alovajs/extensions/tree/main/packages/hooks) | extended hooks with alova.js | | ||
|
||
## 下一步做什么? | ||
|
||
就像上面所说,alova 的使命是针对不同的请求场景提出更好的请求管理方案,特定场景的方案将会在 **@alova/hooks** 中实现,如果你有期待的请求场景,欢迎通过 [issue](https://github.com/alovajs/extensions/issues) 来讨论,也欢迎贡献你的聪明才智,通过 [pull requests](https://github.com/alovajs/extensions/pulls) 来一起让 alova 变得更好。 | ||
|
||
## LICENSE | ||
|
||
[MIT](https://en.wikipedia.org/wiki/MIT_License) |
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,104 @@ | ||
{ | ||
"name": "@alova/scene", | ||
"version": "1.0.0-beta.15", | ||
"description": "scenario hooks with alova.js", | ||
"homepage": "https://github.com/alovajs/scene", | ||
"main": "dist/alova-extended-hooks.umd.min.js", | ||
"jsnext:main": "dist/alova-extended-hooks.esm.js", | ||
"module": "dist/alova-extended-hooks.esm.js", | ||
"types": "typings/index.d.ts", | ||
"scripts": { | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"clean": "rimraf ./dist", | ||
"lint": "eslint --ext .ts,.js src/**", | ||
"lint:fix": "eslint --ext .ts,.js src/** --fix", | ||
"build:vuehooks:esm": "cross-env NODE_ENV=development EXTENSION=vuehooks rollup -c ./config/rollup.config.esm.js", | ||
"build:vuehooks:umd": "cross-env NODE_ENV=development EXTENSION=vuehooks rollup -c ./config/rollup.config.umd.js", | ||
"build:vuehooks:umd.min": "cross-env NODE_ENV=production EXTENSION=vuehooks rollup -c ./config/rollup.config.umd.js", | ||
"build:vuehooks": "npm run build:vuehooks:esm && npm run build:vuehooks:umd && npm run build:vuehooks:umd.min", | ||
"build:reacthooks:esm": "cross-env NODE_ENV=development EXTENSION=reacthooks rollup -c ./config/rollup.config.esm.js", | ||
"build:reacthooks:umd": "cross-env NODE_ENV=development EXTENSION=reacthooks rollup -c ./config/rollup.config.umd.js", | ||
"build:reacthooks:umd.min": "cross-env NODE_ENV=production EXTENSION=reacthooks rollup -c ./config/rollup.config.umd.js", | ||
"build:reacthooks": "npm run build:reacthooks:esm && npm run build:reacthooks:umd && npm run build:reacthooks:umd.min", | ||
"build:sveltehooks:esm": "cross-env NODE_ENV=development EXTENSION=sveltehooks rollup -c ./config/rollup.config.esm.js", | ||
"build:sveltehooks:umd": "cross-env NODE_ENV=development EXTENSION=sveltehooks rollup -c ./config/rollup.config.umd.js", | ||
"build:sveltehooks:umd.min": "cross-env NODE_ENV=production EXTENSION=sveltehooks rollup -c ./config/rollup.config.umd.js", | ||
"build:sveltehooks": "npm run build:sveltehooks:esm && npm run build:sveltehooks:umd && npm run build:sveltehooks:umd.min", | ||
"build": "npm run clean && npm run build:vuehooks && npm run build:reacthooks && npm run build:sveltehooks", | ||
"coveralls": "npm run test:coverage && coveralls < coverage/lcov.info" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"author": "JOU-amjs", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/alovajs/scene.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/alovajs/scene/issues" | ||
}, | ||
"files": [ | ||
"dist", | ||
"typings/*.d.ts" | ||
], | ||
"exports": { | ||
".": "./dist/alova-scene.esm.js", | ||
"./vue": "./dist/alova-scene-vue.esm.js", | ||
"./react": "./dist/alova-scene-react.esm.js", | ||
"./svelte": "./dist/alova-scene-svelte.esm.js" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"vue": [ | ||
"typings/vue-scene.d.ts" | ||
], | ||
"react": [ | ||
"typings/react-scene.d.ts" | ||
], | ||
"svelte": [ | ||
"typings/svelte-scene.d.ts" | ||
] | ||
} | ||
}, | ||
"devDependencies": { | ||
"@alova/mock": "^1.0.7", | ||
"@babel/core": "^7.18.2", | ||
"@babel/preset-env": "^7.18.2", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@types/jest": "^29.2.4", | ||
"@types/react": "^18.0.25", | ||
"@types/testing-library__jest-dom": "^5.14.5", | ||
"@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"@typescript-eslint/parser": "^5.43.0", | ||
"alova": "^1.5.0-beta.1", | ||
"babel-jest": "^29.2.2", | ||
"coveralls": "^3.1.1", | ||
"cross-env": "5.2.0", | ||
"eslint": "^8.29.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"jest": "^29.2.2", | ||
"jest-environment-jsdom": "^29.2.2", | ||
"prettier": "^2.7.1", | ||
"react": "^18.2.0", | ||
"rimraf": "2.6.2", | ||
"rollup": "^2.74.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"svelte": "^3.52.0", | ||
"svelte-jester": "^2.3.2", | ||
"ts-jest": "^29.0.3", | ||
"ts-jest-mock-import-meta": "^1.0.0", | ||
"ts-node": "^10.9.1", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.2", | ||
"vue": "^3.2.41" | ||
} | ||
} |
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,16 @@ | ||
# @alova/scene | ||
|
||
[](https://www.npmjs.com/package/@alova/scene) | ||
[](https://github.com/alovajs/alova/actions/workflows/main.yml) | ||
[](https://coveralls.io/github/alovajs/scene?branch=main) | ||
 | ||
|
||
scenario hooks with alova.js | ||
|
||
## UsePagination | ||
|
||
| Framework | available | tested | | ||
| --------- | --------- | ------ | | ||
| vue | ✅ | ✅ | | ||
| react | ✅ | ❌ | | ||
| svelte | ✅ | ❌ | |
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,26 @@ | ||
# alova 场景化方案 | ||
|
||
[](https://coveralls.io/github/alovajs/scene?branch=main) | ||
|
||
[alova](https://github.com/alovajs/alova) 是一个请求场景管理库,它的使命,就是让应用更聪明地管理 CS 数据交互,针对不同的请求场景提出更好的请求管理方案,因此也提供了一些特定场景下的请求方案,可以让开发者更优雅地实现更高性能和体验更好的功能。 | ||
|
||
## alova 示例 | ||
|
||
[这里有些示例将会展示 alova 的强大力量](https://alova.js.org/category/%E7%A4%BA%E4%BE%8B) | ||
|
||
## Packages | ||
|
||
本仓库包含以下 packages | ||
|
||
| Project | Description | | ||
| ------------------------------------------------------------------------------ | ---------------------------------- | | ||
| [@alova/mock](https://github.com/alovajs/extensions/tree/main/packages/mock) | a mock request adapter of alova.js | | ||
| [@alova/hooks](https://github.com/alovajs/extensions/tree/main/packages/hooks) | extended hooks with alova.js | | ||
|
||
## 下一步做什么? | ||
|
||
就像上面所说,alova 的使命是针对不同的请求场景提出更好的请求管理方案,特定场景的方案将会在 **@alova/hooks** 中实现,如果你有期待的请求场景,欢迎通过 [issue](https://github.com/alovajs/extensions/issues) 来讨论,也欢迎贡献你的聪明才智,通过 [pull requests](https://github.com/alovajs/extensions/pulls) 来一起让 alova 变得更好。 | ||
|
||
## LICENSE | ||
|
||
[MIT](https://en.wikipedia.org/wiki/MIT_License) |
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,104 @@ | ||
{ | ||
"name": "@alova/scene", | ||
"version": "1.0.0-beta.15", | ||
"description": "scenario hooks with alova.js", | ||
"homepage": "https://github.com/alovajs/scene", | ||
"main": "dist/alova-extended-hooks.umd.min.js", | ||
"jsnext:main": "dist/alova-extended-hooks.esm.js", | ||
"module": "dist/alova-extended-hooks.esm.js", | ||
"types": "typings/index.d.ts", | ||
"scripts": { | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"clean": "rimraf ./dist", | ||
"lint": "eslint --ext .ts,.js src/**", | ||
"lint:fix": "eslint --ext .ts,.js src/** --fix", | ||
"build:vuehooks:esm": "cross-env NODE_ENV=development EXTENSION=vuehooks rollup -c ./config/rollup.config.esm.js", | ||
"build:vuehooks:umd": "cross-env NODE_ENV=development EXTENSION=vuehooks rollup -c ./config/rollup.config.umd.js", | ||
"build:vuehooks:umd.min": "cross-env NODE_ENV=production EXTENSION=vuehooks rollup -c ./config/rollup.config.umd.js", | ||
"build:vuehooks": "npm run build:vuehooks:esm && npm run build:vuehooks:umd && npm run build:vuehooks:umd.min", | ||
"build:reacthooks:esm": "cross-env NODE_ENV=development EXTENSION=reacthooks rollup -c ./config/rollup.config.esm.js", | ||
"build:reacthooks:umd": "cross-env NODE_ENV=development EXTENSION=reacthooks rollup -c ./config/rollup.config.umd.js", | ||
"build:reacthooks:umd.min": "cross-env NODE_ENV=production EXTENSION=reacthooks rollup -c ./config/rollup.config.umd.js", | ||
"build:reacthooks": "npm run build:reacthooks:esm && npm run build:reacthooks:umd && npm run build:reacthooks:umd.min", | ||
"build:sveltehooks:esm": "cross-env NODE_ENV=development EXTENSION=sveltehooks rollup -c ./config/rollup.config.esm.js", | ||
"build:sveltehooks:umd": "cross-env NODE_ENV=development EXTENSION=sveltehooks rollup -c ./config/rollup.config.umd.js", | ||
"build:sveltehooks:umd.min": "cross-env NODE_ENV=production EXTENSION=sveltehooks rollup -c ./config/rollup.config.umd.js", | ||
"build:sveltehooks": "npm run build:sveltehooks:esm && npm run build:sveltehooks:umd && npm run build:sveltehooks:umd.min", | ||
"build": "npm run clean && npm run build:vuehooks && npm run build:reacthooks && npm run build:sveltehooks", | ||
"coveralls": "npm run test:coverage && coveralls < coverage/lcov.info" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"author": "JOU-amjs", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/alovajs/scene.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/alovajs/scene/issues" | ||
}, | ||
"files": [ | ||
"dist", | ||
"typings/*.d.ts" | ||
], | ||
"exports": { | ||
".": "./dist/alova-scene.esm.js", | ||
"./vue": "./dist/alova-scene-vue.esm.js", | ||
"./react": "./dist/alova-scene-react.esm.js", | ||
"./svelte": "./dist/alova-scene-svelte.esm.js" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"vue": [ | ||
"typings/vue-scene.d.ts" | ||
], | ||
"react": [ | ||
"typings/react-scene.d.ts" | ||
], | ||
"svelte": [ | ||
"typings/svelte-scene.d.ts" | ||
] | ||
} | ||
}, | ||
"devDependencies": { | ||
"@alova/mock": "^1.0.7", | ||
"@babel/core": "^7.18.2", | ||
"@babel/preset-env": "^7.18.2", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@types/jest": "^29.2.4", | ||
"@types/react": "^18.0.25", | ||
"@types/testing-library__jest-dom": "^5.14.5", | ||
"@typescript-eslint/eslint-plugin": "^5.43.0", | ||
"@typescript-eslint/parser": "^5.43.0", | ||
"alova": "^1.5.0-beta.1", | ||
"babel-jest": "^29.2.2", | ||
"coveralls": "^3.1.1", | ||
"cross-env": "5.2.0", | ||
"eslint": "^8.29.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"jest": "^29.2.2", | ||
"jest-environment-jsdom": "^29.2.2", | ||
"prettier": "^2.7.1", | ||
"react": "^18.2.0", | ||
"rimraf": "2.6.2", | ||
"rollup": "^2.74.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.31.2", | ||
"svelte": "^3.52.0", | ||
"svelte-jester": "^2.3.2", | ||
"ts-jest": "^29.0.3", | ||
"ts-jest-mock-import-meta": "^1.0.0", | ||
"ts-node": "^10.9.1", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.2", | ||
"vue": "^3.2.41" | ||
} | ||
} |
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,16 @@ | ||
# @alova/scene | ||
|
||
[](https://www.npmjs.com/package/@alova/scene) | ||
[](https://github.com/alovajs/alova/actions/workflows/main.yml) | ||
[](https://coveralls.io/github/alovajs/scene?branch=main) | ||
 | ||
|
||
scenario hooks with alova.js | ||
|
||
## UsePagination | ||
|
||
| Framework | available | tested | | ||
| --------- | --------- | ------ | | ||
| vue | ✅ | ✅ | | ||
| react | ✅ | ❌ | | ||
| svelte | ✅ | ❌ | |
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,26 @@ | ||
# alova 场景化方案 | ||
|
||
[](https://coveralls.io/github/alovajs/scene?branch=main) | ||
|
||
[alova](https://github.com/alovajs/alova) 是一个请求场景管理库,它的使命,就是让应用更聪明地管理 CS 数据交互,针对不同的请求场景提出更好的请求管理方案,因此也提供了一些特定场景下的请求方案,可以让开发者更优雅地实现更高性能和体验更好的功能。 | ||
|
||
## alova 示例 | ||
|
||
[这里有些示例将会展示 alova 的强大力量](https://alova.js.org/category/%E7%A4%BA%E4%BE%8B) | ||
|
||
## Packages | ||
|
||
本仓库包含以下 packages | ||
|
||
| Project | Description | | ||
| ------------------------------------------------------------------------------ | ---------------------------------- | | ||
| [@alova/mock](https://github.com/alovajs/extensions/tree/main/packages/mock) | a mock request adapter of alova.js | | ||
| [@alova/hooks](https://github.com/alovajs/extensions/tree/main/packages/hooks) | extended hooks with alova.js | | ||
|
||
## 下一步做什么? | ||
|
||
就像上面所说,alova 的使命是针对不同的请求场景提出更好的请求管理方案,特定场景的方案将会在 **@alova/hooks** 中实现,如果你有期待的请求场景,欢迎通过 [issue](https://github.com/alovajs/extensions/issues) 来讨论,也欢迎贡献你的聪明才智,通过 [pull requests](https://github.com/alovajs/extensions/pulls) 来一起让 alova 变得更好。 | ||
|
||
## LICENSE | ||
|
||
[MIT](https://en.wikipedia.org/wiki/MIT_License) |
Oops, something went wrong.