Skip to content

Commit 37217d4

Browse files
committed
🌐 issue模板提供英文版本
1 parent 89b9848 commit 37217d4

5 files changed

Lines changed: 94 additions & 3 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[Bug Report]Bug反馈"
1+
name: "Bug反馈"
22
description: 提交脚本猫使用过程中遇到的 BUG
33
title: "[BUG] "
44
labels: ["bug"]
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "Bug Report"
2+
description: Submit a bug encountered while using ScriptCat
3+
title: "[BUG] "
4+
labels: ["bug"]
5+
# assignees: ""
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
**Please take 2 minutes to fill out the following information, which will greatly help us quickly locate the problem**
11+
12+
- type: textarea
13+
id: problem-description
14+
attributes:
15+
label: "Problem Description"
16+
description: "What problem occurred? What is the expected normal behavior?"
17+
placeholder: "e.g., When clicking the download button on YouTube page, the script throws a 404 error, expected to show a download window"
18+
validations:
19+
required: true
20+
21+
- type: textarea
22+
id: reproduction-steps
23+
attributes:
24+
label: "Reproduction Steps"
25+
description: "Please list the steps to reproduce the problem in order"
26+
placeholder: |
27+
1. Open https://example.com
28+
2. Click the red button in the top right corner of the page
29+
3. Wait 5 seconds and observe the console
30+
validations:
31+
required: true
32+
33+
- type: markdown
34+
attributes:
35+
value: "### Environment Information"
36+
- type: input
37+
id: scriptcat-version
38+
attributes:
39+
label: ScriptCat Version
40+
description: You can view it by clicking on the ScriptCat popup window. If possible, please use the latest version as your issue may have already been resolved
41+
placeholder: e.g., v0.17.0
42+
validations:
43+
required: true
44+
- type: input
45+
id: browser-version
46+
attributes:
47+
label: Operating System and Browser Information
48+
description: You can view it in Browser - About, or enter chrome://settings/help
49+
placeholder: e.g., Windows 11 Chrome 137.0.3296.93 (Official Build) (arm64)
50+
validations:
51+
required: true
52+
53+
- type: markdown
54+
attributes:
55+
value: "### Additional Information"
56+
57+
- type: textarea
58+
id: additional-info
59+
attributes:
60+
label: Additional Information (Optional)
61+
description: Error logs/screenshots/script code snippets/related configurations...
62+
placeholder: |
63+
If it involves a specific script, it's best to export it as a zip file from the extension's homepage and upload it, or provide the script's installation address.
64+
65+
To view error logs for the extension itself:
66+
1. Open the extension management page (chrome://extensions/)
67+
2. Turn on developer mode, click on ScriptCat's "Service Worker" or "offscreen.html"
68+
3. View the console page in the popup window
69+
70+
Error logs for regular scripts can be viewed in the developer tools (F12 shortcut) - Console on the script's running page
71+
Error logs for background scripts can be viewed in the above-mentioned offscreen.html

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: "[New Feature]新功能请求"
2+
name: "新功能请求"
33
about: 期望能够增加的功能
44
title: "[Feature]"
55
labels: "enhancement"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: "Feature Request"
3+
about: Features you would like to see added
4+
title: "[Feature]"
5+
labels: "enhancement"
6+
assignees: ""
7+
---
8+
9+
### Feature Description
10+
11+
Please clearly describe the feature you want:
12+
13+
### Use Case
14+
15+
In what situations is this feature needed? (e.g., when processing specific websites, improving operational efficiency, etc.)
16+
17+
### Additional Information
18+
19+
(Optional) Supplementary screenshots, sample code, or other reference information

src/pages/popup/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { popupClient, scriptClient } from "../store/features/script";
2020
import { ScriptMenu } from "@App/app/service/service_worker/popup";
2121
import { systemConfig } from "../store/global";
2222
import { getBrowserVersion, isEdge, isUserScriptsAvailable } from "@App/pkg/utils/utils";
23+
import { localePath } from "@App/locales/locales";
2324

2425
const CollapseItem = Collapse.Item;
2526

@@ -172,7 +173,7 @@ function App() {
172173
const browserInfo = `${navigator.userAgent}`;
173174
const issueUrl =
174175
`https://github.com/scriptscat/scriptcat/issues/new?` +
175-
`template=bug_report.yaml&scriptcat-version=${ExtVersion}&` +
176+
`template=bug_report${localePath === "en" ? "_en" : ""}.yaml&scriptcat-version=${ExtVersion}&` +
176177
`browser-version=${encodeURIComponent(browserInfo)}`;
177178
window.open(issueUrl, "_blank");
178179
break;

0 commit comments

Comments
 (0)