From af61cae182554151a7291c157e2537b341851948 Mon Sep 17 00:00:00 2001 From: appflowy Date: Sun, 31 Jul 2022 19:43:52 +0800 Subject: [PATCH] ci: fix docker builder --- frontend/rust-lib/flowy-grid/src/entities/block_entities.rs | 1 - frontend/rust-lib/flowy-grid/src/entities/field_entities.rs | 2 -- frontend/rust-lib/flowy-grid/src/entities/setting_entities.rs | 1 - frontend/rust-lib/flowy-grid/src/event_map.rs | 4 +--- .../field/type_options/selection_type_option/select_option.rs | 4 ---- frontend/scripts/docker-buildfiles/Dockerfile | 2 +- 6 files changed, 2 insertions(+), 12 deletions(-) diff --git a/frontend/rust-lib/flowy-grid/src/entities/block_entities.rs b/frontend/rust-lib/flowy-grid/src/entities/block_entities.rs index 8637e35aed..f778186903 100644 --- a/frontend/rust-lib/flowy-grid/src/entities/block_entities.rs +++ b/frontend/rust-lib/flowy-grid/src/entities/block_entities.rs @@ -4,7 +4,6 @@ use flowy_grid_data_model::parser::NotEmptyStr; use flowy_grid_data_model::revision::RowRevision; use std::sync::Arc; - /// [GridBlockPB] contains list of row ids. The rows here does not contain any data, just the id /// of the row. Check out [GridRowPB] for more details. /// diff --git a/frontend/rust-lib/flowy-grid/src/entities/field_entities.rs b/frontend/rust-lib/flowy-grid/src/entities/field_entities.rs index f3ef1738b1..dce77787c3 100644 --- a/frontend/rust-lib/flowy-grid/src/entities/field_entities.rs +++ b/frontend/rust-lib/flowy-grid/src/entities/field_entities.rs @@ -8,7 +8,6 @@ use std::sync::Arc; use strum_macros::{Display, EnumCount as EnumCountMacro, EnumIter, EnumString}; - /// [GridFieldPB] defines a Field's attributes. Such as the name, field_type, and width. etc. #[derive(Debug, Clone, Default, ProtoBuf)] pub struct GridFieldPB { @@ -280,7 +279,6 @@ pub struct FieldTypeOptionDataPB { pub type_option_data: Vec, } - /// Collection of the [GridFieldPB] #[derive(Debug, Default, ProtoBuf)] pub struct RepeatedGridFieldPB { diff --git a/frontend/rust-lib/flowy-grid/src/entities/setting_entities.rs b/frontend/rust-lib/flowy-grid/src/entities/setting_entities.rs index 697910ccad..3564886c4a 100644 --- a/frontend/rust-lib/flowy-grid/src/entities/setting_entities.rs +++ b/frontend/rust-lib/flowy-grid/src/entities/setting_entities.rs @@ -12,7 +12,6 @@ use std::convert::TryInto; use strum::IntoEnumIterator; use strum_macros::EnumIter; - /// [GridSettingPB] defines the setting options for the grid. Such as the filter, group, and sort. #[derive(Eq, PartialEq, ProtoBuf, Debug, Default, Clone)] pub struct GridSettingPB { diff --git a/frontend/rust-lib/flowy-grid/src/event_map.rs b/frontend/rust-lib/flowy-grid/src/event_map.rs index f8b3c36d33..0855ef0032 100644 --- a/frontend/rust-lib/flowy-grid/src/event_map.rs +++ b/frontend/rust-lib/flowy-grid/src/event_map.rs @@ -42,7 +42,6 @@ pub fn create(grid_manager: Arc) -> Module { module } - /// [GridEvent] defines events that are used to interact with the Grid. You could check [this](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/architecture/backend/protobuf) /// out, it includes how to use these annotations: input, output, etc. #[derive(Clone, Copy, PartialEq, Eq, Debug, Display, Hash, ProtoBuf_Enum, Flowy_Event)] @@ -88,7 +87,6 @@ pub enum GridEvent { #[event(input = "FieldChangesetPayloadPB")] UpdateField = 11, - /// [UpdateFieldTypeOption] event is used to update the field's type option data. Certain field /// types have user-defined options such as color, date format, number format, or a list of values /// for a multi-select list. These options are defined within a specialization of the @@ -160,7 +158,7 @@ pub enum GridEvent { /// FieldType::SingleSelect or FieldType::MultiSelect. /// /// This event may trigger the GridNotification::DidUpdateCell event. - /// For example, GridNotification::DidUpdateCell will be triggered if the [SelectOptionChangesetPayloadPB] + /// For example, GridNotification::DidUpdateCell will be triggered if the [SelectOptionChangesetPayloadPB] /// carries a change that updates the name of the option. #[event(input = "SelectOptionChangesetPayloadPB")] UpdateSelectOption = 32, diff --git a/frontend/rust-lib/flowy-grid/src/services/field/type_options/selection_type_option/select_option.rs b/frontend/rust-lib/flowy-grid/src/services/field/type_options/selection_type_option/select_option.rs index 11adb945dc..d426844427 100644 --- a/frontend/rust-lib/flowy-grid/src/services/field/type_options/selection_type_option/select_option.rs +++ b/frontend/rust-lib/flowy-grid/src/services/field/type_options/selection_type_option/select_option.rs @@ -11,7 +11,6 @@ use serde::{Deserialize, Serialize}; pub const SELECTION_IDS_SEPARATOR: &str = ","; - /// [SelectOptionPB] represents an option for a single select, and multiple select. #[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize, ProtoBuf)] pub struct SelectOptionPB { @@ -324,12 +323,10 @@ impl SelectOptionCellChangeset { } } - /// [SelectOptionCellDataPB] contains a list of user's selected options and a list of all the options /// that the cell can use. #[derive(Clone, Debug, Default, Serialize, Deserialize, ProtoBuf)] pub struct SelectOptionCellDataPB { - /// The available options that the cell can use. #[pb(index = 1)] pub options: Vec, @@ -339,7 +336,6 @@ pub struct SelectOptionCellDataPB { pub select_options: Vec, } - /// [SelectOptionChangesetPayloadPB] describes the changes of a FieldTypeOptionData. For the moment, /// it is used by [MultiSelectTypeOptionPB] and [SingleSelectTypeOptionPB]. #[derive(Clone, Debug, Default, ProtoBuf)] diff --git a/frontend/scripts/docker-buildfiles/Dockerfile b/frontend/scripts/docker-buildfiles/Dockerfile index 54b79173bc..f050087977 100644 --- a/frontend/scripts/docker-buildfiles/Dockerfile +++ b/frontend/scripts/docker-buildfiles/Dockerfile @@ -33,7 +33,7 @@ source $HOME/.cargo/env && \ cargo install --force cargo-make && \ cargo install --force duckscript_cli && \ cargo make flowy_dev && \ -cargo make -p production-linux-x86 appflowy-linux +cargo make -p production-linux-x86_64 appflowy-linux CMD ["/home/makepkg/appflowy/frontend/app_flowy/build/linux/x64/release/bundle/app_flowy"]