30 Commits

Author SHA1 Message Date
Rufus Pollock
57effa02aa [whitespace][xs]: correct indentation issues introduced in b3a71e82cca77bfe24c93290dd321174c85ab3b7. 2012-02-16 19:51:05 +00:00
Rufus Pollock
b9a9e9efd4 [test][xs]: include new view files in test index.html (fixes brokenness). 2012-02-16 19:34:44 +00:00
Rufus Pollock
21173b6acf [#35,all][m]: crude error catching for backends based on timeouts (best we can do with JSONP) - fixes #35.
* Show errors in UI
* required some extensive refactoring to use done/fail on promise rather than then
2012-02-10 03:16:49 +00:00
Rufus Pollock
1491ae5bcc [#34,query][m]: start on proper query support (move to query and sort support in BackendMemory). 2012-02-09 18:05:37 +00:00
Rufus Pollock
1539169e21 [#35,refactor][l]: fixes #35, major refactor to have datasets intialized with backend and endpoint information.
* Backbone.sync now switches on type of backend set for a dataset (allowing simultaneous use of multiple datasets with different backends)
* Datasets are initialized with backend config (see docs and code)
2012-02-08 09:27:56 +00:00
Rufus Pollock
7b496fc276 [refactor][s]: split out backends from model.js to backend.js.
* And do some slight improvement of the model and backend docco docs by using some markdown formatting.
2012-02-07 12:20:48 +00:00
James Casbon
b3a71e82cc correct indents on model.js with gg=G 2012-01-29 16:20:51 +00:00
James Casbon
9eeb4ab97a google spreadsheet backend 2012-01-28 19:44:07 +00:00
Rufus Pollock
76b05eb846 [#31,backends][m]: add BackendDataProxy, fixes #31. 2012-01-26 11:07:27 +00:00
Rufus Pollock
32a74949cc [vendor][s]: remove deps-min.js and explicitly linked to required vendor libraries.
* Why: it is then explicitly clear in demos what vendor libs are needed and make its easier to use those demos as a template for integration elsewhere.
2012-01-23 10:01:05 +00:00
Rufus Pollock
6d32ac2b27 [refactor][s]: rename getRows to getDocuments (thereby removing outstanding TODO). 2012-01-06 12:08:55 +00:00
Rufus Pollock
250f931c36 [refactor][s]: rename rowCount to docCount and remove getLength method as can just use dataset.docCount. 2012-01-06 11:43:17 +00:00
Rufus Pollock
e65bc74a88 [#14,#6,backend,view][m]: delete row in data table now working via Backbone with backend memory.
* #6: BackendMemory now supports delete for Documents.
2012-01-05 12:26:13 +00:00
Rufus Pollock
ce076a2eac [model/backend,#6][s]: BackendMemory now supports saving of Documents. 2012-01-05 01:39:31 +00:00
Rufus Pollock
97f50c5bf5 [test/model][s]: update webstore backend test to have ajax fully mocked so tests work fully when offline. 2012-01-05 01:36:53 +00:00
Rufus Pollock
164da57dfa [model/backend][s]: BackendMemory now works with one and only one dataset at a time (plus document what dataset data looks like).
* It is clear that if Backend is to handle syncing of Documents we need to only be working with one dataset (or: every Document has to reference a dataset -- in which case Backend and Dataset really are just one object ...).
2012-01-05 01:00:33 +00:00
Rufus Pollock
51934e1b94 [demo,test][xs]: add id to all rows/documents in fixture data for local backend data. 2012-01-05 00:26:16 +00:00
rgrp
653f59610f [refactor][s]: put model and view objects inside modules of similar name (Model, View). 2011-12-07 13:49:50 +00:00
rgrp
d35d3a8986 [view,test][m]: (refs #10) introduce DataTablRow view for rendering DataTable row and test it (though have not yet integrated). 2011-12-07 01:53:52 +00:00
rgrp
d7e058eb15 [model,view][s]: (refs #10) refactor to return DocumentList from Dataset.getRows rather than array of simple hashes. 2011-12-04 03:36:13 +00:00
rgrp
5eb06b982e [model][m]: working Webstore Backend (fixes #8). 2011-11-07 21:52:07 +00:00
rgrp
39ab2232a1 [test,addendum][xs]: incorrect pathes to sinon in previous commit (copy and paste error!). 2011-11-06 01:18:53 +00:00
rgrp
6e5aaf7408 [test,vendor][s]: add sinon libs as we will need these for testing webstore backend. 2011-11-06 01:13:28 +00:00
rgrp
3a48044a76 [model,refactor][m]: (refs #6, refs #10) get rid of DocumentSet merging its functionality into Dataset.
* In addition fully remove remaining references in models (in getRows and getLength functions) to form of backend (this should have been in previous commit).
2011-11-05 20:20:31 +00:00
rgrp
21d9a1c2dc [model][m]: (fixes #6) create a BackendMemory (local data in memory) and refactor code to use this rather than current hard-coding-of-data approach. 2011-11-05 19:48:09 +00:00
Max Ogden
2ec378997e further refactoring 2011-11-03 19:13:17 +00:00
Max Ogden
9674e10119 rename files to better names 2011-11-03 18:39:18 +00:00
rgrp
f7e5a03174 Merge branch 'master' of github.com:okfn/recline
Conflicts:
	demo/index.html
	demo/js/app.js
	src/recline.js
2011-11-03 18:31:00 +00:00
rgrp
c144dda731 [model/dataset][m]: introduce Model module containing basic Dataset and TabularData objects (plus tests).
* NB: current Dataset is basic one running off local data.
2011-11-03 09:00:42 +00:00
rgrp
85743d9eb6 [test][s]: (refs #2) add qunit testing skeleton. 2011-10-24 22:24:00 +01:00