Skip to content
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

Refactor: Split Editor Wrapper into multiple components #2687

Merged
merged 8 commits into from
Jul 29, 2022

Conversation

max-nextcloud
Copy link
Collaborator

EditorWrapper is fairly large and hard to understand. It handles almost all editor related things - Sessions, Sync, Document, EditorLayout, Menubars etc.

In order to rework the collaboration it might be helpful to split it into smaller pieces so it becomes easier to understand and handle.

Editor/Status handles the status display in the menubar.

@max-nextcloud max-nextcloud force-pushed the refactor/split-editor-wrapper branch 2 times, most recently from 41814bf to 41661ec Compare July 8, 2022 21:50
@max-nextcloud max-nextcloud marked this pull request as ready for review July 8, 2022 21:59
@max-nextcloud
Copy link
Collaborator Author

This is just some preparation - but i think it's helpful in its own right and changing quite a lot of file structures - so maybe good to get it in already.

@juliusknorr
Copy link
Member

@max-nextcloud Setting labels is highly appreciated ;)

@max-nextcloud
Copy link
Collaborator Author

/compile

@max-nextcloud max-nextcloud force-pushed the refactor/split-editor-wrapper branch from 04b53b3 to d1963d2 Compare July 27, 2022 09:33
@max-nextcloud
Copy link
Collaborator Author

/compile

</script>

<style scoped lang="scss">
.text-editor__main, .editor {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not have a .editor element in this component.

@vinicius73
Copy link
Member

/rebase

@nextcloud-command nextcloud-command force-pushed the refactor/split-editor-wrapper branch from 9adc0e0 to 44ad290 Compare July 27, 2022 21:44
`Editor/Status` handles the status display in the menubar.
`Editor/DocumentStatus` handles the document messages on conflict etc.

Also move all files that are only used within it into the `Components/Editor` dir.

Signed-off-by: Max <max@nextcloud.com>
This will contain all editor related things.
For now it only has the EditorMediaHandler

Signed-off-by: Max <max@nextcloud.com>
This injects the `$editor` to display the content.
One reason less to have the `$editor` in the `EditorWrapper`.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the refactor/split-editor-wrapper branch from 44ad290 to 4f58e4c Compare July 29, 2022 12:20
@max-nextcloud
Copy link
Collaborator Author

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@vinicius73 vinicius73 merged commit e577eec into master Jul 29, 2022
@delete-merged-branch delete-merged-branch bot deleted the refactor/split-editor-wrapper branch July 29, 2022 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants