Skip to content

Commit

Permalink
fix unused
Browse files Browse the repository at this point in the history
  • Loading branch information
CPunisher committed Aug 12, 2020
1 parent 5818351 commit 106b0ab
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/app/PartMore.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import LinkButton from "../link/LinkButton";
import ImageZoom from "../../containers/app/ImageZoom";
import LinkTrace from "../link/LinkTrace";
import {isPC} from "../../utils/navigatorUtils";
import {handleScroll, handleZoom} from "../../utils/gaHelper";
import {handleScroll} from "../../utils/gaHelper";

const pictures = [
'https://7172-qrbtf-1d845d-1255694434.tcb.qcloud.la/QrbtfGallery/gallery04.jpg',
Expand Down
3 changes: 1 addition & 2 deletions src/components/renderer/Renderer25D.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
import RendererResImage from "./RendererResImage";

function listPoints(qrcode, params) {
if (!qrcode) return []
Expand Down Expand Up @@ -95,4 +94,4 @@ export default Renderer25D

Renderer25D.detail = (
<div>通向三维的半路。可能有一点点难以识别</div>
);
);
7 changes: 0 additions & 7 deletions src/components/renderer/RendererCircle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from "react";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
import LinkTrace from "../link/LinkTrace";
import {RendererRect} from "./RendererBase";
import {rand} from "../../utils/util";

function listPoints(qrcode, params) {
Expand All @@ -16,11 +14,6 @@ function listPoints(qrcode, params) {
const g2 = [];

let id = 0;
let size = 0.8;
const vw = [3, -3];
const vh = [3, -3];

const sq25 = "M32.048565,-1.29480038e-15 L67.951435,1.29480038e-15 C79.0954192,-7.52316311e-16 83.1364972,1.16032014 87.2105713,3.3391588 C91.2846454,5.51799746 94.4820025,8.71535463 96.6608412,12.7894287 C98.8396799,16.8635028 100,20.9045808 100,32.048565 L100,67.951435 C100,79.0954192 98.8396799,83.1364972 96.6608412,87.2105713 C94.4820025,91.2846454 91.2846454,94.4820025 87.2105713,96.6608412 C83.1364972,98.8396799 79.0954192,100 67.951435,100 L32.048565,100 C20.9045808,100 16.8635028,98.8396799 12.7894287,96.6608412 C8.71535463,94.4820025 5.51799746,91.2846454 3.3391588,87.2105713 C1.16032014,83.1364972 5.01544207e-16,79.0954192 -8.63200256e-16,67.951435 L8.63200256e-16,32.048565 C-5.01544207e-16,20.9045808 1.16032014,16.8635028 3.3391588,12.7894287 C5.51799746,8.71535463 8.71535463,5.51799746 12.7894287,3.3391588 C16.8635028,1.16032014 20.9045808,7.52316311e-16 32.048565,-1.29480038e-15 Z";

let otherColor = params[0];
let posColor = params[1];
Expand Down
1 change: 0 additions & 1 deletion src/components/renderer/RendererDSJ.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
import LinkTrace from "../link/LinkTrace";
import {RendererRect} from "./RendererBase";

function listPoints(qrcode, params) {
if (!qrcode) return []
Expand Down
2 changes: 0 additions & 2 deletions src/components/renderer/RendererFunc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from "react";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
import LinkTrace from "../link/LinkTrace";
import RenderDSJ from "./RendererDSJ";

function listPoints(qrcode, params) {
if (!qrcode) return []
Expand Down
3 changes: 1 addition & 2 deletions src/components/renderer/RendererImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
import {defaultImage} from "../../constant/References";
import {RendererRandRound} from "./RendererBase";

function listPoints(qrcode, params) {
if (!qrcode) return []
Expand Down Expand Up @@ -162,4 +161,4 @@ export default RendererImage

RendererImage.detail = (
<div>加了背景图,试试看还能扫描吗</div>
);
);
4 changes: 1 addition & 3 deletions src/components/renderer/RendererLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from "react";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {createRenderer} from "../style/Renderer";
import LinkTrace from "../link/LinkTrace";
import RenderDSJ from "./RendererDSJ";
import {rand} from "../../utils/util";

function listPoints(qrcode, params) {
Expand Down Expand Up @@ -418,4 +416,4 @@ RendererLine.detail = (

RendererLine2.detail = (
<div>交错相连</div>
);
);
3 changes: 1 addition & 2 deletions src/components/renderer/RendererRandRect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import {rand} from "../../utils/util";
import {createRenderer} from "../style/Renderer";
import {RendererLine} from "./RendererLine";

function listPoints(qrcode, params) {
if (!qrcode) return []
Expand Down Expand Up @@ -51,4 +50,4 @@ export default RendererRandRect

RendererRandRect.detail = (
<div>有一点点骚的配色,很适合你</div>
);
);
3 changes: 1 addition & 2 deletions src/components/renderer/RendererResImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {gamma} from "../../utils/imageUtils";
import {ParamTypes} from "../../constant/ParamTypes";
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
import {defaultResImage} from "../../constant/References";
import RendererRandRect from "./RendererRandRect";

function listPoints(qrcode, params) {
if (!qrcode) return []
Expand Down Expand Up @@ -190,4 +189,4 @@ export default RendererResImage

RendererResImage.detail = (
<div>满满科技感的重采样二值化像素点阵,有点东西</div>
);
);
2 changes: 1 addition & 1 deletion src/containers/app/ImageZoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ImageZoom = ({ zoom, ...other }) => {
zoomRef.current.attach(image);
}

return <img ref={attachZoom} {...other} />
return <img alt={"zoom"} ref={attachZoom} {...other} />
};

export default ImageZoom;

0 comments on commit 106b0ab

Please sign in to comment.