-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from js-data/3.0
3.0
- Loading branch information
Showing
96 changed files
with
11,700 additions
and
1,458 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(delete this line) GitHub Issues are NOT for support questions. | ||
(delete this line) GitHub Issues ARE for bug reports, feature requests, and other issues. | ||
(delete this line) GitHub Issues are not for support questions. | ||
(delete this line) GitHub Issues are for bug reports, feature requests, and other issues. | ||
(delete this line) Find out how to Get Support here: http://js-data.io/docs/support. | ||
|
||
<your detailed, discussable, actionable, and helpful text goes here> | ||
<your detailed, actionable, and helpful text goes here> | ||
|
||
Thanks! |
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,9 +1,12 @@ | ||
node_modules/ | ||
bower_components/ | ||
|
||
.idea/ | ||
|
||
*.iml | ||
|
||
coverage/ | ||
junit/ | ||
junit/ | ||
doc/ | ||
node_modules/ | ||
*.log | ||
typings |
This file was deleted.
Oops, something went wrong.
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,10 +1,10 @@ | ||
# This is the official list of js-data-http project authors. | ||
# | ||
# This file is controlled by scripts/authors.js | ||
# | ||
# Names are formatted as: | ||
# # commits Name or Organization <email address> | ||
# Name or Organization <email address> | ||
# | ||
# The email address is not required for organizations. | ||
# | ||
InternalFX <[email protected]> | ||
Ivan Voznyakovsky <[email protected]> | ||
Jason Dobry <[email protected]> | ||
|
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,12 +1,11 @@ | ||
# People who have contributed to the js-data-http project. | ||
# This is the official list of js-data-http project contributors. | ||
# | ||
# This file is controlled by scripts/authors.js | ||
# Names are formatted as: | ||
# Name <email address> | ||
# | ||
# Names should be added to this file as: | ||
# [commit count] Name <email address> | ||
1 InternalFX <[email protected]> | ||
1 Ivan Voznyakovsky <[email protected]> | ||
56 Jason Dobry <[email protected]> | ||
1 Josh Drake <[email protected]> | ||
1 RobertHerhold <[email protected]> | ||
3 Tomás Fox <[email protected]> | ||
InternalFX <[email protected]> | ||
Ivan Voznyakovsky <[email protected]> | ||
Jason Dobry <[email protected]> | ||
Josh Drake <[email protected]> | ||
RobertHerhold <[email protected]> | ||
Tomás Fox <[email protected]> |
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,34 +1,33 @@ | ||
{ | ||
"name": "js-data-http", | ||
"description": "HTTP adapter for js-data.", | ||
"homepage": "http://www.js-data.io/docs/dshttpadapter", | ||
"description": "HTTP (XHR) adapter for js-data in the browser.", | ||
"homepage": "https://github.com/js-data/js-data-http", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/js-data/js-data-http.git" | ||
}, | ||
"author": { | ||
"name": "Jason Dobry", | ||
"url": "http://www.pseudobry.com", | ||
"email": "[email protected]" | ||
}, | ||
"author": "js-data-http project authors", | ||
"main": "./dist/js-data-http.js", | ||
"ignore": [ | ||
".idea/", | ||
".*", | ||
"*.iml", | ||
"src/", | ||
"lib/", | ||
"doc/", | ||
"guide/", | ||
"build_examples/", | ||
"coverage/", | ||
"Gruntfile.js", | ||
"scripts/", | ||
"junit/", | ||
"node_modules/", | ||
"fetch/", | ||
"node/", | ||
"test/", | ||
"package.json", | ||
"karma.conf.js", | ||
"karma.start.js" | ||
"karma.start.js", | ||
"webpack.config.js" | ||
], | ||
"dependencies": { | ||
"js-data": ">=2.0.0" | ||
"js-data": ">=3.0.0-alpha.26" | ||
} | ||
} |
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,3 @@ | ||
Running `browserify -x axios app.js > bundle.js` in this directory will produce `bundle.js` | ||
|
||
Note the external dependency "axios" that is excluded from the build (it's not needed when using js-data-angular). |
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,14 @@ | ||
var JSData = require('js-data') | ||
// normally this would be "var HttpAdapter = require('js-data-http')" | ||
var HttpAdapter = require('../../') | ||
|
||
document.getElementById('main').innerHTML = HttpAdapter.version.full | ||
|
||
var adapter = new HttpAdapter() | ||
var store = new JSData.DataStore() | ||
store.registerAdapter('http', adapter, { default: true }) | ||
store.defineMapper('user') | ||
|
||
store.find('user', 1).catch(function (err) { | ||
console.log(err) | ||
}) |
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,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>My App</title> | ||
</head> | ||
<body> | ||
<h1 id="main"></h1> | ||
<!-- load bundled scripts --> | ||
<script src="bundle.js"></script> | ||
</body> | ||
</html> |
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,12 @@ | ||
var JSData = require('js-data') | ||
// normally this would be "var HttpAdapter = require('js-data-http-node')" | ||
var HttpAdapter = require('../../') | ||
|
||
var adapter = new HttpAdapter() | ||
var store = new JSData.Container() | ||
store.registerAdapter('http', adapter, { default: true }) | ||
store.defineMapper('user') | ||
|
||
store.find('user', 1).catch(function (err) { | ||
console.log(err) | ||
}) |
Oops, something went wrong.