Gathering detailed insights and metrics for react-toolbox-dialogs
Gathering detailed insights and metrics for react-toolbox-dialogs
Gathering detailed insights and metrics for react-toolbox-dialogs
Gathering detailed insights and metrics for react-toolbox-dialogs
npm install react-toolbox-dialogs
Typescript
Module System
Node Version
NPM Version
43.4
Supply Chain
81.7
Quality
72.4
Maintenance
50
Vulnerability
98.9
License
JavaScript (95.36%)
HTML (4.64%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
8,406
Last Day
1
Last Week
1
Last Month
21
Last Year
126
4 Stars
5 Commits
1 Forks
3 Watchers
2 Branches
1 Contributors
Updated on May 10, 2018
Minified
Minified + Gzipped
Latest Version
0.0.4
Package Id
react-toolbox-dialogs@0.0.4
Size
4.88 kB
NPM Version
3.10.3
Node Version
6.5.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-80%
1
Compared to previous week
Last Month
133.3%
21
Compared to previous month
Last Year
-21.3%
126
Compared to previous year
1
3
3
A Promise-API for common dialogs (alert/confirm/prompt)
1npm install --save-dev react-toolbox-dialogs
1import 'normalize.css' 2import 'react-toolbox/lib/commons.scss' 3import 'babel-polyfill' 4import React from 'react' 5import ReactDOM from 'react-dom' 6 7import AppBar from 'react-toolbox/lib/app_bar' 8import { Button } from 'react-toolbox/lib/button' 9 10import * as dialogs from 'react-toolbox-dialogs' 11 12class App extends React.Component { 13 constructor(props) { 14 super(props) 15 this.state = { result: null } 16 } 17 async onAlert() { 18 await dialogs.alert('My Alert', 'My message.') 19 this.setState({ result: 'Alert closed' }) 20 } 21 async onConfirm() { 22 const result = await dialogs.confirm('My Confirm', 'Are you sure?') 23 this.setState({ result: result ? 'Confirmed' : 'Canceled' }) 24 } 25 async onPrompt() { 26 const result = await dialogs.prompt('My Prompt', 'Enter a string:', 'default') 27 this.setState({ result: result ? `"${result}"` : 'Canceled' }) 28 } 29 render() { 30 return <div> 31 <AppBar title="Dialogs" /> 32 33 <div style={{ padding: '15px '}}> 34 <Button raised primary label="Alert" onClick={this.onAlert.bind(this)} /><br /><br /> 35 <Button raised primary label="Confirm" onClick={this.onConfirm.bind(this)} /><br /><br /> 36 <Button raised primary label="Prompt" onClick={this.onPrompt.bind(this)} /><br /><br /> 37 38 {this.state.result && <div>Result: {this.state.result}</div>} 39 </div> 40 </div> 41 } 42} 43 44window.addEventListener('load', function () { 45 ReactDOM.render(<App />, document.getElementById('react')) 46})
Copyright (c) 2016, Company or Person's Name jrapodaca@gmail.com
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More