0.0.27 • Published 10 months ago
@axdspub/axiom-ui-data-services v0.0.27
Storybook
npm run storybook
Local development
Be sure yalc is installed:
npm i yalc -g
Then
yalc publish
In consuming project:
yalc add @axdspub/axiom-ui-data-services
and if already exists:
yalc update @axdspub/axiom-ui-data-services
Publish
npm login --scope=@axdspub
npm publish --dryrun
If all looks good
npm publish --access public
Usage
DataService
Use
DataService
to make a single requestconst ds = new DataService({ url:'https://oikos.axds.co/rest/context', type:'none', }) const data = await ds.get() // use ds.destroy to cancel
Extend
DataService
:- To implement a custom
makeUrl
function (provide example) - To implement a custom data format that isn't yet supported (provide example)
- To implement a custom
RequestItem
Includes a DataService for data and one for metadata
Todo
- Explain types and creating urls
- Explain parsers
- Probably need to be able to pass in a parser
- Provide storybook examples
- Exclude unnecessary files from published version
0.0.26
10 months ago
0.0.27
10 months ago
0.0.25
1 year ago
0.0.24
2 years ago
0.0.21
2 years ago
0.0.22
2 years ago
0.0.23
2 years ago
0.0.20
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.5
2 years ago
0.0.6
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago