-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
589 additions
and
41 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Some structs that must be redefined for transpiling without changing actual types on backend | ||
|
||
#[tsync] | ||
pub type Hostname = String; | ||
|
||
// Same as in `backend/src/connector/dto.rs` | ||
// Imported for bindings generation (tsync doesn't respect serde(rename)) | ||
|
||
/// BOB's Node interface | ||
#[tsync] | ||
pub struct DTONode { | ||
pub name: String, | ||
|
||
pub address: String, | ||
|
||
pub vdisks: Option<Vec<VDisk>>, | ||
} | ||
|
||
/// BOB's Node Configuration interface | ||
#[tsync] | ||
pub struct DTONodeConfiguration { | ||
pub blob_file_name_prefix: Option<String>, | ||
|
||
pub root_dir_name: Option<String>, | ||
} | ||
|
||
/// BOB's VDisk interface | ||
#[tsync] | ||
pub struct DTOVDisk { | ||
pub id: i32, | ||
|
||
pub replicas: Option<Vec<Replica>>, | ||
} | ||
|
||
/// BOB's Replica interface | ||
#[tsync] | ||
pub struct DTOReplica { | ||
pub node: String, | ||
|
||
pub disk: String, | ||
|
||
pub path: String, | ||
} |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.greendot { | ||
height: 16px; | ||
width: 16px; | ||
background-color: #34b663; | ||
border-radius: 50%; | ||
display: inline-block; | ||
} | ||
|
||
.reddot { | ||
height: 16px; | ||
width: 16px; | ||
background-color: #c3234b; | ||
border-radius: 50%; | ||
display: inline-block; | ||
} | ||
|
||
.graydot { | ||
height: 16px; | ||
width: 16px; | ||
background-color: #7b817e; | ||
border-radius: 50%; | ||
display: inline-block; | ||
} | ||
|
||
.totalspace { | ||
color: #7b817e; | ||
} |
Oops, something went wrong.