Commit Graph
22 Commits
Author SHA1 Message Date
Friedrich W. H. Kossebau 81140f4b0f Help pullbox backends by telling them the mimetype of the WSER call payload 2014-03-10 17:42:26 +01:00
Friedrich W. H. Kossebau 927fcb7e8d Remove unmaintained adapter to nowjs-based server 2014-02-06 12:32:32 +01:00
Friedrich W. H. Kossebau 4824548860 Adapt PullboxOperationRouter to batch processing signals
Missing from 26a9252edb
2014-02-05 16:32:48 +01:00
Friedrich W. H. Kossebau 50f18a109e For OperationRouter turn explicit subscription methods into generic ones + explicit state getters 2013-12-03 18:32:40 +01:00
Friedrich W. H. Kossebau 14bf18d40d Catch any errors in the OperationRouter & calling the server and report in separate callback 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 27461c32fe Add OperationRouter.getHasSessionHostConnectionAndUpdates/OperationRouter.unsubscribeHasSessionHostConnectionUpdates 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau a454cce637 Catch failing playback of operations or unknown ops coming from server 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 53c579b744 make failCb a needed argument to Server.joinSession and Server.leaveSession 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 422db0de00 Fix condition when to log on replies to Pullbox servers 2013-12-03 17:03:55 +01:00
Friedrich W. H. Kossebau 33c0a580c8 Add OperationRouter.getHasLocalUnsyncedOpsAndUpdates/OperationRouter.unsubscribeHasLocalUnsyncedOpsUpdates 2013-12-03 17:03:55 +01:00
Aditya Bhatt bfdc14b907 Add isEdit properties to all operation classes
to make life easier by avoiding the need to listen
to various signals or look at optypes when you just
want to know whether any edits have taken place.
2013-11-22 20:35:29 +01:00
Jos van den Oever 092edb44ad JSON is just text, no need to make a binary. 2013-11-22 18:32:21 +01:00
Aditya Bhatt ec5567bd09 Remove all occurrences of MemberModel and TrivialMemberModel 2013-11-20 22:26:02 +01:00
Friedrich W. H. Kossebau 72cd3888a1 Add backend for pullbox-type server to programs/editor 2013-11-07 10:51:01 +01:00
Friedrich W. H. Kossebau c2a795e668 Update link to repo: now https://github.com/kogmbh/WebODF/ 2013-10-23 18:20:30 +02:00
Friedrich W. H. Kossebau 508570dab8 Add copy of the AGPL3 to sources (+ add to created zip files) 2013-10-21 17:55:16 +02:00
Friedrich W. H. Kossebau 55e6322bf7 Little fixes in editor code that closure compiler did not like 2013-10-07 10:45:41 +02:00
Friedrich W. H. Kossebau f46bb9e502 Change ops.OperationRouter.push to take a sequence of ops
Taking a sequence of ops also enables to give the guarantee that all
contained operations will be executed directly after each other,
in the given order. So creator of the ops can calculate the spec of each op
by relying on the known effect of the other ops.
2013-10-02 19:29:52 +02:00
Friedrich W. H. Kossebau 0187905b3d Have MemberModel define the temporary data for members, not the UI 2013-09-07 17:00:58 +02:00
Friedrich W. H. Kossebau 1f7469884f redo class Editor (for proper re-usage and also destruction)
* Editor can have three states: without a document/session, with a document/session, destroyed
* Editor is created without any document/session initially
* document/session has to be closed before loading another one
* EditorSession/Session are bound to a document/session, recreated for another one
* all other objects are reused with another document/session
* destroy() cleans up the Editor from the webpage it is embedded (at least good enough for now)
* startEditing/endEditing have to be done by the user of Editor
2013-09-03 01:02:48 +02:00
Friedrich W. H. Kossebau 626e919fca enable stopping the sessionlist updates, e.g. when a session is selected 2013-09-02 16:38:34 +02:00
Friedrich W. H. Kossebau f2b56083e6 add a ops.Server interface + a ServerFactory interface, move Nowjs-based server stuff into programs/editor/server/nowjs
MemberModel, SessionList, and OperationRouter are proxy classes which use
the server object to communicate with the server, while the server does
not always need to know about them
e.g. some server could not provide a SessionList, while another could have
that and more, while sharing the same basic server protocol.
Thus the serverfactory instance is separated from the server instance.
2013-08-28 16:33:49 +02:00