Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

abas-demo-site

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abas-demo-site

Content for creating ABAS branded demo sites

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

abas-demo-site

Content for creating ABAS branded demo sites, such as:

  • http://abasystems.github.io/react-object-table/

The demo site framework contains all the styles, a base template to use with Jekyll, and some common Javascript widgets.

Installation

Download the package:

npm install abas-demo-site

Styles

Either import the styles in your preprocessed stylesheet:

@import "node_modules/abas-demo-site/dist/abas-demo-site";

Or host and include the built css directly:

<link href="/node_modules/abas-demo-site/dist/abas-demo-site.css" rel="stylesheet">

Widgets

Initialise the demo site components

import { init } from 'abas-demo-site'

init();

Base Template

To use the base template, you will need to replace the default Jekyll _layouts directory in your config with the dist folder of this package:

_config.yml

layouts_dir: 'node_modules/abas-demo-site/dist'

The base layout depends on the following templates existing in your Jekyll _includes folder:

  • head.html
  • required_static.html

Usage

Base Template Customisation

A number of variables are used to customise the base template, which are set in your Jekyll config:

_config.yml

package_name: Cool Package
package_github_url: https://github.com/ABASystems/cool-package
package_npm_url: https://www.npmjs.com/package/cool-package

Source Code Previewer

To implement a source code previewer, use the following HTML mount:

<code
  class="script"
  data-source="static/demo-script.jsx"
>Loading ...</code>

Keywords

FAQs

Package last updated on 27 Apr 2017

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