-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch from a top menu to a sidebar menu
- Loading branch information
Showing
48 changed files
with
714 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,84 @@ | ||
[ | ||
{ | ||
"component": "HapQrcodeWidgetComponent", | ||
"x": 0, | ||
"y": 0, | ||
"cols": 5, | ||
"rows": 7, | ||
"mobileOrder": 100, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"component": "HomebridgeStatusWidgetComponent", | ||
"x": 0, | ||
"y": 7, | ||
"cols": 5, | ||
"rows": 7, | ||
"mobileOrder": 10, | ||
"hidePort": true, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"component": "HomebridgeLogsWidgetComponent", | ||
"x": 5, | ||
"y": 0, | ||
"cols": 10, | ||
"rows": 8, | ||
"mobileOrder": 1000, | ||
"hideOnMobile": true | ||
}, | ||
{ | ||
"component": "SystemInfoWidgetComponent", | ||
"x": 15, | ||
"y": 9, | ||
"y": 0, | ||
"cols": 5, | ||
"rows": 9, | ||
"mobileOrder": 70, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"component": "ChildBridgeWidgetComponent", | ||
"x": 15, | ||
"y": 9, | ||
"cols": 5, | ||
"rows": 6, | ||
"rows": 5, | ||
"mobileOrder": 35, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"x": 5, | ||
"y": 9, | ||
"component": "CpuWidgetComponent", | ||
"x": 5, | ||
"y": 8, | ||
"cols": 5, | ||
"rows": 3, | ||
"mobileOrder": 40, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"x": 5, | ||
"y": 12, | ||
"component": "MemoryWidgetComponent", | ||
"x": 5, | ||
"y": 11, | ||
"cols": 5, | ||
"rows": 3, | ||
"mobileOrder": 50, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"x": 10, | ||
"y": 12, | ||
"component": "NetworkWidgetComponent", | ||
"x": 10, | ||
"y": 11, | ||
"cols": 5, | ||
"rows": 3, | ||
"mobileOrder": 55, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"x": 10, | ||
"y": 9, | ||
"component": "UptimeWidgetComponent", | ||
"x": 10, | ||
"y": 8, | ||
"cols": 5, | ||
"rows": 3, | ||
"mobileOrder": 60, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"x": 15, | ||
"y": 0, | ||
"component": "SystemInfoWidgetComponent", | ||
"cols": 5, | ||
"rows": 9, | ||
"mobileOrder": 70, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"x": 0, | ||
"y": 7, | ||
"component": "HapQrcodeWidgetComponent", | ||
"cols": 5, | ||
"rows": 8, | ||
"mobileOrder": 100, | ||
"hideOnMobile": false | ||
}, | ||
{ | ||
"x": 5, | ||
"y": 0, | ||
"component": "HomebridgeLogsWidgetComponent", | ||
"cols": 10, | ||
"rows": 9, | ||
"mobileOrder": 1000, | ||
"hideOnMobile": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
} | ||
|
||
.status-container { | ||
min-height: calc(100% - 52px) | ||
min-height: calc(100% - 30px) | ||
} | ||
|
||
gridster { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,4 @@ | ||
<!--Main Navigation--> | ||
<header *ngIf="$settings.theme && $auth.user"> | ||
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary scrolling-navbar"> | ||
<a class="navbar-brand" routerLink="/"> | ||
<img class="menu-logo" src="/assets/homebridge-logo.svg" /> | ||
<strong>Homebridge</strong> | ||
</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" | ||
aria-controls="navbarSupportedContent" aria-expanded="false" [attr.aria-label]="'Toggle Navigation'"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item waves-effect waves-light" routerLinkActive="active" | ||
[routerLinkActiveOptions]="{exact: true}"> | ||
<a class="nav-link" routerLink="/" [translate]="'menu.label_status'">Status</a> | ||
</li> | ||
<li class="nav-item waves-effect waves-light" routerLinkActive="active" *ngIf="$auth.user.admin"> | ||
<a class="nav-link" routerLink="/plugins" [translate]="'menu.label_plugins'">Plugins</a> | ||
</li> | ||
<li class="nav-item waves-effect waves-light" routerLinkActive="active"> | ||
<a class="nav-link" routerLink="/accessories" [translate]="'menu.label_accessories'">Accessories</a> | ||
</li> | ||
<li class="nav-item waves-effect waves-light" routerLinkActive="active" *ngIf="$auth.user.admin"> | ||
<a class="nav-link" routerLink="/settings" [translate]="'menu.settings.title'">Settings</a> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav nav-flex-icons hb-nav-right"> | ||
<li class="nav-item mr-3" *ngIf="rPiWasUnderVoltage || rPiCurrentlyUnderVoltage"> | ||
<a href="javascript:void(0)" class="nav-link dropdown-toggle waves-effect waves-light" | ||
[popoverTitle]="(rPiCurrentlyUnderVoltage ? 'rpi.throttled.currently_title' : 'rpi.throttled.previously_title') | translate" | ||
[ngbPopover]="(rPiCurrentlyUnderVoltage ? 'rpi.throttled.currently_message' : 'rpi.throttled.previously_message') | translate" | ||
[ngbTooltip]="(rPiCurrentlyUnderVoltage ? 'rpi.throttled.currently_title' : 'rpi.throttled.previously_title') | translate" | ||
container="body" openDelay="150" triggers="hover" [placement]="'bottom auto'"> | ||
<i class="fa-solid fa-bolt yellow-text " style="--fa-beat-scale: 2.0;" | ||
[ngClass]="{ 'fa-beat': rPiCurrentlyUnderVoltage }"></i> | ||
</a> | ||
</li> | ||
<li class="nav-item waves-effect waves-light" routerLinkActive="active" placement="bottom" | ||
ngbTooltip="{{ 'menu.tooltip_view_logs' | translate }}" container="body" openDelay="150" triggers="hover"> | ||
<a class="nav-link" routerLink="/logs" [attr.aria-label]="'menu.tooltip_view_logs' | translate"> | ||
<i class="fas fa-fw fa-wave-square nav-menu-icon"></i> | ||
</a> | ||
</li> | ||
<li class="nav-item waves-effect waves-light" routerLinkActive="active" placement="bottom" | ||
ngbTooltip="{{ 'menu.tooltip_restart' | translate }}" container="body" openDelay="150" triggers="hover"> | ||
<a class="nav-link" routerLink="/restart" [attr.aria-label]="'menu.hbrestart.confirm_button' | translate"> | ||
<i #restartHomebridgeIcon class="fas fa-fw fa-power-off nav-menu-icon"></i> | ||
</a> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a href="javascript:void(0)" class="nav-link dropdown-toggle waves-effect waves-light" data-toggle="dropdown" | ||
aria-haspopup="true" aria-expanded="false" [attr.aria-label]="'More Actions Dropdown'"> | ||
<i class="fas fa-fw fa-ellipsis-v nav-menu-icon"></i> | ||
</a> | ||
<div class="dropdown-menu dropdown-menu-right dropdown-info"> | ||
<a class="dropdown-item waves-effect waves-light" | ||
*ngIf="$settings.env.enableTerminalAccess && $auth.user.admin" routerLink="/platform-tools/terminal"> | ||
<i class="fa fa-fw fa-terminal pr-2"></i> | ||
{{ 'menu.linux.label_terminal' | translate }} | ||
</a> | ||
<a class="dropdown-item waves-effect waves-light" *ngIf="$auth.user.admin" routerLink="/logs"> | ||
<i class="fa fa-fw fa-wave-square pr-2"></i> | ||
{{ 'menu.linux.label_logs' | translate }} | ||
</a> | ||
<a class="dropdown-item waves-effect waves-light" routerLink="/settings" *ngIf="$auth.user.admin"> | ||
<i class="fa fa-fw fa-cog pr-2"></i> | ||
{{ 'menu.settings.title' | translate }} | ||
</a> | ||
<a class="dropdown-item waves-effect waves-light" routerLink="/support"> | ||
<i class="fa fa-fw fa-question-circle-o pr-2"></i> | ||
{{ 'support.title' | translate }} | ||
</a> | ||
<a class="dropdown-item waves-effect waves-light" routerLink="/power-options" *ngIf="$auth.user.admin"> | ||
<i class="fa fa-fw fa-power-off pr-2"></i> | ||
{{ 'menu.restart.title' | translate }} | ||
</a> | ||
<a href="javascript:void(0)" class="dropdown-item waves-effect waves-light" (click)="$auth.logout()" *ngIf="$settings.formAuth"> | ||
<i class="fa fa-fw fa-right-from-bracket pr-2"></i> | ||
{{ 'menu.tooltip_logout' | translate }} - {{ $auth.user.username }} | ||
</a> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</header> | ||
|
||
<div class="container-fluid d-flex flex-col h-100 w-100"> | ||
<div class="w-100"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
<app-sidebar [isExpanded]="sidebarExpanded"></app-sidebar> | ||
<div class="content px-3 p-md-4" [ngClass]="{ 'sidebarExpanded': sidebarExpanded }"> | ||
<router-outlet></router-outlet> | ||
</div> |
Oops, something went wrong.