-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ciaochaos/dev-redux
QRBTF 1.3
- Loading branch information
Showing
44 changed files
with
2,239 additions
and
117 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
|
@@ -51,6 +51,7 @@ const PartMore = () => { | |
</ScrollContainer> | ||
<div className="Qr-Centered"> | ||
<h2>最新消息</h2> | ||
<p><b>2020.9.1</b><br/>新增 C3 样式、图标插入、 PNG 下载。</p> | ||
<p><b>2020.6.29</b><br/>新的反馈渠道!我们开始征集好玩的二维码设计啦,可以是推送尾图、海报等等,快来上传吧。<LinkTrace | ||
href='https://qrbtf-com.mikecrm.com/J2wjEEq' rel="noopener noreferrer" | ||
target="_blank">点击提交</LinkTrace>。</p> | ||
|
@@ -80,9 +81,10 @@ const PartMore = () => { | |
<p>这个工具开发的初衷之一就是便利设计师将其纳入自己的工作流程中。SVG 是一个优秀的、标准的矢量图片格式,各大设计软件如 Adobe Illustrator、Sketch 等都对 SVG | ||
有着很好的支持。用户可以在下载 SVG 后导入这些软件进行二次加工,如删除中央的信息点 <b>放入自己的 Logo</b> 等。如果需要直接分享二维码图像,请直接下载 JPG 格式。 | ||
</p> | ||
<h2>二维码无法识别的原因是什么?</h2> | ||
<p>二维码无法识别有很多原因。比如定位点不匹配识别模式、信息点颜色对比不够、遮挡部分太大。建议尝试调整容错率、颜色、图标大小等参数并在各种二维码扫描器中测试,以保证二维码被识别的成功率</p> | ||
<h2>使用遇到了问题,怎么反馈?</h2> | ||
<p>我们是两位大一的学生,忙于学业,可能在设计与开发的过程中有一些疏漏,敬请谅解。如果遇到浏览器兼容问题,请暂时选择更换软件或设备尝试。</p> | ||
<p>请注意,应用并不能保证二维码时刻可被识别,需要多加测试。</p> | ||
<p>编写二维码样式是一个锻炼设计与开发(JavaScript)能力的绝佳机会,如果你有兴趣和我们一起玩这个项目,欢迎添加我的微信(微信号:<span | ||
style={{userSelect: "text"}}>nhciao</span>,请备注真实姓名)或发送邮件至 <LinkTrace | ||
href='mailto:[email protected]'>[email protected]</LinkTrace> 联系我们!</p> | ||
|
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
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,18 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types' | ||
import '../Qrcode.css'; | ||
|
||
const FrameworkParam = ({ paramName, children, ...other }) => ( | ||
<table className="Qr-table" {...other}> | ||
<tbody> | ||
<tr> | ||
<td>{ paramName }</td> | ||
<td> | ||
{ children } | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
) | ||
|
||
export default FrameworkParam; |
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
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
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,25 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types' | ||
import '../../Qrcode.css'; | ||
import FrameworkParam from "../FrameworkParam"; | ||
|
||
const ParamCorrectLevel = ({value, onChange}) => ( | ||
<FrameworkParam paramName={"容错率"}> | ||
<select | ||
className="Qr-select" | ||
value={value} | ||
onChange={onChange}> | ||
<option value={1}>7%</option> | ||
<option value={0}>15%</option> | ||
<option value={3}>25%</option> | ||
<option value={2}>30%</option> | ||
</select> | ||
</FrameworkParam> | ||
) | ||
|
||
ParamCorrectLevel.propTypes = { | ||
value: PropTypes.number.isRequired, | ||
onChange: PropTypes.func.isRequired | ||
} | ||
|
||
export default ParamCorrectLevel; |
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,60 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types' | ||
import '../../Qrcode.css'; | ||
import FrameworkParam from "../FrameworkParam"; | ||
import {getExactValue} from "../../../utils/util"; | ||
import ParamIconSrcViewer from "../../../containers/param/disposable/ParamIconSrcViewer"; | ||
|
||
const IconParams = ({ icon, onBlur, onKeyPress }) => { | ||
const { enabled, src, scale } = icon; | ||
const components = []; | ||
|
||
if (getExactValue(enabled, 0) == 1) { | ||
components.push( | ||
<FrameworkParam paramName={"图标源"}> | ||
<ParamIconSrcViewer icon={icon} onChange={onBlur}/> | ||
</FrameworkParam> | ||
); | ||
} | ||
|
||
if (getExactValue(enabled, 0) != 0) { | ||
components.push( | ||
<FrameworkParam paramName={"图标缩放"}> | ||
<input | ||
type="number" | ||
className="Qr-input small-input" | ||
defaultValue={scale} | ||
onBlur={(e) => onBlur({...icon, scale: e.target.value})} | ||
onKeyPress={(e) => onKeyPress(e, {...icon, scale: e.target.value})} | ||
/> | ||
</FrameworkParam> | ||
) | ||
} | ||
return components; | ||
} | ||
|
||
const ParamIcon = ({icon, onBlur, onKeyPress}) => ( | ||
<React.Fragment> | ||
<FrameworkParam paramName={"图标"}> | ||
<select | ||
className="Qr-select" | ||
defaultValue={icon.enabled} | ||
onChange={(e) => onBlur({...icon, enabled: e.target.value})}> | ||
<option value={0}>无</option> | ||
<option value={1}>自定义</option> | ||
<option value={2}>微信 — 小</option> | ||
<option value={3}>微信</option> | ||
<option value={4}>微信支付</option> | ||
<option value={5}>支付宝</option> | ||
</select> | ||
</FrameworkParam> | ||
<IconParams icon={icon} onBlur={onBlur} onKeyPress={onKeyPress}/> | ||
</React.Fragment> | ||
) | ||
|
||
ParamIcon.propTypes = { | ||
icon: PropTypes.object.isRequired, | ||
onChange: PropTypes.func.isRequired | ||
} | ||
|
||
export default ParamIcon; |
Oops, something went wrong.