mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Refactor: delete unused crates (#2543)
* refactor: delete user model * refactor: delete user model crate * refactor: rm flowy-server-sync crate * refactor: rm flowy-database and flowy-folder * refactor: rm folder-model * refactor: rm database model * refactor: rm flowy-sync * refactor: rm document-model * refactor: rm flowy-document * refactor: rm flowy-client-sync * refactor: rm ws-model * refactor: rm flowy-revisoin * refactor: rm revision-model * refactor: rm flowy-folder * refactor: rm flowy-client-ws * refactor: move crates * chore: move configuration file * ci: fix tauri build' * ci: fix flutter build * ci: rust test script * ci: tauri pnpm version conflict * ci: tauri build
This commit is contained in:
@ -10,7 +10,7 @@ collab = { version = "0.1.0" }
|
||||
collab-database = { version = "0.1.0" }
|
||||
appflowy-integrate = {version = "0.1.0" }
|
||||
|
||||
flowy-derive = { path = "../flowy-derive" }
|
||||
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
|
||||
flowy-notification = { path = "../flowy-notification" }
|
||||
parking_lot = "0.12.1"
|
||||
protobuf = {version = "2.28.0"}
|
||||
@ -20,7 +20,6 @@ tokio = { version = "1.26", features = ["sync"] }
|
||||
flowy-task= { path = "../flowy-task" }
|
||||
bytes = { version = "1.4" }
|
||||
tracing = { version = "0.1", features = ["log"] }
|
||||
database-model = { path = "../../../shared-lib/database-model" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = {version = "1.0"}
|
||||
serde_repr = "0.1"
|
||||
@ -48,7 +47,7 @@ strum_macros = "0.21"
|
||||
flowy-test = { path = "../flowy-test" }
|
||||
|
||||
[build-dependencies]
|
||||
flowy-codegen = { path = "../flowy-codegen"}
|
||||
flowy-codegen = { path = "../../../shared-lib/flowy-codegen"}
|
||||
|
||||
|
||||
[features]
|
||||
|
@ -1,9 +1,10 @@
|
||||
use crate::entities::FieldType;
|
||||
use bytes::Bytes;
|
||||
use database_model::CellRevision;
|
||||
use flowy_error::{internal_error, FlowyError, FlowyResult};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use flowy_error::{internal_error, FlowyError, FlowyResult};
|
||||
|
||||
use crate::entities::FieldType;
|
||||
|
||||
/// TypeCellData is a generic CellData, you can parse the type_cell_data according to the field_type.
|
||||
/// The `data` is encoded by JSON format. You can use `IntoCellData` to decode the opaque data to
|
||||
/// concrete cell type.
|
||||
@ -55,22 +56,6 @@ impl ToString for TypeCellData {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::convert::TryFrom<&CellRevision> for TypeCellData {
|
||||
type Error = FlowyError;
|
||||
|
||||
fn try_from(value: &CellRevision) -> Result<Self, Self::Error> {
|
||||
Self::from_json_str(&value.type_cell_data)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::convert::TryFrom<CellRevision> for TypeCellData {
|
||||
type Error = FlowyError;
|
||||
|
||||
fn try_from(value: CellRevision) -> Result<Self, Self::Error> {
|
||||
Self::try_from(&value)
|
||||
}
|
||||
}
|
||||
|
||||
impl TypeCellData {
|
||||
pub fn new(cell_str: String, field_type: FieldType) -> Self {
|
||||
TypeCellData {
|
||||
|
Reference in New Issue
Block a user