The very basic client app, not adapted for mobiles.
Some checks failed
Linting and tests / Linting (push) Failing after 5s
Linting and tests / Tests (push) Failing after 4s

This commit is contained in:
2025-09-10 19:34:49 +05:00
parent b65b8a9e72
commit e3b9c9ae40
50 changed files with 2816 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package models
import (
"bunker/client/internal/services/core/options/dto"
"fyne.io/fyne/v2"
)
// OptionPane это описание одной панели настроек в окне настроек.
type OptionPane struct {
Widget fyne.CanvasObject
SaveHandler func() error
Name string
}
// OptionPaneFromDTO конвертирует параметры панели настроек из DTO во внутреннее представление.
func OptionPaneFromDTO(dtoData *dto.OptionPane) *OptionPane {
return &OptionPane{
Widget: dtoData.Widget,
SaveHandler: dtoData.SaveHandler,
Name: dtoData.Name,
}
}