1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00
Commit Graph

719 Commits

Author SHA1 Message Date
Kegan Dougal
5d5d76d154 Pass a store implementation rather than kind string.
Makes it easier to test.
2015-06-30 11:39:57 +01:00
Kegan Dougal
796afb104b s/localstorage/webstorage/g. Add storage impl notes.
WebStorage is preferred since we can trivially support local or session storage.
Add design notes for persisting rooms.
2015-06-30 11:30:49 +01:00
David Baker
9416a9a8a3 Fix linting & c+p errors 2015-06-29 18:20:36 +01:00
David Baker
22f08e4e5b Get rid of micromatch & reinstate our hacky version because micromatch, ironically, is huge. 2015-06-29 18:16:49 +01:00
Kegan Dougal
a476b11f0c Add local storage impl notes 2015-06-29 17:55:11 +01:00
David Baker
c82b2049eb prefix internal var with underscrore 2015-06-29 16:34:33 +01:00
David Baker
2ab8f8cf76 closure linting errors 2015-06-29 16:21:32 +01:00
David Baker
53f2f156ca Fix linting errors 2015-06-29 16:09:07 +01:00
David Baker
083a0980eb javascript function syntax #3... 2015-06-29 15:57:20 +01:00
David Baker
1be02a3c3c Port over push rule eveluator from the angular SDK and make it available on MatrixEvent 2015-06-29 15:53:23 +01:00
David Baker
21150e7587 Doc fail 2015-06-26 16:50:55 +01:00
David Baker
3806c4d566 Missing semicolon 2015-06-26 16:49:07 +01:00
David Baker
b814872c37 unnecessary semicolon 2015-06-26 16:45:59 +01:00
David Baker
b2656024bd Merge branch 'develop' into push
Conflicts:
	lib/client.js
2015-06-26 16:39:32 +01:00
Kegan Dougal
b7975866fa Add getSyncToken and setSyncToken to data store interface.
This allows local storage to hold onto the token across page refreshes.
2015-06-26 15:36:53 +01:00
Kegan Dougal
6078100465 Export LocalStorageStore class. Throw if 'localStorage' isn't defined. 2015-06-26 15:24:55 +01:00
Kegan Dougal
a3a59f4456 Add localstorage store module. 2015-06-26 15:13:04 +01:00
David Baker
9ea080b7bb Fetch the user's push rules before any events arrive, so we can annotate events with push data when they arrive. 2015-06-26 15:11:27 +01:00
Kegan Dougal
20b5553e48 Implement MatrixClient tests without a scheduler/store. 2015-06-26 14:26:57 +01:00
Kegan Dougal
fd0eb0c674 Finish timline integration tests. 2015-06-26 13:53:01 +01:00
Kegan Dougal
3c4bda8580 Add MatrixScheduler.removeEventFromQueue/getQueueForEvent and QUEUED state.
This is to allow the UI to show "queued" on events as well as allow the
removal of events in the queue.
2015-06-26 09:52:52 +01:00
Kegan Dougal
320bbec737 Add MatrixScheduler.getQueue to allow items in the queue to be modified. 2015-06-25 18:00:07 +01:00
Kegan Dougal
041f96ae6d Add remaining stub tests 2015-06-25 17:56:18 +01:00
Kegan Dougal
f240563fb5 Add room state/syncing stub tests 2015-06-25 17:49:46 +01:00
Kegan Dougal
e8d17a5ab3 Add missing pagination test 2015-06-25 17:36:21 +01:00
Kegan Dougal
f49234a772 Add pagination tests 2015-06-25 17:29:25 +01:00
Kegan Dougal
46d5c2bd61 Add pagination test; fix null token bug. 2015-06-25 16:33:22 +01:00
Kegan Dougal
325c00c660 Set Room.oldState.paginationToken to null at the start of the timeline. Fix linting errors. 2015-06-25 15:28:25 +01:00
Kegan Dougal
c4c68a0287 Add local echo tests. 2015-06-25 15:24:56 +01:00
Kegan Dougal
21df000604 Add Room.addEvents UT 2015-06-25 14:00:52 +01:00
Kegan Dougal
0be3c6837d Add utils UTs. Remove unused functions. 2015-06-24 17:42:02 +01:00
Kegan Dougal
74fcbdee3f Add retryFn -1 test. 2015-06-24 17:14:11 +01:00
Kegan Dougal
332bdcd101 Add Scheduler UTs. 2015-06-24 17:05:06 +01:00
Kegan Dougal
913178b284 Linting 2015-06-24 15:38:18 +01:00
Kegan Dougal
2a83248168 Add User UTs 2015-06-24 15:37:55 +01:00
Kegan Dougal
8f16948430 Appease linters 2015-06-24 14:57:48 +01:00
Kegan Dougal
1b665c176a Add RoomState UTs 2015-06-24 14:57:04 +01:00
Kegan Dougal
0bc9951f13 Add RoomState UT stubs. 2015-06-24 13:52:17 +01:00
Kegan Dougal
d3377e3dea Add RoomMember UTs. Fix disambiguation bug. Add CHANGELOG. 2015-06-24 13:35:19 +01:00
Kegan Dougal
b3efafebbe Restructure test layout. 2015-06-24 12:53:15 +01:00
Kegan Dougal
a12133ec9f Appease linters 2015-06-24 11:44:00 +01:00
Kegan Dougal
f763eb3f37 Convert all helper functions which make events to use kwargs 2015-06-24 11:43:16 +01:00
Kegan Dougal
26a23b19b3 Use an opts for helper mk functions; poor man's keyword args. 2015-06-24 11:14:54 +01:00
Kegan Dougal
9d967fb232 Add some UTs to Room methods 2015-06-24 11:05:18 +01:00
Kegan Dougal
62d7ff5ba9 Add colours to terminal. Sort room list by TS. 2015-06-23 17:46:52 +01:00
Kegan Dougal
b0ca6609f4 Merge branch 'develop' v0.1.1 2015-06-23 15:45:09 +01:00
Kegan Dougal
ff9bc0b865 Merge branch 'release-v0.1.1' into develop 2015-06-23 15:44:47 +01:00
Kegan Dougal
b3ef0b90ac Update README 2015-06-23 15:44:24 +01:00
Kegan Dougal
805d914940 Bump to 0.1.1. Add 'npm run release' script. 2015-06-23 15:42:08 +01:00
Kegsay
de560d1a4a Update CHANGELOG.md 2015-06-23 15:27:18 +01:00