Kegan Dougal
f086bcca4c
Add User class. Convert store to store/get User objects.
2015-06-09 10:55:26 +01:00
Kegan Dougal
2fb68cfed2
Handle m.typing events.
2015-06-09 10:27:37 +01:00
Kegan Dougal
a43447b00e
Add tests to exercise room name / timeline logic; fix some bugs as a result.
2015-06-08 17:27:10 +01:00
Kegan Dougal
2d00998b61
Move getFriendlyRoomName to Room. Add recalculate() function to cache info.
2015-06-08 16:10:23 +01:00
Kegan Dougal
9fa7fa0487
Shuffle around how events are stored.
...
Rather than having MatrixInMemoryStore do it all, we make the right object do
the right thing, and keep the store for storing said objects.
2015-06-08 15:43:18 +01:00
Kegan Dougal
c73881f3fe
Use utils.keys rather than Object.keys for older browsers.
2015-06-08 12:22:23 +01:00
Kegan Dougal
a2257aeb0b
Move getFriendlyDisplayName to RoomMember class. Add more utlity functions.
2015-06-08 12:21:23 +01:00
Kegan Dougal
7ce3a781f3
Add Room, RoomState and RoomMember classes.
2015-06-08 11:47:15 +01:00
Kegan Dougal
6f4b600c0b
Appease closure linter.
2015-06-05 14:54:06 +01:00
Kegan Dougal
735eefcb6d
Bug fixes in data store.
2015-06-05 14:51:10 +01:00
Kegan Dougal
f27c7f203d
Document the deal with the request function.
2015-06-05 14:29:25 +01:00
Kegan Dougal
7ed92fd4f9
More jsdoc
2015-06-05 14:03:00 +01:00
Kegan Dougal
02064bac8a
Recombine initialSync/event high-level logic with HTTP API calls.
2015-06-05 13:30:11 +01:00
Kegan Dougal
300568ef70
Add ability for power users to access the response headers/status code if they desire.
2015-06-05 11:54:27 +01:00
Kegan Dougal
d095eff1a4
Bake in support for promises.
...
This means we can specify the SDK's dependency on Q to make setting things up
significantly easier.
2015-06-05 11:41:26 +01:00
Kegan Dougal
fce4d5d1d6
Add MatrixError class. More jsdoc voodoo to get things looking right.
2015-06-05 11:28:28 +01:00
Kegan Dougal
5681517a30
Setup jsdoc typedefs for callback/promise.
2015-06-05 10:19:52 +01:00
Kegan Dougal
051f3c42b7
Add more jsdoc.
2015-06-04 17:08:40 +01:00
Kegan Dougal
7ab3e25218
Add @module docs. Remove browser-build.sh
...
Add @links for HTML output. Replace browser-build.sh with inline commands
in package.json so building will work on non-unix machines. Update README.
2015-06-04 16:34:00 +01:00
Kegan Dougal
31ffdf8a37
Style checks and more jsdoc.
2015-06-04 16:02:08 +01:00
Kegan Dougal
a95f9d3717
Make MatrixHttpApi a generic API interface; move specifics to MatrixClient.
...
Add a utils file to store common operations like map() and encodeParams().
Modify MatrixClient and MatrixHttpApi to accepts opts as constructors.
2015-06-04 15:39:36 +01:00
Kegan Dougal
d1e51de7ec
Split out matrix.js into different files. Glue things back.
...
Added a models directory. Added store, http-api and client files. Slowly
transitioning to the architecture outlined in SYJS-5.
2015-06-03 17:55:12 +01:00
Kegan Dougal
5a16986014
Add missing jsdoc.
2015-06-03 16:18:30 +01:00
Kegan Dougal
9b4ba0afe8
Redo build process for browsers and node. Update examples.
...
We now rely on browserify for building browser-specific versions of the JS
SDK. This can be initiated by running 'npm run build-js'. Node versions are
unaffected.
2015-06-03 15:51:48 +01:00
Kegan Dougal
bdaad5b940
Fix up stylistic warnings.
2015-06-03 10:37:41 +01:00
Kegan Dougal
67931f05ce
Fix up jshint warnings.
2015-06-03 10:26:12 +01:00
Kegsay
e61830c2b0
Merge pull request #4 from matrix-org/mxstore
...
Experimental data store layer to aid tracking client state
2015-06-03 09:57:02 +01:00
Matthew Hodgson
be7d6be691
todo
2015-05-26 23:23:30 +01:00
Matthew Hodgson
fe82a8631e
fix getStateEvent to require an explicit stateKey
2015-05-26 23:13:41 +01:00
Matthew Hodgson
88bed0cc75
more jsdoc
2015-05-26 00:36:38 +01:00
Matthew Hodgson
e21a144313
resolve kegan's PR review feedback
2015-05-26 00:19:32 +01:00
Matthew Hodgson
1fb4e15625
fix stupid 'null' display names
2015-05-19 20:18:50 +01:00
Matthew Hodgson
5716cf3b06
update todo
2015-05-19 17:18:16 +01:00
Matthew Hodgson
9e6394d1f8
add getFriendlyDisplayName for completeness
2015-05-19 17:11:36 +01:00
Kegan Dougal
8853ad9601
Bug fixes
2015-05-12 14:29:42 +01:00
Kegan Dougal
02b29c157f
Add getStateEvent API (used by IRC AS to get display names for people)
2015-05-12 14:24:05 +01:00
Matthew Hodgson
32051c319c
change store API to work entirely in terms of MatrixEvents to make Mark happy
2015-04-25 23:38:37 +01:00
Matthew Hodgson
234877ddaa
javascript isn't perl
2015-04-22 17:06:53 +01:00
Matthew Hodgson
8432917096
add in a useless DAO layer for events, and make it actually work
2015-04-22 01:35:57 +01:00
Matthew Hodgson
1b3ec5f0b7
initial WIP event store layer
2015-04-21 15:39:09 +01:00
David Baker
d55c9976bf
add API endpoints for getting & adding 3pids
2015-04-17 17:23:16 +01:00
Kegan Dougal
509f003862
Expose credentials to the request fn.
...
This allows you to attach extra parameters to requests on a client basis,
rather than globally (which can race). Particularly useful for application
services.
2015-04-01 14:54:38 +01:00
Kegan Dougal
ba871cbf3e
Remove console logs
2015-03-05 10:05:56 +00:00
Kegsay
e971b9b92f
Usage instructions
2015-03-04 21:11:04 +00:00
Kegan Dougal
2b61906bd3
Actually pass through the config var
2015-03-04 20:58:20 +00:00
Kegan Dougal
69cae27f9a
Split out config from credentials.
2015-03-04 20:47:37 +00:00
Kegan Dougal
18a684e0be
Add tiny promise wrapper.
2015-03-04 20:38:29 +00:00
Kegan Dougal
8684315892
Add final remaining APIs
2015-03-04 17:16:54 +00:00
Kegan Dougal
324e030a10
Add reg/login operations and mxc to http conversion.
2015-03-04 16:50:39 +00:00
Kegan Dougal
2f595cb1c6
Add profile operations and typing/event stream.
2015-03-04 16:38:31 +00:00