npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-airfieldhub

v0.1.4

Published

This library is a wrapper for React 16.8+ websites and apps to integrate AirfieldHub seamlessly into your existing system.

Downloads

3

Readme

React AirfieldHub (react-airfieldhub)

This library is a wrapper for React 16.8+ websites and apps to integrate AirfieldHub seamlessly into your existing system.

AirfieldHub aims to take all the pain out of PPR (Prior Permission Required) for both pilots and airfield, in addition to a myriad of other features for airfields.

This version of the library creates two new tags, allowing you to display your AirfieldHub PPR and Bookout forms on your own website without having to code anything yourself.

Our philosophy at AirfieldHub is that everything should be simple and straight forward, making all our lives easier, hence this simple library ensuring that you can be up and running with AirfieldHub with the least amount of pain possible.

Installation

Using NPM

npm install react-airfieldhub --save

Using YARN

yarn add react-airfieldhub

Initial Setup

First: your App.js file; Or any other component file, you will then need to import AirfieldHub as follows.


import { AirfieldHubBookout, AirfieldHubPPR } from  'react-airfieldhub';

Second: your App.css file (or relevant css file); You will need to include a minimum width for our wrapper: You do this by copy & pasting the code below:

  .airfieldhub_wrapper{
    min-width: 250px;
  }

Usage

Once the AirfieldHub library has been installed following the instructions above, you will then be able to include the forms by going directly in the template of the page you wish for it to appear:

To show the AirfieldHub PPR form:

        
  <AirfieldHubPPR airfieldhub_key="key_from_account" />

To show the AirfieldHub BOOKOUT form:

        
  <AirfieldHubBookout airfieldhub_key="key_from_account" />

NOTE: your airfieldhub_key comes from your AirfieldHub account, you can find this by clicking Dashboard on the top right of our user interface, then Widget on the menu on the left hand side of the screen.

We would recommend keeping this key either as a global variable or as an environment variable.

This will span the whole width of the parent item (css class name: airfieldhub_wrapper), and will automatically extend the height of the element to ensure no scrolling is necessary.

Further help

To get more help on this library, please feel free to contact us directly through AirfieldHub (https://airfieldhub.com/contact) and we will respond as quickly as we can.

Should you find any particular issues, please feel free to open a new issue!

We will endeavour to update this library periodically, as and when it is required by our clients, and when new features become available.


Copyright (c) 2022, AirfieldHub LTD All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by AirfieldHub LTD.
  4. Neither the name of the AirfieldHub LTD nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.