chore: Refine config form and UI components

- Add x-init hook to set default form values in config form
- Adjust scrollbar hover color in layout
- Create marker files for providers, source, and destination packages
- Remove unnecessary error styling in local source form
This commit is contained in:
StarFleetCPTN committed 2025-03-08 23:03:41 -08:00
1 parent 43f1772038
commit 3b9ff3b6a8
6 files changed
+17 -3

No files matched your search

+7 -1
View File
@@ -223,7 +223,13 @@ templ ConfigForm(ctx context.Context, data ConfigFormData) {
hx-redirect="/configs"
hx-boost="true"
x-data={ getInitialData(data.Config) }
@submit.prevent="if (validateForm()) { loading = true; $el.submit(); } else { loading = false; }"
x-init="$nextTick(() => {
// Ensure initial form state displays correctly on load
sourceType = sourceType || 'local';
destinationType = destinationType || 'local';
sourcePort = sourcePort || 22;
destPort = destPort || 22;
})"
>
<!-- Name field -->