feat(09-02): add shortcuts config package with default bindings and Wails persistence
- Create backend/shortcuts/config.go with DefaultBindings(), ApplyDefaults(), Validate() - Wire Shortcuts field into main Config struct with TOML persistence - Add GetShortcuts, SetShortcuts, SetShortcut, ResetShortcuts Wails binding methods - Regenerate Wails TypeScript bindings for new config methods - Fix wsl lint in library.go (blank line before logger call)
This commit is contained in:
@@ -22,6 +22,10 @@ export function GetScanConcurrency() {
|
||||
return window['go']['config']['Config']['GetScanConcurrency']();
|
||||
}
|
||||
|
||||
export function GetShortcuts() {
|
||||
return window['go']['config']['Config']['GetShortcuts']();
|
||||
}
|
||||
|
||||
export function GetThemeAccentColor() {
|
||||
return window['go']['config']['Config']['GetThemeAccentColor']();
|
||||
}
|
||||
@@ -38,6 +42,10 @@ export function Load() {
|
||||
return window['go']['config']['Config']['Load']();
|
||||
}
|
||||
|
||||
export function ResetShortcuts() {
|
||||
return window['go']['config']['Config']['ResetShortcuts']();
|
||||
}
|
||||
|
||||
export function Save() {
|
||||
return window['go']['config']['Config']['Save']();
|
||||
}
|
||||
@@ -66,6 +74,14 @@ export function SetScanConcurrency(arg1) {
|
||||
return window['go']['config']['Config']['SetScanConcurrency'](arg1);
|
||||
}
|
||||
|
||||
export function SetShortcut(arg1, arg2) {
|
||||
return window['go']['config']['Config']['SetShortcut'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function SetShortcuts(arg1) {
|
||||
return window['go']['config']['Config']['SetShortcuts'](arg1);
|
||||
}
|
||||
|
||||
export function SetThemeAccentColor(arg1) {
|
||||
return window['go']['config']['Config']['SetThemeAccentColor'](arg1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user