Skip to content

Commit 23d20ca

Browse files
committed
initial commit
0 parents  commit 23d20ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+12507
-0
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
indent_style = space
8+
indent_size = 2
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: kiaking

.github/ISSUE_TEMPLATE/bug_report.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
#### Describe the bug
11+
12+
A clear and concise description of what the bug is.
13+
14+
#### Steps to reproduce the bug
15+
16+
1. Define models [...]
17+
2. Create data [...]
18+
3. Retrieve data [...]
19+
4. See error
20+
21+
#### Expected behavior
22+
23+
A clear and concise description of what you expected to happen.
24+
25+
#### Versions
26+
27+
- Vuex ORM Axios: 0.#.#
28+
- Vuex ORM: 0.#.#
29+
30+
#### Link to minimal reproduction
31+
32+
If applicable, add a minimal demo link to help explain your problem. Some options for that are [CodePen](https://codepen.io/), [CodeSandbox](https://codesandbox.io/), [JS Bin](https://jsbin.com/) or [JSFiddle](https://jsfiddle.net/).
33+
34+
#### Additional context
35+
36+
Add any other context about the bug here.
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
#### Is your feature request related to a problem? Please describe...
11+
12+
A clear and concise description of what the problem is.
13+
14+
#### Describe the solution you'd like
15+
16+
A clear and concise description of what you want to happen.
17+
18+
#### Describe alternatives you've considered
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
#### Additional context
23+
24+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- PULL REQUEST TEMPLATE -->
2+
3+
<!-- Please describe a summary of this PR. -->
4+
5+
#### Type of PR:
6+
7+
- [ ] Bugfix
8+
- [ ] Feature
9+
- [ ] Code style update
10+
- [ ] Refactor
11+
- [ ] Build-related changes
12+
- [ ] Documentation
13+
- [ ] Other, please describe:
14+
15+
#### Breaking changes:
16+
17+
- [ ] No
18+
- [ ] Yes
19+
20+
### Details
21+
22+
<!-- Please describe the details of the PR. -->

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.nyc_output
2+
/.tmp
3+
/coverage
4+
/dist
5+
/docs/.vuepress/dist
6+
/docs/node_modules
7+
/node_modules
8+
/temp
9+
.idea/*
10+
.vscode/*
11+
yarn-error.log

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"arrowParens": "always",
3+
"endOfLine": "lf",
4+
"printWidth": 80,
5+
"semi": false,
6+
"singleQuote": true,
7+
"trailingComma": "none"
8+
}

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: node_js
2+
node_js:
3+
- "10"
4+
- "12"
5+
script:
6+
- npm run lint:fail
7+
- npm run coverage
8+
- cat ./coverage/lcov.info | ./node_modules/.bin/codecov

CHANGELOG.md

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
## [0.9.2](https://github.com/vuex-orm/plugin-axios/compare/v0.9.1...v0.9.2) (2019-11-25)
2+
3+
4+
### Bug Fixes
5+
6+
* add Vuex ORM as a peer dependency ([e61be34](https://github.com/vuex-orm/plugin-axios/commit/e61be34a325ac826f7bdf286cbe403701f4514c6))
7+
8+
9+
## [0.9.1](https://github.com/vuex-orm/plugin-axios/compare/v0.9.0...v0.9.1) (2019-11-18)
10+
11+
12+
### Bug Fixes
13+
14+
* fix where `response.entities` is not immediately available after the request call ([#89](https://github.com/vuex-orm/plugin-axios/issues/89))
15+
16+
### Features
17+
18+
* warn users if the response data is non-array/object ([#82](https://github.com/vuex-orm/plugin-axios/issues/82))
19+
20+
21+
# [0.9.0](https://github.com/vuex-orm/plugin-axios/compare/v0.8.0...v0.9.0) (2019-11-05)
22+
23+
24+
### Features
25+
26+
* save response data after calling the API ([ba48434](https://github.com/vuex-orm/plugin-axios/commit/ba4843401eb7570007074266e4c5362930baf0c9))
27+
28+
29+
# [0.8.0](https://github.com/vuex-orm/plugin-axios/compare/v0.7.0...v0.8.0) (2019-10-31)
30+
31+
32+
### Features
33+
34+
* transform response data before persisting to the store. ([#80](https://github.com/vuex-orm/plugin-axios/pull/80))
35+
36+
37+
# [0.7.0](https://github.com/vuex-orm/plugin-axios/compare/v0.5.1...v0.7.0) (2019-10-21)
38+
39+
40+
### BREAKING CHANGES
41+
42+
* refactored entire plugin from the ground up. Please check out the [docs](https://vuex-orm.github.io/plugin-axios) for more details. ([341d395](https://github.com/vuex-orm/plugin-axios/commit/341d395133073b06e36e8f1d4f957003f2c68aa1))
43+
44+
45+
## [0.5.1](https://github.com/vuex-orm/plugin-axios/compare/0.5.0...v0.5.1) (2019-07-08)
46+
47+
48+
### Bug Fixes
49+
50+
* improper use of asynchronous method ([#34](https://github.com/vuex-orm/plugin-axios/issues/34))
51+
* axios request interceptor + fixed `setAuthentication` error on string ([#45](https://github.com/vuex-orm/plugin-axios/pull/45))
52+
53+
54+
# [0.5.0](https://github.com/vuex-orm/plugin-axios/compare/0.4.0...0.5.0) (2019-03-15)
55+
56+
57+
### Bug Fixes
58+
59+
* reduce `lodash` imports ([#16](https://github.com/vuex-orm/plugin-axios/issues/16))
60+
* allow axios instance to be passed into plugin ([#18](https://github.com/vuex-orm/plugin-axios/issues/18))
61+
* expose axios instance to interceptors to allow for custom response handling with tokens ([#7](https://github.com/vuex-orm/plugin-axios/issues/7))
62+
63+
# [0.4.0](https://github.com/vuex-orm/plugin-axios/compare/0.3.0...0.4.0) (2019-03-15)
64+
65+
66+
### Bug Fixes
67+
68+
* fixed custom http method ([b3ce9b4](https://github.com/vuex-orm/plugin-axios/commit/b3ce9b45f534c191140a2770334b74b7de4eaf4e))
69+
70+
71+
# [0.3.0](https://github.com/vuex-orm/plugin-axios/compare/0.2.2...0.3.0) (2019-03-15)
72+
73+
74+
### Bug Fixes
75+
76+
* uncaught exception on network error ([7a28af7](https://github.com/vuex-orm/plugin-axios/commit/7a28af7c0324221e262dd71826e86e7a9473439c))
77+
78+
79+
### Features
80+
81+
* allow get access token as function ([a100695](https://github.com/vuex-orm/plugin-axios/commit/a100695244351bdce3cdba104b2633696c51c73e))
82+
83+
84+
## [0.2.2](https://github.com/vuex-orm/plugin-axios/compare/0.2.1...0.2.2) (2018-10-12)
85+
86+
87+
### Bug Fixes
88+
89+
* fixed params which are not set ([9d33522](https://github.com/vuex-orm/plugin-axios/commit/9d33522a0510ef219b997ba46a042d4369c353b8))
90+
91+
92+
## [0.2.1](https://github.com/vuex-orm/plugin-axios/compare/0.2.0...0.2.1) (2018-10-12)
93+
94+
95+
### Bug Fixes
96+
97+
* fixed bug with automatic config params not being overwritten with a value (:id) ([590b4b6](https://github.com/vuex-orm/plugin-axios/commit/590b4b61306b5ee98f588856deb4d3bf0fc6b9bb))
98+
99+
100+
# [0.2.0](https://github.com/vuex-orm/plugin-axios/compare/0.1.2...0.2.0) (2018-10-12)
101+
102+
103+
### Features
104+
105+
* added endpoint param extractor ([709f56f](https://github.com/vuex-orm/plugin-axios/commit/709f56f585b967f1a4f8f2663b5652b67bbfe92e))
106+
107+
108+
## [0.1.2](https://github.com/vuex-orm/plugin-axios/compare/0.1.1...0.1.2) (2018-10-11)
109+
110+
111+
### Bug Fixes
112+
113+
* fixed issue with SSR on Nuxt ([#5](https://github.com/vuex-orm/plugin-axios/issues/5))
114+
115+
116+
## [0.1.1](https://github.com/vuex-orm/plugin-axios/compare/0.1.0...0.1.1) (2018-10-08)
117+
118+
119+
### Bug Fixes
120+
121+
* fixed issue where vue-cli projects could not use async/await functions ([beb2894](https://github.com/vuex-orm/plugin-axios/commit/beb2894ae25eba717ef8eecf0d5188de1067bad0))
122+
123+
124+
# 0.1.0 (2018-10-04)
125+
126+
127+
Initial release 🎉
128+

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Kia Ishii
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# vuex-orm-axios-next [![Travis CI](https://travis-ci.org/vuex-orm/plugin-axios-next.svg?branch=master)](https://travis-ci.org/vuex-orm/plugin-axios-next) [![codecov](https://codecov.io/gh/vuex-orm/plugin-axios-next/branch/master/graph/badge.svg)](https://codecov.io/gh/vuex-orm/plugin-axios-next)
2+
3+
## Status: Draft
4+
5+
This repo is for the next iteration of Vuex ORM Axios. It’s in an active development state and we are hoping it is going to be the foundation of the version 1.0.0 release. Any and all feedback is welcome!
6+
7+
Join us on our [Slack Channel](https://join.slack.com/t/vuex-orm/shared_invite/enQtNDQ0NjE3NTgyOTY2LTc1YTI2N2FjMGRlNGNmMzBkMGZlMmYxOTgzYzkzZDM2OTQ3OGExZDRkN2FmMGQ1MGJlOWM1NjU0MmRiN2VhYzQ) for any questions and discussions.
8+
9+
## Contribution
10+
11+
Community contributions will be applicable as soon as this repo reaches **alpha** stage.
12+
13+
## License
14+
15+
Vuex ORM is open-sourced software licensed under the [MIT License](./LICENSE).

api-extractor.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
4+
"mainEntryPointFilePath": "./dist/src/index.d.ts",
5+
6+
"apiReport": {
7+
"enabled": true,
8+
"reportFolder": "<projectFolder>/temp/"
9+
},
10+
11+
"docModel": {
12+
"enabled": true
13+
},
14+
15+
"dtsRollup": {
16+
"enabled": false
17+
},
18+
19+
"tsdocMetadata": {
20+
"enabled": false
21+
},
22+
23+
"messages": {
24+
"compilerMessageReporting": {
25+
"default": {
26+
"logLevel": "warning"
27+
}
28+
},
29+
30+
"extractorMessageReporting": {
31+
"default": {
32+
"logLevel": "warning",
33+
"addToApiReportFile": true
34+
},
35+
36+
"ae-missing-release-tag": {
37+
"logLevel": "none"
38+
}
39+
},
40+
41+
"tsdocMessageReporting": {
42+
"default": {
43+
"logLevel": "warning"
44+
}
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)