Skip to content

Instantly share code, notes, and snippets.

View jamesjwarren's full-sized avatar

James Warren jamesjwarren

View GitHub Profile
service ArticleManager {
// Get an article by its UUID
rpc ArticleByID(ArticleByIDRequest) returns (Article) {}
// List all the Articles
rpc ListArticles(ListArticlesRequest) returns (ListArticlesResponse) {}
}
// An Article stored in the content service
message Article {
string id = 1;
@jamesjwarren
jamesjwarren / DependentInput.js
Last active February 15, 2018 16:16
A modified version of aor-dependent-input with support for nesting within an <EmbeddedArrayInput> from aor-embedded-array
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { mapStateToProps } from 'aor-dependent-input/lib/DependentInput';
import EmbeddedArrayInputFormField from 'aor-embedded-array/lib/mui/form/EmbeddedArrayInputFormField';
/**
* A modified version of DependentInputComponent with
* support for being nested within <EmbeddedArrayInput>
*