good
This commit is contained in:
+39
-1
@@ -156,7 +156,8 @@ type Meta struct {
|
||||
}
|
||||
|
||||
type UI struct {
|
||||
InfoModal InfoModal `json:"infoModal"`
|
||||
InfoModal InfoModal `json:"infoModal"`
|
||||
ShortcutsModal ShortcutsModal `json:"shortcutsModal"`
|
||||
}
|
||||
|
||||
type InfoModal struct {
|
||||
@@ -174,6 +175,43 @@ type TechStack struct {
|
||||
CSS3 string `json:"css3"`
|
||||
}
|
||||
|
||||
type ShortcutsModal struct {
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Sections ShortcutsSections `json:"sections"`
|
||||
}
|
||||
|
||||
type ShortcutsSections struct {
|
||||
Zoom ShortcutGroup `json:"zoom"`
|
||||
ViewControls ShortcutGroup `json:"viewControls"`
|
||||
Navigation ShortcutGroup `json:"navigation"`
|
||||
Actions ShortcutGroup `json:"actions"`
|
||||
Browser ShortcutGroup `json:"browser"`
|
||||
}
|
||||
|
||||
type ShortcutGroup struct {
|
||||
Title string `json:"title"`
|
||||
ZoomIn *ShortcutItem `json:"zoomIn,omitempty"`
|
||||
ZoomOut *ShortcutItem `json:"zoomOut,omitempty"`
|
||||
ZoomReset *ShortcutItem `json:"zoomReset,omitempty"`
|
||||
ToggleLength *ShortcutItem `json:"toggleLength,omitempty"`
|
||||
ToggleLogos *ShortcutItem `json:"toggleLogos,omitempty"`
|
||||
ToggleTheme *ShortcutItem `json:"toggleTheme,omitempty"`
|
||||
ExpandAll *ShortcutItem `json:"expandAll,omitempty"`
|
||||
CollapseAll *ShortcutItem `json:"collapseAll,omitempty"`
|
||||
ScrollToTop *ShortcutItem `json:"scrollToTop,omitempty"`
|
||||
Print *ShortcutItem `json:"print,omitempty"`
|
||||
CloseModal *ShortcutItem `json:"closeModal,omitempty"`
|
||||
ShowHelp *ShortcutItem `json:"showHelp,omitempty"`
|
||||
Tab *ShortcutItem `json:"tab,omitempty"`
|
||||
Enter *ShortcutItem `json:"enter,omitempty"`
|
||||
}
|
||||
|
||||
type ShortcutItem struct {
|
||||
Key string `json:"key"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
// LoadCV loads CV data from a JSON file for the specified language
|
||||
func LoadCV(lang string) (*CV, error) {
|
||||
if lang != "en" && lang != "es" {
|
||||
|
||||
Reference in New Issue
Block a user