Skip to content

Commit

Permalink
892057: Updated sample link
Browse files Browse the repository at this point in the history
  • Loading branch information
mugunthan-anbalagan committed Jul 31, 2024
1 parent 3d56484 commit fc9aaa2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ Collaborative editing Web API actions are supported in below platforms
1. ASP.NET Core
2. Java

Please find the UG and documentation links below.
Please find the sample and documentation links below.


|Platf||||

|Platform| UG links| Sample link |
|----|----|----|
|ASP.NET Core| <ul><li>[TypeScript](https://ej2.syncfusion.com/documentation/document-editor/collaborative-editing/using-dot-net)</li><li>[JavaScript](https://ej2.syncfusion.com/javascript/documentation/document-editor/collaborative-editing/using-dot-net)</li><li>[Vue](https://ej2.syncfusion.com/vue/documentation/document-editor/collaborative-editing/using-dot-net)</li><li>[Angular](https://ej2.syncfusion.com/angular/documentation/document-editor/collaborative-editing/using-dot-net)</li><li>[React](https://ej2.syncfusion.com/react/documentation/document-editor/collaborative-editing/using-dot-net)</li></ul> | <ul><li>[ASP.NET Core Web API](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/ASP.NET)</li><li>[TypeScript](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/ASP.NET/TypeScript)</li><li>[JavaScript](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/ASP.NET/Javascript)</li><li>[Vue](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/ASP.NET/Vue)</li><li>[Angular](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/ASP.NET/Angular)</li><li>[React](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/ASP.NET/React)</li></ul> |
|Java| <ul><li>[TypeScript](https://ej2.syncfusion.com/documentation/document-editor/collaborative-editing/using-java)</li><li>[JavaScript](https://ej2.syncfusion.com/javascript/documentation/document-editor/collaborative-editing/using-java)</li><li>[Vue](https://ej2.syncfusion.com/vue/documentation/document-editor/collaborative-editing/using-java)</li><li>[Angular](https://ej2.syncfusion.com/angular/documentation/document-editor/collaborative-editing/using-java)</li><li>[React](https://ej2.syncfusion.com/react/documentation/document-editor/collaborative-editing/using-java)</li></ul> | <ul><li>[Java Sprint boot](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Java/Java%20web%20service%20using%20PostgreSQL)</li><li>[TypeScript](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Java/TypeScript)</li><li>[JavaScript](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Java/JavaScript)</li><li>[Vue](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Java/Vue)</li><li>[Angular](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Java/Angular)</li><li>[React](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Java/React)</li></ul>|
|ASP.NET Core| <ul><li>[TypeScript](https://ej2.syncfusion.com/documentation/document-editor/collaborative-editing/using-dot-net)</li><li>[JavaScript](https://ej2.syncfusion.com/javascript/documentation/document-editor/collaborative-editing/using-dot-net)</li><li>[Vue](https://ej2.syncfusion.com/vue/documentation/document-editor/collaborative-editing/using-dot-net)</li><li>[Angular](https://ej2.syncfusion.com/angular/documentation/document-editor/collaborative-editing/using-dot-net)</li><li>[React](https://ej2.syncfusion.com/react/documentation/document-editor/collaborative-editing/using-dot-net)</li></ul> | <ul><li>[ASP.NET Core Web API](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Server%20side%20with%20database/ASP.NET%20Core)</li><li>[TypeScript](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20dotnet/TypeScript)</li><li>[JavaScript](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20dotnet/JavaScript)</li><li>[Vue](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20dotnet/Vue)</li><li>[Angular](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20dotnet/Angular)</li><li>[React](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20dotnet/React)</li></ul> |
|Java| <ul><li>[TypeScript](https://ej2.syncfusion.com/documentation/document-editor/collaborative-editing/using-java)</li><li>[JavaScript](https://ej2.syncfusion.com/javascript/documentation/document-editor/collaborative-editing/using-java)</li><li>[Vue](https://ej2.syncfusion.com/vue/documentation/document-editor/collaborative-editing/using-java)</li><li>[Angular](https://ej2.syncfusion.com/angular/documentation/document-editor/collaborative-editing/using-java)</li><li>[React](https://ej2.syncfusion.com/react/documentation/document-editor/collaborative-editing/using-java)</li></ul> | <ul><li>[Java Sprint boot](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Server%20side%20with%20database/Java/Java%20web%20service%20using%20PostgreSQL)</li><li>[TypeScript](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20Java/TypeScript)</li><li>[JavaScript](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20Java/JavaScript)</li><li>[Vue](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20Java/Vue)</li><li>[Angular](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20Java/Angular)</li><li>[React](https://github.com/SyncfusionExamples/EJ2-Document-Editor-Collaborative-Editing/tree/master/Client%20side%20with%20Java/React)</li></ul>|



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,27 @@ public class CollaborativeEditingHelper
-- Retrieve the current revision number from Redis
local revision = redis.call('GET', revisionKey)
if not revision then
revision = 0
else
revision = tonumber(revision)
end
-- Calculate the effective version by multiplying the revision number by the threshold
-- This helps in determining the actual version of the document considering the revisions
local effectiveVersion = tonumber(revision) * threshold
local effectiveVersion = revision * threshold
-- Adjust the client's version by subtracting the effective version
-- This calculation aligns the client's version with the server's version, accounting for any revisions
clientVersion = clientVersion - effectiveVersion
-- Return a range of list elements starting from the adjusted client version to the end of the list
-- This command retrieves all operations that have occurred since the client's last known state
return redis.call('LRANGE', listKey, clientVersion, -1)";
if clientVersion >= 0 then
return redis.call('LRANGE', listKey, clientVersion, -1)
else
return {}
end";

internal static string PendingOperations = @"
local listKey = KEYS[1]
Expand Down

0 comments on commit fc9aaa2

Please # to comment.