mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 14:34:54 +00:00
bumped bootstrap
This commit is contained in:
@@ -4,21 +4,20 @@ div
|
||||
sup α
|
||||
|
||||
.list-group
|
||||
a.list-group-item.list-group-item-action(
|
||||
a.list-group-item.list-group-item-action.d-flex(
|
||||
*ngFor='let button of getButtons()',
|
||||
(click)='button.click()',
|
||||
)
|
||||
.d-flex.align-self-center([innerHTML]='button.icon')
|
||||
span {{button.title}}
|
||||
|
||||
footer
|
||||
.pull-right
|
||||
.form-control-static Version: {{version}}
|
||||
|
||||
.btn-group
|
||||
button.btn.btn-secondary((click)='openGitHub()')
|
||||
footer.d-flex.align-items-center
|
||||
.btn-group.mr-auto
|
||||
button.btn.btn-secondary((click)='homeBase.openGitHub()')
|
||||
i.fa.fa-github
|
||||
span GitHub
|
||||
button.btn.btn-secondary((click)='reportBug()')
|
||||
button.btn.btn-secondary((click)='homeBase.reportBug()')
|
||||
i.fa.fa-bug
|
||||
span Report a problem
|
||||
|
||||
.form-control-static Version: {{homeBase.appVersion}}
|
||||
|
@@ -3,6 +3,7 @@
|
||||
flex-direction: column;
|
||||
flex: auto;
|
||||
-webkit-app-region: drag;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
:host > div {
|
||||
|
@@ -1,7 +1,6 @@
|
||||
import * as os from 'os'
|
||||
import { Component, Inject } from '@angular/core'
|
||||
import { ElectronService } from '../services/electron.service'
|
||||
import { ConfigService } from '../services/config.service'
|
||||
import { HomeBaseService } from '../services/homeBase.service'
|
||||
import { IToolbarButton, ToolbarButtonProvider } from '../api'
|
||||
|
||||
@Component({
|
||||
@@ -13,11 +12,10 @@ export class StartPageComponent {
|
||||
version: string
|
||||
|
||||
constructor (
|
||||
private electron: ElectronService,
|
||||
private config: ConfigService,
|
||||
private homeBase: HomeBaseService,
|
||||
@Inject(ToolbarButtonProvider) private toolbarButtonProviders: ToolbarButtonProvider[],
|
||||
) {
|
||||
this.version = electron.app.getVersion()
|
||||
}
|
||||
|
||||
getButtons (): IToolbarButton[] {
|
||||
@@ -26,19 +24,4 @@ export class StartPageComponent {
|
||||
.reduce((a, b) => a.concat(b))
|
||||
.sort((a: IToolbarButton, b: IToolbarButton) => (a.weight || 0) - (b.weight || 0))
|
||||
}
|
||||
|
||||
openGitHub () {
|
||||
this.electron.shell.openExternal('https://github.com/eugeny/terminus')
|
||||
}
|
||||
|
||||
reportBug () {
|
||||
let body = `Version: ${this.version}\n`
|
||||
body += `Platform: ${os.platform()} ${os.release()}\n\n`
|
||||
let label = {
|
||||
darwin: 'macOS',
|
||||
windows: 'Windows',
|
||||
linux: 'Linux',
|
||||
}[os.platform()]
|
||||
this.electron.shell.openExternal(`https://github.com/eugeny/terminus/issues/new?body=${encodeURIComponent(body)}&labels=${label}`)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user