mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-18 06:28:40 -09:00
parent
e2d73702cd
commit
2b61d4c081
1 changed files with 47 additions and 7 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
const os = require('os');
|
const {release} = require('os');
|
||||||
const {app, shell} = require('electron');
|
const {app, shell} = require('electron');
|
||||||
|
|
||||||
|
const {getConfig, getPlugins} = require('../../config');
|
||||||
|
const {arch, env, platform, versions} = process;
|
||||||
|
const {version} = require('../../package.json');
|
||||||
|
|
||||||
module.exports = (commands, showAbout) => {
|
module.exports = (commands, showAbout) => {
|
||||||
const submenu = [
|
const submenu = [
|
||||||
{
|
{
|
||||||
|
|
@ -13,11 +17,48 @@ module.exports = (commands, showAbout) => {
|
||||||
label: 'Report Issue',
|
label: 'Report Issue',
|
||||||
click() {
|
click() {
|
||||||
const body = `
|
const body = `
|
||||||
<!-- Please succinctly describe your issue and steps to reproduce it. -->
|
<!--
|
||||||
-
|
Hi there! Thank you for discovering and submitting an issue.
|
||||||
${app.getName()} ${app.getVersion()}
|
Before you submit this; let's make sure of a few things.
|
||||||
Electron ${process.versions.electron}
|
Please make sure the following boxes are ✅ if they are correct.
|
||||||
${process.platform} ${process.arch} ${os.release()}`;
|
If not, please try and fulfil these first.
|
||||||
|
-->
|
||||||
|
<!-- 👉 Checked checkbox should look like this: [x] -->
|
||||||
|
- [ ] Your Hyper.app version is **${version}**. Please verify your using the [latest](https://github.com/zeit/hyper/releases/latest) Hyper.app version
|
||||||
|
- [ ] I have searched the [issues](https://github.com/zeit/hyper/issues) of this repo and believe that this is not a duplicate
|
||||||
|
|
||||||
|
---
|
||||||
|
- **Any relevant information from devtools?** _(CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere)_:
|
||||||
|
<!-- 👉 Replace with info if applicable, or N/A -->
|
||||||
|
|
||||||
|
- **Is the issue reproducible in vanilla Hyper.app?**
|
||||||
|
<!-- 👉 Replace with info if applicable, or Is Vanilla. (Vanilla means Hyper.app without any add-ons or extras. Straight out of the box.) -->
|
||||||
|
|
||||||
|
## Issue
|
||||||
|
<!-- 👉 Now feel free to write your issue, but please be descriptive! Thanks again 🙌 ❤️ -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ~/.hyper.js config -->
|
||||||
|
- **${app.getName()} version**: ${env.TERM_PROGRAM_VERSION} "${app.getVersion()}"
|
||||||
|
|
||||||
|
- **OS ARCH VERSION:** ${platform} ${arch} ${release()}
|
||||||
|
- **Electron:** ${versions.electron} **LANG:** ${env.LANG}
|
||||||
|
- **SHELL:** ${env.SHELL} **TERM:** ${env.TERM}
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><strong> ~/.hyper.js contents</strong></summary>
|
||||||
|
<pre>
|
||||||
|
<code>
|
||||||
|
${JSON.stringify(getConfig(), null, 2)}
|
||||||
|
|
||||||
|
${JSON.stringify(getPlugins(), null, 2)}
|
||||||
|
</code>
|
||||||
|
</pre>
|
||||||
|
</details>`;
|
||||||
|
|
||||||
shell.openExternal(`https://github.com/zeit/hyper/issues/new?body=${encodeURIComponent(body)}`);
|
shell.openExternal(`https://github.com/zeit/hyper/issues/new?body=${encodeURIComponent(body)}`);
|
||||||
}
|
}
|
||||||
|
|
@ -35,7 +76,6 @@ module.exports = (commands, showAbout) => {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
role: 'help',
|
role: 'help',
|
||||||
submenu
|
submenu
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue