caddy config frontend

This commit is contained in:
Tykayn 2025-10-07 14:09:53 +02:00 committed by tykayn
parent 5d6154e631
commit 3b70a4772d
4 changed files with 26 additions and 15 deletions

View file

@ -13,8 +13,8 @@
+ button{ + button{
margin-left: 10px; margin-left: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
} }
@ -30,7 +30,7 @@
border-right: 1px solid rgba(0,0,0,0.06); border-right: 1px solid rgba(0,0,0,0.06);
box-shadow: 2px 0 12px rgba(0,0,0,0.03); box-shadow: 2px 0 12px rgba(0,0,0,0.03);
padding: 16px; padding: 16px;
padding-bottom: 150px; padding-bottom: 150px;
overflow: auto; overflow: auto;
} }
@ -46,7 +46,7 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 8px 12px; padding: 8px 12px;
.loading { .loading {
color: #007bff; color: #007bff;
font-size: 12px; font-size: 12px;
@ -59,40 +59,40 @@
background: #f8f9fa; background: #f8f9fa;
border-radius: 6px; border-radius: 6px;
border: 1px solid #e9ecef; border: 1px solid #e9ecef;
.control-group { .control-group {
margin-bottom: 12px; margin-bottom: 12px;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
label { label {
display: block; display: block;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
color: #495057; color: #495057;
margin-bottom: 4px; margin-bottom: 4px;
input[type="checkbox"] { input[type="checkbox"] {
margin-right: 6px; margin-right: 6px;
} }
} }
input[type="number"] { input[type="number"] {
width: 100%; width: 100%;
padding: 6px 8px; padding: 6px 8px;
border: 1px solid #ced4da; border: 1px solid #ced4da;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
&:focus { &:focus {
outline: none; outline: none;
border-color: #007bff; border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0,123,255,0.25); box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
} }
} }
.btn { .btn {
width: 100%; width: 100%;
padding: 8px 12px; padding: 8px 12px;
@ -103,7 +103,7 @@
cursor: pointer; cursor: pointer;
font-size: 12px; font-size: 12px;
transition: background-color 0.2s; transition: background-color 0.2s;
&:hover { &:hover {
background: #5a6268; background: #5a6268;
} }
@ -124,7 +124,7 @@
width: 50vw; width: 50vw;
max-height: 80vh; max-height: 80vh;
display: block; display: block;
} }
app-edit-form{ app-edit-form{
position: fixed; position: fixed;
@ -141,4 +141,4 @@ app-edit-form{
box-shadow: 0 0 10px rgba(0,0,0,0.1); box-shadow: 0 0 10px rgba(0,0,0,0.1);
z-index: 1000; z-index: 1000;
padding-bottom: 150px; padding-bottom: 150px;
} }

View file

@ -17,6 +17,9 @@
{{ oedbc.label }} {{ oedbc.label }}
</div> </div>
<div class="what">
{{ whats[$index] }}
</div>
</div> </div>
} }
</div> --> </div> -->

View file

@ -15,17 +15,21 @@ export class Menu {
public onToggleView?: () => void; public onToggleView?: () => void;
public onDownloadGeoJSON?: () => void; public onDownloadGeoJSON?: () => void;
public onDownloadCSV?: () => void; public onDownloadCSV?: () => void;
protected whats: any = [];
constructor() { constructor() {
let keys = Object.keys(oedb_what_categories.presets.what); let keys = Object.keys(oedb_what_categories.presets.what);
this.oedb_what_categories = []; this.oedb_what_categories = [];
this.whats = [];
keys.forEach((key) => { keys.forEach((key) => {
this.oedb_what_categories.push( this.oedb_what_categories.push(
oedb_what_categories.presets.what[key as keyof typeof oedb_what_categories.presets.what] oedb_what_categories.presets.what[key as keyof typeof oedb_what_categories.presets.what]
); );
this.whats.push(key)
}) })
} }
toggleView() { this.onToggleView && this.onToggleView(); } toggleView() { this.onToggleView && this.onToggleView(); }

View file

@ -39,16 +39,20 @@ button, .button{
} }
} }
input{ input{
width: 100%; width: 200px;
padding: 10px 12px; padding: 10px 12px;
border-radius: 10px; border-radius: 10px;
border: 1px solid rgba(0, 0, 0, 0.12); border: 1px solid rgba(0, 0, 0, 0.12);
background: #ffffff; background: #ffffff;
color: #22303a; color: #22303a;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
display: block;
margin-bottom: 0.5rem;
margin-top: 0.25rem;
} }
app-root, app-home { app-root, app-home {
display: block; display: block;
min-height: 100vh; min-height: 100vh;