Merge branch '2.x' of github.com:linuxserver/Heimdall into 2.x

This commit is contained in:
Chris Hunt 2022-11-23 13:25:10 +00:00
commit 898ee6915d
7 changed files with 76 additions and 36 deletions

2
public/css/app.css vendored

File diff suppressed because one or more lines are too long

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
{
"/css/app.css": "/css/app.css?id=52588253d9a6d5c5e6a1",
"/js/app.js": "/js/app.js?id=a6c1d3a18516685e7b15"
"/css/app.css": "/css/app.css?id=cdbee4d3b17bce4786a2",
"/js/app.js": "/js/app.js?id=c15b7d6018358ee45de9"
}

View file

@ -152,6 +152,12 @@ $.when( $.ready ).then(function() {
$(this).siblings('.tooltip').removeClass('active')
$('.refresh', this).removeClass('active')
})
$('#config-buttons').on('mouseenter', 'a', function () {
$('.tooltip', this).addClass('active');
}).on('mouseleave', 'a', function () {
$('.tooltip', this).removeClass('active');
})
$('#search-container').on('input', 'input[name=q]', function () {
const search = this.value

View file

@ -191,15 +191,31 @@ body {
width: 50px;
height: 50px;
background: rgba(0,0,0,0.8);
text-align: center;
line-height: 50px;
color: white;
margin-top: 1px;
position: relative;
border: 1px solid transparent;
display: flex;
justify-content: center;
align-items: center;
img {
width: 26px;
height: 26px;
margin-top: 12px;
}
.tooltip {
bottom: 50%;
left: auto;
right: 55px;
padding: 10px 15px;
line-height: 1.2;
transform: translate(200px, 50%);
white-space: nowrap;
&.active {
transform: translate(0, 50%);
}
}
}
}
@ -262,29 +278,29 @@ body {
display: none;
z-index: 1;
}
.tooltip {
padding: 25px;
border-radius: 5px;
background: #000000c8;
color: white;
position: absolute;
bottom: 120px;
left: 0;
right: 0;
font-size: 13px;
backdrop-filter: blur(8px);
z-index: 0;
opacity: 0;
transform: translateY(-20px);
transition: all 0.3s;
&.active {
transform: translateY(0);
opacity: 1;
z-index: 4;
}
}
.tooltip {
padding: 25px;
border-radius: 5px;
background: #000000c8;
color: white;
position: absolute;
bottom: 120px;
left: 0;
right: 0;
font-size: 13px;
backdrop-filter: blur(8px);
z-index: 0;
opacity: 0;
transform: translateY(-20px);
transition: all 0.3s;
&.active {
transform: translateY(0);
opacity: 1;
z-index: 4;
}
}
.tile-actions {
position: absolute;
top: 0px;
@ -470,9 +486,6 @@ body {
z-index: 1;
padding-right: 10px;
}
.link:focus {
background-color: rgba(10,10,10,.4);
}
.title {
font-size: 16px;
}
@ -1111,3 +1124,21 @@ select:-webkit-autofill:focus {
transition: inherit;
color: $app-text!important;
}
#sortable:focus-within {
.item:focus-within {
outline: 1px solid #ffffff91;
}
.item:not(:focus-within) {
opacity: 0.4;
}
}
#config-buttons:focus-within {
a:focus {
outline: 0;
border: 1px solid #ffffff91;
}
a:not(:focus-within) {
opacity: 0.4;
}
}

View file

@ -1,6 +1,8 @@
<?php
return array (
'dashboard.reorder' => 'Reorder and pin items',
'dashboard.settings' => 'Settings',
'settings.system' => 'System',
'settings.appearance' => 'Appearance',
'settings.miscellaneous' => 'Miscellaneous',

View file

@ -98,16 +98,17 @@
@if(Route::is('dash') || Route::is('tags.show'))
<a id="config-button" class="config" href="" title="Configuration"><i class="fas fa-exchange"></i></a>
<a id="config-button" class="config" href=""><i class="fas fa-exchange"></i><div class="tooltip left">{{ __('app.dashboard.reorder') }}</div></a>
@endif
<a id="dash" class="config" href="{{ route('dash', []) }}" title="Dashboard"><i class="fas fa-th"></i></a>
<a id="dash" class="config" href="{{ route('dash', []) }}"><i class="fas fa-th"></i><div class="tooltip left">{{ __('app.dashboard') }}</div></a>
@if($current_user->id === 1)
<a id="users" class="config" href="{{ route('users.index', []) }}" title="Users"><i class="fas fa-user"></i></a>
<a id="users" class="config" href="{{ route('users.index', []) }}"><i class="fas fa-user"></i><div class="tooltip left">{{ __('app.user.user_list') }}</div></a>
@endif
<a id="items" class="config" href="{{ route('items.index', []) }}" title="Items"><i class="fas fa-list"></i></a>
<a id="folder" class="config" href="{{ route('tags.index', []) }}" title="Tags"><i class="fas fa-tag"></i></a>
<a id="settings" class="config" href="{{ route('settings.index', []) }}" title="Settings"><i class="fas fa-cogs"></i></a>
<a id="items" class="config" href="{{ route('items.index', []) }}"><i class="fas fa-list"></i><div class="tooltip left">{{ __('app.apps.app_list') }}</div></a>
<a id="folder" class="config" href="{{ route('tags.index', []) }}"><i class="fas fa-tag"></i><div class="tooltip left">{{ __('app.apps.tag_list') }}</div></a>
<a id="settings" class="config" href="{{ route('settings.index', []) }}"><i class="fas fa-cogs"></i><div class="tooltip left">{{ __('app.dashboard.settings') }}</div></a>
</div>
</main>