1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-27 18:55:58 +03:00

ui tweaks

This commit is contained in:
Eugene Pankov 2018-12-21 20:43:11 +01:00
parent 9ef3cbc177
commit 2ca6135c06
4 changed files with 63 additions and 45 deletions

View File

@ -51,6 +51,7 @@ $input-disabled-bg: #333;
$input-color: $body-color; $input-color: $body-color;
$input-color-placeholder: #333; $input-color-placeholder: #333;
$input-border-color: #344; $input-border-color: #344;
$input-border-width: 0;
//$input-box-shadow: inset 0 1px 1px rgba($black,.075); //$input-box-shadow: inset 0 1px 1px rgba($black,.075);
$input-border-radius: 0; $input-border-radius: 0;
$custom-select-border-radius: 0; $custom-select-border-radius: 0;
@ -346,6 +347,15 @@ ngb-tabset .tab-content {
} }
} }
.list-group.list-group-flush .list-group-item:not(.list-group-item-action) {
background: transparent;
border-color: rgba(0, 0, 0, 0.2);
&:not(:last-child) {
border-bottom: none;
}
}
select.form-control { select.form-control {
-webkit-appearance: none; -webkit-appearance: none;
background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'><path fill='#444' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>"); background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'><path fill='#444' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>");

View File

@ -8,41 +8,44 @@ button.btn.btn-outline-info.btn-sm.pull-right((click)='openPluginsFolder()')
h3.mb-1 Installed h3.mb-1 Installed
.mb-3.d-flex.w-100.align-items-center(*ngFor='let plugin of pluginManager.installedPlugins|orderBy:"name"') .list-group.list-group-flush.mt-2
button.btn.btn-outline-danger.active.mr-2( .list-group-item.d-flex.align-items-center(*ngFor='let plugin of pluginManager.installedPlugins|orderBy:"name"')
*ngIf='config.store.pluginBlacklist.includes(plugin.name)', .mr-auto.d-flex.flex-column
(click)='enablePlugin(plugin)' div
) strong {{plugin.name}}
i.fa.fa-fw.fa-pause small.text-muted.ml-1(*ngIf='!plugin.isBuiltin') {{plugin.version}} / {{plugin.author}}
button.btn.btn-outline-secondary.mr-2( small.text-warning.ml-1(*ngIf='config.store.pluginBlacklist.includes(plugin.name)') Disabled
*ngIf='!config.store.pluginBlacklist.includes(plugin.name)', a.text-muted.mb-0((click)='showPluginInfo(plugin)')
(click)='disablePlugin(plugin)' small {{plugin.description}}
)
i.fa.fa-fw.fa-check
.mr-auto.d-flex.flex-column button.btn.btn-primary.ml-2(
div *ngIf='npmInstalled && knownUpgrades[plugin.name]',
strong {{plugin.name}} (click)='upgradePlugin(plugin)',
small.text-muted.ml-1 {{plugin.version}} / {{plugin.author}} [disabled]='busy[plugin.name] != undefined'
a.text-muted.mb-0((click)='showPluginInfo(plugin)') )
small {{plugin.description}} i.fa.fa-fw.fa-arrow-up(*ngIf='busy[plugin.name] != BusyState.Installing')
i.fa.fa-fw.fa-circle-o-notch.fa-spin(*ngIf='busy[plugin.name] == BusyState.Installing')
span Upgrade ({{knownUpgrades[plugin.name].version}})
button.btn.btn-primary.ml-2( button.btn.btn-primary.ml-2(
*ngIf='npmInstalled && knownUpgrades[plugin.name]', *ngIf='config.store.pluginBlacklist.includes(plugin.name)',
(click)='upgradePlugin(plugin)', (click)='enablePlugin(plugin)'
[disabled]='busy[plugin.name] != undefined' )
) i.fa.fa-fw.fa-play
i.fa.fa-fw.fa-arrow-up(*ngIf='busy[plugin.name] != BusyState.Installing')
i.fa.fa-fw.fa-circle-o-notch.fa-spin(*ngIf='busy[plugin.name] == BusyState.Installing') button.btn.btn-secondary.ml-2(
span Upgrade ({{knownUpgrades[plugin.name].version}}) *ngIf='!config.store.pluginBlacklist.includes(plugin.name)',
(click)='disablePlugin(plugin)'
button.btn.btn-outline-danger.ml-2( )
(click)='uninstallPlugin(plugin)', i.fa.fa-fw.fa-pause
*ngIf='!plugin.isBuiltin && npmInstalled',
[disabled]='busy[plugin.name] != undefined' button.btn.btn-danger.ml-2(
) (click)='uninstallPlugin(plugin)',
i.fa.fa-fw.fa-trash-o(*ngIf='busy[plugin.name] != BusyState.Uninstalling') *ngIf='!plugin.isBuiltin && npmInstalled',
i.fa.fa-fw.fa-circle-o-notch.fa-spin(*ngIf='busy[plugin.name] == BusyState.Uninstalling') [disabled]='busy[plugin.name] != undefined'
)
i.fa.fa-fw.fa-trash-o(*ngIf='busy[plugin.name] != BusyState.Uninstalling')
i.fa.fa-fw.fa-circle-o-notch.fa-spin(*ngIf='busy[plugin.name] == BusyState.Uninstalling')
.text-center.mt-5(*ngIf='npmMissing') .text-center.mt-5(*ngIf='npmMissing')
h4 npm not installed h4 npm not installed
@ -71,10 +74,10 @@ div(*ngIf='npmInstalled')
) )
.mb-4(*ngIf='availablePlugins$') .list-group.list-group-flush.mb-4(*ngIf='availablePlugins$')
ng-container(*ngFor='let plugin of (availablePlugins$|async|orderBy:"name")') ng-container(*ngFor='let plugin of (availablePlugins$|async|orderBy:"name")')
.d-flex.w-100.align-items-center.mb-3(*ngIf='!isAlreadyInstalled(plugin)') .list-group-item.d-flex.align-items-center(*ngIf='!isAlreadyInstalled(plugin)')
button.btn.btn-primary.mr-2( button.btn.btn-primary.mr-3(
(click)='installPlugin(plugin)', (click)='installPlugin(plugin)',
[disabled]='busy[plugin.name] != undefined' [disabled]='busy[plugin.name] != undefined'
) )

