Feat/view map database (#1885)

* refactor: rename structs

* chore: read database id from view

* chore: fix open database error because of create a database view for database id

* chore: fix tests

* chore: rename datbase id to view id in flutter

* refactor: move grid and board to database view folder

* refactor: rename functions

* refactor: move calender to datbase view folder

* refactor: rename app_flowy to appflowy_flutter

* chore: reanming

* chore: fix freeze gen

* chore: remove todos

* refactor: view process events

* chore: add link database test

* chore: just open view if there is opened database
This commit is contained in:
Nathan.fooo
2023-02-26 16:27:17 +08:00
committed by GitHub
parent 6877607c5e
commit 61fd608200
2213 changed files with 43935 additions and 45507 deletions

View File

@ -45,7 +45,7 @@ pub enum ErrorCode {
ViewThumbnailInvalid = 13,
#[error("View id can not be empty or whitespace")]
ViewIdInvalid = 14,
ViewIdIsInvalid = 14,
#[error("View desc too long")]
ViewDescTooLong = 15,

View File

@ -51,7 +51,7 @@ impl FlowyError {
static_flowy_error!(invalid_app_id, ErrorCode::AppIdInvalid);
static_flowy_error!(view_name, ErrorCode::ViewNameInvalid);
static_flowy_error!(view_thumbnail, ErrorCode::ViewThumbnailInvalid);
static_flowy_error!(invalid_view_id, ErrorCode::ViewIdInvalid);
static_flowy_error!(invalid_view_id, ErrorCode::ViewIdIsInvalid);
static_flowy_error!(view_desc, ErrorCode::ViewDescTooLong);
static_flowy_error!(view_data, ErrorCode::ViewDataInvalid);
static_flowy_error!(unauthorized, ErrorCode::UserUnauthorized);