This package has been deprecated

Author message:

This package is no longer maintained

@financial-times/n-storylines

4.2.7 • Public • Published

n-storylines

npm install @financial-times/n-storylines

Containing the client- and server-side JS, SASS, and handlebars templates needed to display the storylines component.

Run locally

  1. demos - currently unavailable (see issues)

make build run and visit localhost:8080/demos

  1. npm link to the stream app

Add to an app

Node

const nStorylines = require('@financial-times/n-storylines');
const apiPayload = await fetch('next-storylines-api-<REGION>.herokuapp.com/concepts/<Concept ID>').then(fetchres.json);
const data = nStorylines.decorate(apiPayload); // decorates the API data with extra presentational goodies

Handlebars

{{> n-storylines/templates/main data}} // where data is the decorated payload above

SASS

@import 'n-storylines/main'

Clientside JS

const nStorylines = require('@financial-times/n-storylines');
nStorylines.init();

/@financial-times/n-storylines/

    Package Sidebar

    Install

    npm i @financial-times/n-storylines

    Weekly Downloads

    1

    Version

    4.2.7

    License

    none

    Last publish

    Collaborators

    • robertboulton
    • seraph2000
    • hamza.samih
    • notlee
    • emmalewis
    • aendra
    • the-ft
    • rowanmanning
    • chee
    • alexwilson