镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Refactor: Split Editor Wrapper into multiple components - #2687

Merged
vinicius73 merged 8 commits into
masterfrom
refactor/split-editor-wrapper
Jul 29, 2022
Merged

vinicius73 merged 8 commits into
masterfrom
refactor/split-editor-wrapper

Conversation

@max-nextcloud

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@max-nextcloud Setting labels is highly appreciated ;)

@max-nextcloud

Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

/compile

</script>

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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