update ISSUE_TEMPLATE
This commit is contained in:
30
.github/ISSUE_TEMPLATE/bug_report.md
vendored
30
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -7,29 +7,47 @@ assignees: ''
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Thanks for your feedback:
|
||||||
|
1、Please check if there is a similar issue first
|
||||||
|
2、If it is a function or UI suggestion, please go to Discussion
|
||||||
|
-->
|
||||||
|
|
||||||
**Describe the bug**
|
**Describe the bug**
|
||||||
A clear and concise description of what the bug is.
|
<!--A clear and concise description of what the bug is.-->
|
||||||
|
|
||||||
|
|
||||||
**To Reproduce**
|
**To Reproduce**
|
||||||
|
<!--
|
||||||
Steps to reproduce the behavior:
|
Steps to reproduce the behavior:
|
||||||
1. Go to '...'
|
1. Go to '...'
|
||||||
2. Click on '....'
|
2. Click on '....'
|
||||||
3. Scroll down to '....'
|
3. Scroll down to '....'
|
||||||
4. See error
|
4. See error
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
**Desired Results**
|
**Desired Results**
|
||||||
A clear description of the result you expected.
|
<!--A clear description of the result you expected.-->
|
||||||
|
|
||||||
|
|
||||||
**Actual Results**
|
**Actual Results**
|
||||||
A clear description of the actual result.
|
<!--A clear description of the actual result.-->
|
||||||
|
|
||||||
|
|
||||||
**Screenshots**
|
**Screenshots**
|
||||||
If applicable, add screenshots(both bug screen and logs
|
<!--If applicable, add screenshots(both bug screen and logs
|
||||||
screen) to help explain your problem.
|
screen) to help explain your problem.-->
|
||||||
|
|
||||||
|
|
||||||
**Device**
|
**Device**
|
||||||
|
<!--
|
||||||
- OS: e.g. iOS16 or Android13
|
- OS: e.g. iOS16 or Android13
|
||||||
- App Version: e.g. 1.0.302
|
- App Version: e.g. 1.0.302
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
<!--Add any other context about the problem here.-->
|
||||||
|
|
||||||
|
|||||||
27
.github/ISSUE_TEMPLATE/bug_report_cn.md
vendored
27
.github/ISSUE_TEMPLATE/bug_report_cn.md
vendored
@@ -7,28 +7,45 @@ assignees: ''
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<!--
|
||||||
|
感谢您反馈问题,请先阅读以下内容:
|
||||||
|
1、请先查看是否已存在相似 issue
|
||||||
|
2、如果是功能、UI建议,请移步至 Discussion
|
||||||
|
-->
|
||||||
|
|
||||||
**描述BUG**
|
**描述BUG**
|
||||||
一个关于BUG的清晰描述。
|
<!--一个关于BUG的清晰描述。-->
|
||||||
|
|
||||||
|
|
||||||
**复现步骤**
|
**复现步骤**
|
||||||
|
<!--
|
||||||
如何复现:
|
如何复现:
|
||||||
1. 打开 '...'
|
1. 打开 '...'
|
||||||
2. 点击 '....'
|
2. 点击 '....'
|
||||||
3. 滚动到 '....'
|
3. 滚动到 '....'
|
||||||
4. 看到错误
|
4. 看到错误
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
**期望结果**
|
**期望结果**
|
||||||
一个关于你期望的结果的清晰描述。
|
<!--一个关于你期望的结果的清晰描述。-->
|
||||||
|
|
||||||
|
|
||||||
**实际结果**
|
**实际结果**
|
||||||
一个关于实际结果的清晰描述。
|
<!--一个关于实际结果的清晰描述。-->
|
||||||
|
|
||||||
|
|
||||||
**截图**
|
**截图**
|
||||||
如果可以,请添加截图(包括错误界面和日志界面)来帮助解释你的问题。
|
<!--如果可以,请添加截图(包括错误界面和日志界面)来帮助解释你的问题。-->
|
||||||
|
|
||||||
|
|
||||||
**设备**
|
**设备**
|
||||||
|
<!--
|
||||||
- 系统: e.g. iOS16 or Android13
|
- 系统: e.g. iOS16 or Android13
|
||||||
- App版本: e.g. 1.0.302
|
- App版本: e.g. 1.0.302
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
**更多信息**
|
**更多信息**
|
||||||
在这里添加关于这个问题的更多信息。
|
<!--在这里添加关于这个问题的更多信息。-->
|
||||||
|
|
||||||
|
|||||||
@@ -68,10 +68,11 @@ class _EditorPageState extends State<EditorPage> {
|
|||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
title: TwoLineText(up: getFileName(widget.path) ?? '', down: _s.editor),
|
title: TwoLineText(up: getFileName(widget.path) ?? '', down: _s.editor),
|
||||||
actions: [
|
actions: [
|
||||||
PopupMenuButton(
|
PopupMenuButton<String>(
|
||||||
icon: const Icon(Icons.language),
|
icon: const Icon(Icons.language),
|
||||||
onSelected: (value) {
|
onSelected: (value) {
|
||||||
_controller.language = suffix2HighlightMap[value];
|
_controller.language = suffix2HighlightMap[value];
|
||||||
|
_langCode = value;
|
||||||
},
|
},
|
||||||
initialValue: _langCode,
|
initialValue: _langCode,
|
||||||
itemBuilder: (BuildContext context) {
|
itemBuilder: (BuildContext context) {
|
||||||
|
|||||||
@@ -559,25 +559,31 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
title: Text(_s.diskIgnorePath),
|
title: Text(_s.diskIgnorePath),
|
||||||
trailing: Text(_s.edit, style: textSize15),
|
trailing: Text(_s.edit, style: textSize15),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
showRoundDialog(
|
final ctrller = TextEditingController(text: json.encode(paths));
|
||||||
context: context,
|
void onSubmit() {
|
||||||
title: Text(_s.diskIgnorePath),
|
|
||||||
child: Input(
|
|
||||||
controller: TextEditingController(text: json.encode(paths)),
|
|
||||||
label: 'JSON',
|
|
||||||
type: TextInputType.visiblePassword,
|
|
||||||
maxLines: 3,
|
|
||||||
onSubmitted: (p0) {
|
|
||||||
try {
|
try {
|
||||||
final list = List<String>.from(json.decode(p0));
|
final list = List<String>.from(json.decode(ctrller.text));
|
||||||
_setting.diskIgnorePath.put(list);
|
_setting.diskIgnorePath.put(list);
|
||||||
context.pop();
|
context.pop();
|
||||||
showSnackBar(context, Text(_s.success));
|
showSnackBar(context, Text(_s.success));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
showSnackBar(context, Text(e.toString()));
|
showSnackBar(context, Text(e.toString()));
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
|
showRoundDialog(
|
||||||
|
context: context,
|
||||||
|
title: Text(_s.diskIgnorePath),
|
||||||
|
child: Input(
|
||||||
|
controller: ctrller,
|
||||||
|
label: 'JSON',
|
||||||
|
type: TextInputType.visiblePassword,
|
||||||
|
maxLines: 3,
|
||||||
|
onSubmitted: (_) => onSubmit(),
|
||||||
),
|
),
|
||||||
|
actions: [
|
||||||
|
TextButton(onPressed: onSubmit, child: Text(_s.ok)),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user