chore: bump up collab version (#2736)

This commit is contained in:
Nathan.fooo
2023-06-08 12:20:18 +08:00
committed by GitHub
parent d02b8c609b
commit 6e27d551d9
8 changed files with 64 additions and 81 deletions

View File

@ -1,3 +1,13 @@
use std::cmp::Ordering;
use std::str::FromStr;
use collab::core::any_map::AnyMapExtension;
use collab_database::fields::{Field, TypeOptionData, TypeOptionDataBuilder};
use collab_database::rows::Cell;
use serde::{Deserialize, Serialize};
use flowy_error::FlowyResult;
use crate::entities::{CheckboxFilterPB, FieldType};
use crate::services::cell::{CellDataChangeset, CellDataDecoder};
use crate::services::field::{
@ -5,14 +15,6 @@ use crate::services::field::{
TypeOptionCellDataFilter, TypeOptionTransform,
};
use collab::core::any_map::AnyMapExtension;
use collab_database::fields::{Field, TypeOptionData, TypeOptionDataBuilder};
use collab_database::rows::Cell;
use flowy_error::FlowyResult;
use serde::{Deserialize, Serialize};
use std::cmp::Ordering;
use std::str::FromStr;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct CheckboxTypeOption {
pub is_selected: bool,
@ -89,10 +91,7 @@ impl CellDataDecoder for CheckboxTypeOption {
if !decoded_field_type.is_checkbox() {
return Ok(Default::default());
}
let cell = self.parse_cell(cell);
println!("cell: {:?}", cell);
return cell;
self.parse_cell(cell)
}
fn stringify_cell_data(&self, cell_data: <Self as TypeOption>::CellData) -> String {