mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 07:19:26 +00:00
File formatting fixed.
This commit is contained in:
parent
ef051c8e86
commit
71cd3c9a34
2 changed files with 21 additions and 116 deletions
|
|
@ -1,21 +1,21 @@
|
|||
/*
|
||||
Macrame is a program that enables the user to create keyboard macros and button panels.
|
||||
The macros are saved as simple JSON files and can be linked to the button panels. The panels can
|
||||
Macrame is a program that enables the user to create keyboard macros and button panels.
|
||||
The macros are saved as simple JSON files and can be linked to the button panels. The panels can
|
||||
be created with HTML and CSS.
|
||||
|
||||
Copyright (C) 2025 Jesse Malotaux
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
|
@ -71,8 +71,8 @@ var translations = map[string]string{
|
|||
"Quote": "'",
|
||||
"Semicolon": ";",
|
||||
"Backquote": "`",
|
||||
"Backslash": "\",
|
||||
"IntlBackslash": "\",
|
||||
"Backslash": "\\",
|
||||
"IntlBackslash": "\\",
|
||||
"Slash": "/",
|
||||
"Comma": ",",
|
||||
"Period": ".",
|
||||
|
|
@ -88,7 +88,7 @@ func Translate(code string) string {
|
|||
}
|
||||
|
||||
func ReverseTranslate(name string) string {
|
||||
if name == "\" {
|
||||
if name == "\\" {
|
||||
return "Backslash"
|
||||
}
|
||||
|
||||
|
|
@ -99,105 +99,3 @@ func ReverseTranslate(name string) string {
|
|||
}
|
||||
return name
|
||||
}
|
||||
|
||||
// func Translate(code string) string {
|
||||
// translations := map[string]string{
|
||||
// "ArrowUp": "up",
|
||||
// "ArrowDown": "down",
|
||||
// "ArrowRight": "right",
|
||||
// "ArrowLeft": "left",
|
||||
// "Meta": "cmd",
|
||||
// "MetaLeft": "lcmd",
|
||||
// "MetaRight": "rcmd",
|
||||
// "Alt": "alt",
|
||||
// "AltLeft": "lalt",
|
||||
// "AltRight": "ralt",
|
||||
// "Control": "ctrl",
|
||||
// "ControlLeft": "lctrl",
|
||||
// "ControlRight": "rctrl",
|
||||
// "Shift": "shift",
|
||||
// "ShiftLeft": "lshift",
|
||||
// "ShiftRight": "rshift",
|
||||
// "AudioVolumeMute": "audio_mute",
|
||||
// "AudioVolumeDown": "audio_vol_down",
|
||||
// "AudioVolumeUp": "audio_vol_up",
|
||||
// "MediaTrackPrevious": "audio_prev",
|
||||
// "MediaTrackNext": "audio_next",
|
||||
// "MediaPlayPause": "audio_play|audio_pause",
|
||||
// "Numpad0": "num0",
|
||||
// "Numpad1": "num1",
|
||||
// "Numpad2": "num2",
|
||||
// "Numpad3": "num3",
|
||||
// "Numpad4": "num4",
|
||||
// "Numpad5": "num5",
|
||||
// "Numpad6": "num6",
|
||||
// "Numpad7": "num7",
|
||||
// "Numpad8": "num8",
|
||||
// "Numpad9": "num9",
|
||||
// "NumLock": "num_lock",
|
||||
// "NumpadDecimal": "num.",
|
||||
// "NumpadAdd": "num+",
|
||||
// "NumpadSubtract": "num-",
|
||||
// "NumpadMultiply": "num*",
|
||||
// "NumpadDivide": "num/",
|
||||
// "NumpadEnter": "num_enter",
|
||||
// "Clear": "num_clear",
|
||||
// "BracketLeft": "[",
|
||||
// "BracketRight": "]",
|
||||
// "Quote": "'",
|
||||
// "Semicolon": ";",
|
||||
// "Backquote": "`",
|
||||
// "Backslash": "\",
|
||||
// "IntlBackslash": "\",
|
||||
// "Slash": "/",
|
||||
// "Comma": ",",
|
||||
// "Period": ".",
|
||||
// "Equal": "=",
|
||||
// "Minus": "-",
|
||||
// }
|
||||
|
||||
// if translations[code] == "" {
|
||||
// return strings.ToLower(code)
|
||||
// }
|
||||
|
||||
// return translations[code]
|
||||
// }
|
||||
|
||||
// Redundant translation because tolower can be used
|
||||
// "Backspace": "backspace",
|
||||
// "Delete": "delete",
|
||||
// "Enter": "enter",
|
||||
// "Tab": "tab",
|
||||
// "Escape": "esc",
|
||||
// "Home": "home",
|
||||
// "End": "end",
|
||||
// "PageUp": "pageup",
|
||||
// "PageDown": "pagedown",
|
||||
// "F1": "f1",
|
||||
// "F2": "f2",
|
||||
// "F3": "f3",
|
||||
// "F4": "f4",
|
||||
// "F5": "f5",
|
||||
// "F6": "f6",
|
||||
// "F7": "f7",
|
||||
// "F8": "f8",
|
||||
// "F9": "f9",
|
||||
// "F10": "f10",
|
||||
// "F11": "f11",
|
||||
// "F12": "f12",
|
||||
// "F13": "f13",
|
||||
// "F14": "f14",
|
||||
// "F15": "f15",
|
||||
// "F16": "f16",
|
||||
// "F17": "f17",
|
||||
// "F18": "f18",
|
||||
// "F19": "f19",
|
||||
// "F20": "f20",
|
||||
// "F21": "f21",
|
||||
// "F22": "f22",
|
||||
// "F23": "f23",
|
||||
// "F24": "f24",
|
||||
// "CapsLock": "capslock",
|
||||
// "Space": "space",
|
||||
// "PrintScreen": "printscreen",
|
||||
// "Insert": "insert",
|
||||
|
|
|
|||
|
|
@ -34,8 +34,15 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||
<RemoteView v-else />
|
||||
<div class="grid gap-2 text-slate-300">
|
||||
<h3>About Macrame</h3>
|
||||
<p>Macrame is an open-source application designed to turn any device into a customizable button panel. Whether you're optimizing your workflow or enhancing your gaming experience, Macrame makes it simple to create and link macros to your button panels.</p>
|
||||
<p>For more information, including details on licensing, visit <a href="https://macrame.github.io" target="_blank">https://macrame.github.io</a></p>
|
||||
<p>
|
||||
Macrame is an open-source application designed to turn any device into a customizable
|
||||
button panel. Whether you're optimizing your workflow or enhancing your gaming experience,
|
||||
Macrame makes it simple to create and link macros to your button panels.
|
||||
</p>
|
||||
<p>
|
||||
For more information, including details on licensing, visit
|
||||
<a href="https://macrame.github.io" target="_blank">https://macrame.github.io</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue