1.0.1 • Published 8 years ago

react-papertrail v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

react-papertrail


Papertrail component for react

NPM version node version npm download

Screenshot

react-papertrail

Install

react-papertrail

Usage

var React = require('react');
var ReactDOM = require('react-dom');
var Papertrail = require('react-papertrail');
require('react-papertrail/lib/Papertrail.css');
ReactDOM.render(<Papertrail token="your_token"/>, container);

Props

PropertyTypeDescriptionDefault value
heightPropTypes.stringComponent height500px
widthPropTypes.stringComponent width100%
tokenPropTypes.string.isRequiredPapertrail tokennull
queryPropTypes.stringPapertrail query.null
systemIDPropTypes.number or PropTypes.stringSystem to search by ID or in most cases, by namenull
groupIDPropTypes.numberGroup to searchnull
followPropTypes.boolFollow (tail -f)true
delayPropTypes.numberDelay between refresh in seconds10
showTopToolbarPropTypes.boolShow top toolbartrue
showBottomToolbarPropTypes.boolShow bottom toolbartrue
backgroundColorPropTypes.stringSet background color#000000
dateTimeColorPropTypes.stringSet datetime color#dddddd
systemColorPropTypes.stringSet system color#b58900
programColorPropTypes.stringSet program color#258ccd
messageColorPropTypes.stringSet message color#dddddd
topToolbarBackgroundColorPropTypes.stringSet top toolbar background color#03498f
bottomToolbarBackgroundColorPropTypes.stringSet bottom toolbar background color#03498f

Development

npm install
npm start

Example

http://localhost:3000

History

View the changelog

Authors

License

Copyright (c) 2016 Quentin Rousseau <contact@quent.in>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.