mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-06 19:39:53 +00:00
include platform arch in github issues
This commit is contained in:
parent
2b3694f517
commit
855a7bbe14
@ -2,7 +2,7 @@ import { Injectable, Inject } from '@angular/core'
|
|||||||
import * as mixpanel from 'mixpanel'
|
import * as mixpanel from 'mixpanel'
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
import { ConfigService } from './config.service'
|
import { ConfigService } from './config.service'
|
||||||
import { PlatformService, BOOTSTRAP_DATA, BootstrapData } from '../api'
|
import { PlatformService, BOOTSTRAP_DATA, BootstrapData, HostAppService } from '../api'
|
||||||
|
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
export class HomeBaseService {
|
export class HomeBaseService {
|
||||||
@ -13,6 +13,7 @@ export class HomeBaseService {
|
|||||||
private constructor (
|
private constructor (
|
||||||
private config: ConfigService,
|
private config: ConfigService,
|
||||||
private platform: PlatformService,
|
private platform: PlatformService,
|
||||||
|
private hostApp: HostAppService,
|
||||||
@Inject(BOOTSTRAP_DATA) private bootstrapData: BootstrapData,
|
@Inject(BOOTSTRAP_DATA) private bootstrapData: BootstrapData,
|
||||||
) {
|
) {
|
||||||
this.appVersion = platform.getAppVersion()
|
this.appVersion = platform.getAppVersion()
|
||||||
@ -28,20 +29,11 @@ export class HomeBaseService {
|
|||||||
|
|
||||||
reportBug (): void {
|
reportBug (): void {
|
||||||
let body = `Version: ${this.appVersion}\n`
|
let body = `Version: ${this.appVersion}\n`
|
||||||
body += `Platform: ${process.platform} ${this.platform.getOSRelease()}\n`
|
body += `Platform: ${this.hostApp.platform} ${process.arch} ${this.platform.getOSRelease()}\n`
|
||||||
const label = {
|
|
||||||
aix: 'OS: IBM AIX',
|
|
||||||
android: 'OS: Android',
|
|
||||||
darwin: 'OS: macOS',
|
|
||||||
freebsd: 'OS: FreeBSD',
|
|
||||||
linux: 'OS: Linux',
|
|
||||||
openbsd: 'OS: OpenBSD',
|
|
||||||
sunos: 'OS: Solaris',
|
|
||||||
win32: 'OS: Windows',
|
|
||||||
}[process.platform]
|
|
||||||
const plugins = this.bootstrapData.installedPlugins.filter(x => !x.isBuiltin).map(x => x.name)
|
const plugins = this.bootstrapData.installedPlugins.filter(x => !x.isBuiltin).map(x => x.name)
|
||||||
body += `Plugins: ${plugins.join(', ') || 'none'}\n\n`
|
body += `Plugins: ${plugins.join(', ') || 'none'}\n`
|
||||||
this.platform.openExternal(`https://github.com/Eugeny/tabby/issues/new?body=${encodeURIComponent(body)}&labels=${label}`)
|
body += `Frontend: ${this.config.store.terminal?.frontend}\n\n`
|
||||||
|
this.platform.openExternal(`https://github.com/Eugeny/tabby/issues/new?body=${encodeURIComponent(body)}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
enableAnalytics (): void {
|
enableAnalytics (): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user