1674 Commits

Author SHA1 Message Date
László Monda
adca007cac Add KeyActionFactory. Add compact length related methods to UhkBuffer. Add KeyActions. 2016-04-01 01:55:34 +02:00
László Monda
ae6342911c Make KeyAction able to instantiate every KeyAction subclass. 2016-03-31 16:36:40 +02:00
László Monda
ad5118a62c Remove tasks. 2016-03-31 12:52:45 +02:00
László Monda
9029476d37 Update the path of typings. 2016-03-31 12:45:42 +02:00
László Monda
fda7efab8b Ignore the typings directory. 2016-03-31 12:35:31 +02:00
László Monda
f8b0f6bd4c Pull type definition files in the post install phase. 2016-03-31 12:20:53 +02:00
László Monda
49e804ea6d Move typings.json to the root directory. 2016-03-31 12:15:04 +02:00
László Monda
5e55e8436c Move tslint.json to the root directory. Add the lint task to run tslint. 2016-03-31 12:04:06 +02:00
László Monda
386882e1c6 Rename SwitchLayerAction.ts to SwitchKeymapAction.ts and vice versa, so that these files contain their relevant classes. 2016-03-31 11:30:50 +02:00
László Monda
3cb91ad478 Add assert decorator functions. 2016-03-31 10:12:41 +02:00
László Monda
d2f3ec62f0 Use template strings where needed. 2016-03-30 22:17:07 +02:00
László Monda
45dc8a520f Make layer toggleable. 2016-03-30 17:55:10 +02:00
László Monda
bbd3227645 Add SwitchLayerAction. 2016-03-30 17:43:27 +02:00
László Monda
5b6f62c113 Make the first byte of KeyAction items purely denote their type. Make the binary representation of KeyAction items variable-length. 2016-03-30 17:19:09 +02:00
László Monda
4bd1c8b3e9 Let's not duplicate part of the KeyActionId enum as LongPressActionId because duplication should only cause troubles down the road. 2016-03-30 12:59:03 +02:00
László Monda
5bd6c0a8a0 Use KeyActionId values wherever possible. Add some further value checks. Assign this.mouseAction properly. 2016-03-30 12:31:53 +02:00
László Monda
17e56fdf7c Add KeyActionId enum. 2016-03-30 02:19:10 +02:00
László Monda
0edde3236a Add TypeChecker and use its methods wherever possible. 2016-03-30 01:59:05 +02:00
László Monda
94e5d55d8f Add DualRoleKeystrokeAction. 2016-03-30 01:48:08 +02:00
László Monda
7660bdb729 Rename copy-pasted identifiers. 2016-03-29 23:03:38 +02:00
László Monda
a721dd3212 Add SwitchKeymapAction 2016-03-29 23:02:36 +02:00
László Monda
1b75c067f4 Add PlayMacroAction. 2016-03-29 22:56:51 +02:00
László Monda
5f6727b53a Rename KeyActionNone to NoneAction. 2016-03-29 13:07:33 +02:00
László Monda
00827b1b94 Add MouseAction. 2016-03-29 13:05:48 +02:00
László Monda
03dbf3a142 Move the classes of the config items into the newly created config-items directory. 2016-03-29 02:05:59 +02:00
László Monda
ecb9d6f73c Rename model to config-serializer 2016-03-29 01:56:58 +02:00
László Monda
d25910b969 Remove redundant code that has already been ported as classes. 2016-03-29 01:56:00 +02:00
László Monda
01e06573df Add license. 2016-03-29 01:48:37 +02:00
László Monda
30f735d0ac Import classes in the proper way to not cause runtime errors. 2016-03-29 01:43:52 +02:00
László Monda
b2f5bf1d66 Throw consistent error messages. 2016-03-29 00:34:49 +02:00
László Monda
0aeec88cb5 Make Serializable a generic. Make fromJson() and fromBinary() return the generic type. 2016-03-29 00:17:11 +02:00
László Monda
924234cea8 Extract key action types to their respective classes. 2016-03-28 23:59:09 +02:00
László Monda
81fe488dce Rename actionType to keyActionType and macroActionType respectively. 2016-03-28 17:10:30 +02:00
László Monda
cbf83cf778 Add KeyActionNone 2016-03-26 14:58:57 +01:00
László Monda
252b0969d6 Merge branch 'master' of github.com:UltimateHackingKeyboard/agent-mockup 2016-03-26 02:53:42 +01:00
László Monda
9d77d7212b Add UhkBuffer.backtrack() and implement the KeyAction class. 2016-03-26 02:52:50 +01:00
Arpad Csanyi
32b219a483 Remove red lines from keyboard designs. 2016-03-26 01:03:12 +01:00
Arpad Csanyi
f844350782 Change the order of Scancode and Modifiers fixing #23.
I find the current spacing between the "Long press action" and the
"Modifiers" is enough, and not too much.
2016-03-26 00:54:25 +01:00
Arpad Csanyi
5099ea2f01 Close #21 by making the border of the popover's tip black. 2016-03-26 00:47:38 +01:00
Arpad Csanyi
f5756a72bd Restructure scss file to make use of basic language features. 2016-03-26 00:45:56 +01:00
Arpad Csanyi
1c05abe9b9 Make scss file from old style.css and compile it as well. #21 2016-03-26 00:27:38 +01:00
Arpad Csanyi
60b11f9a69 Add css related to the previous change. #21 2016-03-26 00:26:59 +01:00
Arpad Csanyi
4c4717a982 Set currently selected key's color to the primary color. #21
This commit relates to #18 as well, as we will have to refactor the
color set here after finishing that issue.
2016-03-26 00:16:39 +01:00
Arpad Csanyi
c62b8506e9 Close #19 by removing empty stars from the keymap menu items.
This way only the currently set default keymap will have an indicator in
the menu, and there won't be any interaction possible from there.
2016-03-26 00:00:06 +01:00
Arpad Csanyi
74cfe6d1af Close #20 by removing drag handles. 2016-03-25 23:32:52 +01:00
László Monda
32646f3616 Validate scancode via accessor. 2016-03-25 21:53:30 +01:00
László Monda
32adbf2124 Deserialize the binary representation of Keystroke. Check scancode validity. 2016-03-25 21:02:18 +01:00
László Monda
b9fe33d5d6 Make UhkBuffer allocate a Buffer. 2016-03-25 20:46:33 +01:00
László Monda
0c7ff11f33 Add tslint.json and fix coding style accordingly for the most part. 2016-03-25 18:33:51 +01:00
László Monda
82f181d184 Add tslint to devDependencies and clean up the codebase according to tslint suggestions. 2016-03-25 02:02:20 +01:00