View File

@ -1,8 +1,10 @@
h3 Connections h3 Connections
.list-group.mt-3.mb-3 .list-group.list-group-flush.mt-3.mb-3
ng-container(*ngFor='let group of childGroups') ng-container(*ngFor='let group of childGroups')
.list-group-item.list-group-item-action.d-flex.align-items-center((click)='groupCollapsed[group.name] = !groupCollapsed[group.name]') .list-group-item.list-group-item-action.d-flex.align-items-center(
(click)='groupCollapsed[group.name] = !groupCollapsed[group.name]'
)
.fa.fa-fw.fa-chevron-right(*ngIf='groupCollapsed[group.name]') .fa.fa-fw.fa-chevron-right(*ngIf='groupCollapsed[group.name]')
.fa.fa-fw.fa-chevron-down(*ngIf='!groupCollapsed[group.name]') .fa.fa-fw.fa-chevron-down(*ngIf='!groupCollapsed[group.name]')
span.ml-3.mr-auto {{group.name || "Ungrouped"}} span.ml-3.mr-auto {{group.name || "Ungrouped"}}
@ -11,15 +13,16 @@ h3 Connections
button.btn.btn-outline-danger.ml-1((click)='deleteGroup(group)') button.btn.btn-outline-danger.ml-1((click)='deleteGroup(group)')
i.fa.fa-trash-o i.fa.fa-trash-o
ng-container(*ngIf='!groupCollapsed[group.name]') ng-container(*ngIf='!groupCollapsed[group.name]')
.list-group-item.pl-5.d-flex.align-items-center(*ngFor='let connection of group.connections') .list-group-item.list-group-item-action.pl-5.d-flex.align-items-center(
*ngFor='let connection of group.connections',
(click)='editConnection(connection)'
)
.mr-auto .mr-auto
div {{connection.name}} div {{connection.name}}
.text-muted {{connection.host}} .text-muted {{connection.host}}
button.btn.btn-outline-info.ml-2((click)='editConnection(connection)') button.btn.btn-outline-danger.ml-1((click)='$event.stopPropagation(); deleteConnection(connection)')
i.fa.fa-pencil
button.btn.btn-outline-danger.ml-1((click)='deleteConnection(connection)')
i.fa.fa-trash-o i.fa.fa-trash-o
button.btn.btn-outline-primary((click)='createConnection()') button.btn.btn-primary((click)='createConnection()')
div.fa.fa-fw.fa-globe i.fa.fa-fw.fa-plus
span.ml-2 Add connection span.ml-2 Add connection

View File

@ -62,6 +62,8 @@ h3.mt-3 Saved Profiles
i.fa.fa-trash-o i.fa.fa-trash-o
div(ngbDropdown, placement='top-left') div(ngbDropdown, placement='top-left')
button.btn.btn-outline-primary(ngbDropdownToggle) New profile button.btn.btn-primary(ngbDropdownToggle)
i.fa.fa-fw.fa-plus
| New profile
div(ngbDropdownMenu) div(ngbDropdownMenu)
button.dropdown-item(*ngFor='let shell of shells', (click)='newProfile(shell)') {{shell.name}} button.dropdown-item(*ngFor='let shell of shells', (click)='newProfile(shell)') {{shell.name}}