Giter Site home page Giter Site logo

drupal_block_reactive's Introduction

Drupal Block Reactive (codename Hipster)

Drupal 8 module creates a block with recent comments. Displayed dynamically using React.js.

ES2015 (ES6) is used via Babel and npm scripts.

The goal of the module is to be as simple as possible: minimum dependencies, tools and steps to actually write ES6 code that works. This way, developers can play easily without too much hassle of setting up webpack for example.

Requirements

  • node.js for using npm. The internal API is based on Views.
  • npm for package management (comes with node.js)
  • working Drupal 8 project
  • command line to make your life easier

Installation

  1. Go to the /modules folder in your Drupal 8 project (normally DRUPAL_ROOT/modules)
  2. Clone this repository (or download a zip with the source)
  3. Enable the Drupal module by drush pm-enable drupal_block_reactive or via the UI
  4. Go to the block management page '/admin/structure/block' and find/place the custom module 'Recent comments (reactive)'
  5. Go to the page where you placed the block and you should see 'No comments.' message in a block.

Now, play with the reactivity by splitting the window into 2 and posting a comment from one to the other. The expected modern behavior :)

If you want to modify the /js, run npm install to download dependencies and gulp to write ES6 code.

Demo

ScreenShot

Inspirations

drupal_block_reactive's People

Contributors

heshanlk avatar kalinchernev avatar

Watchers

 avatar  avatar

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.