mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
update: issue模板
This commit is contained in:
parent
fdd36f88e1
commit
9d5347be66
8
.github/ISSUE_TEMPLATE/bug_report_cn.md
vendored
8
.github/ISSUE_TEMPLATE/bug_report_cn.md
vendored
@ -9,7 +9,7 @@ assignees: ''
|
|||||||
|
|
||||||
**预先准备**
|
**预先准备**
|
||||||
1. 删除`~/.config/wechat_devtools`目录,重新打开项目(若发布`issue`即默认阁下执行了此操作且问题没有解决);
|
1. 删除`~/.config/wechat_devtools`目录,重新打开项目(若发布`issue`即默认阁下执行了此操作且问题没有解决);
|
||||||
2. HelloWorld是否正常(登录状态新建项目):正常/不正常
|
2. HelloWorld是否正常(登录状态新建默认项目,执行复现步骤):正常/不正常
|
||||||
|
|
||||||
**问题描述**
|
**问题描述**
|
||||||
请对问题做一个简单描述。
|
请对问题做一个简单描述。
|
||||||
@ -24,12 +24,12 @@ assignees: ''
|
|||||||
经过上述操作你希望得到的结果.
|
经过上述操作你希望得到的结果.
|
||||||
|
|
||||||
**截屏**
|
**截屏**
|
||||||
添加截图图片有助于解释您的问题(复制图片后直接粘贴将自动上传图片)。
|
添加截图图片有助于解释您的问题,请尽量将整个开发工具都涵括在截图在(复制图片后直接粘贴将自动上传图片)。
|
||||||
|
|
||||||
**版本信息 (这是必要的):**
|
**版本信息 (这是必要的):**
|
||||||
- OS: e.g. iOS
|
- OS: e.g. manjaro
|
||||||
- Package: e.g. xxx_wine.tar.gz
|
- Package: e.g. xxx_wine.tar.gz
|
||||||
- Wine Version: e.g. 7
|
- Wine Version: e.g. 7 可选
|
||||||
|
|
||||||
**代码片段**
|
**代码片段**
|
||||||
提供代码片段对维护者定位与修复问题有极大帮助;
|
提供代码片段对维护者定位与修复问题有极大帮助;
|
||||||
|
32
.github/ISSUE_TEMPLATE/bug_report_en.md
vendored
32
.github/ISSUE_TEMPLATE/bug_report_en.md
vendored
@ -1,32 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: ''
|
|
||||||
labels: bug
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the bug**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Steps to reproduce the behavior:
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**Version Information (please complete the following information):**
|
|
||||||
- OS: [e.g. iOS]
|
|
||||||
- Package [e.g. xxx_wine.tar.gz]
|
|
||||||
- Wine Version [e.g. 7]
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
@ -30,9 +30,9 @@ if (args.includes("-ll")) {
|
|||||||
});
|
});
|
||||||
wcsc.on("close", (n) => {
|
wcsc.on("close", (n) => {
|
||||||
if (0 === n) {
|
if (0 === n) {
|
||||||
let str = Buffer.concat(spwanData)
|
let str = Buffer.concat(spwanData).toString();
|
||||||
.toString()
|
DEBUG_OUTPUT &&
|
||||||
DEBUG_OUTPUT && fs.writeFileSync(`${DEBUG_OUTPUT}/linux_output.js`, str)
|
fs.writeFileSync(`${DEBUG_OUTPUT}/linux_output.js`, str);
|
||||||
const resultSplit = str.split("=");
|
const resultSplit = str.split("=");
|
||||||
const tempObj = {};
|
const tempObj = {};
|
||||||
for (
|
for (
|
||||||
@ -43,8 +43,7 @@ if (args.includes("-ll")) {
|
|||||||
// a=b ---> a: b
|
// a=b ---> a: b
|
||||||
const key = resultSplit[i];
|
const key = resultSplit[i];
|
||||||
if (key === "version") continue;
|
if (key === "version") continue;
|
||||||
tempObj[key] = resultSplit[i + 1]
|
tempObj[key] = resultSplit[i + 1].replace(
|
||||||
.replace(
|
|
||||||
/[^\\]((\\x[\da-f]{2}|\\u[\da-f]{4})){1,}/g,
|
/[^\\]((\\x[\da-f]{2}|\\u[\da-f]{4})){1,}/g,
|
||||||
function ($0, $1, $2) {
|
function ($0, $1, $2) {
|
||||||
return eval('"' + $0 + '"');
|
return eval('"' + $0 + '"');
|
||||||
@ -62,28 +61,9 @@ if (args.includes("-ll")) {
|
|||||||
}
|
}
|
||||||
let result = JSON.stringify(resultObj);
|
let result = JSON.stringify(resultObj);
|
||||||
result = result.replace(/\\\\/g, "\\");
|
result = result.replace(/\\\\/g, "\\");
|
||||||
// result = result.replace(/\\[\s\S]{1}/g, function ($0, $1, $2) {
|
|
||||||
// let c;
|
|
||||||
// process.stderr.write($0 + "\n=====\n")
|
|
||||||
// switch ($0) {
|
|
||||||
// case "\\n":
|
|
||||||
// c = "\n";
|
|
||||||
// break;
|
|
||||||
// case "\\t":
|
|
||||||
// c = "\t";
|
|
||||||
// break;
|
|
||||||
|
|
||||||
// default:
|
|
||||||
// c = $0[1];
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// process.stderr.write("\\u" + c.charCodeAt(0).toString(16).padStart(4, "0") + "\n=====\n")
|
|
||||||
// return "\\u" + c.charCodeAt(0).toString(16).padStart(4, "0");
|
|
||||||
// });
|
|
||||||
process.stdout.write(result);
|
process.stdout.write(result);
|
||||||
// process.stderr.write(result);
|
|
||||||
} else {
|
} else {
|
||||||
const err = Buffer.concat(errData).toString()
|
const err = Buffer.concat(errData).toString();
|
||||||
DEBUG_OUTPUT &&
|
DEBUG_OUTPUT &&
|
||||||
fs.writeFileSync(`${DEBUG_OUTPUT}/linux_err.js`, err);
|
fs.writeFileSync(`${DEBUG_OUTPUT}/linux_err.js`, err);
|
||||||
process.stderr.write(err);
|
process.stderr.write(err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user