Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/dashpay/grovedbg"
eframe = { version = "0.29.1", features = ["persistence"] }
egui_logger = { git = "https://github.com/fominok/egui_logger", rev = "8024354acc26678b31d933c2cf7e94498989634f" }
futures = "0.3.30"
grovedbg-types = { path = "../grovedb/grovedbg-types", version = "2.0.3" }
grovedbg-types = { path = "../grovedb/grovedbg-types", version = "3.0.0" }
hex = "0.4.3"
integer-encoding = "4.0.2"
log = "0.4.22"
Expand All @@ -25,7 +25,7 @@ serde_json = "1.0.128"
reingold-tilford = "1.0.0"
anyhow = "1.0.89"
chrono = "0.4.38"
dpp = { git = "https://github.com/dashpay/platform", version = "1.4.0-dev.2", default-features = false, features = ["vote-serde-conversion"] }
dpp = { git = "https://github.com/dashpay/platform", branch = "v2.0-dev", default-features = false, features = ["vote-serde-conversion", "state-transitions"] }
egui_json_tree = { git = "https://github.com/bircni/egui_json_tree", rev = "a3f8d4954d11cb60a846f8bcbfe848648f28af93" }
grovedb-epoch-based-storage-flags = "2.0.3"

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,3 +405,9 @@ Display** dropdown.
Profile entries are recursive, allowing you to match child subtrees of already matched elements, and continue further
down the hierarchy. This enables you to create a path to a specific subtree using **Key** entries, or apply changes to
multiple nested subtrees more broadly by using **Capture** when appropriate.

## Building for web

```
RUSTFLAGS='--cfg=web_sys_unstable_apis' cargo watch -- trunk build --release
```
110 changes: 95 additions & 15 deletions src/profiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,28 +331,108 @@ fn drive_profile() -> Profile {
collapsed: true,
alias: "Votes".to_string(),
value_display: None,
sub_items: vec![ProfileEntry {
key: vec![101].into(),
collapsed: true,
alias: "Voting end dates".to_owned(),
value_display: None,
sub_items: vec![ProfileEntry {
key: ProfileEntryKey::Capture,
alias: "{}".to_owned(),
sub_items: vec![
ProfileEntry {
key: vec![101].into(),
collapsed: true,
alias: "End date queries".to_owned(),
value_display: None,
sub_items: vec![ProfileEntry {
key: ProfileEntryKey::Capture,
alias: "{}".to_owned(),
sub_items: Vec::default(),
display: BytesDisplayVariant::U8,
sub_items: vec![ProfileEntry {
key: ProfileEntryKey::Capture,
alias: "{}".to_owned(),
sub_items: Vec::default(),
display: BytesDisplayVariant::U8,
collapsed: true,
value_display: Some(BytesDisplayVariant::DppVotePoll),
}],
value_display: None,
display: BytesDisplayVariant::DriveTimestamp,
collapsed: true,
value_display: Some(BytesDisplayVariant::DppVotePoll),
}],
display: BytesDisplayVariant::U8,
},
ProfileEntry {
key: vec![100].into(),
collapsed: true,
alias: "Decisions".to_owned(),
value_display: None,
display: BytesDisplayVariant::DriveTimestamp,
sub_items: vec![ProfileEntry {
key: ProfileEntryKey::Capture,
alias: "{}".to_owned(),
sub_items: vec![],
value_display: None,
display: BytesDisplayVariant::DriveTimestamp,
collapsed: true,
}],
display: BytesDisplayVariant::U8,
},
ProfileEntry {
key: vec![99].into(),
collapsed: true,
}],
display: BytesDisplayVariant::U8,
}],
alias: "Contested Resource".to_owned(),
value_display: None,
sub_items: vec![
ProfileEntry {
key: vec![112].into(),
alias: "Active Polls".to_owned(),
sub_items: vec![ProfileEntry {
key: ProfileEntryKey::Capture,
alias: "Contract id: {}".to_owned(),
sub_items: vec![ProfileEntry {
key: ProfileEntryKey::Capture,
alias: "Document type name: {}".to_owned(),
sub_items: vec![
ProfileEntry {
key: vec![0].into(),
alias: "Contested document storage".to_owned(),
sub_items: vec![],
display: BytesDisplayVariant::U8,
collapsed: true,
value_display: None,
},
ProfileEntry {
key: vec![1].into(),
alias: "Contested document indexes".to_owned(),
sub_items: vec![],
display: BytesDisplayVariant::U8,
collapsed: true,
value_display: None,
},
],
display: BytesDisplayVariant::String,
collapsed: true,
value_display: None,
}],
display: BytesDisplayVariant::Hex,
collapsed: true,
value_display: None,
}],
value_display: None,
display: BytesDisplayVariant::Hex,
collapsed: true,
},
ProfileEntry {
key: vec![105].into(),
alias: "Identifier Votes Query".to_owned(),
sub_items: vec![ProfileEntry {
key: ProfileEntryKey::Capture,
alias: "Identity id: {}".to_owned(),
sub_items: vec![],
display: BytesDisplayVariant::Hex,
collapsed: true,
value_display: None,
}],
value_display: None,
display: BytesDisplayVariant::U8,
collapsed: true,
},
],
display: BytesDisplayVariant::U8,
},
],
display: BytesDisplayVariant::U8,
},
],
Expand Down
Loading