mirror of
https://github.com/Kenshin/simpread.git
synced 2026-01-25 14:28:34 +00:00
Remove progressbar.min.js from webpack.config.
This commit is contained in:
parent
77fac5638a
commit
2a7e820180
@ -1,28 +1,5 @@
|
||||
console.log( "==== simpread read component: ProcessBar ====" )
|
||||
|
||||
import Progress from 'progress';
|
||||
|
||||
/*
|
||||
const options = {
|
||||
strokeWidth: 4,
|
||||
easing : "easeInOut",
|
||||
duration : 1000,
|
||||
trailColor : "#fff",
|
||||
trailWidth : 0,
|
||||
svgStyle : {
|
||||
width : "100%",
|
||||
height : "100%",
|
||||
display: "block",
|
||||
top : "0",
|
||||
},
|
||||
from : { color: "#64B5F6" },
|
||||
to : { color: "#304FFE" },
|
||||
step : ( state, bar ) => {
|
||||
bar.path.setAttribute( "stroke", state.color );
|
||||
},
|
||||
};
|
||||
*/
|
||||
|
||||
export default class ProcessBar extends React.Component {
|
||||
|
||||
static defaultProps = {
|
||||
@ -54,15 +31,6 @@ export default class ProcessBar extends React.Component {
|
||||
return (
|
||||
this.props.show && <read-process style={{ "width": `${progress}%` }}></read-process>
|
||||
)
|
||||
/*
|
||||
const progress = !Number.isFinite( this.state.progress ) ? 0 : this.state.progress;
|
||||
return (
|
||||
this.props.show && <Progress type="line" progress={ progress } options={ options }>
|
||||
<read-process></read-process>
|
||||
</Progress>
|
||||
)
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -226,7 +226,6 @@ const webpack = require( 'webpack' ),
|
||||
jquery : __dirname + '/src/vender/jquery-2.1.1.min.js',
|
||||
mousetrap : __dirname + '/src/vender/mousetrap.min.js',
|
||||
pangu : __dirname + '/src/vender/pangu.min.js',
|
||||
progressbar: __dirname + '/src/vender/progressbar.min.js',
|
||||
velocity : __dirname + '/src/vender/velocity.min.js',
|
||||
timeago : __dirname + '/src/vender/timeago.min.js',
|
||||
carousel : __dirname + '/src/vender/carousel/carousel.js',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user