Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
CPunisher | c7e9efb7c8 | |
CPunisher | effe43a91c | |
CPunisher | 006fee6490 | |
CPunisher | 6fed952a22 | |
CPunisher | f06f2c9b2a |
|
@ -34,4 +34,4 @@ jobs:
|
||||||
secret_id: ${{ secrets.SECRET_ID }}
|
secret_id: ${{ secrets.SECRET_ID }}
|
||||||
secret_key: ${{ secrets.SECRET_KEY }}
|
secret_key: ${{ secrets.SECRET_KEY }}
|
||||||
bucket: ${{ secrets.BUCKET }}
|
bucket: ${{ secrets.BUCKET }}
|
||||||
region: ap-shanghai
|
region: ap-shanghai
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<profile version="1.0">
|
||||||
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
|
<option name="myValues">
|
||||||
|
<value>
|
||||||
|
<list size="1">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="p-id" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
<option name="myCustomValuesEnabled" value="true" />
|
||||||
|
</inspection_tool>
|
||||||
|
</profile>
|
||||||
|
</component>
|
|
@ -0,0 +1 @@
|
||||||
|
[0113/225246.323:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3)
|
|
@ -3598,9 +3598,9 @@
|
||||||
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
|
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
|
||||||
},
|
},
|
||||||
"color-string": {
|
"color-string": {
|
||||||
"version": "1.6.0",
|
"version": "1.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/color-string/-/color-string-1.6.0.tgz",
|
"resolved": "https://registry.npm.taobao.org/color-string/download/color-string-1.5.3.tgz",
|
||||||
"integrity": "sha512-c/hGS+kRWJutUBEngKKmk4iH3sD59MBkoxVapS/0wgpCz2u7XsNloxknyvBhzwEs1IbV36D9PwqLPJ2DTu3vMA==",
|
"integrity": "sha1-ybvF8BtYtUkvPWhXRZy2WQziBMw=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"color-name": "^1.0.0",
|
"color-name": "^1.0.0",
|
||||||
"simple-swizzle": "^0.2.2"
|
"simple-swizzle": "^0.2.2"
|
||||||
|
@ -4445,9 +4445,9 @@
|
||||||
"integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0="
|
"integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0="
|
||||||
},
|
},
|
||||||
"dns-packet": {
|
"dns-packet": {
|
||||||
"version": "1.3.4",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz",
|
"resolved": "https://registry.npm.taobao.org/dns-packet/download/dns-packet-1.3.1.tgz",
|
||||||
"integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==",
|
"integrity": "sha1-EqpCaYEHW+UAuRDu3NC0fdfe2lo=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"ip": "^1.1.0",
|
"ip": "^1.1.0",
|
||||||
"safe-buffer": "^5.0.1"
|
"safe-buffer": "^5.0.1"
|
||||||
|
@ -4625,24 +4625,17 @@
|
||||||
"integrity": "sha1-1zAd6eQN+DpA/h9RtEY8/hcNEVM="
|
"integrity": "sha1-1zAd6eQN+DpA/h9RtEY8/hcNEVM="
|
||||||
},
|
},
|
||||||
"elliptic": {
|
"elliptic": {
|
||||||
"version": "6.5.4",
|
"version": "6.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
|
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",
|
||||||
"integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
|
"integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"bn.js": "^4.11.9",
|
"bn.js": "^4.4.0",
|
||||||
"brorand": "^1.1.0",
|
"brorand": "^1.0.1",
|
||||||
"hash.js": "^1.0.0",
|
"hash.js": "^1.0.0",
|
||||||
"hmac-drbg": "^1.0.1",
|
"hmac-drbg": "^1.0.0",
|
||||||
"inherits": "^2.0.4",
|
"inherits": "^2.0.1",
|
||||||
"minimalistic-assert": "^1.0.1",
|
"minimalistic-assert": "^1.0.0",
|
||||||
"minimalistic-crypto-utils": "^1.0.1"
|
"minimalistic-crypto-utils": "^1.0.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"bn.js": {
|
|
||||||
"version": "4.12.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
|
|
||||||
"integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"emoji-regex": {
|
"emoji-regex": {
|
||||||
|
@ -6229,9 +6222,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hosted-git-info": {
|
"hosted-git-info": {
|
||||||
"version": "2.8.9",
|
"version": "2.8.8",
|
||||||
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
|
"resolved": "https://registry.npm.taobao.org/hosted-git-info/download/hosted-git-info-2.8.8.tgz",
|
||||||
"integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw=="
|
"integrity": "sha1-dTm9S8Hg4KiVgVouAmJCCxKFhIg="
|
||||||
},
|
},
|
||||||
"hpack.js": {
|
"hpack.js": {
|
||||||
"version": "2.1.6",
|
"version": "2.1.6",
|
||||||
|
@ -7170,9 +7163,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ws": {
|
"ws": {
|
||||||
"version": "6.2.2",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz",
|
"resolved": "https://registry.npm.taobao.org/ws/download/ws-6.2.1.tgz",
|
||||||
"integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==",
|
"integrity": "sha1-RC/fCkftZPWbal2P8TD0dI7VJPs=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"async-limiter": "~1.0.0"
|
"async-limiter": "~1.0.0"
|
||||||
}
|
}
|
||||||
|
@ -8541,9 +8534,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"merge-deep": {
|
"merge-deep": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/merge-deep/-/merge-deep-3.0.3.tgz",
|
"resolved": "https://registry.npm.taobao.org/merge-deep/download/merge-deep-3.0.2.tgz",
|
||||||
"integrity": "sha512-qtmzAS6t6grwEkNrunqTBdn0qKwFgNWvlxUbAV8es9M7Ot1EbyApytCnvE0jALPa46ZpKDUo527kKiaWplmlFA==",
|
"integrity": "sha1-85+hAKTxvTT/KffSv0UI+7jYOtI=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"arr-union": "^3.1.0",
|
"arr-union": "^3.1.0",
|
||||||
"clone-deep": "^0.2.4",
|
"clone-deep": "^0.2.4",
|
||||||
|
@ -9508,9 +9501,9 @@
|
||||||
"integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A="
|
"integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A="
|
||||||
},
|
},
|
||||||
"path-parse": {
|
"path-parse": {
|
||||||
"version": "1.0.7",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
"resolved": "https://registry.npm.taobao.org/path-parse/download/path-parse-1.0.6.tgz",
|
||||||
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
|
"integrity": "sha1-1i27VnlAXXLEc37FhgDp3c8G0kw="
|
||||||
},
|
},
|
||||||
"path-to-regexp": {
|
"path-to-regexp": {
|
||||||
"version": "0.1.7",
|
"version": "0.1.7",
|
||||||
|
@ -11938,12 +11931,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"serialize-javascript": {
|
"serialize-javascript": {
|
||||||
"version": "3.1.0",
|
"version": "2.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-3.1.0.tgz",
|
"resolved": "https://registry.npm.taobao.org/serialize-javascript/download/serialize-javascript-2.1.2.tgz?cache=0&sync_timestamp=1581860621656&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fserialize-javascript%2Fdownload%2Fserialize-javascript-2.1.2.tgz",
|
||||||
"integrity": "sha512-JIJT1DGiWmIKhzRsG91aS6Ze4sFUrYbltlkg2onR5OrnNM02Kl/hnY/T4FN2omvyeBbQmMJv+K4cPOpGzOTFBg==",
|
"integrity": "sha1-7OxTsOAxe9yV73arcHS3OEeF+mE="
|
||||||
"requires": {
|
|
||||||
"randombytes": "^2.1.0"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"serve-index": {
|
"serve-index": {
|
||||||
"version": "1.9.1",
|
"version": "1.9.1",
|
||||||
|
@ -12434,8 +12424,8 @@
|
||||||
},
|
},
|
||||||
"ssri": {
|
"ssri": {
|
||||||
"version": "7.1.0",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/ssri/-/ssri-7.1.0.tgz",
|
"resolved": "https://registry.npm.taobao.org/ssri/download/ssri-7.1.0.tgz",
|
||||||
"integrity": "sha512-77/WrDZUWocK0mvA5NTRQyveUf+wsrIc6vyrxpS8tVvYBcX215QbafrJR3KtkpskIzoFLqqNuuYQvxaMjXJ/0g==",
|
"integrity": "sha1-ksJBv23oI2W1x/tL126XVSLhKU0=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"figgy-pudding": "^3.5.1",
|
"figgy-pudding": "^3.5.1",
|
||||||
"minipass": "^3.1.1"
|
"minipass": "^3.1.1"
|
||||||
|
@ -12988,11 +12978,6 @@
|
||||||
"find-up": "^4.0.0"
|
"find-up": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"serialize-javascript": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ=="
|
|
||||||
},
|
|
||||||
"supports-color": {
|
"supports-color": {
|
||||||
"version": "7.1.0",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-7.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.1.0.tgz",
|
"resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-7.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-7.1.0.tgz",
|
||||||
|
@ -13094,9 +13079,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tmpl": {
|
"tmpl": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",
|
"resolved": "https://registry.npm.taobao.org/tmpl/download/tmpl-1.0.4.tgz",
|
||||||
"integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw=="
|
"integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE="
|
||||||
},
|
},
|
||||||
"to-arraybuffer": {
|
"to-arraybuffer": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
|
@ -13383,9 +13368,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"url-parse": {
|
"url-parse": {
|
||||||
"version": "1.5.3",
|
"version": "1.4.7",
|
||||||
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.3.tgz",
|
"resolved": "https://registry.npm.taobao.org/url-parse/download/url-parse-1.4.7.tgz",
|
||||||
"integrity": "sha512-IIORyIQD9rvj0A4CLWsHkBBJuNqWpFQe224b6j9t/ABmquIS0qDU2pY6kl6AuOrL5OkCXHMCFNe1jBcuAggjvQ==",
|
"integrity": "sha1-qKg1NejACjFuQDpdtKwbm4U64ng=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"querystringify": "^2.1.1",
|
"querystringify": "^2.1.1",
|
||||||
"requires-port": "^1.0.0"
|
"requires-port": "^1.0.0"
|
||||||
|
@ -14186,9 +14171,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ssri": {
|
"ssri": {
|
||||||
"version": "6.0.2",
|
"version": "6.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.2.tgz",
|
"resolved": "https://registry.npm.taobao.org/ssri/download/ssri-6.0.1.tgz",
|
||||||
"integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==",
|
"integrity": "sha1-KjxBso3UW2K2Nnbst0ABJlrp7dg=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"figgy-pudding": "^3.5.1"
|
"figgy-pudding": "^3.5.1"
|
||||||
}
|
}
|
||||||
|
@ -14207,13 +14192,6 @@
|
||||||
"terser": "^4.1.2",
|
"terser": "^4.1.2",
|
||||||
"webpack-sources": "^1.4.0",
|
"webpack-sources": "^1.4.0",
|
||||||
"worker-farm": "^1.7.0"
|
"worker-farm": "^1.7.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"serialize-javascript": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ=="
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15010,9 +14988,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ws": {
|
"ws": {
|
||||||
"version": "6.2.2",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz",
|
"resolved": "https://registry.npm.taobao.org/ws/download/ws-6.2.1.tgz",
|
||||||
"integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==",
|
"integrity": "sha1-RC/fCkftZPWbal2P8TD0dI7VJPs=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"async-limiter": "~1.0.0"
|
"async-limiter": "~1.0.0"
|
||||||
}
|
}
|
||||||
|
@ -15382,9 +15360,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ws": {
|
"ws": {
|
||||||
"version": "5.2.3",
|
"version": "5.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/ws/-/ws-5.2.3.tgz",
|
"resolved": "https://registry.npm.taobao.org/ws/download/ws-5.2.2.tgz",
|
||||||
"integrity": "sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA==",
|
"integrity": "sha1-3/7xSGa46NyRM1glFNG++vlumA8=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"async-limiter": "~1.0.0"
|
"async-limiter": "~1.0.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
"@testing-library/react": "^9.3.2",
|
"@testing-library/react": "^9.3.2",
|
||||||
"@testing-library/user-event": "^7.1.2",
|
"@testing-library/user-event": "^7.1.2",
|
||||||
"jsqr": "^1.3.1",
|
"jsqr": "^1.3.1",
|
||||||
|
"jszip": "^3.7.1",
|
||||||
"medium-zoom": "^1.0.5",
|
"medium-zoom": "^1.0.5",
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"react": "^16.13.1",
|
"react": "^16.13.1",
|
||||||
|
@ -16,6 +17,7 @@
|
||||||
"react-github-btn": "^1.2.0",
|
"react-github-btn": "^1.2.0",
|
||||||
"react-indiana-drag-scroll": "^1.6.1",
|
"react-indiana-drag-scroll": "^1.6.1",
|
||||||
"react-lazy-load": "^3.0.13",
|
"react-lazy-load": "^3.0.13",
|
||||||
|
"react-modal": "^3.12.1",
|
||||||
"react-redux": "^7.2.0",
|
"react-redux": "^7.2.0",
|
||||||
"react-scripts": "3.4.1",
|
"react-scripts": "3.4.1",
|
||||||
"redux": "^4.0.5",
|
"redux": "^4.0.5",
|
||||||
|
|
|
@ -2,15 +2,15 @@
|
||||||
<html lang="zh">
|
<html lang="zh">
|
||||||
<head>
|
<head>
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
<!-- Google tag (gtag.js) -->
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-165845289-1"></script>
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XKEWNQ1T0E"></script>
|
<script data-ad-client="ca-pub-3611009408282658" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
<script>
|
<script>
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
function gtag(){dataLayer.push(arguments);}
|
function gtag(){dataLayer.push(arguments);}
|
||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
|
|
||||||
gtag('config', 'UA-165845289-1');
|
gtag('config', 'UA-165845289-1');
|
||||||
gtag('config', 'G-XKEWNQ1T0E');
|
gtag('config', 'G-3NKS6ZG27V');
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
(function(){
|
(function(){
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
work correctly both with client-side routing and a non-root public URL.
|
work correctly both with client-side routing and a non-root public URL.
|
||||||
Learn how to configure a non-root public URL by running `npm run build`.
|
Learn how to configure a non-root public URL by running `npm run build`.
|
||||||
-->
|
-->
|
||||||
<title>QRBTF Classic</title>
|
<title>QRBTF 参数化二维码生成器</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
|
|
|
@ -1,16 +1,25 @@
|
||||||
import {actionTypes} from "../constant/ActionTypes";
|
import {actionTypes} from "../constant/ActionTypes";
|
||||||
import {handleStyle} from "../utils/gaHelper";
|
import {handleStyle} from "../utils/gaHelper";
|
||||||
|
|
||||||
export const genQRInfo = text => ({
|
export const genQRInfo = text => {
|
||||||
type: actionTypes.GENERATE_QR_INFO,
|
if (Array.isArray(text)) {
|
||||||
text
|
return {
|
||||||
})
|
type: actionTypes.GENERATE_QR_INFO,
|
||||||
|
text: text[0],
|
||||||
|
textArray: text
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
type: actionTypes.GENERATE_QR_INFO,
|
||||||
|
text
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export const changeStyle = (rendererIndex, rendererType, value) => {
|
export const changeStyle = (rendererIndex, value) => {
|
||||||
handleStyle(value);
|
handleStyle(value);
|
||||||
return {
|
return {
|
||||||
type: actionTypes.CHANGE_STYLE,
|
type: actionTypes.CHANGE_STYLE,
|
||||||
rendererIndex, rendererType, value
|
rendererIndex, value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -318,7 +318,7 @@ td {
|
||||||
.Qr-input-upload {
|
.Qr-input-upload {
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: calc(100vw - 46px);
|
max-width: calc(100vw - 46px);
|
||||||
width: 20em;
|
width: 22em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Qr-input-upload-div {
|
.Qr-input-upload-div {
|
||||||
|
@ -349,17 +349,8 @@ td {
|
||||||
transition-duration: 0.3s;
|
transition-duration: 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Qr-new-discord {
|
|
||||||
font-size: 12px;
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
bottom: -54px;
|
|
||||||
font-weight: bold;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 500px) {
|
@media (min-width: 500px) {
|
||||||
.Qr-input-hint, .Qr-new-discord {
|
.Qr-input-hint {
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
@ -369,7 +360,7 @@ td {
|
||||||
height: calc(2em + 6px);
|
height: calc(2em + 6px);
|
||||||
font-size: calc(10px + 2vmin);
|
font-size: calc(10px + 2vmin);
|
||||||
border: var(--border-color) solid 2px;
|
border: var(--border-color) solid 2px;
|
||||||
margin-left: 10px;
|
margin: 0 10px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -381,6 +372,7 @@ td {
|
||||||
|
|
||||||
.Qr-upload {
|
.Qr-upload {
|
||||||
color: var(--upload-color);
|
color: var(--upload-color);
|
||||||
|
fill: var(--upload-color);
|
||||||
font-size: calc(10px + 2vmin);
|
font-size: calc(10px + 2vmin);
|
||||||
border: var(--border-color) solid 2px;
|
border: var(--border-color) solid 2px;
|
||||||
width: calc(2em + 6px)!important;
|
width: calc(2em + 6px)!important;
|
||||||
|
@ -418,6 +410,7 @@ td {
|
||||||
.Qr-upload:hover {
|
.Qr-upload:hover {
|
||||||
border-color: var(--border-color-focus);
|
border-color: var(--border-color-focus);
|
||||||
color: var(--border-color-focus);
|
color: var(--border-color-focus);
|
||||||
|
fill: var(--border-color-focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
.Qr-upload:active {
|
.Qr-upload:active {
|
||||||
|
@ -426,6 +419,7 @@ td {
|
||||||
-moz-transition-duration: 0s;
|
-moz-transition-duration: 0s;
|
||||||
border-color: #3BBC9F;
|
border-color: #3BBC9F;
|
||||||
color: #3BBC9F;
|
color: #3BBC9F;
|
||||||
|
fill: #3BBC9F;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Qr-upload-svg {
|
.Qr-upload-svg {
|
||||||
|
|
|
@ -24,7 +24,7 @@ ReactGA.addTrackers(
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
trackingId: 'G-XKEWNQ1T0E',
|
trackingId: 'G-3NKS6ZG27V',
|
||||||
gaOptions: { name: 'trackerG' }
|
gaOptions: { name: 'trackerG' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -2,6 +2,7 @@ import React, {useState} from 'react';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import {isWeiXin} from "../../utils/navigatorUtils";
|
import {isWeiXin} from "../../utils/navigatorUtils";
|
||||||
|
import PresetModalViewer from "../../containers/preset/PresetModalViewer";
|
||||||
|
|
||||||
const CountComponent = ({ value }) => {
|
const CountComponent = ({ value }) => {
|
||||||
if (isNaN(value)) return null;
|
if (isNaN(value)) return null;
|
||||||
|
@ -34,24 +35,31 @@ const ImgBox = ({ imgData }) => {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
const PartDownload = ({ value, downloadCount, onSvgDownload, onImgDownload }) => {
|
const PartDownload = ({ value, batchMode, downloadCount, onSvgDownload, onImgDownload, savePreset }) => {
|
||||||
const [imgData, setImgData] = useState('');
|
const [imgData, setImgData] = useState('');
|
||||||
|
const [visible, setVisible] = useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="Qr-titled">
|
<div className="Qr-titled">
|
||||||
<div className="Qr-Centered title-margin">
|
<div className="Qr-Centered title-margin">
|
||||||
<div className="Qr-s-title">Downloads</div>
|
<div className="Qr-s-title">Downloads</div>
|
||||||
<p className="Qr-s-subtitle">
|
<p className="Qr-s-subtitle">
|
||||||
<span>下载二维码 — {value}</span>
|
<span>下载二维码</span>
|
||||||
|
<span>({batchMode ? "批量模式" : "单文件模式"})</span>
|
||||||
|
<span> — {value}</span>
|
||||||
<CountComponent value={downloadCount} />
|
<CountComponent value={downloadCount} />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="Qr-Centered">
|
<div className="Qr-Centered">
|
||||||
|
<PresetModalViewer visible={visible} onClose={() => setVisible(false)} />
|
||||||
<div className="btn-row">
|
<div className="btn-row">
|
||||||
<div className="div-btn img-dl-btn">
|
<div className="div-btn img-dl-btn">
|
||||||
<button className="dl-btn" onClick={() => {onImgDownload("jpg").then(res => setImgData(res));}}>JPG</button>
|
<button className="dl-btn" onClick={() => {onImgDownload("jpg").then(res => setImgData(res));}}>JPG</button>
|
||||||
<button className="dl-btn" onClick={() => {onImgDownload("png").then(res => setImgData(res));}}>PNG</button>
|
<button className="dl-btn" onClick={() => {onImgDownload("png").then(res => setImgData(res));}}>PNG</button>
|
||||||
<button className="dl-btn" onClick={onSvgDownload}>SVG</button>
|
<button className="dl-btn" onClick={onSvgDownload}>SVG</button>
|
||||||
|
|
||||||
|
<button className="dl-btn" onClick={() => setVisible(true)}>管理预设</button>
|
||||||
|
<button className="dl-btn" onClick={savePreset}>保存预设</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="wx-message">
|
<div id="wx-message">
|
||||||
|
|
|
@ -90,7 +90,7 @@ const PartFooter = () => (
|
||||||
|
|
||||||
<div className="Gray">
|
<div className="Gray">
|
||||||
Copyright © {currentYear} QRBTF. 保留所有权利。<br/>
|
Copyright © {currentYear} QRBTF. 保留所有权利。<br/>
|
||||||
<LinkTrace href="https://beian.miit.gov.cn/"
|
<LinkTrace href="http://www.beian.miit.gov.cn/"
|
||||||
rel="noopener noreferrer" target="_blank">
|
rel="noopener noreferrer" target="_blank">
|
||||||
浙
|
浙
|
||||||
ICP 备 19005869 号
|
ICP 备 19005869 号
|
||||||
|
|
|
@ -51,6 +51,7 @@ const PartMore = () => {
|
||||||
</ScrollContainer>
|
</ScrollContainer>
|
||||||
<div className="Qr-Centered">
|
<div className="Qr-Centered">
|
||||||
<h2>最新消息</h2>
|
<h2>最新消息</h2>
|
||||||
|
<p><b>2021.10.5</b><br/>新增批量生成二维码。</p>
|
||||||
<p><b>2020.9.1</b><br/>新增 C3 样式、图标插入、 PNG 下载。</p>
|
<p><b>2020.9.1</b><br/>新增 C3 样式、图标插入、 PNG 下载。</p>
|
||||||
<p><b>2020.6.29</b><br/>新的反馈渠道!我们开始征集好玩的二维码设计啦,可以是推送尾图、海报等等,快来上传吧。<LinkTrace
|
<p><b>2020.6.29</b><br/>新的反馈渠道!我们开始征集好玩的二维码设计啦,可以是推送尾图、海报等等,快来上传吧。<LinkTrace
|
||||||
href='https://qrbtf-com.mikecrm.com/J2wjEEq' rel="noopener noreferrer"
|
href='https://qrbtf-com.mikecrm.com/J2wjEEq' rel="noopener noreferrer"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types'
|
|
||||||
import '../Qrcode.css';
|
import '../Qrcode.css';
|
||||||
|
|
||||||
const FrameworkParam = ({ paramName, children, ...other }) => (
|
const FrameworkParam = ({ paramName, children, ...other }) => (
|
||||||
|
|
|
@ -9,7 +9,7 @@ const IconParams = ({ icon, onBlur, onKeyPress }) => {
|
||||||
const { enabled, src, scale } = icon;
|
const { enabled, src, scale } = icon;
|
||||||
const components = [];
|
const components = [];
|
||||||
|
|
||||||
if (getExactValue(enabled, 0) == 1) {
|
if (getExactValue(enabled, 0) === 1) {
|
||||||
components.push(
|
components.push(
|
||||||
<FrameworkParam paramName={"图标源"}>
|
<FrameworkParam paramName={"图标源"}>
|
||||||
<ParamIconSrcViewer icon={icon} onChange={onBlur}/>
|
<ParamIconSrcViewer icon={icon} onChange={onBlur}/>
|
||||||
|
@ -17,7 +17,7 @@ const IconParams = ({ icon, onBlur, onKeyPress }) => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getExactValue(enabled, 0) != 0) {
|
if (getExactValue(enabled, 0) !== 0) {
|
||||||
components.push(
|
components.push(
|
||||||
<FrameworkParam paramName={"图标缩放"}>
|
<FrameworkParam paramName={"图标缩放"}>
|
||||||
<input
|
<input
|
||||||
|
@ -38,7 +38,7 @@ const ParamIcon = ({icon, onBlur, onKeyPress}) => (
|
||||||
<FrameworkParam paramName={"图标"}>
|
<FrameworkParam paramName={"图标"}>
|
||||||
<select
|
<select
|
||||||
className="Qr-select"
|
className="Qr-select"
|
||||||
defaultValue={icon.enabled}
|
value={icon.enabled}
|
||||||
onChange={(e) => onBlur({...icon, enabled: e.target.value})}>
|
onChange={(e) => onBlur({...icon, enabled: e.target.value})}>
|
||||||
<option value={0}>无</option>
|
<option value={0}>无</option>
|
||||||
<option value={1}>自定义</option>
|
<option value={1}>自定义</option>
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
.ReactModal__Overlay {
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 100ms ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ReactModal__Overlay--after-open{
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ReactModal__Overlay--before-close{
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Qr-preset-container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Qr-preset-side {
|
||||||
|
width: 70%;
|
||||||
|
height: 100%;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Qr-preset-detail {
|
||||||
|
width: 40%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
import React from "react";
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
|
const PresetCard = ({ preset }) => (
|
||||||
|
<div className="Qr-Centered">
|
||||||
|
<div className="Qr-item-image">
|
||||||
|
<div className="Qr-item-image-inner">
|
||||||
|
<img id="dl-image-inner-jpg" src={preset.preview}/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="Qr-item-detail">
|
||||||
|
{preset.name}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
PresetCard.propTypes = {
|
||||||
|
preset: PropTypes.shape({
|
||||||
|
name: PropTypes.string.isRequired,
|
||||||
|
styleName: PropTypes.string.isRequired,
|
||||||
|
preview: PropTypes.string.isRequired,
|
||||||
|
params: PropTypes.array.isRequired,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PresetCard;
|
|
@ -0,0 +1,49 @@
|
||||||
|
import React from "react";
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
|
const ParamLabel = ({ params, label }) => (
|
||||||
|
params.map((param, index) => {
|
||||||
|
if (param.value.length > 30) return null;
|
||||||
|
return (
|
||||||
|
<table key={label + '_' + index} className="Qr-table">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>{param.name}</td>
|
||||||
|
<td>{param.value}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
)
|
||||||
|
})
|
||||||
|
)
|
||||||
|
|
||||||
|
const PresetDetail = ({ preset }) => (
|
||||||
|
<div className="Qr-Centered">
|
||||||
|
<div id="dl-image">
|
||||||
|
<div id="dl-image-inner">
|
||||||
|
<img id="dl-image-inner-jpg" src={preset.preview}/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<table className="Qr-table">
|
||||||
|
<tbody><tr>
|
||||||
|
<td>样式名</td>
|
||||||
|
<td>{preset.styleName}</td>
|
||||||
|
</tr></tbody>
|
||||||
|
</table>
|
||||||
|
<ParamLabel params={preset.params} label="preset_param"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
PresetDetail.propTypes = {
|
||||||
|
preset: PropTypes.shape({
|
||||||
|
name: PropTypes.string.isRequired,
|
||||||
|
styleName: PropTypes.string.isRequired,
|
||||||
|
preview: PropTypes.string.isRequired,
|
||||||
|
globalParams: PropTypes.array.isRequired,
|
||||||
|
params: PropTypes.array.isRequired,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PresetDetail;
|
|
@ -0,0 +1,80 @@
|
||||||
|
import React, {useState} from "react";
|
||||||
|
import Modal from "react-modal";
|
||||||
|
import './Preset.css';
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
|
import PresetCard from "./PresetCard";
|
||||||
|
import PresetDetail from "./PresetDetail";
|
||||||
|
import ScrollContainer from "react-indiana-drag-scroll";
|
||||||
|
import {getPresets, removePreset} from "../../utils/storageUtils";
|
||||||
|
|
||||||
|
function calClassName(selected) {
|
||||||
|
if (selected === true) return 'Qr-item Qr-item-selected';
|
||||||
|
return 'Qr-item';
|
||||||
|
}
|
||||||
|
|
||||||
|
const customStyles = {
|
||||||
|
content: {
|
||||||
|
inset: '40px 60px 40px 60px',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const PresetModal = ({ visible, onClose, loadPreset }) => {
|
||||||
|
const storedPresets = getPresets();
|
||||||
|
const [selected, setSelected] = useState(0);
|
||||||
|
const [presets, setPresets] = useState(storedPresets);
|
||||||
|
if (presets.length !== storedPresets.length) setPresets(storedPresets);
|
||||||
|
return (
|
||||||
|
<Modal
|
||||||
|
appElement={document.getElementById("root")}
|
||||||
|
closeTimeoutMS={100}
|
||||||
|
isOpen={visible}
|
||||||
|
onRequestClose={onClose}
|
||||||
|
style={customStyles}>
|
||||||
|
<div className="Qr-preset-container">
|
||||||
|
<ScrollContainer
|
||||||
|
className="Qr-div-table Qr-preset-side"
|
||||||
|
vertical={true}
|
||||||
|
horizontal={false}
|
||||||
|
hideScrollbars={false}>
|
||||||
|
{
|
||||||
|
presets.map((preset, index) => (
|
||||||
|
<div
|
||||||
|
key={'preset_' + index}
|
||||||
|
className={calClassName(selected === index)}
|
||||||
|
onClick={() => setSelected(index)}>
|
||||||
|
<PresetCard preset={preset}/>
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</ScrollContainer>
|
||||||
|
<div className="Qr-preset-detail">
|
||||||
|
{presets[selected] ? <PresetDetail preset={presets[selected]}/> : null}
|
||||||
|
<div>
|
||||||
|
<button className="dl-btn" onClick={() => {
|
||||||
|
if (presets[selected]) {
|
||||||
|
loadPreset(presets[selected]);
|
||||||
|
onClose();
|
||||||
|
}
|
||||||
|
}}>加载预设</button>
|
||||||
|
<button className="dl-btn" onClick={() => {
|
||||||
|
if (presets[selected]) {
|
||||||
|
removePreset(selected);
|
||||||
|
setPresets(getPresets())
|
||||||
|
}
|
||||||
|
}}>删除预设</button>
|
||||||
|
<button className="dl-btn" onClick={onClose}>取消</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Modal>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
PresetModal.propTypes = {
|
||||||
|
visible: PropTypes.bool,
|
||||||
|
onClose: PropTypes.func.isRequired,
|
||||||
|
presetArray: PropTypes.array.isRequired,
|
||||||
|
loadPreset: PropTypes.func.isRequired,
|
||||||
|
}
|
||||||
|
|
||||||
|
export default PresetModal;
|
|
@ -34,13 +34,13 @@ function listPoints({ qrcode, params, icon }) {
|
||||||
if (qrcode.isDark(x, y) === false) continue;
|
if (qrcode.isDark(x, y) === false) continue;
|
||||||
else if (typeTable[x][y] === QRPointType.POS_OTHER || typeTable[x][y] === QRPointType.POS_CENTER) {
|
else if (typeTable[x][y] === QRPointType.POS_OTHER || typeTable[x][y] === QRPointType.POS_CENTER) {
|
||||||
pointList.push(<rect width={size2} height={size2} key={id++} fill={upColor} x={x + (1 - size2)/2} y={y + (1 - size2)/2} transform={matrixString}/>);
|
pointList.push(<rect width={size2} height={size2} key={id++} fill={upColor} x={x + (1 - size2)/2} y={y + (1 - size2)/2} transform={matrixString}/>);
|
||||||
pointList.push(<rect width={height2} height={size2} key={id++} fill={leftColor} x={0} y={0} transform={matrixString+'translate('+String(x + (1 - size2)/2 + size2)+','+String(y + (1 - size2)/2)+') '+'skewY(45) '}/>);
|
pointList.push(<rect width={height2} height={size2} key={id++} fill={leftColor} x={0} y={0} transform={`${matrixString} translate(${x + (1 - size2)/2 + size2}, ${y + (1 - size2)/2}) skewY(45)`}/>);
|
||||||
pointList.push(<rect width={size2} height={height2} key={id++} fill={rightColor} x={0} y={0} transform={matrixString+'translate('+String(x + (1 - size2)/2)+','+String(y + size2 + (1 - size2)/2)+') '+'skewX(45) '}/>);
|
pointList.push(<rect width={size2} height={height2} key={id++} fill={rightColor} x={0} y={0} transform={`${matrixString} translate(${x + (1 - size2)/2}, ${y + size2 + (1 - size2)/2}) skewX(45)`}/>);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pointList.push(<rect width={size} height={size} key={id++} fill={upColor} x={x + (1 - size)/2} y={y + (1 - size)/2} transform={matrixString}/>);
|
pointList.push(<rect width={size} height={size} key={id++} fill={upColor} x={x + (1 - size)/2} y={y + (1 - size)/2} transform={matrixString}/>);
|
||||||
pointList.push(<rect width={height} height={size} key={id++} fill={leftColor} x={0} y={0} transform={matrixString+'translate('+String(x + (1 - size)/2 + size)+','+String(y + (1 - size)/2)+') '+'skewY(45) '}/>);
|
pointList.push(<rect width={height} height={size} key={id++} fill={leftColor} x={0} y={0} transform={`${matrixString} translate(${x + (1 - size)/2 + size}, ${y + (1 - size)/2}) skewY(45)`}/>);
|
||||||
pointList.push(<rect width={size} height={height} key={id++} fill={rightColor} x={0} y={0} transform={matrixString+'translate('+String(x + (1 - size)/2)+','+String(y + size + (1 - size)/2)+') '+'skewX(45) '}/>);
|
pointList.push(<rect width={size} height={height} key={id++} fill={rightColor} x={0} y={0} transform={`${matrixString} translate(${x + (1 - size)/2}, ${y + size + (1 - size)/2}) skewX(45)`}/>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -100,13 +100,14 @@ let defaultDrawIcon = function ({ qrcode, params, title, icon }) {
|
||||||
const randomIdClips = getIdNum();
|
const randomIdClips = getIdNum();
|
||||||
pointList.push(
|
pointList.push(
|
||||||
<g transform={matrixString}>
|
<g transform={matrixString}>
|
||||||
<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 1} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} />
|
<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 1} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />
|
||||||
</g>
|
</g>
|
||||||
);
|
);
|
||||||
pointList.push(
|
pointList.push(
|
||||||
<g key={id++} transform={matrixString}>
|
<g key={id++} transform={matrixString}>
|
||||||
<defs>
|
<defs>
|
||||||
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} /> </defs>
|
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />
|
||||||
|
</defs>
|
||||||
<clipPath id={"clip-path" + randomIdClips}>
|
<clipPath id={"clip-path" + randomIdClips}>
|
||||||
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
@ -184,18 +185,19 @@ let builtinDrawIcon = function ({ qrcode, params, title, icon }) {
|
||||||
const randomIdClips = getIdNum();
|
const randomIdClips = getIdNum();
|
||||||
pointList.push(
|
pointList.push(
|
||||||
<g transform={matrixString}>
|
<g transform={matrixString}>
|
||||||
<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 1} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} />
|
<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 1} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />
|
||||||
</g>
|
</g>
|
||||||
);
|
);
|
||||||
pointList.push(
|
pointList.push(
|
||||||
<g key={id++} transform={matrixString}>
|
<g key={id++} transform={matrixString}>
|
||||||
<defs>
|
<defs>
|
||||||
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} /> </defs>
|
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />
|
||||||
|
</defs>
|
||||||
<clipPath id={"clip-path" + randomIdClips}>
|
<clipPath id={"clip-path" + randomIdClips}>
|
||||||
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<g clipPath={"url(#clip-path" + randomIdClips + ")"}>
|
<g clipPath={"url(#clip-path" + randomIdClips + ")"}>
|
||||||
<g transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} >
|
<g transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} >
|
||||||
{builtinIcon()}
|
{builtinIcon()}
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import {ParamTypes} from "../../constant/ParamTypes";
|
import {ParamTypes} from "../../constant/ParamTypes";
|
||||||
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
import {getTypeTable, QRPointType} from "../../utils/qrcodeHandler";
|
||||||
import {createRenderer, defaultDrawIcon} from "../style/Renderer";
|
import {createRenderer} from "../style/Renderer";
|
||||||
import {getExactValue, rand} from "../../utils/util";
|
import {getExactValue, rand} from "../../utils/util";
|
||||||
import LinkTrace from "../link/LinkTrace";
|
import LinkTrace from "../link/LinkTrace";
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ function listPoints({ qrcode, params, icon }) {
|
||||||
const {src, scale} = icon;
|
const {src, scale} = icon;
|
||||||
|
|
||||||
const iconSize = Number(nCount * (scale > .33 ? .33 : scale));
|
const iconSize = Number(nCount * (scale > .33 ? .33 : scale));
|
||||||
const iconXY = (nCount - iconSize) / 2;
|
// const iconXY = (nCount - iconSize) / 2;
|
||||||
|
|
||||||
function nearIcon(x, y) {
|
function nearIcon(x, y) {
|
||||||
return Math.pow((nCount - 1) / 2 - x, 2) + Math.pow((nCount - 1) / 2 - y, 2) < Math.pow(iconSize / 2, 2);
|
return Math.pow((nCount - 1) / 2 - x, 2) + Math.pow((nCount - 1) / 2 - y, 2) < Math.pow(iconSize / 2, 2);
|
||||||
|
@ -67,7 +67,7 @@ function listPoints({ qrcode, params, icon }) {
|
||||||
}
|
}
|
||||||
} else if (posType === 3) {
|
} else if (posType === 3) {
|
||||||
pointList.push(<circle key={id++} fill={posColor} cx={x + 0.5} cy={y + 0.5} r={1.5} />)
|
pointList.push(<circle key={id++} fill={posColor} cx={x + 0.5} cy={y + 0.5} r={1.5} />)
|
||||||
pointList.push(<path key={id++} d={sq25} stroke={posColor} strokeWidth={100/6 * (1 - (1 - size) * 0.75)} fill="none" transform={'translate('+String(x - 2.5)+','+String(y - 2.5)+') ' + 'scale(' + String(6/100) + ',' + String(6/100) + ')'} />)
|
pointList.push(<path key={id++} d={sq25} stroke={posColor} strokeWidth={100/6 * (1 - (1 - size) * 0.75)} fill="none" transform={`translate(${x - 2.5}, ${y - 2.5}) scale(0.06, 0.06)`} />)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (typeTable[x][y] === QRPointType.POS_OTHER) {
|
else if (typeTable[x][y] === QRPointType.POS_OTHER) {
|
||||||
|
|
|
@ -51,7 +51,7 @@ function listPoints({ qrcode, params, icon }) {
|
||||||
}
|
}
|
||||||
} else if (posType === 3) {
|
} else if (posType === 3) {
|
||||||
pointList.push(<circle key={id++} fill={posColor} cx={x + 0.5} cy={y + 0.5} r={1.5} />)
|
pointList.push(<circle key={id++} fill={posColor} cx={x + 0.5} cy={y + 0.5} r={1.5} />)
|
||||||
pointList.push(<path key={id++} d={sq25} stroke={posColor} strokeWidth={100/6 * (1 - (1 - 0.8) * 0.75)} fill="none" transform={'translate('+String(x - 2.5)+','+String(y - 2.5)+') ' + 'scale(' + String(6/100) + ',' + String(6/100) + ')'} />)
|
pointList.push(<path key={id++} d={sq25} stroke={posColor} strokeWidth={100/6 * (1 - (1 - 0.8) * 0.75)} fill="none" transform={`translate(${x - 2.5}, ${y - 2.5}) scale(0.06, 0.06)`} />)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (qrcode.isDark(x, y) && typeTable[x][y] === QRPointType.POS_OTHER) {
|
else if (qrcode.isDark(x, y) && typeTable[x][y] === QRPointType.POS_OTHER) {
|
||||||
|
@ -76,7 +76,7 @@ function listPoints({ qrcode, params, icon }) {
|
||||||
if (funcType === 1) {
|
if (funcType === 1) {
|
||||||
let sizeF = 0
|
let sizeF = 0
|
||||||
let colorF = otherColor
|
let colorF = otherColor
|
||||||
let fillF = colorF
|
// let fillF = colorF
|
||||||
let opacityF = Number(qrcode.isDark(x, y));
|
let opacityF = Number(qrcode.isDark(x, y));
|
||||||
if (dist > 5/20 && dist < 8/20) {
|
if (dist > 5/20 && dist < 8/20) {
|
||||||
sizeF = 5/10
|
sizeF = 5/10
|
||||||
|
|
|
@ -58,7 +58,7 @@ function listPoints({ qrcode, params, icon }) {
|
||||||
}
|
}
|
||||||
} else if (posType === 3) {
|
} else if (posType === 3) {
|
||||||
pointList.push(<circle key={id++} fill={posColor} cx={x + 0.5} cy={y + 0.5} r={1.5} />)
|
pointList.push(<circle key={id++} fill={posColor} cx={x + 0.5} cy={y + 0.5} r={1.5} />)
|
||||||
pointList.push(<path key={id++} d={sq25} stroke={posColor} strokeWidth={100/6 * (1 - (1 - size) * 0.75)} fill="none" transform={'translate('+String(x - 2.5)+','+String(y - 2.5)+') ' + 'scale(' + String(6/100) + ',' + String(6/100) + ')'} />)
|
pointList.push(<path key={id++} d={sq25} stroke={posColor} strokeWidth={100/6 * (1 - (1 - size) * 0.75)} fill="none" transform={`translate(${x - 2.5}, ${y - 2.5}) scale(0.06, 0.06)`}/>)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (typeTable[x][y] === QRPointType.POS_OTHER) {
|
else if (typeTable[x][y] === QRPointType.POS_OTHER) {
|
||||||
|
|
|
@ -7,7 +7,6 @@ import {getExactValue, getIdNum} from "../../utils/util";
|
||||||
|
|
||||||
function listPoints({ qrcode, params, icon }) {
|
function listPoints({ qrcode, params, icon }) {
|
||||||
if (!qrcode) return []
|
if (!qrcode) return []
|
||||||
console.log(icon)
|
|
||||||
const nCount = qrcode.getModuleCount();
|
const nCount = qrcode.getModuleCount();
|
||||||
const typeTable = getTypeTable(qrcode);
|
const typeTable = getTypeTable(qrcode);
|
||||||
const pointList = new Array(nCount);
|
const pointList = new Array(nCount);
|
||||||
|
@ -175,11 +174,13 @@ let defaultDrawIcon = function ({ qrcode, params, title, icon }) {
|
||||||
if (icon && iconEnabled) {
|
if (icon && iconEnabled) {
|
||||||
const randomIdDefs = getIdNum();
|
const randomIdDefs = getIdNum();
|
||||||
const randomIdClips = getIdNum();
|
const randomIdClips = getIdNum();
|
||||||
pointList.push(<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 3} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} />);
|
|
||||||
|
pointList.push(<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 3} fill="#FFF" transform={`translate(${iconXY},${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />);
|
||||||
pointList.push(
|
pointList.push(
|
||||||
<g key={id++}>
|
<g key={id++}>
|
||||||
<defs>
|
<defs>
|
||||||
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} /> </defs>
|
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={`translate(${iconXY},${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />
|
||||||
|
</defs>
|
||||||
<clipPath id={"clip-path" + randomIdClips}>
|
<clipPath id={"clip-path" + randomIdClips}>
|
||||||
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
@ -255,16 +256,16 @@ let builtinDrawIcon = function ({ qrcode, params, title, icon }) {
|
||||||
if (icon && iconMode) {
|
if (icon && iconMode) {
|
||||||
const randomIdDefs = getIdNum();
|
const randomIdDefs = getIdNum();
|
||||||
const randomIdClips = getIdNum();
|
const randomIdClips = getIdNum();
|
||||||
pointList.push(<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 3} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} />);
|
pointList.push(<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 3} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />);
|
||||||
pointList.push(
|
pointList.push(
|
||||||
<g key={id++}>
|
<g key={id++}>
|
||||||
<defs>
|
<defs>
|
||||||
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} /> </defs>
|
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={`translate(${iconXY},${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} /></defs>
|
||||||
<clipPath id={"clip-path" + randomIdClips}>
|
<clipPath id={"clip-path" + randomIdClips}>
|
||||||
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<g clipPath={"url(#clip-path" + randomIdClips + ")"}>
|
<g clipPath={"url(#clip-path" + randomIdClips + ")"}>
|
||||||
<g transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} >
|
<g transform={`translate(${iconXY},${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} >
|
||||||
{builtinIcon()}
|
{builtinIcon()}
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
|
|
|
@ -35,11 +35,13 @@ let defaultDrawIcon = function ({ qrcode, params, title, icon }) {
|
||||||
if (icon && iconEnabled) {
|
if (icon && iconEnabled) {
|
||||||
const randomIdDefs = getIdNum();
|
const randomIdDefs = getIdNum();
|
||||||
const randomIdClips = getIdNum();
|
const randomIdClips = getIdNum();
|
||||||
pointList.push(<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 1} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} />);
|
|
||||||
|
pointList.push(<path key={id++} d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 1} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />);
|
||||||
pointList.push(
|
pointList.push(
|
||||||
<g key={id++}>
|
<g key={id++}>
|
||||||
<defs>
|
<defs>
|
||||||
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} /> </defs>
|
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />
|
||||||
|
</defs>
|
||||||
<clipPath id={"clip-path" + randomIdClips}>
|
<clipPath id={"clip-path" + randomIdClips}>
|
||||||
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
@ -115,16 +117,17 @@ let builtinDrawIcon = function ({ qrcode, params, title, icon }) {
|
||||||
if (icon && iconMode) {
|
if (icon && iconMode) {
|
||||||
const randomIdDefs = getIdNum();
|
const randomIdDefs = getIdNum();
|
||||||
const randomIdClips = getIdNum();
|
const randomIdClips = getIdNum();
|
||||||
pointList.push(<path d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 1} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} />);
|
pointList.push(<path key={id++} d={sq25} stroke="#FFF" strokeWidth={100/iconSize * 1} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />);
|
||||||
pointList.push(
|
pointList.push(
|
||||||
<g key={id++}>
|
<g key={id++}>
|
||||||
<defs>
|
<defs>
|
||||||
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} /> </defs>
|
<path id={"defs-path" + randomIdDefs} d={sq25} fill="#FFF" transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} />
|
||||||
|
</defs>
|
||||||
<clipPath id={"clip-path" + randomIdClips}>
|
<clipPath id={"clip-path" + randomIdClips}>
|
||||||
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
<use xlinkHref={"#defs-path" + randomIdDefs} overflow="visible"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<g clipPath={"url(#clip-path" + randomIdClips + ")"}>
|
<g clipPath={"url(#clip-path" + randomIdClips + ")"}>
|
||||||
<g transform={'translate('+String(iconXY)+','+String(iconXY)+') ' + 'scale(' + String(iconSize/100) + ',' + String(iconSize/100) + ')'} >
|
<g transform={`translate(${iconXY}, ${iconXY}) scale(${iconSize / 100}, ${iconSize / 100})`} >
|
||||||
{builtinIcon()}
|
{builtinIcon()}
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
import * as React from "react"
|
||||||
|
|
||||||
|
function FileImport(props) {
|
||||||
|
return (
|
||||||
|
<svg width={30} d="1633445633242" className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<defs>
|
||||||
|
<style type="text/css"/>
|
||||||
|
</defs>
|
||||||
|
<path
|
||||||
|
d="M182 841h-46C61.442 841 1 780.558 1 706V136C1 61.442 61.442 1 136 1h570c74.558 0 135 60.442 135 135v48h46c74.558 0 135 60.442 135 135v570c0 74.558-60.442 135-135 135H317c-74.558 0-135-60.442-135-135v-48z m569-657v-48c0-24.853-20.147-45-45-45H136c-24.853 0-45 20.147-45 45v570c0 24.853 20.147 45 45 45h46V319c0-74.558 60.442-135 135-135h434z m-434 90c-24.853 0-45 20.147-45 45v570c0 24.853 20.147 45 45 45h570c24.853 0 45-20.147 45-45V319c0-24.853-20.147-45-45-45H317z m239.71 278.5V402.79c0-24.854 20.148-45 45-45 24.854 0 45 20.146 45 45V552.5h149.712c24.852 0 45 20.147 45 45s-20.148 45-45 45H646.71v149.71c0 24.854-20.147 45-45 45s-45-20.146-45-45V642.5H407c-24.853 0-45-20.147-45-45s20.147-45 45-45h149.71z"/>
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default FileImport;
|
|
@ -4,6 +4,7 @@ import React, {useRef} from "react";
|
||||||
import {isPicture} from "../../utils/imageUtils";
|
import {isPicture} from "../../utils/imageUtils";
|
||||||
import {decodeData} from "../../utils/qrcodeHandler";
|
import {decodeData} from "../../utils/qrcodeHandler";
|
||||||
import { handleUpload, handleInputUrl } from "../../utils/gaHelper";
|
import { handleUpload, handleInputUrl } from "../../utils/gaHelper";
|
||||||
|
import FileImport from "../../components/svg/FileImport";
|
||||||
|
|
||||||
const InputText = ({dispatch}) => {
|
const InputText = ({dispatch}) => {
|
||||||
const textRef = useRef();
|
const textRef = useRef();
|
||||||
|
@ -41,7 +42,6 @@ const InputText = ({dispatch}) => {
|
||||||
decodeData(file).then((res) => {
|
decodeData(file).then((res) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
textRef.current.value = res.data;
|
textRef.current.value = res.data;
|
||||||
console.log(res.data)
|
|
||||||
dispatch(genQRInfo(res.data))
|
dispatch(genQRInfo(res.data))
|
||||||
}
|
}
|
||||||
}).catch(console.err);
|
}).catch(console.err);
|
||||||
|
@ -65,13 +65,40 @@ const InputText = ({dispatch}) => {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<label htmlFor="text_import" className="Qr-upload">
|
||||||
|
<FileImport />
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="file"
|
||||||
|
id="text_import"
|
||||||
|
hidden={true}
|
||||||
|
accept={".txt"}
|
||||||
|
onClick={(e) => e.target.value = null}
|
||||||
|
onChange={(e) => {
|
||||||
|
if (e.target.files.length > 0) {
|
||||||
|
const file = e.target.files[0];
|
||||||
|
if (file.type === "text/plain") {
|
||||||
|
const fileReader = new FileReader();
|
||||||
|
fileReader.onload = function(event) {
|
||||||
|
const lines = event.target.result
|
||||||
|
.split(/[\r\n]+/g)
|
||||||
|
.map(line => line.trim())
|
||||||
|
.filter(line => line.length > 0);
|
||||||
|
console.log(lines)
|
||||||
|
if (lines.length > 0) {
|
||||||
|
textRef.current.value = lines[0];
|
||||||
|
dispatch(genQRInfo(lines))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fileReader.readAsText(file, "UTF-8");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="Qr-input-hint">
|
<div className="Qr-input-hint">
|
||||||
上传普通二维码或输入网址
|
上传普通二维码、输入网址或上传 txt 文本批量生成
|
||||||
</div>
|
</div>
|
||||||
<a className="Qr-new-discord" href="https://discord.gg/V9CNuqYfte" target='_blank'>
|
|
||||||
New! Click to join our Discord,AI QR code coming soon!
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</React.Fragment>);
|
</React.Fragment>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
import {connect} from 'react-redux';
|
import {connect} from 'react-redux';
|
||||||
import PartDownload from "../../components/app/PartDownload";
|
import PartDownload from "../../components/app/PartDownload";
|
||||||
import {saveImg, saveSvg} from "../../utils/downloader";
|
import {saveImg, saveSvg, startTask} from "../../utils/downloader";
|
||||||
import {getDownloadCount, increaseDownloadData, recordDownloadDetail} from "../../api/TcbHandler";
|
import {getDownloadCount, increaseDownloadData, recordDownloadDetail} from "../../api/TcbHandler";
|
||||||
import {getParamDetailedValue, outerHtml} from "../../utils/util";
|
import {fillEmptyWith, getParamDetailedValue, outerHtml} from "../../utils/util";
|
||||||
import {handleDownloadImg, handleDownloadSvg} from "../../utils/gaHelper";
|
import {handleDownloadImg, handleDownloadSvg} from "../../utils/gaHelper";
|
||||||
|
import {appendPreset} from "../../utils/storageUtils";
|
||||||
|
import {svgToBase64} from "../../utils/imageUtils";
|
||||||
|
import React from "react";
|
||||||
|
import ReactDOMServer from "react-dom/server";
|
||||||
|
import JSZip from "jszip";
|
||||||
|
import {encodeData} from "../../utils/qrcodeHandler";
|
||||||
|
|
||||||
function saveDB(state, type, updateDownloadData) {
|
function saveDB(state, type, updateDownloadData) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
|
@ -40,20 +46,86 @@ function saveDB(state, type, updateDownloadData) {
|
||||||
const mapStateToProps = (state, ownProps) => ({
|
const mapStateToProps = (state, ownProps) => ({
|
||||||
value: state.value,
|
value: state.value,
|
||||||
downloadCount: state.downloadData[state.value],
|
downloadCount: state.downloadData[state.value],
|
||||||
onSvgDownload: () => {
|
batchMode: state.textUrlArray.length > 0,
|
||||||
saveSvg(state.value, outerHtml(state.selectedIndex));
|
onSvgDownload: async () => {
|
||||||
saveDB(state, 'svg', ownProps.updateDownloadData);
|
let data;
|
||||||
handleDownloadSvg(state.value);
|
if (state.textUrlArray.length === 0) {
|
||||||
},
|
data = saveSvg(state.value, outerHtml(state.selectedIndex));
|
||||||
onImgDownload: (type) => {
|
const filename = "QRcode_" + state.value + ".svg";
|
||||||
return new Promise(resolve => {
|
startTask(URL.createObjectURL(data), filename);
|
||||||
saveImg(state.value, outerHtml(state.selectedIndex), 1500, 1500, type).then((res) => {
|
} else {
|
||||||
saveDB(state, type, ownProps.updateDownloadData).then(() => {
|
const zip = new JSZip();
|
||||||
handleDownloadImg(state.value, type);
|
for (let i = 0; i < state.textUrlArray.length; i++) {
|
||||||
resolve(res)
|
const qrcode = encodeData({ text: state.textUrlArray[i], correctLevel: state.correctLevel });
|
||||||
|
const el = React.createElement(state.rendererType, {
|
||||||
|
qrcode: qrcode,
|
||||||
|
params: fillEmptyWith(state.paramValue[state.selectedIndex].slice(), 0),
|
||||||
|
title: state.title,
|
||||||
|
icon: state.icon,
|
||||||
|
setParamInfo: () => {}
|
||||||
});
|
});
|
||||||
});
|
data = saveSvg(state.value, ReactDOMServer.renderToString(el));
|
||||||
});
|
console.log(data)
|
||||||
|
const filename = "QRcode_" + state.value + "_" + i + ".svg";
|
||||||
|
zip.file(filename, data);
|
||||||
|
}
|
||||||
|
const href = URL.createObjectURL(await zip.generateAsync({ type: "blob" }));
|
||||||
|
startTask(href, "QRcode_" + state.value + ".zip");
|
||||||
|
}
|
||||||
|
|
||||||
|
await saveDB(state, 'svg', ownProps.updateDownloadData);
|
||||||
|
handleDownloadSvg(state.value);
|
||||||
|
return data;
|
||||||
|
},
|
||||||
|
onImgDownload: async (type) => {
|
||||||
|
let data;
|
||||||
|
if (state.textUrlArray.length === 0) {
|
||||||
|
data = await saveImg(state.value, outerHtml(state.selectedIndex), 1500, 1500, type);
|
||||||
|
const filename = "QRcode_" + state.value + "." + type;
|
||||||
|
startTask(data, filename);
|
||||||
|
} else {
|
||||||
|
const zip = new JSZip();
|
||||||
|
for (let i = 0; i < state.textUrlArray.length; i++) {
|
||||||
|
const qrcode = encodeData({ text: state.textUrlArray[i], correctLevel: state.correctLevel });
|
||||||
|
const el = React.createElement(state.rendererType, {
|
||||||
|
qrcode: qrcode,
|
||||||
|
params: fillEmptyWith(state.paramValue[state.selectedIndex].slice(), 0),
|
||||||
|
title: state.title,
|
||||||
|
icon: state.icon,
|
||||||
|
setParamInfo: () => {}
|
||||||
|
});
|
||||||
|
data = await saveImg(state.value, ReactDOMServer.renderToString(el), 1500, 1500, type);
|
||||||
|
const startIdx = data.indexOf("base64,") + "base64,".length;
|
||||||
|
const filename = "QRcode_" + state.value + "_" + i + "." + type;
|
||||||
|
zip.file(filename, data.substring(startIdx), {base64: true});
|
||||||
|
}
|
||||||
|
const href = URL.createObjectURL(await zip.generateAsync({ type: "blob" }));
|
||||||
|
startTask(href, "QRcode_" + state.value + ".zip");
|
||||||
|
}
|
||||||
|
|
||||||
|
await saveDB(state, type, ownProps.updateDownloadData)
|
||||||
|
handleDownloadImg(state.value, type);
|
||||||
|
return data;
|
||||||
|
},
|
||||||
|
savePreset: () => {
|
||||||
|
let preset = {
|
||||||
|
name: '测试预设',
|
||||||
|
selectedIndex: state.selectedIndex,
|
||||||
|
preview: svgToBase64(outerHtml(state.selectedIndex), 1500, 1500),
|
||||||
|
styleName: state.value,
|
||||||
|
params: state.paramInfo[state.selectedIndex].map((paramInfo, index) => {
|
||||||
|
return {
|
||||||
|
name: paramInfo.key,
|
||||||
|
value: state.paramValue[state.selectedIndex][index],
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
globalParams: new Array(3),
|
||||||
|
};
|
||||||
|
preset.globalParams[0] = {name: '容错率', value: state.correctLevel};
|
||||||
|
preset.globalParams[1] = {name: '图标', value: state.icon};
|
||||||
|
preset.globalParams[2] = {name: '文字', value: state.title};
|
||||||
|
appendPreset(preset);
|
||||||
|
alert('saved');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
import { connect } from 'react-redux';
|
||||||
|
import PresetModal from "../../components/preset/PresetModal";
|
||||||
|
import {getPresets} from "../../utils/storageUtils";
|
||||||
|
import {changeCorrectLevel, changeIcon, changeParam, changeStyle, changeTitle} from "../../actions";
|
||||||
|
|
||||||
|
const mapStateToProps = (state, ownProps) => ({
|
||||||
|
visible: ownProps.visible,
|
||||||
|
});
|
||||||
|
|
||||||
|
const mapDispatchToProps = (dispatch, ownProps) => ({
|
||||||
|
onClose: ownProps.onClose,
|
||||||
|
loadPreset: (preset) => {
|
||||||
|
dispatch(changeStyle(preset.selectedIndex, preset.styleName));
|
||||||
|
dispatch(changeCorrectLevel(preset.globalParams[0].value));
|
||||||
|
dispatch(changeIcon(preset.globalParams[1].value));
|
||||||
|
dispatch(changeTitle(preset.globalParams[2].value));
|
||||||
|
preset.params.forEach((param, index) => dispatch(changeParam(preset.selectedIndex, index, param.value)));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export default connect(mapStateToProps, mapDispatchToProps)(PresetModal);
|
|
@ -52,7 +52,7 @@ const mapStateToProps = state => ({
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
onSelected: rendererIndex => {
|
onSelected: rendererIndex => {
|
||||||
dispatch(changeStyle(rendererIndex, styles[rendererIndex].renderer, styles[rendererIndex].value))
|
dispatch(changeStyle(rendererIndex, styles[rendererIndex].value))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ const initialState = {
|
||||||
rendererType: RendererRect,
|
rendererType: RendererRect,
|
||||||
correctLevel: 0,
|
correctLevel: 0,
|
||||||
textUrl: QRBTF_URL,
|
textUrl: QRBTF_URL,
|
||||||
|
textUrlArray: [],
|
||||||
history: [],
|
history: [],
|
||||||
downloadData: [],
|
downloadData: [],
|
||||||
qrcode: encodeData({text: QRBTF_URL, correctLevel: 0}),
|
qrcode: encodeData({text: QRBTF_URL, correctLevel: 0}),
|
||||||
|
@ -26,7 +27,8 @@ export default function appReducer(state = initialState, action) {
|
||||||
if (!text || text.length === 0) text = QRBTF_URL;
|
if (!text || text.length === 0) text = QRBTF_URL;
|
||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
textUrl: text,
|
textUrl: text,
|
||||||
qrcode: encodeData({text: text, correctLevel: state.correctLevel})
|
qrcode: encodeData({text: text, correctLevel: state.correctLevel}),
|
||||||
|
textUrlArray: action.textArray || []
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
case actionTypes.CHANGE_STYLE: {
|
case actionTypes.CHANGE_STYLE: {
|
||||||
|
|
|
@ -3,23 +3,25 @@ const svgHead = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n " +
|
||||||
|
|
||||||
const MIME = { "jpg": "image/jpeg", "png": "image/png" };
|
const MIME = { "jpg": "image/jpeg", "png": "image/png" };
|
||||||
|
|
||||||
|
export function startTask(data, filename) {
|
||||||
|
let a = document.createElement('a');
|
||||||
|
a.setAttribute('href', data)
|
||||||
|
a.setAttribute('target', 'download')
|
||||||
|
a.setAttribute('download', filename);
|
||||||
|
a.setAttribute('hidden', true);
|
||||||
|
a.click();
|
||||||
|
}
|
||||||
|
|
||||||
export function saveSvg(value, content) {
|
export function saveSvg(value, content) {
|
||||||
let htmlContent = [svgHead + content]
|
let htmlContent = [svgHead + content]
|
||||||
let bl = new Blob(htmlContent, {type: "image/svg+xml"})
|
let bl = new Blob(htmlContent, {type: "image/svg+xml"})
|
||||||
let a = document.createElement("a")
|
return bl;
|
||||||
let filename = "QRcode_" + value + ".svg"
|
|
||||||
|
|
||||||
a.href = URL.createObjectURL(bl)
|
|
||||||
a.download = filename
|
|
||||||
a.hidden = true
|
|
||||||
a.click()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function saveImg(value, content, width, height, type) {
|
export function saveImg(value, content, width, height, type) {
|
||||||
if (!MIME[type]) throw "Error image type";
|
if (!MIME[type]) throw "Error image type";
|
||||||
|
|
||||||
// Finish creating downloadable data
|
// Finish creating downloadable data
|
||||||
let filename = "QRcode_" + value + "." + type;
|
|
||||||
const wrap = document.createElement('div');
|
const wrap = document.createElement('div');
|
||||||
wrap.innerHTML = content;
|
wrap.innerHTML = content;
|
||||||
|
|
||||||
|
@ -51,12 +53,8 @@ export function saveImg(value, content, width, height, type) {
|
||||||
// Will result in a download popup for chrome and the
|
// Will result in a download popup for chrome and the
|
||||||
// image opening in a new tab for others.
|
// image opening in a new tab for others.
|
||||||
|
|
||||||
let a = document.createElement('a');
|
|
||||||
let data = canvas.toDataURL(MIME[type], 0.8);
|
let data = canvas.toDataURL(MIME[type], 0.8);
|
||||||
a.setAttribute('href', data)
|
// startTask(data, filename);
|
||||||
a.setAttribute('target', 'download')
|
|
||||||
a.setAttribute('download', filename);
|
|
||||||
a.click();
|
|
||||||
|
|
||||||
resolve(data)
|
resolve(data)
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,6 +8,20 @@ export function isPicture(file) {
|
||||||
return fileTypes.includes(file.type);
|
return fileTypes.includes(file.type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function svgToBase64(content, width, height) {
|
||||||
|
const wrap = document.createElement('div');
|
||||||
|
wrap.innerHTML = content;
|
||||||
|
|
||||||
|
const $svg = wrap.firstChild
|
||||||
|
const $clone = $svg.cloneNode(true);
|
||||||
|
|
||||||
|
$clone.setAttribute('width', width);
|
||||||
|
$clone.setAttribute('height', height);
|
||||||
|
|
||||||
|
const svgData = new XMLSerializer().serializeToString($clone);
|
||||||
|
return 'data:image/svg+xml;base64,' + btoa(svgData);
|
||||||
|
}
|
||||||
|
|
||||||
export function toBase64(file, aspectRatio) {
|
export function toBase64(file, aspectRatio) {
|
||||||
let canvas = document.createElement('canvas');
|
let canvas = document.createElement('canvas');
|
||||||
let ctx = canvas.getContext('2d');
|
let ctx = canvas.getContext('2d');
|
||||||
|
@ -25,7 +39,6 @@ export function toBase64(file, aspectRatio) {
|
||||||
height = img.height;
|
height = img.height;
|
||||||
width = height * aspectRatio;
|
width = height * aspectRatio;
|
||||||
}
|
}
|
||||||
console.log(width + ' ' + height)
|
|
||||||
canvas.setAttribute('width', width);
|
canvas.setAttribute('width', width);
|
||||||
canvas.setAttribute('height', height);
|
canvas.setAttribute('height', height);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
const STORAGE_KEYS = {
|
||||||
|
PRESETS: 'presets'
|
||||||
|
};
|
||||||
|
|
||||||
|
export function getPresets() {
|
||||||
|
let presetArray = [];
|
||||||
|
const presetsValue = localStorage.getItem(STORAGE_KEYS.PRESETS);
|
||||||
|
if (presetsValue) {
|
||||||
|
presetArray = JSON.parse(presetsValue);
|
||||||
|
}
|
||||||
|
return presetArray;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function appendPreset(preset) {
|
||||||
|
const presets = getPresets();
|
||||||
|
presets.push(preset);
|
||||||
|
localStorage.setItem(STORAGE_KEYS.PRESETS, JSON.stringify(presets));
|
||||||
|
}
|
||||||
|
|
||||||
|
export function removePreset(index) {
|
||||||
|
const presets = getPresets();
|
||||||
|
presets.splice(index, 1);
|
||||||
|
localStorage.setItem(STORAGE_KEYS.PRESETS, JSON.stringify(presets));
|
||||||
|
}
|
192
yarn.lock
192
yarn.lock
|
@ -2005,7 +2005,7 @@ arr-flatten@^1.1.0:
|
||||||
|
|
||||||
arr-union@^3.1.0:
|
arr-union@^3.1.0:
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4"
|
resolved "https://registry.npm.taobao.org/arr-union/download/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4"
|
||||||
integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=
|
integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=
|
||||||
|
|
||||||
array-equal@^1.0.0:
|
array-equal@^1.0.0:
|
||||||
|
@ -2125,8 +2125,8 @@ async-each@^1.0.1:
|
||||||
|
|
||||||
async-limiter@~1.0.0:
|
async-limiter@~1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd"
|
resolved "https://registry.npm.taobao.org/async-limiter/download/async-limiter-1.0.1.tgz?cache=0&sync_timestamp=1574272018408&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fasync-limiter%2Fdownload%2Fasync-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd"
|
||||||
integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==
|
integrity sha1-3TeelPDbgxCwgpH51kwyCXZmF/0=
|
||||||
|
|
||||||
async@^2.6.2:
|
async@^2.6.2:
|
||||||
version "2.6.3"
|
version "2.6.3"
|
||||||
|
@ -2392,10 +2392,10 @@ bluebird@^3.5.5:
|
||||||
resolved "https://registry.npm.taobao.org/bluebird/download/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
|
resolved "https://registry.npm.taobao.org/bluebird/download/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
|
||||||
integrity sha1-nyKcFb4nJFT/qXOs4NvueaGww28=
|
integrity sha1-nyKcFb4nJFT/qXOs4NvueaGww28=
|
||||||
|
|
||||||
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9:
|
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.4.0:
|
||||||
version "4.12.0"
|
version "4.11.9"
|
||||||
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88"
|
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.9.tgz#26d556829458f9d1e81fc48952493d0ba3507828"
|
||||||
integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==
|
integrity sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==
|
||||||
|
|
||||||
bn.js@^5.1.1:
|
bn.js@^5.1.1:
|
||||||
version "5.1.1"
|
version "5.1.1"
|
||||||
|
@ -2466,7 +2466,7 @@ braces@~3.0.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
fill-range "^7.0.1"
|
fill-range "^7.0.1"
|
||||||
|
|
||||||
brorand@^1.0.1, brorand@^1.1.0:
|
brorand@^1.0.1:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
|
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
|
||||||
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=
|
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=
|
||||||
|
@ -2916,7 +2916,7 @@ cliui@^5.0.0:
|
||||||
|
|
||||||
clone-deep@^0.2.4:
|
clone-deep@^0.2.4:
|
||||||
version "0.2.4"
|
version "0.2.4"
|
||||||
resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-0.2.4.tgz#4e73dd09e9fb971cc38670c5dced9c1896481cc6"
|
resolved "https://registry.npm.taobao.org/clone-deep/download/clone-deep-0.2.4.tgz#4e73dd09e9fb971cc38670c5dced9c1896481cc6"
|
||||||
integrity sha1-TnPdCen7lxzDhnDF3O2cGJZIHMY=
|
integrity sha1-TnPdCen7lxzDhnDF3O2cGJZIHMY=
|
||||||
dependencies:
|
dependencies:
|
||||||
for-own "^0.1.3"
|
for-own "^0.1.3"
|
||||||
|
@ -2993,9 +2993,9 @@ color-name@^1.0.0, color-name@~1.1.4:
|
||||||
integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=
|
integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=
|
||||||
|
|
||||||
color-string@^1.5.2:
|
color-string@^1.5.2:
|
||||||
version "1.6.0"
|
version "1.5.3"
|
||||||
resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.6.0.tgz#c3915f61fe267672cb7e1e064c9d692219f6c312"
|
resolved "https://registry.npm.taobao.org/color-string/download/color-string-1.5.3.tgz#c9bbc5f01b58b5492f3d6857459cb6590ce204cc"
|
||||||
integrity sha512-c/hGS+kRWJutUBEngKKmk4iH3sD59MBkoxVapS/0wgpCz2u7XsNloxknyvBhzwEs1IbV36D9PwqLPJ2DTu3vMA==
|
integrity sha1-ybvF8BtYtUkvPWhXRZy2WQziBMw=
|
||||||
dependencies:
|
dependencies:
|
||||||
color-name "^1.0.0"
|
color-name "^1.0.0"
|
||||||
simple-swizzle "^0.2.2"
|
simple-swizzle "^0.2.2"
|
||||||
|
@ -3719,9 +3719,9 @@ dns-equal@^1.0.0:
|
||||||
integrity sha1-s55/HabrCnW6nBcySzR1PEfgZU0=
|
integrity sha1-s55/HabrCnW6nBcySzR1PEfgZU0=
|
||||||
|
|
||||||
dns-packet@^1.3.1:
|
dns-packet@^1.3.1:
|
||||||
version "1.3.4"
|
version "1.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-1.3.4.tgz#e3455065824a2507ba886c55a89963bb107dec6f"
|
resolved "https://registry.npm.taobao.org/dns-packet/download/dns-packet-1.3.1.tgz#12aa426981075be500b910eedcd0b47dd7deda5a"
|
||||||
integrity sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==
|
integrity sha1-EqpCaYEHW+UAuRDu3NC0fdfe2lo=
|
||||||
dependencies:
|
dependencies:
|
||||||
ip "^1.1.0"
|
ip "^1.1.0"
|
||||||
safe-buffer "^5.0.1"
|
safe-buffer "^5.0.1"
|
||||||
|
@ -3884,17 +3884,17 @@ electron-to-chromium@^1.3.378, electron-to-chromium@^1.3.413:
|
||||||
integrity sha1-YvluBSn0CiFKl0EbV/J8TwgPCqI=
|
integrity sha1-YvluBSn0CiFKl0EbV/J8TwgPCqI=
|
||||||
|
|
||||||
elliptic@^6.0.0, elliptic@^6.5.2:
|
elliptic@^6.0.0, elliptic@^6.5.2:
|
||||||
version "6.5.4"
|
version "6.5.3"
|
||||||
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
|
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6"
|
||||||
integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==
|
integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==
|
||||||
dependencies:
|
dependencies:
|
||||||
bn.js "^4.11.9"
|
bn.js "^4.4.0"
|
||||||
brorand "^1.1.0"
|
brorand "^1.0.1"
|
||||||
hash.js "^1.0.0"
|
hash.js "^1.0.0"
|
||||||
hmac-drbg "^1.0.1"
|
hmac-drbg "^1.0.0"
|
||||||
inherits "^2.0.4"
|
inherits "^2.0.1"
|
||||||
minimalistic-assert "^1.0.1"
|
minimalistic-assert "^1.0.0"
|
||||||
minimalistic-crypto-utils "^1.0.1"
|
minimalistic-crypto-utils "^1.0.0"
|
||||||
|
|
||||||
emoji-regex@^7.0.1, emoji-regex@^7.0.2:
|
emoji-regex@^7.0.1, emoji-regex@^7.0.2:
|
||||||
version "7.0.3"
|
version "7.0.3"
|
||||||
|
@ -4311,6 +4311,11 @@ execa@^1.0.0:
|
||||||
signal-exit "^3.0.0"
|
signal-exit "^3.0.0"
|
||||||
strip-eof "^1.0.0"
|
strip-eof "^1.0.0"
|
||||||
|
|
||||||
|
exenv@^1.2.0:
|
||||||
|
version "1.2.2"
|
||||||
|
resolved "https://registry.npm.taobao.org/exenv/download/exenv-1.2.2.tgz#2ae78e85d9894158670b03d47bec1f03bd91bb9d"
|
||||||
|
integrity sha1-KueOhdmJQVhnCwPUe+wfA72Ru50=
|
||||||
|
|
||||||
exit@^0.1.2:
|
exit@^0.1.2:
|
||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.npm.taobao.org/exit/download/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"
|
resolved "https://registry.npm.taobao.org/exit/download/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"
|
||||||
|
@ -4487,8 +4492,8 @@ fb-watchman@^2.0.0:
|
||||||
|
|
||||||
figgy-pudding@^3.5.1:
|
figgy-pudding@^3.5.1:
|
||||||
version "3.5.2"
|
version "3.5.2"
|
||||||
resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e"
|
resolved "https://registry.npm.taobao.org/figgy-pudding/download/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e"
|
||||||
integrity sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==
|
integrity sha1-tO7oFIq7Adzx0aw0Nn1Z4S+mHW4=
|
||||||
|
|
||||||
figures@^3.0.0:
|
figures@^3.0.0:
|
||||||
version "3.2.0"
|
version "3.2.0"
|
||||||
|
@ -4657,17 +4662,17 @@ follow-redirects@^1.0.0:
|
||||||
|
|
||||||
for-in@^0.1.3:
|
for-in@^0.1.3:
|
||||||
version "0.1.8"
|
version "0.1.8"
|
||||||
resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.8.tgz#d8773908e31256109952b1fdb9b3fa867d2775e1"
|
resolved "https://registry.npm.taobao.org/for-in/download/for-in-0.1.8.tgz#d8773908e31256109952b1fdb9b3fa867d2775e1"
|
||||||
integrity sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=
|
integrity sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=
|
||||||
|
|
||||||
for-in@^1.0.1, for-in@^1.0.2:
|
for-in@^1.0.1, for-in@^1.0.2:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
resolved "https://registry.npm.taobao.org/for-in/download/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
||||||
integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=
|
integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=
|
||||||
|
|
||||||
for-own@^0.1.3:
|
for-own@^0.1.3:
|
||||||
version "0.1.5"
|
version "0.1.5"
|
||||||
resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce"
|
resolved "https://registry.npm.taobao.org/for-own/download/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce"
|
||||||
integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=
|
integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=
|
||||||
dependencies:
|
dependencies:
|
||||||
for-in "^1.0.1"
|
for-in "^1.0.1"
|
||||||
|
@ -5058,7 +5063,7 @@ hex-color-regex@^1.1.0:
|
||||||
resolved "https://registry.npm.taobao.org/hex-color-regex/download/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
|
resolved "https://registry.npm.taobao.org/hex-color-regex/download/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
|
||||||
integrity sha1-TAb8y0YC/iYCs8k9+C1+fb8aio4=
|
integrity sha1-TAb8y0YC/iYCs8k9+C1+fb8aio4=
|
||||||
|
|
||||||
hmac-drbg@^1.0.1:
|
hmac-drbg@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
|
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
|
||||||
integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=
|
integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=
|
||||||
|
@ -5075,9 +5080,9 @@ hoist-non-react-statics@^3.3.0:
|
||||||
react-is "^16.7.0"
|
react-is "^16.7.0"
|
||||||
|
|
||||||
hosted-git-info@^2.1.4:
|
hosted-git-info@^2.1.4:
|
||||||
version "2.8.9"
|
version "2.8.8"
|
||||||
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9"
|
resolved "https://registry.npm.taobao.org/hosted-git-info/download/hosted-git-info-2.8.8.tgz?cache=0&sync_timestamp=1583017392137&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhosted-git-info%2Fdownload%2Fhosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488"
|
||||||
integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==
|
integrity sha1-dTm9S8Hg4KiVgVouAmJCCxKFhIg=
|
||||||
|
|
||||||
hpack.js@^2.1.6:
|
hpack.js@^2.1.6:
|
||||||
version "2.1.6"
|
version "2.1.6"
|
||||||
|
@ -5274,6 +5279,11 @@ ignore@^4.0.6:
|
||||||
resolved "https://registry.npm.taobao.org/ignore/download/ignore-4.0.6.tgz?cache=0&sync_timestamp=1565775199290&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fignore%2Fdownload%2Fignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
|
resolved "https://registry.npm.taobao.org/ignore/download/ignore-4.0.6.tgz?cache=0&sync_timestamp=1565775199290&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fignore%2Fdownload%2Fignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
|
||||||
integrity sha1-dQ49tYYgh7RzfrrIIH/9HvJ7Jfw=
|
integrity sha1-dQ49tYYgh7RzfrrIIH/9HvJ7Jfw=
|
||||||
|
|
||||||
|
immediate@~3.0.5:
|
||||||
|
version "3.0.6"
|
||||||
|
resolved "https://registry.nlark.com/immediate/download/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b"
|
||||||
|
integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=
|
||||||
|
|
||||||
immer@1.10.0:
|
immer@1.10.0:
|
||||||
version "1.10.0"
|
version "1.10.0"
|
||||||
resolved "https://registry.npm.taobao.org/immer/download/immer-1.10.0.tgz#bad67605ba9c810275d91e1c2a47d4582e98286d"
|
resolved "https://registry.npm.taobao.org/immer/download/immer-1.10.0.tgz#bad67605ba9c810275d91e1c2a47d4582e98286d"
|
||||||
|
@ -5483,8 +5493,8 @@ is-arrayish@^0.2.1:
|
||||||
|
|
||||||
is-arrayish@^0.3.1:
|
is-arrayish@^0.3.1:
|
||||||
version "0.3.2"
|
version "0.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03"
|
resolved "https://registry.npm.taobao.org/is-arrayish/download/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03"
|
||||||
integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==
|
integrity sha1-RXSirlb3qyBolvtDHq7tBm/fjwM=
|
||||||
|
|
||||||
is-binary-path@^1.0.0:
|
is-binary-path@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
|
@ -5502,8 +5512,8 @@ is-binary-path@~2.1.0:
|
||||||
|
|
||||||
is-buffer@^1.0.2, is-buffer@^1.1.5:
|
is-buffer@^1.0.2, is-buffer@^1.1.5:
|
||||||
version "1.1.6"
|
version "1.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
|
resolved "https://registry.npm.taobao.org/is-buffer/download/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
|
||||||
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==
|
integrity sha1-76ouqdqg16suoTqXsritUf776L4=
|
||||||
|
|
||||||
is-callable@^1.1.4, is-callable@^1.1.5:
|
is-callable@^1.1.4, is-callable@^1.1.5:
|
||||||
version "1.1.5"
|
version "1.1.5"
|
||||||
|
@ -5769,7 +5779,7 @@ isobject@^2.0.0:
|
||||||
|
|
||||||
isobject@^3.0.0, isobject@^3.0.1:
|
isobject@^3.0.0, isobject@^3.0.1:
|
||||||
version "3.0.1"
|
version "3.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
|
resolved "https://registry.npm.taobao.org/isobject/download/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
|
||||||
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
|
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
|
||||||
|
|
||||||
isstream@~0.1.2:
|
isstream@~0.1.2:
|
||||||
|
@ -6392,6 +6402,16 @@ jsx-ast-utils@^2.2.1, jsx-ast-utils@^2.2.3:
|
||||||
array-includes "^3.0.3"
|
array-includes "^3.0.3"
|
||||||
object.assign "^4.1.0"
|
object.assign "^4.1.0"
|
||||||
|
|
||||||
|
jszip@^3.7.1:
|
||||||
|
version "3.7.1"
|
||||||
|
resolved "https://registry.nlark.com/jszip/download/jszip-3.7.1.tgz#bd63401221c15625a1228c556ca8a68da6fda3d9"
|
||||||
|
integrity sha1-vWNAEiHBViWhIoxVbKimjab9o9k=
|
||||||
|
dependencies:
|
||||||
|
lie "~3.3.0"
|
||||||
|
pako "~1.0.2"
|
||||||
|
readable-stream "~2.3.6"
|
||||||
|
set-immediate-shim "~1.0.1"
|
||||||
|
|
||||||
killable@^1.0.1:
|
killable@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.npm.taobao.org/killable/download/killable-1.0.1.tgz#4c8ce441187a061c7474fb87ca08e2a638194892"
|
resolved "https://registry.npm.taobao.org/killable/download/killable-1.0.1.tgz#4c8ce441187a061c7474fb87ca08e2a638194892"
|
||||||
|
@ -6399,14 +6419,14 @@ killable@^1.0.1:
|
||||||
|
|
||||||
kind-of@^2.0.1:
|
kind-of@^2.0.1:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-2.0.1.tgz#018ec7a4ce7e3a86cb9141be519d24c8faa981b5"
|
resolved "https://registry.npm.taobao.org/kind-of/download/kind-of-2.0.1.tgz#018ec7a4ce7e3a86cb9141be519d24c8faa981b5"
|
||||||
integrity sha1-AY7HpM5+OobLkUG+UZ0kyPqpgbU=
|
integrity sha1-AY7HpM5+OobLkUG+UZ0kyPqpgbU=
|
||||||
dependencies:
|
dependencies:
|
||||||
is-buffer "^1.0.2"
|
is-buffer "^1.0.2"
|
||||||
|
|
||||||
kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
|
kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
|
||||||
version "3.2.2"
|
version "3.2.2"
|
||||||
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
|
resolved "https://registry.npm.taobao.org/kind-of/download/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
|
||||||
integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=
|
integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=
|
||||||
dependencies:
|
dependencies:
|
||||||
is-buffer "^1.1.5"
|
is-buffer "^1.1.5"
|
||||||
|
@ -6443,12 +6463,12 @@ last-call-webpack-plugin@^3.0.0:
|
||||||
|
|
||||||
lazy-cache@^0.2.3:
|
lazy-cache@^0.2.3:
|
||||||
version "0.2.7"
|
version "0.2.7"
|
||||||
resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-0.2.7.tgz#7feddf2dcb6edb77d11ef1d117ab5ffdf0ab1b65"
|
resolved "https://registry.npm.taobao.org/lazy-cache/download/lazy-cache-0.2.7.tgz#7feddf2dcb6edb77d11ef1d117ab5ffdf0ab1b65"
|
||||||
integrity sha1-f+3fLctu23fRHvHRF6tf/fCrG2U=
|
integrity sha1-f+3fLctu23fRHvHRF6tf/fCrG2U=
|
||||||
|
|
||||||
lazy-cache@^1.0.3:
|
lazy-cache@^1.0.3:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
|
resolved "https://registry.npm.taobao.org/lazy-cache/download/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
|
||||||
integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4=
|
integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4=
|
||||||
|
|
||||||
lcid@^2.0.0:
|
lcid@^2.0.0:
|
||||||
|
@ -6483,6 +6503,13 @@ levn@^0.3.0, levn@~0.3.0:
|
||||||
prelude-ls "~1.1.2"
|
prelude-ls "~1.1.2"
|
||||||
type-check "~0.3.2"
|
type-check "~0.3.2"
|
||||||
|
|
||||||
|
lie@~3.3.0:
|
||||||
|
version "3.3.0"
|
||||||
|
resolved "https://registry.nlark.com/lie/download/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a"
|
||||||
|
integrity sha1-3Pgt7lRfRgdNryAMfBxaCOD0D2o=
|
||||||
|
dependencies:
|
||||||
|
immediate "~3.0.5"
|
||||||
|
|
||||||
lines-and-columns@^1.1.6:
|
lines-and-columns@^1.1.6:
|
||||||
version "1.1.6"
|
version "1.1.6"
|
||||||
resolved "https://registry.npm.taobao.org/lines-and-columns/download/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
|
resolved "https://registry.npm.taobao.org/lines-and-columns/download/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00"
|
||||||
|
@ -6764,9 +6791,9 @@ memory-fs@^0.5.0:
|
||||||
readable-stream "^2.0.1"
|
readable-stream "^2.0.1"
|
||||||
|
|
||||||
merge-deep@^3.0.2:
|
merge-deep@^3.0.2:
|
||||||
version "3.0.3"
|
version "3.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/merge-deep/-/merge-deep-3.0.3.tgz#1a2b2ae926da8b2ae93a0ac15d90cd1922766003"
|
resolved "https://registry.npm.taobao.org/merge-deep/download/merge-deep-3.0.2.tgz#f39fa100a4f1bd34ff29f7d2bf4508fbb8d83ad2"
|
||||||
integrity sha512-qtmzAS6t6grwEkNrunqTBdn0qKwFgNWvlxUbAV8es9M7Ot1EbyApytCnvE0jALPa46ZpKDUo527kKiaWplmlFA==
|
integrity sha1-85+hAKTxvTT/KffSv0UI+7jYOtI=
|
||||||
dependencies:
|
dependencies:
|
||||||
arr-union "^3.1.0"
|
arr-union "^3.1.0"
|
||||||
clone-deep "^0.2.4"
|
clone-deep "^0.2.4"
|
||||||
|
@ -6871,7 +6898,7 @@ minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
|
||||||
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
|
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
|
||||||
integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
|
integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
|
||||||
|
|
||||||
minimalistic-crypto-utils@^1.0.1:
|
minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
|
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
|
||||||
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=
|
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=
|
||||||
|
@ -6942,7 +6969,7 @@ mixin-deep@^1.2.0:
|
||||||
|
|
||||||
mixin-object@^2.0.1:
|
mixin-object@^2.0.1:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/mixin-object/-/mixin-object-2.0.1.tgz#4fb949441dab182540f1fe035ba60e1947a5e57e"
|
resolved "https://registry.npm.taobao.org/mixin-object/download/mixin-object-2.0.1.tgz#4fb949441dab182540f1fe035ba60e1947a5e57e"
|
||||||
integrity sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4=
|
integrity sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4=
|
||||||
dependencies:
|
dependencies:
|
||||||
for-in "^0.1.3"
|
for-in "^0.1.3"
|
||||||
|
@ -7478,7 +7505,7 @@ p-try@^2.0.0:
|
||||||
resolved "https://registry.npm.taobao.org/p-try/download/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
|
resolved "https://registry.npm.taobao.org/p-try/download/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
|
||||||
integrity sha1-yyhoVA4xPWHeWPr741zpAE1VQOY=
|
integrity sha1-yyhoVA4xPWHeWPr741zpAE1VQOY=
|
||||||
|
|
||||||
pako@~1.0.5:
|
pako@~1.0.2, pako@~1.0.5:
|
||||||
version "1.0.11"
|
version "1.0.11"
|
||||||
resolved "https://registry.npm.taobao.org/pako/download/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
|
resolved "https://registry.npm.taobao.org/pako/download/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
|
||||||
integrity sha1-bJWZ00DVTf05RjgCUqNXBaa5kr8=
|
integrity sha1-bJWZ00DVTf05RjgCUqNXBaa5kr8=
|
||||||
|
@ -7620,9 +7647,9 @@ path-key@^3.1.0:
|
||||||
integrity sha1-WB9q3mWMu6ZaDTOA3ndTKVBU83U=
|
integrity sha1-WB9q3mWMu6ZaDTOA3ndTKVBU83U=
|
||||||
|
|
||||||
path-parse@^1.0.6:
|
path-parse@^1.0.6:
|
||||||
version "1.0.7"
|
version "1.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
|
resolved "https://registry.npm.taobao.org/path-parse/download/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
|
||||||
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
|
integrity sha1-1i27VnlAXXLEc37FhgDp3c8G0kw=
|
||||||
|
|
||||||
path-to-regexp@0.1.7:
|
path-to-regexp@0.1.7:
|
||||||
version "0.1.7"
|
version "0.1.7"
|
||||||
|
@ -8628,9 +8655,9 @@ querystring@0.2.0:
|
||||||
integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=
|
integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=
|
||||||
|
|
||||||
querystringify@^2.1.1:
|
querystringify@^2.1.1:
|
||||||
version "2.2.0"
|
version "2.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6"
|
resolved "https://registry.npm.taobao.org/querystringify/download/querystringify-2.1.1.tgz#60e5a5fd64a7f8bfa4d2ab2ed6fdf4c85bad154e"
|
||||||
integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==
|
integrity sha1-YOWl/WSn+L+k0qsu1v30yFutFU4=
|
||||||
|
|
||||||
raf@^3.4.1:
|
raf@^3.4.1:
|
||||||
version "3.4.1"
|
version "3.4.1"
|
||||||
|
@ -8774,6 +8801,21 @@ react-lazy-load@^3.0.13:
|
||||||
lodash.throttle "^4.0.0"
|
lodash.throttle "^4.0.0"
|
||||||
prop-types "^15.5.8"
|
prop-types "^15.5.8"
|
||||||
|
|
||||||
|
react-lifecycles-compat@^3.0.0:
|
||||||
|
version "3.0.4"
|
||||||
|
resolved "https://registry.npm.taobao.org/react-lifecycles-compat/download/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
|
||||||
|
integrity sha1-TxonOv38jzSIqMUWv9p4+HI1I2I=
|
||||||
|
|
||||||
|
react-modal@^3.12.1:
|
||||||
|
version "3.12.1"
|
||||||
|
resolved "https://registry.npm.taobao.org/react-modal/download/react-modal-3.12.1.tgz?cache=0&sync_timestamp=1606096428365&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freact-modal%2Fdownload%2Freact-modal-3.12.1.tgz#38c33f70d81c33d02ff1ed115530443a3dc2afd3"
|
||||||
|
integrity sha1-OMM/cNgcM9Av8e0RVTBEOj3Cr9M=
|
||||||
|
dependencies:
|
||||||
|
exenv "^1.2.0"
|
||||||
|
prop-types "^15.5.10"
|
||||||
|
react-lifecycles-compat "^3.0.0"
|
||||||
|
warning "^4.0.3"
|
||||||
|
|
||||||
react-redux@^7.2.0:
|
react-redux@^7.2.0:
|
||||||
version "7.2.0"
|
version "7.2.0"
|
||||||
resolved "https://registry.npm.taobao.org/react-redux/download/react-redux-7.2.0.tgz#f970f62192b3981642fec46fd0db18a074fe879d"
|
resolved "https://registry.npm.taobao.org/react-redux/download/react-redux-7.2.0.tgz#f970f62192b3981642fec46fd0db18a074fe879d"
|
||||||
|
@ -9155,7 +9197,7 @@ require-main-filename@^2.0.0:
|
||||||
|
|
||||||
requires-port@^1.0.0:
|
requires-port@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
|
resolved "https://registry.npm.taobao.org/requires-port/download/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
|
||||||
integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=
|
integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=
|
||||||
|
|
||||||
resolve-cwd@^2.0.0:
|
resolve-cwd@^2.0.0:
|
||||||
|
@ -9483,6 +9525,11 @@ set-blocking@^2.0.0:
|
||||||
resolved "https://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
|
resolved "https://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
|
||||||
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
|
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
|
||||||
|
|
||||||
|
set-immediate-shim@~1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.nlark.com/set-immediate-shim/download/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61"
|
||||||
|
integrity sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=
|
||||||
|
|
||||||
set-value@^2.0.0, set-value@^2.0.1:
|
set-value@^2.0.0, set-value@^2.0.1:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.npm.taobao.org/set-value/download/set-value-2.0.1.tgz?cache=0&sync_timestamp=1585775409029&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fset-value%2Fdownload%2Fset-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b"
|
resolved "https://registry.npm.taobao.org/set-value/download/set-value-2.0.1.tgz?cache=0&sync_timestamp=1585775409029&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fset-value%2Fdownload%2Fset-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b"
|
||||||
|
@ -9518,7 +9565,7 @@ sha.js@^2.4.0, sha.js@^2.4.8:
|
||||||
|
|
||||||
shallow-clone@^0.1.2:
|
shallow-clone@^0.1.2:
|
||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-0.1.2.tgz#5909e874ba77106d73ac414cfec1ffca87d97060"
|
resolved "https://registry.npm.taobao.org/shallow-clone/download/shallow-clone-0.1.2.tgz#5909e874ba77106d73ac414cfec1ffca87d97060"
|
||||||
integrity sha1-WQnodLp3EG1zrEFM/sH/yofZcGA=
|
integrity sha1-WQnodLp3EG1zrEFM/sH/yofZcGA=
|
||||||
dependencies:
|
dependencies:
|
||||||
is-extendable "^0.1.1"
|
is-extendable "^0.1.1"
|
||||||
|
@ -9582,7 +9629,7 @@ signal-exit@^3.0.0, signal-exit@^3.0.2:
|
||||||
|
|
||||||
simple-swizzle@^0.2.2:
|
simple-swizzle@^0.2.2:
|
||||||
version "0.2.2"
|
version "0.2.2"
|
||||||
resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a"
|
resolved "https://registry.npm.taobao.org/simple-swizzle/download/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a"
|
||||||
integrity sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=
|
integrity sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=
|
||||||
dependencies:
|
dependencies:
|
||||||
is-arrayish "^0.3.1"
|
is-arrayish "^0.3.1"
|
||||||
|
@ -9789,9 +9836,9 @@ sshpk@^1.7.0:
|
||||||
tweetnacl "~0.14.0"
|
tweetnacl "~0.14.0"
|
||||||
|
|
||||||
ssri@^6.0.1:
|
ssri@^6.0.1:
|
||||||
version "6.0.2"
|
version "6.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.2.tgz#157939134f20464e7301ddba3e90ffa8f7728ac5"
|
resolved "https://registry.npm.taobao.org/ssri/download/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8"
|
||||||
integrity sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==
|
integrity sha1-KjxBso3UW2K2Nnbst0ABJlrp7dg=
|
||||||
dependencies:
|
dependencies:
|
||||||
figgy-pudding "^3.5.1"
|
figgy-pudding "^3.5.1"
|
||||||
|
|
||||||
|
@ -10253,9 +10300,9 @@ tmp@^0.0.33:
|
||||||
os-tmpdir "~1.0.2"
|
os-tmpdir "~1.0.2"
|
||||||
|
|
||||||
tmpl@1.0.x:
|
tmpl@1.0.x:
|
||||||
version "1.0.5"
|
version "1.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc"
|
resolved "https://registry.npm.taobao.org/tmpl/download/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1"
|
||||||
integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==
|
integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=
|
||||||
|
|
||||||
to-arraybuffer@^1.0.0:
|
to-arraybuffer@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
|
@ -10505,9 +10552,9 @@ url-loader@2.3.0:
|
||||||
schema-utils "^2.5.0"
|
schema-utils "^2.5.0"
|
||||||
|
|
||||||
url-parse@^1.4.3:
|
url-parse@^1.4.3:
|
||||||
version "1.5.3"
|
version "1.4.7"
|
||||||
resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.3.tgz#71c1303d38fb6639ade183c2992c8cc0686df862"
|
resolved "https://registry.npm.taobao.org/url-parse/download/url-parse-1.4.7.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Furl-parse%2Fdownload%2Furl-parse-1.4.7.tgz#a8a83535e8c00a316e403a5db4ac1b9b853ae278"
|
||||||
integrity sha512-IIORyIQD9rvj0A4CLWsHkBBJuNqWpFQe224b6j9t/ABmquIS0qDU2pY6kl6AuOrL5OkCXHMCFNe1jBcuAggjvQ==
|
integrity sha1-qKg1NejACjFuQDpdtKwbm4U64ng=
|
||||||
dependencies:
|
dependencies:
|
||||||
querystringify "^2.1.1"
|
querystringify "^2.1.1"
|
||||||
requires-port "^1.0.0"
|
requires-port "^1.0.0"
|
||||||
|
@ -10642,6 +10689,13 @@ walker@^1.0.7, walker@~1.0.5:
|
||||||
dependencies:
|
dependencies:
|
||||||
makeerror "1.0.x"
|
makeerror "1.0.x"
|
||||||
|
|
||||||
|
warning@^4.0.3:
|
||||||
|
version "4.0.3"
|
||||||
|
resolved "https://registry.npm.taobao.org/warning/download/warning-4.0.3.tgz#16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3"
|
||||||
|
integrity sha1-Fungd+uKhtavfWSqHgX9hbRnjKM=
|
||||||
|
dependencies:
|
||||||
|
loose-envify "^1.0.0"
|
||||||
|
|
||||||
watchpack-chokidar2@^2.0.0:
|
watchpack-chokidar2@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.npm.taobao.org/watchpack-chokidar2/download/watchpack-chokidar2-2.0.0.tgz#9948a1866cbbd6cb824dea13a7ed691f6c8ddff0"
|
resolved "https://registry.npm.taobao.org/watchpack-chokidar2/download/watchpack-chokidar2-2.0.0.tgz#9948a1866cbbd6cb824dea13a7ed691f6c8ddff0"
|
||||||
|
@ -11038,9 +11092,9 @@ write@1.0.3:
|
||||||
mkdirp "^0.5.1"
|
mkdirp "^0.5.1"
|
||||||
|
|
||||||
ws@^5.2.0:
|
ws@^5.2.0:
|
||||||
version "5.2.3"
|
version "5.2.2"
|
||||||
resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.3.tgz#05541053414921bc29c63bee14b8b0dd50b07b3d"
|
resolved "https://registry.npm.taobao.org/ws/download/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f"
|
||||||
integrity sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA==
|
integrity sha1-3/7xSGa46NyRM1glFNG++vlumA8=
|
||||||
dependencies:
|
dependencies:
|
||||||
async-limiter "~1.0.0"
|
async-limiter "~1.0.0"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue