Comparing version 0.7.9 to 1.0.1
@@ -73,3 +73,3 @@ import React from "react"; | ||
rightText = rightText || this.getRightOpts(rightType).rightText || subTitle; | ||
rightClick = rightClick || this.getRightOpts(rightType).rightClick || subTitleClick || () => {}; | ||
rightClick = rightClick || this.getRightOpts(rightType).rightClick || subTitleClick || (() => {}); | ||
rightIcon = rightIcon || this.getRightOpts(rightType).rightIcon; | ||
@@ -79,3 +79,3 @@ leftType = leftType || 'back'; | ||
leftIcon = leftIcon || this.getLeftOpts(leftType).leftIcon; | ||
leftClick = leftClick || this.getLeftOpts(leftType).leftClick || () => {}; | ||
leftClick = leftClick || this.getLeftOpts(leftType).leftClick || (() => {}); | ||
@@ -82,0 +82,0 @@ if (leftText && leftText.length > 4) { |
@@ -1,3 +0,4 @@ | ||
exports.Loading = require('./Loading'); | ||
exports.Paging = require('./Paging'); | ||
exports.Item = require('./Item'); | ||
exports.Loading = require('./Loading') | ||
exports.Paging = require('./Paging') | ||
exports.Item = require('./Item') | ||
@@ -6,9 +6,9 @@ let Promise = require('bluebird'); | ||
exports.Toast = require('./Toast'); | ||
exports.AlertPopup = require("./AlertPopup"); | ||
exports.DownLoadPopup = require("./DownLoadPopup"); | ||
exports.WxSharePopup = require("./WxSharePopup"); | ||
exports.CustomPopup = require("./CustomPopup"); | ||
export {default as Toast} from './Toast' | ||
export {default as AlertPopup} from './AlertPopup' | ||
export {default as DownLoadPopup} from './DownLoadPopup' | ||
export {default as WxSharePopup} from './WxSharePopup' | ||
export {default as CustomPopup} from './CustomPopup' | ||
exports.alert = function (opt, okTextParam = '确定', titleParam) { | ||
export function alert(opt, okTextParam = '确定', titleParam) { | ||
let {message, okText, title, isModal = true} = (typeof opt === 'object') ? opt : { | ||
@@ -60,3 +60,3 @@ message: opt, | ||
exports.wxShare = function () { | ||
export function wxShare() { | ||
return new Promise(function (resolve, reject) { | ||
@@ -73,7 +73,7 @@ dispatch(actions.setVars("fuiWxSharePopup", { | ||
exports.wxShare.close = function () { | ||
wxShare.close = function () { | ||
dispatch(actions.setVars("fuiWxSharePopup", "")); | ||
}; | ||
exports.toast = function (toastValue, time = 2500) { | ||
export function toast(toastValue, time = 2500) { | ||
dispatch(actions.setVars("fuiToast", { | ||
@@ -85,3 +85,3 @@ toastValue: toastValue, | ||
exports.callTel = function (tel) { | ||
export function callTel(tel) { | ||
if (browserEnv.isInAndroid()) { | ||
@@ -104,3 +104,3 @@ confirm(`确定拨打电话:${tel} 吗?`, '确定', '取消').then(()=> { | ||
} | ||
exports.downLoad = function (message = "使用客户端,享受更多服务!", okText = '下载', cancelText = "暂不下载") { | ||
export function downLoad(message = "使用客户端,享受更多服务!", okText = '下载', cancelText = "暂不下载") { | ||
return new Promise(function (resolve, reject) { | ||
@@ -129,3 +129,3 @@ dispatch(actions.setVars("fuiAlert", { | ||
exports.loading = function (promise, loadingText) { | ||
export function loading(promise, loadingText) { | ||
dispatch(actions.setVars("fuiLoading", { | ||
@@ -132,0 +132,0 @@ isShow: true, |
{ | ||
"name": "fengui", | ||
"version": "0.7.9", | ||
"version": "1.0.1", | ||
"description": "", | ||
"main": "dist/fengjr", | ||
"scripts": { | ||
"hot-dev-server": "webpack-dev-server --config webpack-hot-dev-server.config.js --hot --progress --colors --host 0.0.0.0 --port 3093 --inline", | ||
"build": "webpack --config webpack-production.config.js --progress --profile --colors", | ||
"dist": "webpack --config webpack-dist.config.js --progress --profile --colors", | ||
"start-dev": "node lib/server-development", | ||
"start": "node lib/server-production" | ||
"build": "webpack --config webpack/production.config.js --progress --colors", | ||
"hot-dev-server": "webpack-dev-server --config webpack/dev.config.js --hot --progress --colors --inline", | ||
"start-dev": "node webpack/server", | ||
"test": "standard" | ||
}, | ||
@@ -25,8 +24,10 @@ "keywords": [ | ||
"devDependencies": { | ||
"async": "^1.2.0", | ||
"babel": "^6.5.2", | ||
"babel-core": "^5.0.12", | ||
"babel-eslint": "^3.0.1", | ||
"babel-loader": "^5.0.0", | ||
"babel-plugin-dev-expression": "^0.2.1", | ||
"autoprefixer": "^6.3.7", | ||
"babel-core": "^6.24.0", | ||
"babel-loader": "^6.2.10", | ||
"babel-preset-es2015": "^6.24.0", | ||
"babel-preset-es2016": "^6.22.0", | ||
"babel-preset-react": "^6.23.0", | ||
"babel-preset-stage-2": "^6.22.0", | ||
"babel-preset-stage-3": "^6.22.0", | ||
"bluebird": "^3.0.5", | ||
@@ -69,3 +70,3 @@ "body-parser": "^1.9.3", | ||
"react-proxy-loader": "^0.3.1", | ||
"react-redux": "^4.4.5", | ||
"react-redux": "^5.0.3", | ||
"react-router": "^2.4.1", | ||
@@ -81,6 +82,7 @@ "react-slick": "^0.12.2", | ||
"uuid": "^2.0.1", | ||
"webpack": "^1.13.2", | ||
"webpack-dev-server": "^1.4.7", | ||
"webpack": "^2.3.1", | ||
"webpack-dev-server": "^2.4.2", | ||
"react-bootstrap": "^0.30.7", | ||
"weixin-js-sdk": "^1.0.7" | ||
"weixin-js-sdk": "^1.0.7", | ||
"postcss-loader": "^1.3.3" | ||
}, | ||
@@ -87,0 +89,0 @@ "files": [ |
@@ -20,2 +20,9 @@ 'use strict'; | ||
export default module.exports = createStore(mainReducer); | ||
const store = createStore(mainReducer); | ||
const {dispatch, getState} = store; | ||
export { | ||
store as default, | ||
dispatch, | ||
getState | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
1
108387
61
65
1858
55