Commit Graph

39 Commits

Author SHA1 Message Date
Homyee King 4865124254
fix(plugin-request): default type for TParams (#6885) 2024-05-21 16:17:48 +08:00
luhc228 dae91e218c
fix: request plugin type and usage (#5992)
* feat: add d.ts type

* fix: request type

* fix: useRequest usage

* chore: changeset

* feat: support useRequest param is string
2023-03-01 18:00:59 +08:00
ClarkXia 56fb406e8a
fix: import path of types and runtime (#5981)
* fix: import path of types and runtime

* chore: package.json

* chore: add changelog

* fix: typings

* fix: type declare
2023-02-28 15:08:10 +08:00
ClarkXia 05aeb94f6b
feat: plugin for icestark (#5695)
* feat: plugin icestark arch

* feat: icestark child app

* chore: update type

* fix: icestark child

* feat: icestark layout

* feat: icestark framework

* feat: test case for icestark

* chore: changelog

* fix: optimize code

* fix: optimize code
2022-12-15 14:35:07 +08:00
ClarkXia f9a3829e63 fix: rename getConfig as pageConfig (#684)
* fix: rename getConfig as pageConfig

* chore: optimize code

* fix: type

* fix: optimzie code
2022-11-15 10:33:11 +08:00
长喆 4ad6c2aee9 feat(request): support generic type data (#683)
Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2022-11-15 10:33:11 +08:00
ZeroLing 2d0a38ba9e Docs/add request (#670)
* chore: close announcement

* docs: add doc for request

* docs: rename title for request

* docs: add.tsx

* docs: request doc

* refactor: change request to requestConfig

* chore: change usage and documentation

* docs: optimize doc

* docs: update
2022-11-15 10:33:11 +08:00
水澜 3a672c387e fix: request in data loader (#662)
* fix: support request in data loader

* fix: type

* fix: type

* fix: ts error

* fix: type

* feat: support config exports in plugin

* fix: filter static modules

* refactor: rename
2022-11-15 10:33:11 +08:00
ClarkXia 7b1cb86299 refactor: type dependencies (#638)
* refactor: types dependencies

* chore: types

* fix: tsconfig

* chore: optimize code

* fix: conflict
2022-11-15 10:33:00 +08:00
染陌同学 a2ed3968d0 Chore/modify export (#623)
* chore: modify ExportData to IdentifierData

* chore: add type for addDataLoaderImport

* chore: modify to removeIdentifierData

* chore: add AddDataLoaderImport

* chore: modify exportAlias to alias

* feat: modify generateIdentifier

* chore: modify transformIdentifierToDeclaration

* chore: modify to declaration

* chore: modify addDeclaration

* chore: modify removeDeclaration
2022-11-15 10:32:49 +08:00
ClarkXia 3c5866e533 feat: support static runtime (#609)
* feat: support static runtime

* fix: optimize code

* fix: optimize code

* fix: update app data

* fix: optimize code and add test case
2022-11-15 10:32:49 +08:00
luhc228 bcbf6b5804 feat: support runtime relative path (#537)
* feat: support runtime relative path

* chore: line break

* fix: not compatible with relative path

* feat: support absolute path

* docs: update plugin-dev

* docs: optimize config

* refactor: runtime staticRuntime and name

* fix: type

* chore: remove file path exists check
2022-11-15 10:32:43 +08:00
ZeroLing 86b234162d feat: plugin jsx plus (#529)
* feat: create plugin jsx plus

* feat: add jsx plus plugin

* chore: dismiss all lint problems

* feat: add include and exclude

* docs: update docs of jsx plus

* fix: in case of auto lint fix

* fix: lint problem

* fix: compatible with node 14

* chore: update version

* chore: update pnpm lock

* fix: dev dep
2022-11-15 10:32:39 +08:00
ZeroLing ec42015d34 Plugin/request (#439)
* feat: introduce useRequest

* chore: add some description

* fix: export statment for generator

* fix: make @ice/types dev dep

* fix: remove I prefix for interface

* fix: lint

* fix: update pnpm

* feat: add use case for app config

* fix: using export request config

* fix: review for code

* fix: dev dependency
2022-11-15 10:30:37 +08:00
ClarkXia ac910ed2dc refactor: remove 2.x code 2022-11-14 17:17:45 +08:00
ClarkXia b0ccef9924 chore: lint 2022-07-06 16:27:45 +08:00
Asa 64b3f6dcd3
bugfix: repeat interceptor (#5321) 2022-07-06 14:47:12 +08:00
ClarkXia dbe6438e63
feat: lock axios version (#4640)
* feat: lock axios version

* chore: verison
2021-09-17 11:51:46 +08:00
ClarkXia 38162eeefb Merge branch 'master' into release/2.0.0 2021-07-19 19:35:09 +08:00
那吒 88999a29fd
feat: 🎸 provide types lint (#4430)
* feat: 🎸 provide types lint

 Closes: #4417

Co-authored-by: heiye9 <heiye9@foxmail.com>
2021-07-08 11:15:24 +08:00
ClarkXia be7adf2456
feat: runtime structure refactor (#4346)
* feat: runtime structure refactor

* fix: unknown method

* fix: error import source

* chore: lock version

* chore: optimize code
2021-07-02 16:32:42 +08:00
大果 b818ddcfdc
feat: support axios cancel (#4415)
* feat: support axios.CancelToken when use request

* chore: remove request.cancel
2021-06-30 22:36:51 +08:00
ClarkXia cc2db2090f
refactor: generate runtime module (#4132)
* refactor: generate runtime module

* fix: npm files

* feat: debug runtime as default

* fix: remove moduleName

* fix: ts lint of runtime

* fix: ts error
2021-03-09 18:12:30 +08:00
ClarkXia b9afe83e2a
chore: bump dependencies version (#4034)
* chore: update typescript version

* chore: bump version

* fix: remove css-hot-loader

* fix: eslint

* fix: mini-css-extract-plugin params

* fix: example lint

* fix: example lint
2021-01-25 10:18:15 +08:00
ClarkXia 0837d131da
feat: support modular import of runtime (#3982)
* feat: support modular import of runtime

* fix: check config module

* fix: consider with rax-app
2021-01-05 11:26:37 +08:00
狒狒神 821af53150
feat: support store (#3442) 2020-08-21 17:56:26 +08:00
chenbin92 974e0a0152
feat: support use react write miniapp (#3393) (#3344) 2020-08-06 17:48:19 +08:00
sspku-yqLiu 710e75611c
feat: change module.ts to runtime.ts (#3323)
* feat:  change module.ts to runtime.ts

issue: #3286

* feat: change 'module.ts' in filenames, docs and comments to 'runtime.ts'

* fix: add WARN message when plugins using 'module.ts' & edit comment
2020-07-07 18:01:53 +08:00
chenbin92 a2d991b001
Feat/enhance useRequest (#3243)
* feat: integration ahooks useRequest

* refactor: useRequest types

* chore: fix lint

* refactor: rename template

* docs: add useRequest api

* feat: useRequest test (#3247)

* feat: setup test environment

* feat: add request test

* feat: add useRequest test

* fix: remove codecov.yml

* fix: exclude test in tsconfig

* fix: ci scripts

* chore: optimize code

* refactor: workflows

* fix: add react-test-renderer deps

* feat: useRequest test case

* feat: codecov ci

* chore: optimize code

* chore: update yarn lock
2020-06-08 09:49:38 +08:00
chenbin92 b1cb26d5bb
refactor: store getInitialStates deprecated (#3222)
* refactor: store getInitialStates deprecated

* fix: lint

* fix: getInitialStates order

* fix: lint rule

* docs: update getInitialData api
2020-05-22 13:58:14 +08:00
chenbin92 2b4ec301f4
feat: allow creating multi request instances (#3216)
* feat: allow creating multi request instances

* docs: update request

* fix: compatibility data is empty

* refactor: rename to instanceName

* fix: typo
2020-05-21 14:06:25 +08:00
chenbin92 469d4cee03
feat: support promise function with useRequest (#3188) 2020-05-11 09:57:18 +08:00
Hengchang Lu 0552a8a704 feat: refactor plugin types (#285) 2020-04-27 12:13:21 +08:00
chenbin92 d18d841168 fix: interceptor config is optional (#284) 2020-04-27 11:33:55 +08:00
大果 37044ae198 chore: revert beforeload (#185)
* Revert "Feat/enhance request (#161)"

This reverts commit 04f50b1104de5dbe8908c1bb4c2ccb904fc18f59 [formerly 0ceed05e05].

* v1.1.3-alpha.3
2020-03-27 23:38:45 +08:00
chenbin92 728e18c3ab Feat/enhance request (#161)
* feat: enhance request

* refactor: load module time (#174)

* refactor: load module

Co-authored-by: ClarkXia <xiawenwu41@gmail.com>
2020-03-27 16:42:58 +08:00
chenbin92 2b88dd9625 fix: semicolons is required (#162) 2020-03-26 17:17:09 +08:00
ClarkXia 15c315d716 fest: support plugin types (#48)
* feat: add addIceTypesExport api

* refactor: plugin types

* fix: appConfig is optional

* refactor: add IApp interface

* fix: optional config

* fix: export types

* chore: define types
2020-03-05 16:52:38 +08:00
思忠 eebd118c7e feat: initial project 2020-02-13 23:14:08 +08:00