update: issue模板

This commit is contained in:
msojocs 2022-03-18 15:57:00 +08:00
parent fdd36f88e1
commit 9d5347be66
3 changed files with 9 additions and 61 deletions

View File

@ -9,7 +9,7 @@ assignees: ''
**预先准备**
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
- Wine Version: e.g. 7
- Wine Version: e.g. 7 可选
**代码片段**
提供代码片段对维护者定位与修复问题有极大帮助;

View File

@ -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.

View File

@ -30,9 +30,9 @@ if (args.includes("-ll")) {
});
wcsc.on("close", (n) => {
if (0 === n) {
let str = Buffer.concat(spwanData)
.toString()
DEBUG_OUTPUT && fs.writeFileSync(`${DEBUG_OUTPUT}/linux_output.js`, str)
let str = Buffer.concat(spwanData).toString();
DEBUG_OUTPUT &&
fs.writeFileSync(`${DEBUG_OUTPUT}/linux_output.js`, str);
const resultSplit = str.split("=");
const tempObj = {};
for (
@ -43,8 +43,7 @@ if (args.includes("-ll")) {
// a=b ---> a: b
const key = resultSplit[i];
if (key === "version") continue;
tempObj[key] = resultSplit[i + 1]
.replace(
tempObj[key] = resultSplit[i + 1].replace(
/[^\\]((\\x[\da-f]{2}|\\u[\da-f]{4})){1,}/g,
function ($0, $1, $2) {
return eval('"' + $0 + '"');
@ -62,28 +61,9 @@ if (args.includes("-ll")) {
}
let result = JSON.stringify(resultObj);
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.stderr.write(result);
} else {
const err = Buffer.concat(errData).toString()
const err = Buffer.concat(errData).toString();
DEBUG_OUTPUT &&
fs.writeFileSync(`${DEBUG_OUTPUT}/linux_err.js`, err);
process.stderr.write(err);