Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aha-app/collaborative-demo
/ functions
Functions
98 in github.com/aha-app/collaborative-demo
⨍
Functions
98
◇
Types & classes
37
↓ 40 callers
Function
removeOp
(text, offset)
test/javascripts/collaborative_editor/transform.test.js:8
↓ 39 callers
Function
insertOp
(text, offset)
test/javascripts/collaborative_editor/transform.test.js:7
↓ 23 callers
Function
transformOperation
(left, right, winTies)
app/javascript/src/collaborative_editor/transform.js:168
↓ 17 callers
Method
_apply
(operation)
app/javascript/src/collaborative_editor/CollaborativeDocument.js:87
↓ 14 callers
Function
transformOffset
(offset, operations)
app/javascript/src/collaborative_editor/transform.js:181
↓ 12 callers
Method
apply
(operation)
app/models/document.rb:20
↓ 12 callers
Function
removeOp
(text, offset)
test/javascripts/collaborative_editor/compose.test.js:4
↓ 11 callers
Function
insertOp
(text, offset)
test/javascripts/collaborative_editor/compose.test.js:3
↓ 10 callers
Function
operationWithNewData
(operation, newData)
app/javascript/src/collaborative_editor/utils.js:5
↓ 9 callers
Function
compose
(operations, operation)
app/javascript/src/collaborative_editor/compose.js:8
↓ 8 callers
Method
perform
(operation, allowUndo = true)
app/javascript/src/collaborative_editor/CollaborativeDocument.js:29
↓ 7 callers
Function
transform
(ourOperations, theirOperations)
app/javascript/src/collaborative_editor/transform.js:3
↓ 6 callers
Method
generate_remove
(text, offset)
app/models/document.rb:12
↓ 5 callers
Method
generate_insert
(text, offset)
app/models/document.rb:4
↓ 5 callers
Function
randomInt
(max)
test/javascripts/collaborative_editor/fuzzer.test.js:9
↓ 4 callers
Function
operationBounds
(operation)
app/javascript/src/collaborative_editor/transform.js:45
↓ 4 callers
Function
toArray
(value)
app/javascript/src/collaborative_editor/transform.js:39
↓ 3 callers
Method
_change
()
app/javascript/src/collaborative_editor/CollaborativeDocument.js:62
↓ 3 callers
Method
_invert
(op)
app/javascript/src/collaborative_editor/UndoStack.js:44
↓ 3 callers
Function
adjustOffsetAfterInsert
(offset, insertOp, transformEqualOffsets)
app/javascript/src/collaborative_editor/transform.js:56
↓ 3 callers
Function
adjustOffsetAfterRemove
(offset, removeOp)
app/javascript/src/collaborative_editor/transform.js:66
↓ 3 callers
Method
performedOperation
(operation)
app/javascript/src/collaborative_editor/UndoStack.js:17
↓ 3 callers
Method
requestOperationsSince
(version)
app/javascript/src/collaborative_editor/OperationsChannel.js:49
↓ 2 callers
Method
_transformRemoteSelections
(operation)
app/javascript/src/collaborative_editor/CollaborativeDocument.js:77
↓ 2 callers
Method
_transformStack
(stack, operations)
app/javascript/src/collaborative_editor/UndoStack.js:39
↓ 2 callers
Method
_updateSelection
(anchor, focus)
app/javascript/src/collaborative_editor/CollaborativeDocument.js:127
↓ 2 callers
Method
connect
(onConnected)
app/javascript/src/collaborative_editor/SelectionsChannel.js:50
↓ 2 callers
Function
generateOpStream
(document, count)
test/javascripts/collaborative_editor/fuzzer.test.js:32
↓ 2 callers
Method
operations
(data)
app/channels/operations_channel.rb:9
↓ 2 callers
Method
recalculateCoordinates
()
app/javascript/src/collaborative_editor/SelectionIndicator.js:39
↓ 2 callers
Method
receivedOperations
(operations)
app/javascript/src/collaborative_editor/UndoStack.js:22
↓ 2 callers
Method
setOffset
(clientId, version, offset)
app/javascript/src/collaborative_editor/SelectionsChannel.js:42
↓ 2 callers
Method
setOffset
(newOffset)
app/javascript/src/collaborative_editor/CollaborationClient.js:66
↓ 2 callers
Method
updateVersion
(newVersion)
app/javascript/src/collaborative_editor/CollaborationClient.js:71
↓ 1 callers
Method
_error
(data)
app/javascript/src/collaborative_editor/OperationsChannel.js:60
↓ 1 callers
Method
_operationAcknowledged
(data)
app/javascript/src/collaborative_editor/OperationsChannel.js:57
↓ 1 callers
Method
_operationsReceived
(operations, clientId)
app/javascript/src/collaborative_editor/OperationsChannel.js:63
↓ 1 callers
Method
_transformCurrentSelection
(operations)
app/javascript/src/collaborative_editor/CollaborativeDocument.js:120
↓ 1 callers
Function
channelCallbacks
(channelClass, onConnected)
app/javascript/src/collaborative_editor/SelectionsChannel.js:1
↓ 1 callers
Function
channelCallbacks
(channelClass, onConnected)
app/javascript/src/collaborative_editor/OperationsChannel.js:1
↓ 1 callers
Function
composeOperation
(operation1, operation2)
app/javascript/src/collaborative_editor/compose.js:19
↓ 1 callers
Method
connect
(onConnected)
app/javascript/src/collaborative_editor/OperationsChannel.js:38
↓ 1 callers
Method
connectOperationsChannel
(documentId, initialVersion)
app/javascript/src/collaborative_editor/CollaborationClient.js:32
↓ 1 callers
Method
connectSelectionsChannel
(document, initialVersion)
app/javascript/src/collaborative_editor/CollaborationClient.js:46
↓ 1 callers
Method
popRedoItem
()
app/javascript/src/collaborative_editor/UndoStack.js:33
↓ 1 callers
Method
popUndoItem
()
app/javascript/src/collaborative_editor/UndoStack.js:27
↓ 1 callers
Method
received
(selectionData)
app/javascript/src/collaborative_editor/SelectionsChannel.js:31
↓ 1 callers
Method
redo
()
app/javascript/src/collaborative_editor/CollaborativeDocument.js:56
↓ 1 callers
Method
render
()
app/javascript/src/collaborative_editor/SelectionIndicator.js:86
↓ 1 callers
Method
setSelection
(anchor, focus)
app/javascript/src/collaborative_editor/CollaborativeDocument.js:45
↓ 1 callers
Method
startCollaborating
(version)
app/javascript/src/collaborative_editor/CollaborativeDocument.js:20
↓ 1 callers
Method
submitOperation
(operation)
app/javascript/src/collaborative_editor/OperationsChannel.js:53
↓ 1 callers
Method
submitOperations
(operations)
app/javascript/src/collaborative_editor/CollaborationClient.js:59
↓ 1 callers
Function
transformInsertInsert
(left, right, winTies)
app/javascript/src/collaborative_editor/transform.js:77
↓ 1 callers
Function
transformInsertRemove
(left, right, winTies)
app/javascript/src/collaborative_editor/transform.js:82
↓ 1 callers
Function
transformRemoveInsert
(left, right, winTies)
app/javascript/src/collaborative_editor/transform.js:87
↓ 1 callers
Function
transformRemoveRemove
(left, right, winTies)
app/javascript/src/collaborative_editor/transform.js:121
↓ 1 callers
Method
undo
()
app/javascript/src/collaborative_editor/CollaborativeDocument.js:50
Method
_allOperationsAcknowledged
()
app/javascript/src/collaborative_editor/CollaborativeDocument.js:133
Method
broadcast_key
app/channels/selections_channel.rb:13
Method
broadcast_key
app/channels/operations_channel.rb:36
Method
canRedo
()
app/javascript/src/collaborative_editor/UndoStack.js:13
Method
canUndo
()
app/javascript/src/collaborative_editor/UndoStack.js:9
Method
change
db/migrate/20180219051731_create_documents.rb:2
Method
change
db/migrate/20180219052018_create_operations.rb:2
Method
client_key
app/channels/operations_channel.rb:40
Function
componentDidMount
()
app/javascript/src/collaborative_editor/CollaborativeEditor.js:112
Method
componentDidMount
()
app/javascript/src/collaborative_editor/SelectionIndicator.js:46
Function
componentDidUpdate
()
app/javascript/src/collaborative_editor/CollaborativeEditor.js:121
Method
componentDidUpdate
()
app/javascript/src/collaborative_editor/SelectionIndicator.js:66
Function
componentWillUnmount
()
app/javascript/src/collaborative_editor/CollaborativeEditor.js:117
Method
componentWillUnmount
()
app/javascript/src/collaborative_editor/SelectionIndicator.js:55
Method
connect
(document, initialVersion)
app/javascript/src/collaborative_editor/CollaborationClient.js:25
Function
constructor
(props)
app/javascript/src/collaborative_editor/CollaborativeEditor.js:6
Method
constructor
(documentId, content, onChange)
app/javascript/src/collaborative_editor/CollaborativeDocument.js:6
Method
constructor
(props)
app/javascript/src/collaborative_editor/SelectionIndicator.js:34
Method
constructor
()
app/javascript/src/collaborative_editor/UndoStack.js:4
Method
constructor
({ clientId, documentId, version, onSelectionUpdate })
app/javascript/src/collaborative_editor/SelectionsChannel.js:24
Method
constructor
({ onOperationReceived, onAllOperationsAcknowledged, onSelectionUpdate })
app/javascript/src/collaborative_editor/CollaborationClient.js:9
Method
constructor
({ clientId, documentId, onReceived, onAcknowledged, onError })
app/javascript/src/collaborative_editor/OperationsChannel.js:30
Method
edit
app/controllers/documents_controller.rb:2
Function
generateRandomInsertOp
(document)
test/javascripts/collaborative_editor/fuzzer.test.js:13
Function
generateRandomRemoveOp
(document)
test/javascripts/collaborative_editor/fuzzer.test.js:23
Function
if
(this.selectionIsCollapsed)
app/javascript/src/collaborative_editor/CollaborativeEditor.js:168
Method
offset
()
app/javascript/src/collaborative_editor/CollaborativeDocument.js:16
Method
operation_params
(params)
app/channels/operations_channel.rb:44
Function
selectionDirection
()
app/javascript/src/collaborative_editor/CollaborativeEditor.js:36
Function
selectionEnd
()
app/javascript/src/collaborative_editor/CollaborativeEditor.js:29
Function
selectionIsCollapsed
()
app/javascript/src/collaborative_editor/CollaborativeEditor.js:18
Function
selectionIsCurrent
app/javascript/src/collaborative_editor/Selections.js:4
Function
selectionStart
()
app/javascript/src/collaborative_editor/CollaborativeEditor.js:22
Method
send_operations_since
(version)
app/channels/operations_channel.rb:31
Method
set_offset
(data)
app/channels/selections_channel.rb:8
Method
shouldComponentUpdate
(nextProps, nextState)
app/javascript/src/collaborative_editor/SelectionIndicator.js:70
Method
submit
(data)
app/channels/operations_channel.rb:13
Method
subscribed
app/channels/selections_channel.rb:2
Method
subscribed
app/channels/operations_channel.rb:2
Method
updateVersion
(newVersion)
app/javascript/src/collaborative_editor/SelectionsChannel.js:46