Skip to content

Commit 45e9797

Browse files
修复qrcode.decode的问题;同时新增本地包的安装和测试教程
1 parent e080a23 commit 45e9797

File tree

10 files changed

+31
-14
lines changed

10 files changed

+31
-14
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ FeHelper For Chrome&Firefox&MS-Edge
44

55
![FeHelper](https://user-images.githubusercontent.com/865735/75407628-7399c580-594e-11ea-8ef2-00adf39d61a8.jpg)
66

7-
[![Google Chrome](https://img.shields.io/chrome-web-store/v/pkgccpejnmalmdinmhkkfafefagiiiad.svg?logo=Google%20Chrome&logoColor=red&color=blue)](https://chrome.google.com/webstore/detail/pkgccpejnmalmdinmhkkfafefagiiiad)
8-
[![Google Chrome](https://img.shields.io/chrome-web-store/stars/pkgccpejnmalmdinmhkkfafefagiiiad.svg?logo=Google%20Chrome&logoColor=red&color=blue)](https://chrome.google.com/webstore/detail/pkgccpejnmalmdinmhkkfafefagiiiad)
7+
[![Google Chrome](https://img.shields.io/chrome-web-store/v/pkgccpejnmalmdinmhkkfafefagiiiad.svg?logo=Google%20Chrome&logoColor=red&color=blue)](https://chrome.google.com/webstore/detail/pkgccpejnmalmdinmhkkfafefagiiiad)
8+
[![Google Chrome](https://img.shields.io/chrome-web-store/stars/pkgccpejnmalmdinmhkkfafefagiiiad.svg?logo=Google%20Chrome&logoColor=red&color=blue)](https://chrome.google.com/webstore/detail/pkgccpejnmalmdinmhkkfafefagiiiad)
99
[![Google Chrome](https://img.shields.io/chrome-web-store/users/pkgccpejnmalmdinmhkkfafefagiiiad.svg?logo=Google%20Chrome&logoColor=red&color=blue)](https://chrome.google.com/webstore/detail/pkgccpejnmalmdinmhkkfafefagiiiad)
1010

1111

@@ -15,12 +15,12 @@ https://www.baidufe.com/fehelper/index/index.html
1515
### 1、扩展示例
1616
![Web前端助手-FeHelper](https://user-images.githubusercontent.com/865735/75407048-020d4780-594d-11ea-9dd6-48f6d5774c2f.png)
1717

18-
### 2、关于新版
18+
### 2、关于新版
1919
- 新版本的FeHelper,是以开放平台为思路的设计,详细了解FeHelper新版,可以参考链接:
2020
- [FeHelper-开放平台版介绍文档](/README_NEW.md)
2121
- [开放平台思路下的FeHelper-阿烈叔的博客](https://www.baidufe.com/item/5b1e07d6f5106b6907bc.html)
2222
- 新版本FeHelper在一个新的`私有仓储`,待打磨得足够细腻了,再考虑开源
23-
23+
2424
![FeHelper新版](https://user-images.githubusercontent.com/865735/75334978-b5315e80-58c3-11ea-9af0-e593149b0f7c.png)
2525

2626

@@ -31,7 +31,7 @@ https://chrome.google.com/webstore/detail/pkgccpejnmalmdinmhkkfafefagiiiad?hl=zh
3131

3232
- 官网安装,你可能需要额外的梯子
3333
- [谷歌访问助手(官方正式版)](http://www.ggfwzs.com/)
34-
- [谷歌访问助手(发烧友破解版)](https://github.com/haotian-wang/google-access-helper)
34+
- [谷歌访问助手(发烧友破解版)](https://github.com/haotian-wang/google-access-helper)
3535

3636
### 2、Microsoft Edge Addons
3737
https://microsoftedge.microsoft.com/addons/detail/feolnkbgcbjmamimpfcnklggdcbgakhe?hl=zh-CN
@@ -71,7 +71,8 @@ https://microsoftedge.microsoft.com/addons/detail/feolnkbgcbjmamimpfcnklggdcbgak
7171
- 多维小工具集(进制转换、RGB/HEX颜色转换、Crontab、还款计算器等)
7272
- 网页油猴工具(网页特效、网页定制、脚本注入、自动刷新等)
7373
- 我的便签笔记(便签笔记,支持导出)
74-
- 便捷思维导图(网页版的脑图工具)
74+
- Excel2Json(Excel转Json工具)
75+
- Websocket(ws://的抓包调试工具)
7576
- ... 更多工具,请去官网查看:https://www.baidufe.com/fehelper/index/index.html
7677

7778
### 四、使用方法

README_TEST.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## FeHelper测试说明书
2+
3+
> 本教程主要用于 output/fehelper.zip 包的本地测试,日常使用的话,建议安装线上正式版(Chrome商店版)
4+
5+
### 一、测试包安装
6+
1. 下载fehelper.zip包,文件路径:`output/fehelper.zip`
7+
2. 解压fehelper.zip包,建议解压到一个`安全的目录`,别无意间被删掉了
8+
3. 打开chrome浏览器,地址栏输入:`chrome://extensions/` 进入插件管理界面
9+
4. 右上角`开启开发者模式`,确保所有的插件可被管理
10+
5. 如果本机已安装过线上FeHelper正式版,请找到它,并且`禁用它`
11+
6. 上方找到`加载已解压的扩展程序`按钮,选择fehelper.zip的解压目录
12+
7. 完成本地包载入,FeHelper本地包安装成功
13+
14+
15+
### 二、测试内容反馈
16+
大家可以把测试过程中发现的问题,统一提交到这里:[https://github.com/zxlie/FeHelper/issues/192](https://github.com/zxlie/FeHelper/issues/192) ,我会尽快跟进并修复它,为大家提供更高质量的FeHelper!

apps/background/background.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ let BgPageInstance = (function () {
384384
case 'qr-decode':
385385
chrome.DynamicToolRunner({
386386
withContent: request.params.uri,
387-
tool: MSG_TYPE.QR_CODE,
387+
tool: 'qr-code',
388388
query: `mode=decode`
389389
});
390390
break;

apps/background/menu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default (function () {
8484
if (typeof window.qrcodeContentScript === 'function') {
8585
let qrcode = window.qrcodeContentScript();
8686
if (typeof qrcode.decode === 'function') {
87-
qrcode.decode(pInfo.srcUrl);
87+
qrcode.decode(text);
8888
return 1;
8989
}
9090
}

apps/json-format/json-bigint.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "FeHelper(前端助手)-Dev",
33
"short_name": "FeHelper",
4-
"version": "2022.10.2022",
4+
"version": "2022.12.1616",
55
"manifest_version": 3,
66
"description": "JSON自动格式化、手动格式化,支持排序、解码、下载等,更多功能可在配置页按需安装!",
77
"icons": {

apps/qr-code/content-script.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
window.qrcodeContentScript = function () {
22

33
let decode = function (imgUrl) {
4+
45
function loadImage(src) {
56
return new Promise(resolve => {
67
let image = new Image();

apps/qr-code/index.html

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<link rel="stylesheet" href="index.css" />
88
<script type="text/javascript" src="../static/vendor/evalCore.min.js"></script>
99
<script type="text/javascript" src="../static/vendor/vue/vue.js"></script>
10-
<script type="text/javascript" src="../static/vendor/require/require.js"></script>
1110
</head>
1211
<body>
1312

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gulp.task('clean', () => {
2424
});
2525

2626
gulp.task('copy', () => {
27-
return gulp.src(['apps/**/*.{gif,png,jpg,jpeg,cur}', '!apps/static/screenshot/**/*']).pipe(copy('output'));
27+
return gulp.src(['apps/**/*.{gif,png,jpg,jpeg,cur,ico}', '!apps/static/screenshot/**/*']).pipe(copy('output'));
2828
});
2929

3030
gulp.task('json', () => {

output/fehelper.zip

368 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)