Giter Site home page Giter Site logo

basicprimitives / react-demo Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 3.0 8.86 MB

Basic Primitives Diagrams for React Demo - demonstrates organizational chart editor based on Basic Primitives Diagrams for React library.

Home Page: https://www.basicprimitives.com/

JavaScript 98.96% HTML 0.13% Shell 0.01% CSS 0.91%
organization-charts charting-library diagrams-visualization diagram-layout dependencies-diagram family-tree diagram-editor diagram-generator react directed-acyclic-graph javascript component-library pdf pdfkit pdf-generation chart hierarchy diagram dependency-diagram data-analytics

react-demo's Introduction

Basic Primitives Diagrams for React Demos

This project is created for validation of effortless integration of Basic Primitives diagramming components into React application.

Project references

Basics

Setup

git clone https://github.com/BasicPrimitives/react-demo.git
cd react-demo/server/src/static
git clone https://github.com/BasicPrimitives/javascript.git
cd javascript
yarn build
cd ..
git clone https://github.com/BasicPrimitives/react.git

Running API server

cd server
yarn start

Running client server

cd client
yarn start

License

Copyright (c) 2013 - 2022 Basic Primitives Inc

react-demo's People

Contributors

basicprimitives avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-demo's Issues

Running yarn start from client directory gives Error: error:0308010C:digital envelope routines::unsupported

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (/home/hosermage/react-demo/client/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/home/hosermage/react-demo/client/node_modules/webpack/lib/NormalModule.js:417:16)
at /home/hosermage/react-demo/client/node_modules/webpack/lib/NormalModule.js:452:10
at /home/hosermage/react-demo/client/node_modules/webpack/lib/NormalModule.js:323:13
at /home/hosermage/react-demo/client/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /home/hosermage/react-demo/client/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/home/hosermage/react-demo/client/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /home/hosermage/react-demo/client/node_modules/react-scripts/node_modules/babel-loader/lib/index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Here's my npm list:

hosermage@LAPTOP-1RPE37PF:~/react-demo/client$ npm list
[email protected] /home/hosermage/react-demo/client
├── @fortawesome/[email protected]
├── @fortawesome/[email protected]
├── @fortawesome/[email protected]
├── @material-ui/[email protected]
├── @material-ui/[email protected]
├── @material-ui/[email protected]
├── @material-ui/[email protected]
├── @reach/[email protected]
├── @testing-library/[email protected]
├── @testing-library/[email protected]
├── @testing-library/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Can we display a tooltip on mouse hover of a node

I want to display a tooltip on mouse hover of each node. I see there is an onHighlightChanged event.When I hover a node I am getting the details of that node.But I am not able to set tooltip inside that event.Can you please let me know if there is a way in basicpremitive to display tooltip on mouse hover of a node?

Drag Drop is getting stuck

Hello team,

While doing drag and drop for a particular node sometimes it gets stuck and does not move the node.

yarn build gives Cannot find module 'util/' under javascript folder

hosermage@LAPTOP-1RPE37PF:~/react-demo/server/src/static/javascript$ yarn build
yarn run v1.22.15
warning ../../../../../package.json: No license field
$ webpack
[webpack-cli] Failed to load '/home/hosermage/react-demo/server/src/static/javascript/webpack.config.js' config
[webpack-cli] Error: Cannot find module 'util/'
Require stack:

  • /home/hosermage/react-demo/server/src/static/javascript/webpack.config.js
  • /home/hosermage/node_modules/webpack-cli/lib/webpack-cli.js
  • /home/hosermage/node_modules/webpack-cli/lib/bootstrap.js
  • /home/hosermage/node_modules/webpack-cli/bin/cli.js
  • /home/hosermage/node_modules/webpack/bin/webpack.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Function.resolve (node:internal/modules/cjs/helpers:116:19)
    at Object. (/home/hosermage/react-demo/server/src/static/javascript/webpack.config.js:61:18)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at WebpackCLI.tryRequireThenImport (/home/hosermage/node_modules/webpack-cli/lib/webpack-cli.js:223:30) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/hosermage/react-demo/server/src/static/javascript/webpack.config.js',
    '/home/hosermage/node_modules/webpack-cli/lib/webpack-cli.js',
    '/home/hosermage/node_modules/webpack-cli/lib/bootstrap.js',
    '/home/hosermage/node_modules/webpack-cli/bin/cli.js',
    '/home/hosermage/node_modules/webpack/bin/webpack.js'
    ]
    }
    error Command failed with exit code 2.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

How to find out children and and all the grand children of a node.

I have a parent node in the tree. I want to find out all the children and grand children of that node. There could be n number of levels below that parent node. Can you please let us know if there is a way to do this in basic primitives.There is property called parent but with that I can only find the immediate children not all the grandchildren.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.