-
Notifications
You must be signed in to change notification settings - Fork 113
Yjs-based Shared Editing [3/4] Implement New Frontend Architecture based on Yjs #1674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e52e943
Change unnecessary event stream APIs.
Xiao-zhen-Liu 56c8aca
Change or disable test cases to accommodate yjs-based shared editing.
Xiao-zhen-Liu c328383
Add main content for yjs-based shared editing.
Xiao-zhen-Liu e32fe5d
Revert changes not related to this PR.
Xiao-zhen-Liu fc72222
Merge branch 'master' into xiaozhen-yjs-shared-editing-1
Xiao-zhen-Liu 7e17489
Merge branch 'master' into xiaozhen-yjs-shared-editing-2
Xiao-zhen-Liu 65e92bc
Merge branch 'master' into xiaozhen-yjs-shared-editing-3
Xiao-zhen-Liu 5880cf0
Split if statement in validation-workflow.service.ts
Xiao-zhen-Liu b3274eb
Merge branch 'xiaozhen-yjs-shared-editing-1' into xiaozhen-yjs-shared…
Xiao-zhen-Liu c407dfb
Merge branch 'xiaozhen-yjs-shared-editing-2' into xiaozhen-yjs-shared…
Xiao-zhen-Liu f72abcb
Merge branch 'master' into xiaozhen-yjs-shared-editing-3
Xiao-zhen-Liu 3ec8cab
Merge branch 'master' into xiaozhen-yjs-shared-editing-3
Xiao-zhen-Liu 0c9bcdc
Fix a bug which deletes the shared workflow on logout.
Xiao-zhen-Liu 6bb3b8c
add script to start both shared editing server and ng serve
zuozhiw 755f30a
Merge branch 'master' into xiaozhen-yjs-shared-editing-3
Xiao-zhen-Liu ded8843
Address comments.
Xiao-zhen-Liu bb0b8c7
Merge branch 'master' into xiaozhen-yjs-shared-editing-3
Xiao-zhen-Liu cde32fa
Fix format.
Xiao-zhen-Liu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,29 @@ | ||
| import { Point } from "../../workspace/types/workflow-common.interface"; | ||
|
|
||
| /** | ||
| * This interface stores the information about the user account. | ||
| * These information is used to identify users and to save their data | ||
| * Such information is used to identify users and to save their data | ||
| * Corresponds to `core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/UserResource.scala` | ||
| */ | ||
| export interface User | ||
| extends Readonly<{ | ||
| name: string; | ||
| uid: number; | ||
| googleId?: string; | ||
| color?: string; | ||
| }> {} | ||
|
|
||
| /** | ||
| * This interface is for user-presence information in shared-editing. | ||
| */ | ||
| export interface UserState { | ||
| user: User; | ||
| clientId: String; | ||
| isActive: boolean; | ||
| userCursor: Point; | ||
| highlighted?: string[]; | ||
| unhighlighted?: string[]; | ||
| currentlyEditing?: string; | ||
| changed?: string; | ||
| editingCode?: boolean; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 2 additions & 10 deletions
12
.../app/workspace/component/codearea-custom-template/codearea-custom-template.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,5 @@ | ||
| <div class="attribute-container"> | ||
| <button | ||
| (click)="onClickEditor()" | ||
| class="code-button" | ||
| nz-button | ||
| nzShape="round" | ||
| nzType="primary" | ||
| [ngClass]="{ 'readonly': !lockGranted }" | ||
| > | ||
| <div *ngIf="lockGranted">Edit code content</div> | ||
| <div *ngIf="!lockGranted">View code content</div> | ||
| <button (click)="onClickEditor()" class="code-button" nz-button nzShape="round" nzType="primary"> | ||
| <div>Edit code content</div> | ||
| </button> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.