Browse Source

chore: rename folder

appflowy 2 years ago
parent
commit
f88b8051f7

+ 2 - 2
shared-lib/lib-ot/src/core/mod.rs

@@ -1,12 +1,12 @@
 pub mod attributes;
 mod delta;
-mod document;
 mod interval;
+mod node_tree;
 mod ot_str;
 
 pub use attributes::*;
 pub use delta::operation::*;
 pub use delta::*;
-pub use document::*;
 pub use interval::*;
+pub use node_tree::*;
 pub use ot_str::*;

+ 2 - 2
shared-lib/lib-ot/src/core/document/mod.rs → shared-lib/lib-ot/src/core/node_tree/mod.rs

@@ -2,14 +2,14 @@
 
 mod node;
 mod node_serde;
-mod node_tree;
 mod operation;
 mod operation_serde;
 mod path;
 mod transaction;
+mod tree;
 
 pub use node::*;
-pub use node_tree::*;
 pub use operation::*;
 pub use path::*;
 pub use transaction::*;
+pub use tree::*;

+ 0 - 0
shared-lib/lib-ot/src/core/document/node.rs → shared-lib/lib-ot/src/core/node_tree/node.rs


+ 0 - 0
shared-lib/lib-ot/src/core/document/node_serde.rs → shared-lib/lib-ot/src/core/node_tree/node_serde.rs


+ 1 - 2
shared-lib/lib-ot/src/core/document/operation.rs → shared-lib/lib-ot/src/core/node_tree/operation.rs

@@ -1,6 +1,5 @@
 use crate::core::attributes::Attributes;
-use crate::core::document::path::Path;
-use crate::core::{NodeBodyChangeset, NodeData};
+use crate::core::{NodeBodyChangeset, NodeData, Path};
 use crate::errors::OTError;
 use serde::{Deserialize, Serialize};
 use std::rc::Rc;

+ 0 - 0
shared-lib/lib-ot/src/core/document/operation_serde.rs → shared-lib/lib-ot/src/core/node_tree/operation_serde.rs


+ 0 - 0
shared-lib/lib-ot/src/core/document/path.rs → shared-lib/lib-ot/src/core/node_tree/path.rs


+ 1 - 2
shared-lib/lib-ot/src/core/document/transaction.rs → shared-lib/lib-ot/src/core/node_tree/transaction.rs

@@ -1,6 +1,5 @@
 use crate::core::attributes::Attributes;
-use crate::core::document::path::Path;
-use crate::core::{NodeData, NodeOperation, NodeTree};
+use crate::core::{NodeData, NodeOperation, NodeTree, Path};
 use crate::errors::OTError;
 use indextree::NodeId;
 use std::rc::Rc;

+ 1 - 2
shared-lib/lib-ot/src/core/document/node_tree.rs → shared-lib/lib-ot/src/core/node_tree/tree.rs

@@ -1,6 +1,5 @@
 use crate::core::attributes::Attributes;
-use crate::core::document::path::Path;
-use crate::core::{Node, NodeBodyChangeset, NodeData, NodeOperation, OperationTransform, Transaction};
+use crate::core::{Node, NodeBodyChangeset, NodeData, NodeOperation, OperationTransform, Path, Transaction};
 use crate::errors::{ErrorBuilder, OTError, OTErrorCode};
 use indextree::{Arena, Children, FollowingSiblings, NodeId};
 use std::rc::Rc;