-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,265 additions
and
11,927 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
const neutrino = require('neutrino'); | ||
|
||
module.exports = neutrino().eslintrc(); | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'es6': true, | ||
'jest/globals': true | ||
}, | ||
'extends': [ | ||
'standard', | ||
'standard-react' | ||
], | ||
'globals': { | ||
'Atomics': 'readonly', | ||
'SharedArrayBuffer': 'readonly' | ||
}, | ||
'parser': 'babel-eslint', | ||
'parserOptions': { | ||
'ecmaFeatures': { | ||
'jsx': true | ||
}, | ||
'ecmaVersion': 2018, | ||
'sourceType': 'module' | ||
}, | ||
'plugins': [ | ||
'react', | ||
'jest' | ||
], | ||
'rules': { | ||
'jsx-quotes': [ 'error', 'prefer-double' ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,5 +87,5 @@ typings/ | |
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# Neutrino build directory | ||
build | ||
# Babel build directory | ||
dist/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: node_js | ||
node_js: | ||
- "node" | ||
- "lts/*" | ||
cache: | ||
directories: | ||
- node_modules | ||
script: | ||
- npm test | ||
- npm run lint | ||
- npm run prepublishOnly | ||
after_script: | ||
- npm run coverage | ||
- npm install coveralls && cat ./coverage/lcov.info | coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,41 @@ | ||
# TimeDurationInput | ||
|
||
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) | ||
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
[![Build Status](https://travis-ci.org/BillRobitskeJr/react-time-duration-input.svg?branch=master)](https://travis-ci.org/BillRobitskeJr/react-time-duration-input) | ||
[![Coverage Status](https://coveralls.io/repos/github/BillRobitskeJr/react-time-duration-input/badge.svg?branch=master)](https://coveralls.io/github/BillRobitskeJr/react-time-duration-input?branch=master) | ||
[![CodeFactor](https://www.codefactor.io/repository/github/billrobitskejr/react-time-duration-input/badge/master)](https://www.codefactor.io/repository/github/billrobitskejr/react-time-duration-input/overview/master) | ||
[![MIT License](https://img.shields.io/github/license/BillRobitskeJr/react-time-duration-input.svg)](https://github.com/BillRobitskeJr/react-time-duration-input/blob/master/LICENSE) | ||
|
||
Provide simple time duration input in your React app. | ||
|
||
## Installation | ||
|
||
Install via NPM: | ||
``` | ||
npm install --save react-time-duration-input | ||
``` | ||
|
||
## Usage | ||
|
||
```jsx | ||
import { TimeDurationInput } from 'react-time-duration-input' | ||
|
||
function SampleComponent () { | ||
const [ value, setValue ] = useState(2443332000) | ||
|
||
return (<TimeDurationInput value={value} onChange={setValue} />) | ||
} | ||
``` | ||
|
||
## Examples | ||
|
||
### Basic Usage | ||
```jsx | ||
<TimeDurationInput value={milliseconds} onChange={(newValue) => setMilliseconds(newValue)} /> | ||
``` | ||
|
||
### Custom CSS Classes | ||
```jsx | ||
<TimeDurationInput /> | ||
<TimeDurationInput value={value} className="form-control" onChange={setValue} /> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = function (api) { | ||
api.cache(true) | ||
|
||
const presets = [ '@babel/preset-env', '@babel/preset-react' ] | ||
const plugins = [] | ||
|
||
return { presets, plugins } | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.