small fix and doc changes

master
Niko PLP 4 months ago
parent 513d7742f1
commit 711fa42621
  1. 12
      ng-app/src/store.ts
  2. 14
      ng-net/src/app_protocol.rs
  3. 4
      ng-net/src/types.rs
  4. 7
      ng-repo/src/types.rs

@ -27,12 +27,12 @@ let retry_branches = {};
export const available_languages = { export const available_languages = {
en: "English", en: "English",
de: "Deutsch", de: "Deutsch",
fr: "Français", //fr: "Français",
ru: "Русский", //ru: "Русский",
es: "Español", //es: "Español",
it: "Italiano", //it: "Italiano",
zh: "中文", //zh: "中文",
pt: "Português", //pt: "Português",
}; };
for (const lang of Object.keys(available_languages)) { for (const lang of Object.keys(available_languages)) {

@ -53,7 +53,6 @@ pub enum AppFetchContentV0 {
Get, // does not subscribe. Get, // does not subscribe.
Subscribe, Subscribe,
Update, Update,
//Invoke,
ReadQuery, ReadQuery,
WriteQuery, WriteQuery,
RdfDump, RdfDump,
@ -61,6 +60,7 @@ pub enum AppFetchContentV0 {
SignatureStatus, SignatureStatus,
SignatureRequest, SignatureRequest,
SignedSnapshotRequest, SignedSnapshotRequest,
//Invoke,
} }
impl AppFetchContentV0 { impl AppFetchContentV0 {
@ -80,7 +80,7 @@ pub enum NgAccessV0 {
#[serde(with = "serde_bytes")] #[serde(with = "serde_bytes")]
ExtRequest(Vec<u8>), ExtRequest(Vec<u8>),
Key(BlockKey), Key(BlockKey),
Inbox(Digest), Inbox(PubKey),
} }
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize)]
@ -743,10 +743,10 @@ pub enum DocQuery {
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize)]
pub struct GraphUpdate { pub struct GraphUpdate {
// serialization of Vec<Quad> // serialization of Vec<Triple>
#[serde(with = "serde_bytes")] #[serde(with = "serde_bytes")]
pub inserts: Vec<u8>, pub inserts: Vec<u8>,
// serialization of Vec<Quad> // serialization of Vec<Triple>
#[serde(with = "serde_bytes")] #[serde(with = "serde_bytes")]
pub removes: Vec<u8>, pub removes: Vec<u8>,
} }
@ -830,12 +830,14 @@ pub enum AppRequestPayloadV0 {
Query(DocQuery), Query(DocQuery),
Update(DocUpdate), Update(DocUpdate),
AddFile(DocAddFile), AddFile(DocAddFile),
//RemoveFile
Delete(DocDelete), Delete(DocDelete),
//Invoke(InvokeArguments),
SmallFilePut(SmallFile), SmallFilePut(SmallFile),
RandomAccessFilePut(String), // content_type (iana media type) RandomAccessFilePut(String), // content_type (iana media type)
RandomAccessFilePutChunk((u32, serde_bytes::ByteBuf)), // end the upload with an empty vec RandomAccessFilePutChunk((u32, serde_bytes::ByteBuf)), // end the upload with an empty vec
//RemoveFile
//Invoke(InvokeArguments),
} }
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize)]

@ -2975,7 +2975,7 @@ impl OpenRepo {
/// Request to pin a repo on the broker. /// Request to pin a repo on the broker.
/// ///
/// When client will disconnect, the subscriptions and publisherAdvert of the topics will be remain active on the broker. /// When client will disconnect, the subscriptions and publisherAdvert of the topics will remain active on the broker.
/// replied with a RepoOpened /// replied with a RepoOpened
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize)]
pub struct PinRepoV0 { pub struct PinRepoV0 {
@ -3329,7 +3329,7 @@ impl BlocksGet {
/// and we need to default to using BlocksGet instead. /// and we need to default to using BlocksGet instead.
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize)]
pub struct CommitGetV0 { pub struct CommitGetV0 {
/// Block IDs to request /// Commit ID to request
pub id: ObjectId, pub id: ObjectId,
/// Topic the commit is referenced from, if it is known by the requester. /// Topic the commit is referenced from, if it is known by the requester.

@ -1669,7 +1669,7 @@ pub enum RemoveMember {
V0(RemoveMemberV0), V0(RemoveMemberV0),
} }
/// when a signing capability is removed, a new SignerSecretKeys should be added to wallet, with the removed key set to None /// when a signing capability is removed, a new SignerCap should be committed to User branch, with the removed key set to None
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)] #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct SignerCap { pub struct SignerCap {
pub repo: RepoId, pub repo: RepoId,
@ -2122,10 +2122,9 @@ pub enum RemoveFile {
/// ///
/// Contains a data structure /// Contains a data structure
/// computed from the commits at the specified head. /// computed from the commits at the specified head.
/// ACKS contains the head the snapshot was made from
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)] #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct SnapshotV0 { pub struct SnapshotV0 {
// Branch heads the snapshot was made from, can be useful when shared outside and the commit_header_key is set to None. otherwise it is redundant to ACKS // Branch heads the snapshot was made from
pub heads: Vec<ObjectId>, pub heads: Vec<ObjectId>,
/// Reference to Object containing Snapshot data structure /// Reference to Object containing Snapshot data structure
@ -3005,7 +3004,7 @@ impl PeerId {
/// Content of EventV0 /// Content of EventV0
/// ///
/// Contains the objects of newly published Commit, its optional blocks, and optional FILES and their blocks. /// Contains the objects of newly published Commit, its optional blocks, and optional FILES and their blocks.
/// If a block is not present in the Event, its ID should be present in block_ids and the block should be put on the emitting broker beforehand with BlocksPut. /// If a block is not present in the Event, its ID should be present in file_ids and the block should be put on the emitting broker beforehand with BlocksPut.
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize)]
pub struct EventContentV0 { pub struct EventContentV0 {
/// Pub/sub topic /// Pub/sub topic

Loading…
Cancel
Save