Replaces hardcoded JS category filters and config-type buttons with server-pushed settings synced from qt_settings (MariaDB) → local_qt_settings (SQLite). - new table local_qt_settings (AutoMigrate) — synced after component sync - GET /api/configurator-settings returns config_types, tab_config, always_visible_tabs, required_categories with hardcoded fallbacks - new-config modal: type buttons rendered from server data (Сервер/СХД static fallback) - configurator: TAB_CONFIG and category filter driven by server; required-category badge on tabs - SyncQtSettings wired into SyncComponents and SyncAll handlers (non-fatal on old server) - bible-local/server-contract-qt-settings.md — contract for server-side agent - page titles: OFS → QFS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
334 B
Go
11 lines
334 B
Go
package models
|
|
|
|
// QtSetting is the MariaDB-side model for qt_settings.
|
|
// The table is managed by the server-side agent; QF only reads from it.
|
|
type QtSetting struct {
|
|
Name string `gorm:"primaryKey;size:100" json:"name"`
|
|
Value string `gorm:"type:text" json:"value"`
|
|
}
|
|
|
|
func (QtSetting) TableName() string { return "qt_settings" }
|