-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dispatch merge_prev & merge_next (#603)
* dispatch merge * add commands for merge * supress users own content changes * add command processing * clean liveview handle_events * cleanup js merge_prev & merge_next actions * increase credo happyness * implement Outline.merge_next_node and process MergeNextCommands * implement Outline.merge_prev_node and process MergePrevCommands --------- Co-authored-by: Martin Wöginger <[email protected]>
- Loading branch information
1 parent
9c60f18
commit 89798a9
Showing
11 changed files
with
460 additions
and
97 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
defmodule Radiator.Outline.Command.MergeNextNodeCommand do | ||
@moduledoc """ | ||
Command to merge a node with the next node. | ||
""" | ||
@type t() :: %__MODULE__{ | ||
event_id: binary(), | ||
user_id: binary(), | ||
node_id: binary() | ||
} | ||
|
||
defstruct [:event_id, :user_id, :node_id] | ||
end |
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
defmodule Radiator.Outline.Command.MergePrevNodeCommand do | ||
@moduledoc """ | ||
Command to merge a node with the previous node. | ||
""" | ||
@type t() :: %__MODULE__{ | ||
event_id: binary(), | ||
user_id: binary(), | ||
node_id: binary() | ||
} | ||
|
||
defstruct [:event_id, :user_id, :node_id] | ||
end |
This file contains 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 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 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 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.