-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
289 additions
and
9 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
64 changes: 64 additions & 0 deletions
64
ui/src/app/platform-tools/docker/settings/settings.component.html
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<div class="d-flex justify-content-between"> | ||
<h3 class="primary-text m-0">Settings</h3> | ||
<div class="text-right"> | ||
<button class="btn btn-primary waves-effect m-0" *ngIf="savedSettings" uiSref="docker.restart-container">Restart Required</button> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="row mt-3"> | ||
<div class="col-md-12"> | ||
<div class="alert alert-warning" role="alert"> | ||
Changing these values will override the corresponding environment variables you may have set with the docker run command. | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<form novalidate [formGroup]="form"> | ||
|
||
<h5 class="primary-text">Homebridge</h5> | ||
|
||
<ul class="list-group"> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
Homebridge Debug Mode | ||
<div class="material-switch pull-right"> | ||
<input id="homebridgeDebugMode" formControlName="HOMEBRIDGE_DEBUG" type="checkbox" /> | ||
<label for="homebridgeDebugMode" class="badge-primary"></label> | ||
</div> | ||
</li> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
Homebridge Insecure Mode | ||
<div class="material-switch pull-right"> | ||
<input id="homebridgeInsecureMode" formControlName="HOMEBRIDGE_INSECURE" type="checkbox" /> | ||
<label for="homebridgeInsecureMode" class="badge-primary"></label> | ||
</div> | ||
</li> | ||
</ul> | ||
|
||
<h5 class="primary-text mt-4">Config UI X</h5> | ||
|
||
<ul class="list-group"> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
Config UI X Theme | ||
<select class="custom-select custom-select-sm w-25" formControlName="HOMEBRIDGE_CONFIG_UI_THEME"> | ||
<option value="blue">Blue</option> | ||
<option value="blue-grey">Blue-grey</option> | ||
<option value="green">Green</option> | ||
<option value="indigo">Indigo</option> | ||
<option value="orange">Orange</option> | ||
<option value="pink">Pink</option> | ||
<option value="purple">Purple</option> | ||
<option value="red">Red</option> | ||
</select> | ||
</li> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
<div>Config UI X UI Auth Mode</div> | ||
<select class="custom-select custom-select-sm w-25" formControlName="HOMEBRIDGE_CONFIG_UI_AUTH"> | ||
<option value="form">Form</option> | ||
<option value="basic">Basic</option> | ||
<option value="none">None</option> | ||
</select> | ||
</li> | ||
</ul> | ||
|
||
</form> |
44 changes: 44 additions & 0 deletions
44
ui/src/app/platform-tools/docker/settings/settings.component.scss
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.material-switch > input[type="checkbox"] { | ||
display: none; | ||
} | ||
|
||
.material-switch > label { | ||
cursor: pointer; | ||
height: 0px; | ||
position: relative; | ||
width: 40px; | ||
} | ||
|
||
.material-switch > label::before { | ||
background: rgb(0, 0, 0); | ||
box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5); | ||
border-radius: 8px; | ||
content: ''; | ||
height: 16px; | ||
margin-top: -8px; | ||
position:absolute; | ||
opacity: 0.3; | ||
transition: all 0.4s ease-in-out; | ||
width: 40px; | ||
} | ||
.material-switch > label::after { | ||
background: rgb(255, 255, 255); | ||
border-radius: 16px; | ||
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); | ||
content: ''; | ||
height: 24px; | ||
left: -4px; | ||
margin-top: -8px; | ||
position: absolute; | ||
top: -4px; | ||
transition: all 0.3s ease-in-out; | ||
width: 24px; | ||
} | ||
.material-switch > input[type="checkbox"]:checked + label::before { | ||
background: inherit; | ||
opacity: 0.5; | ||
} | ||
.material-switch > input[type="checkbox"]:checked + label::after { | ||
background: inherit; | ||
left: 20px; | ||
} |
Oops, something went wrong.