-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(back): update deps; * refactor(back): error handling. remove custom result object; * refactor(front): error handling; * fix(front): modal window z-index; * feat(front): add folder light icon; * refactor: small refactoring;
- Loading branch information
1 parent
3f2b97e
commit cae35db
Showing
25 changed files
with
894 additions
and
667 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ | |
justify-content: center; | ||
align-items: center; | ||
background-color: rgba(0.3, 0.3, 0.3, 0.7); | ||
z-index: 2; | ||
} |
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
use common::error::{CommandResult, CommandResultEmpty}; | ||
use common::space::{DeleteSpace, OwnedSpace, UpdateSpace}; | ||
use tauri::State; | ||
|
||
use super::{CommandResult, CommandResultEmpty}; | ||
use crate::dataans::DataansState; | ||
|
||
#[instrument(level = "trace", ret, skip(state))] | ||
#[tauri::command] | ||
pub async fn list_spaces(state: State<'_, DataansState>) -> CommandResult<Vec<OwnedSpace>> { | ||
Ok(state.space_service.spaces().await.into()) | ||
Ok(state.space_service.spaces().await?) | ||
} | ||
|
||
#[instrument(level = "trace", ret, skip(state))] | ||
#[tauri::command] | ||
pub async fn create_space(state: State<'_, DataansState>, space_data: OwnedSpace) -> CommandResultEmpty { | ||
Ok(state.space_service.create_space(space_data).await.into()) | ||
Ok(state.space_service.create_space(space_data).await?) | ||
} | ||
|
||
#[instrument(level = "trace", ret, skip(state))] | ||
#[tauri::command] | ||
pub async fn update_space(state: State<'_, DataansState>, space_data: UpdateSpace<'static>) -> CommandResultEmpty { | ||
Ok(state.space_service.update_space(space_data).await.into()) | ||
Ok(state.space_service.update_space(space_data).await?) | ||
} | ||
|
||
#[instrument(level = "trace", ret, skip(state))] | ||
#[tauri::command] | ||
pub async fn delete_space(state: State<'_, DataansState>, space_data: DeleteSpace) -> CommandResultEmpty { | ||
Ok(state.space_service.delete_space(space_data).await.into()) | ||
Ok(state.space_service.delete_space(space_data).await?) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.