Let the operator edit the station config in the window instead of hand-editing the file and relaunching.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+132
-3
@@ -9,11 +9,31 @@ main {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
#connection {
|
||||
.status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
#connection {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#gear {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: #f2f4f6;
|
||||
font-size: 20px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
#protocol {
|
||||
min-height: 1.4em;
|
||||
margin: 0;
|
||||
@@ -24,7 +44,7 @@ main {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
button {
|
||||
#ptt {
|
||||
margin-top: 24px;
|
||||
width: 100%;
|
||||
height: 64px;
|
||||
@@ -36,6 +56,115 @@ button {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
button.down {
|
||||
#ptt.down {
|
||||
background: #9b2226;
|
||||
}
|
||||
|
||||
#ptt:disabled {
|
||||
background: #3a4248;
|
||||
color: #9aa3ab;
|
||||
}
|
||||
|
||||
#config {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
box-sizing: border-box;
|
||||
padding: 16px;
|
||||
background: rgba(16, 20, 24, 0.82);
|
||||
}
|
||||
|
||||
#config[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#config form {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 16px;
|
||||
border: 1px solid #2c3640;
|
||||
border-radius: 8px;
|
||||
background: #101418;
|
||||
}
|
||||
|
||||
#config h1 {
|
||||
margin: 0 0 12px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#config-error {
|
||||
margin: 0 0 12px;
|
||||
color: #f4a261;
|
||||
}
|
||||
|
||||
#config label {
|
||||
display: block;
|
||||
margin: 0 0 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#config input {
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 4px;
|
||||
padding: 8px;
|
||||
border: 1px solid #2c3640;
|
||||
border-radius: 6px;
|
||||
background: #0c1014;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
#config .check input {
|
||||
display: inline-block;
|
||||
width: auto;
|
||||
margin: 0 0 0 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.secret {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.secret input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
#auth-toggle,
|
||||
#cancel,
|
||||
#save {
|
||||
height: 40px;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
#auth-toggle {
|
||||
width: 72px;
|
||||
background: #243038;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.actions button {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
#cancel {
|
||||
background: #243038;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
#save {
|
||||
background: #2d6a4f;
|
||||
color: white;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user