New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

evoluttree

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evoluttree

A ReactJs based, backend agnostic, drag and drop, tree-structured content management system.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Evoluttree

A ReactJs based, backend agnostic, drag and drop, tree-structured content management system.

Built on top of ReactJs, Redux, Immutable, React dnd and other wonders of javascript's world.

Some definitions

  • product a container for diferent types of contents like a main title, description and tree of nested pages.
  • page a node in content hierarchy. It contains a title and a body and can have a list of children pages.

Application state / Product structure

The application state contains the data about product being edited:

  • general information, like remote (id), local id (localId) and title
  • page hierarchy: each page contains a local id (localId), a remote id (id), a title, contents and optionally its children pages
  • localId a locally created id for pages and other elements used by frontend
  • id a remotely created id. It's not created by this application, but it's kept inside the state for synchronization porposes.

The state is stored as a immutablejs map. Here's a sample showed as a simple JSON object

    state = {
        // product being edited
        editing: {
            localId: 'myamazingproduct',
            general: {
                localId: 'myamazingproduct-general',
                id: 123,
                title: 'Awesome product',
                description: 'Let me show how this product is amazing...'
            },
            pages: [
                {
                    id: 1,
                    localId: 'page1',
                    title: 'My first page',
                    body: 'Lorem Ipsum lorem'
                },
                {
                    id: 2,
                    localId: 'page2',
                    title: 'My second page',
                    body: 'Lorem Ipsum lorem',
                    pages: [
                        {
                            id: 21,
                            localId: 'page21',
                            title: 'First child of my second page',
                            body: 'Lorem Ipsum lorem'
                        },
                        {
                            id: 22,
                            localId: 'page22',
                            title: 'Second child of my second page',
                            body: 'Lorem Ipsum lorem'
                        }
                    ]
                }
            ]
        }
    }

Recipes

  • Integrating with CkEditor

FAQs

Package last updated on 10 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc