├── src ├── login │ ├── style.css │ └── index.js ├── validate │ ├── wrapper.js │ ├── style.css │ └── index.js ├── work │ ├── wrapper.js │ ├── style.css │ └── index.js ├── agentPlans │ ├── style.css │ ├── index.js │ └── wrapper.js ├── agentRelationships │ ├── style.css │ └── index.js ├── images │ ├── bg.png │ └── sample.png ├── index.css ├── fragmentTypes.json ├── components │ ├── alert │ │ ├── index.js │ │ └── style.css │ ├── button │ │ ├── index.js │ │ └── index.css │ ├── textarea │ │ ├── index.js │ │ └── index.css │ ├── title │ │ ├── index.js │ │ └── index.css │ ├── loading │ │ ├── style.css │ │ └── index.js │ ├── cardModal │ │ ├── modalNote.js │ │ ├── modalTitle │ │ │ ├── modalTitle.js │ │ │ └── index.js │ │ ├── modalMembers │ │ │ └── modalMembers.js │ │ ├── modalStatus.js │ │ ├── modalDue.js │ │ ├── index.js │ │ ├── CardModal.js │ │ ├── logEvent │ │ │ └── logEvent.js │ │ └── modalActivities │ │ │ └── editWrapper.js │ ├── bin │ │ ├── style.css │ │ ├── editNote.js │ │ ├── editTitle.js │ │ ├── archive.js │ │ ├── editStart.js │ │ └── editScope.js │ ├── flag │ │ ├── index.js │ │ ├── flag.js │ │ └── style.css │ ├── inventoryItem │ │ ├── index.js │ │ └── style.css │ ├── modal │ │ ├── index.js │ │ ├── modal.js │ │ └── style.css │ ├── planModal │ │ ├── index.js │ │ └── style.css │ ├── newCommitmentModal │ │ ├── wrapper.js │ │ └── style.css │ ├── cards │ │ ├── index.js │ │ └── style.css │ ├── feed │ │ ├── feed.js │ │ ├── index.css │ │ └── index.js │ ├── newBin │ │ └── style.css │ └── sidebar │ │ ├── index.js │ │ └── style.css ├── overview │ ├── wrapper.js │ └── style.css ├── queries │ ├── getNotifications.js │ ├── getUnits.js │ ├── getAgentPlans.js │ ├── getResources.js │ ├── getOrganizations.js │ ├── getPlans.js │ ├── getInventory.js │ ├── getRelationships.js │ ├── getEvents.js │ ├── getProcess.js │ ├── getCommitment.js │ ├── getEventClaim.js │ ├── getCommitmentClaim.js │ ├── getAgent.js │ ├── getClaim.js │ ├── getProcessClaim.js │ ├── getPlan.js │ └── getClaims.js ├── mutations │ ├── deleteNotification.js │ ├── login.js │ ├── deletePlan.js │ ├── deleteProcess.js │ ├── deleteEvent.js │ ├── updateNotification.js │ ├── CreatePlan.js │ ├── updatePlan.js │ ├── updateCommitmentTitle.js │ ├── updateCommitmentStatus.js │ ├── deleteCommitment.js │ ├── createValidation.js │ ├── deleteValidation.js │ ├── updateProcess.js │ ├── updateEvent.js │ ├── createProcess.js │ ├── createEvent.js │ ├── updateCommitment.js │ └── CreateCommitment.js ├── helpers │ ├── index.js │ └── router.js ├── AuthenticatedOnly.js ├── mixins.css ├── plan │ ├── style.css │ ├── wrapper.js │ └── index.js ├── inventory │ ├── index.js │ ├── wrapper.js │ └── style.css ├── postcss.config.js ├── agent │ ├── wrapper.js │ ├── index.js │ └── style.css ├── variables.css ├── store │ ├── index.js │ └── resolvers.js ├── network │ ├── wrapper.js │ └── index.js ├── canvas │ ├── style.css │ └── index.js ├── planCanvas │ └── index.js ├── index.js ├── templates │ └── AppTemplate │ │ ├── style.css │ │ └── index.js ├── settings │ └── index.js └── registerServiceWorker.js ├── postcss.config.js ├── .vscode └── settings.json ├── public ├── manifest.json └── index.html ├── config ├── jest │ ├── fileTransform.js │ └── cssTransform.js ├── polyfills.js ├── paths.js ├── env.js └── webpackDevServer.config.js ├── .gitignore ├── .github └── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── scripts ├── test.js └── start.js ├── app.test.js ├── README.md └── package.json /src/login/style.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/validate/wrapper.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/work/wrapper.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "standard.enable": false 3 | } -------------------------------------------------------------------------------- /src/agentPlans/style.css: -------------------------------------------------------------------------------- 1 | .container { 2 | display: initial; 3 | } -------------------------------------------------------------------------------- /src/agentRelationships/style.css: -------------------------------------------------------------------------------- 1 | .container { 2 | display: initial; 3 | } -------------------------------------------------------------------------------- /src/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencooperativeecosystem/agent/HEAD/src/images/bg.png -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 10px; 4 | font-family: sans-serif; 5 | } 6 | -------------------------------------------------------------------------------- /src/images/sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencooperativeecosystem/agent/HEAD/src/images/sample.png -------------------------------------------------------------------------------- /src/fragmentTypes.json: -------------------------------------------------------------------------------- 1 | {"__schema":{"types":[{"kind":"INTERFACE","name":"Agent","possibleTypes":[{"name":"Organization"},{"name":"Person"}]}]}} -------------------------------------------------------------------------------- /src/components/alert/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import style from './style.css' 3 | const Alert = ({children}) => ( 4 |
{children}
5 | ) 6 | 7 | export default Alert -------------------------------------------------------------------------------- /src/components/alert/style.css: -------------------------------------------------------------------------------- 1 | .alert { 2 | border-radius: 4px; 3 | height: 26px; 4 | line-height: 26px; 5 | color: white; 6 | background: red; 7 | padding: 0 10px; 8 | font-size: 14px; 9 | } -------------------------------------------------------------------------------- /src/overview/wrapper.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Component from '../agent/wrapper' 3 | 4 | const Overview = ({id}) => { 5 | return 6 | } 7 | 8 | export default Overview 9 | -------------------------------------------------------------------------------- /src/queries/getNotifications.js: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag' 2 | 3 | export default gql` 4 | query { 5 | notifications @client { 6 | id 7 | message 8 | type 9 | } 10 | } 11 | ` 12 | -------------------------------------------------------------------------------- /src/mutations/deleteNotification.js: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag' 2 | 3 | export default gql` 4 | mutation deleteNotification($id: String!){ 5 | deleteNotification(id: $id) @client { 6 | message 7 | } 8 | } 9 | ` -------------------------------------------------------------------------------- /src/components/button/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import style from './index.css' 3 | 4 | const Button = ({action, type, title}) => ( 5 | 6 | ) 7 | 8 | export default Button -------------------------------------------------------------------------------- /src/mutations/login.js: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag' 2 | 3 | const loginMutation = gql` 4 | mutation($username: String! $password: String!) { 5 | createToken(username: $username, password: $password) { 6 | token 7 | } 8 | } 9 | ` 10 | 11 | export default loginMutation 12 | -------------------------------------------------------------------------------- /src/mutations/deletePlan.js: -------------------------------------------------------------------------------- 1 | import gql from 'graphql-tag' 2 | 3 | const deletePlan = gql` 4 | mutation ($token: String!, $id: Int!) { 5 | deletePlan(token: $token, id: $id) { 6 | plan { 7 | name 8 | } 9 | } 10 | }` 11 | 12 | export default deletePlan 13 | -------------------------------------------------------------------------------- /src/helpers/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { branch, renderComponent } from 'recompose' 3 | 4 | const Loading = () => ( 5 |
Loading....
6 | ) 7 | 8 | export const withLoadingComponent = branch( 9 | props => props.loading, 10 | renderComponent(Loading) 11 | ) 12 | -------------------------------------------------------------------------------- /src/components/textarea/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import style from './index.css' 3 | 4 | const TextArea = ({action, type, title, placeholder}) => ( 5 |