Gathering detailed insights and metrics for react-roui
Gathering detailed insights and metrics for react-roui
Gathering detailed insights and metrics for react-roui
Gathering detailed insights and metrics for react-roui
npm install react-roui
Typescript
Module System
Node Version
NPM Version
54.6
Supply Chain
85.1
Quality
73.6
Maintenance
50
Vulnerability
99.6
License
JavaScript (64.4%)
CSS (32.8%)
HTML (2.8%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
18 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jul 07, 2016
Latest Version
0.0.3
Package Id
react-roui@0.0.3
Size
5.82 kB
NPM Version
3.10.6
Node Version
6.4.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Render Once UI 适合移动端的简单交互组件
npm install react-roui
1import React from 'react'; 2import { render } from 'react-dom'; 3import View from './view'; 4import './app.less'; 5 6// Render Once 7import { UI } from 'react-ui'; 8var App = React.createClass({ 9 render: function(){ 10 return ( 11 <div> 12 <UI/> 13 <View/> 14 </div> 15 ); 16 } 17}); 18render(<App/>, document.getElementById('app'));
view.js
1import React from 'react'; 2// Use Anywhere 3import ui from 'react-roui'; 4 5export default React.createClass({ 6 render(){ 7 window.ui = ui; 8 9 function showModalWaiting() { 10 ui.showWaiting(true); 11 setTimeout(ui.closeWaiting, 3e3); 12 } 13 14 function menu() { 15 ui.menu({ 16 title: '请选择喜欢的数字', 17 btns: [0,'<a class="test">1</a>'], 18 19 action: function(i){ 20 ui.toast(i + ' clicked'); 21 } 22 }); 23 } 24 25 function dialog() { 26 ui.dialog({ 27 title:'弹窗标题', 28 cnt:'自定义弹窗内容,居中显示,告知确认的信息等', 29 btns: ['取消','确定'], 30 action: function(i){ 31 ui.toast(i + ' clicked'); 32 } 33 }); 34 } 35 36 return ( 37 <div> 38 <a onClick={() => ui.showWaiting()} className="btn">show waiting</a> 39 <a onClick={showModalWaiting} className="btn">show modal waiting 3s</a> 40 <a onClick={ui.closeWaiting} className="btn">close waiting</a> 41 <br/> 42 <a onClick={() => ui.toast('toast message')} className="btn">toast message</a> 43 <br/> 44 <a onClick={menu} className="btn">menu(action sheet)</a> 45 <br/> 46 <a onClick={dialog} className="btn">show dialog</a> 47 </div> 48 ); 49 } 50});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
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