@daytona/lds-api
Methods and API endpoints for LDS
Last updated 3 years ago by daytona .
MIT · Original npm · Tarball · package.json
$ cnpm install @daytona/lds-api 
SYNC missed versions from official npm registry.

LDS - API

This is a server dependency of living design system and allows for simple connections and methods to preform on the running server controlled by certain endpoints.

The endpoints

  • /api/screendump : Parses all component and views and creates screenshots which will be used to present component in styleguide.
  • /api/export : Eports all views to static HTML, in /dist folder, with relative paths to script and styles.
  • /api/screen/[componentpath] : Returns the URL to a certain components screenshot. If file screenshot.png is available it will be used primarily, otherwise path to generated bump, or if no content is available it will return the URL to its first child component.
  • /api/views/[viewpath]?standalone=true : Renders a complete view without possibilities to interact with links or buttons
  • /api/views/[viewpath]?type=json : Return view readme.md file rendered as HTML.
  • /api/[componentpath] : Returns rendered HTML of component using its default data (no css or js)
  • /api/[componentpath]?standalone=true : Returns rendered HTML of component using its default data with css and js
  • /api/[componentpath]?type=info : return rendered contents of the readme.md
  • /api/[componentpath]?type=json : return styled contents of the default.json
  • /api/[componentpath]?type=js : return styled contentsof the index.js
  • /api/[componentpath]?type=css : return styled contents of the index.css
  • /api/[componentpath]?type=template : return styled contents of the index.hbs
  • /api/[componentpath]?type=html : return styled contents of the resulting HTML

Current Tags

  • 0.4.2                                ...           latest (3 years ago)

17 Versions

  • 0.4.2                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.6                                ...           3 years ago
  • 0.3.5                                ...           3 years ago
  • 0.3.4                                ...           3 years ago
  • 0.3.3                                ...           3 years ago
  • 0.3.2                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 18
Dependencies (21)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |