1.0.4 • Published 22 days ago

treege v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
22 days ago

npm version

Video Thumbnail

Installation

yarn add treege

Usage

import { Treege } from "treege";

const App = () => {
  return <Treege />;
};

export default App;

Options

PropsTypeDefaultRequiredDetail
backendConfigobjectundefinedfalseBackend configuration. Only necessary if you want backend communication.
initialTreeIdstringundefinedfalseIf provided, this will fetch initial tree id. Cannot provided with initialTree in same time
initialTreeobjectundefinedfalseInitial tree data. Cannot provided with initialTreeId in same time

backendConfig

PropsTypeDefaultRequiredDetail
baseUrlstringundefinedtrueBase url for API communication. ex : https://api.treege.com
authTokenstringundefinedfalseAuthentication token
endpointsobjectundefinedfalseEndpoints configuration

endpoints

PropsTypeDefaultRequiredDetail
workflowstringundefined"/v1/workflow"Endpoint for get/post/patch single workflow
workflowsstringundefined"/v1/workflows"Endpoint for get all workflows. It is a array on workflow

Backend model need to be compatible with the following interface:

interface Workflow {
  id: string;
  name: string;
  description: string;
  tree: Tree;
}

Tree is a JSON object generated by Treege with the following interface:

interface Tree {
  name: string;
  attributes: any;
  children: Tree[];
  treeId?: string;
}

How use Treege data ?

You can easily generate a form with the React library treege-consumer or use our own application !

Local installation

Clone the repository and install dependencies

yarn install

Available Scripts

In the project directory, you can run:

yarn dev

Runs the app in the development mode.\ Open http://localhost:5173 to view it in the browser.

The page will reload if you make edits.\ You will also see any lint errors in the console.

yarn build

Builds the app for production to the dist folder.\ It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\ Your app is ready to be deployed!

See the section about deployment for more information.

yarn preview

Locally preview production build

Convention

1.0.4

22 days ago

1.0.2

29 days ago

1.0.3

28 days ago

1.0.1

1 month ago

1.0.0

1 month ago

0.20.1

1 month ago

0.20.0

1 month ago

0.19.0

2 months ago

0.18.0

2 months ago

0.17.0

2 months ago

0.16.0

2 months ago

0.15.0

3 months ago

0.14.0

3 months ago

0.13.1

3 months ago

0.13.0

4 months ago

0.11.3

7 months ago

0.11.4

7 months ago

0.12.0

7 months ago

0.12.1

7 months ago

0.11.0

10 months ago

0.11.1

9 months ago

0.11.2

8 months ago

0.9.0

10 months ago

0.10.1

10 months ago

0.10.2

10 months ago

0.10.3

10 months ago

0.10.4

10 months ago

0.10.0

10 months ago

0.8.0

10 months ago

0.7.2

1 year ago

0.7.1

1 year ago

0.7.3

1 year ago

0.7.0

1 year ago

0.6.4

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.20

2 years ago

0.4.19

2 years ago

0.4.18

2 years ago

0.4.17

2 years ago

0.4.16

2 years ago

0.4.15

2 years ago

0.4.14

2 years ago

0.4.13

2 years ago

0.4.12

2 years ago

0.4.11

2 years ago

0.4.10

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago