Commit Graph

923 Commits

Author SHA1 Message Date
Róbert Kiss
c9a1e9853c feat(notification): display app errors, close #319 (#333)
* refactor(log): Refactor logging service

Removed the InjectionToken and changed LogService as default logger.
Finally ElectronLogService implements LogService directly.

* refactor: Optimize imports

* fix(app-update): Add missing rxjs imports

* style: Remove extra line

* refactor(store): Move app.actions.ts to shared module

* feat(notification): Add notification panel

Add angular-notifier to the app and created the ShowNotificationAction
to manage notifications

* style(notification): Fix tslint suggestion

* fix(notification): Add missing rxjs imports
2017-07-05 13:41:31 +02:00
Róbert Kiss
6bc2bc8331 fix(device): Agent-electron should always read the configuration from the UHK over USB. (#327)
The feature will implement later.
2017-07-02 22:38:29 +02:00
Róbert Kiss
2df8f2ea54 Windows set up permission button #261 (#300)
* style(privilege): Fix typo 'excusive' -> 'exclusive'

* style(privilege): remove unused imports

* style(privilege): Fix typo 'initizalized$' -> 'initialized$'

* feat(log): Add application wide logger and error handler

It is help to debug electron install app on different device

* feat(privilege): Add windows USB driver installation

* build: I need the windows installer to test the app on windows

* fix(privilege): change wdi-simpler installer to zadic

* feat(log): change log level to debug in renderer process

* chore: Add author in package.json

* feat(privilege): Add privilege setter file as extraResource

* fix(log): Allowed transport level change only in main process

* fix(privilege): Fix app path calculation

* fix(privilege): Take the scriptPath between double quote

* build: revert the appveyor settings

* refactor(privilege): Extract vendor ID, product ID and MAX_PAYLOAD_SIZE into constants file

* refactor(privilege): Add both 32 and 64 bit zadics to extraResource of the installer

* feat(device): Add HID API communication protocol

* build: Fix npm install process

* build: Fix npm install process v2

* ci: Add libudev-dev as travis apt dependencies

* ci: Merge travis apt packages

* ci: remove node-hid from build:usb

* ci: try to fix linux build

* ci: node-hid use git repo

* ci: Add libusb-1.0-0-dev to travis apt dependency

* feat(device): Use logging service when communicate with the device

* build: create test build

* build: PUBLISH_FOR_PULL_REQUEST override

* build: revert TEST_BUILD to false

* build: node-hid use package version instead of git repo

* refactor: remove unused device store files from PR

* ci: Manage test build from environment variable

* fix(privilege): Set rules files dir base on dev or prod mode

* fix(log): Extract nested properties of the logged object

* feat(log): use util.inspect in logger service

* build: upgrade @types/node-hid -> 0.5.2

* fix(device): Add extra logging when try to open device.

* fix(device): log device description and not the device

* fix(device): add win specific write

* fix(device): add report id as first byte

* style(privilege): Reformat else and comment in privilege-checker component

* fix(privilege): Comment out windows branch
2017-07-02 20:33:28 +02:00
László Monda
84b13d3219 Reorder the keys of the Whitespace and Miscellaneous sections. 2017-06-29 20:46:16 +02:00
László Monda
0f81a6fb52 Rephrase the help text of the long press action. 2017-06-28 23:24:38 +02:00
László Monda
6a8e7e0100 Rename the Misc category to Miscellaneous. 2017-06-28 23:14:45 +02:00
László Monda
a796045b4f Move the Whitespace and Misc sections right after the Punctuation section. 2017-06-28 23:10:25 +02:00
László Monda
bdc6c06a7e Move the Whitespace category right before the Misc category. 2017-06-28 22:54:44 +02:00
László Monda
181d864126 Move Numpad keys to the end of the scancode list. 2017-06-28 22:04:25 +02:00
László Monda
da1f9b29b5 Rearrange navigation keys. 2017-06-28 21:57:55 +02:00
László Monda
202463488e Use singular "Modifier" just like for "Layer switcher". 2017-06-28 16:45:09 +02:00
László Monda
2a37be94f2 Get rid of the scancodes of 00 and 000. 2017-06-28 10:17:32 +02:00
László Monda
d19539972d Clean up scancodes. 2017-06-28 10:11:09 +02:00
László Monda
70b57a901a Refine the phrasing of the bottom macro buttons. 2017-06-27 22:47:12 +02:00
József Farkas
6c271c219a fix: Key macro action saving (#322)
Fixes #321
2017-06-27 22:28:37 +02:00
Attila Csanyi
22a59160fb renaming config-serializer upper camel case file names to dash case (#320)
* renaming: config-serializer upper camel case file names to dash case (closes #305)

* fix: remove then add same source with lowercase

* fix: d.ts file with lowercase
2017-06-27 09:41:07 +02:00
Róbert Kiss
121807a65a Add 'New update available' dialog to the electron version (#299)
* build(tsconfig): Rename root tsconfig.json -> tsconfig.base.json

* feat(auto-update): Add update dialog

When new update available than new message will visible of the top of the screen with 2 buttons 'Update' and 'Close'.
- Update button: Update the application (close and restart)
- Close button: Hide the updatePanel

* fix(auto-update): Add types to the event methods

* style: Add comma after SafeStylePipe import

I forgot add the comma when I rebased the branch

* fix(auto-update): Use electron-is-dev package to detect dev build

I removed the isDev() function from the shared util library because it is electron specific code.

* ci: Change osx_image: xcode8.3

Recommended after the last travis upgrade

* feat(auto-update): Add auto update settings page and save config save on electron platform

* ci: Fix osx image

* ci: Upgrade the electron builder -> 19.6.1

The builder now use the 2 package.json structure and build only
the necessary dependencies.
2017-06-22 14:22:54 +02:00
Attila Csanyi
2598109f8c Add new system scan codes (#316)
Closes #304
2017-06-21 20:09:39 +02:00
László Monda
6e23b2a91b Make the text size of the "Layers:" text next to the layer buttons the same size as the text size of the buttons. 2017-06-21 19:20:05 +02:00
Attila Csanyi
bf435f9e82 use bootstrap button group instead of separate buttons (#317) 2017-06-21 17:33:26 +02:00
József Farkas
b7b56ca491 Fix invalid scancode option match in KeypressTab 2017-06-19 20:51:39 +02:00
Róbert Kiss
438aab5c71 fix(keymap): Save keymap user configuration after changed (#313)
* fix(keymap): Save keymap user configuration after changed

fix #308 issue

* fix(keymap): remove unused imports

* fix(keymap): change switchMap to map
2017-06-17 21:35:29 +02:00
József Farkas
609fcb9a4a Keyboard split/merge animation (#311) 2017-06-17 21:19:44 +02:00
J??zsef Farkas
ecd495b7c2 perf: Cache SvgModules
It will prevent them to be parsed multiple times.
2017-06-17 14:31:25 +02:00
József Farkas
10f44f974a Enable OnPush cd strategy in SvgKeyboardKeyComponent 2017-06-17 14:17:56 +02:00
József Farkas
baa48f2a72 refactor animation imports 2017-06-17 13:49:54 +02:00
József Farkas
bd7add80cf Update dependencies
Angular 4.2.3
2017-06-17 10:56:12 +02:00
József Farkas
3ab808c61e Update electron-builder 2017-06-17 10:14:57 +02:00
Attila Csanyi
559fec139f Issue 201 - Mark selected key with blue (#290)
* issue-201: initial try

* revert: remove first solution related changes

* feature: change the colour of selected key to blue (empty key selection case not covered)

* typescript: prevent errors in editors due to missing tsconfig for shared

* cleanup: remove unused import

* fix: solve empty key case, pass down selected layerId, moduleId and keyId

* cleanup: remove console.log statement

* cleanup: remove extra line

* review: animation delay shorter, exactly as short as the animation delay of the popover

* review: prevent remaining signature blue when click twice on a key in rapid succession

* review: right signature colour after blending (http://colorblendy.com/#!/multiply/4099e5/cccccc)

* review comments fixes

* review: use simplified condition with help of ‘?’
2017-06-16 15:06:12 +02:00
László Monda
1d376cad55 Fix typo. 2017-06-15 23:59:02 +02:00
József Farkas
16596d8a18 Fix flags restoration in KeystrokeAction fromBinary 2017-06-15 23:51:21 +02:00
László Monda
4414d9cfba Treat keystroke actions as none actions when no scancode, modifiers and long press action is specified. 2017-06-15 23:19:51 +02:00
László Monda
0843ecd89e Fix readCompactLength() 2017-06-15 13:03:02 +02:00
József Farkas
975c4709b4 Remove unwanted SwitchKeymapAction 2017-06-13 23:16:28 +02:00
József Farkas
aa38762c42 ANSI and ISO layout handling (#309)
* Read left and right modules

* Add missing styles

* Calculate indices from ids

* Skip missing keys

* Align key actions to match the order specified by the svg

* Fix svg key hover

* Fix key hover

Without using css important
2017-06-13 23:04:57 +02:00
József Farkas
f246900cd5 Fix converting to JsonObject in Module 2017-06-13 22:18:05 +02:00
József Farkas
1150f9d0ce Fixes on individual QWERTY keymap 2017-06-13 22:15:03 +02:00
József Farkas
59b546cb6a Fix invalid scancodes on QWERTY fn layer 2017-06-13 21:27:53 +02:00
József Farkas
1420e93a1b Register some missing media icons 2017-06-13 21:27:13 +02:00
Róbert Kiss
367bc42457 refactor(store): Refactor reducer initialisation (#298)
* refactor(store): Refactor reducer initialization

Refactored the ngrx/store reducer initialization, because hard to extend the original solution.
Bad practise the object initialization inside the components / services. The new solution use angular DI everywhere.
Separated the web and electron configuration store.

* Media key support (#294)

* Introduce type for KeystrokeAction

* Increment dataModelVersion

New property 'type' for KeystrokeAction

* Mapping for media keys

* Media key selecting support for KeypressTab

* refactor: Use more meaningful name (selectedScancodeOption)

* Store the keystroke type in key action type instead of a new field

* Fix NoneAction validation
Fixes #301

* Update electron version

It fixes electron build. The types are part of the electron package itself.

* Fix keystroke selection when additional field is given but no scancode (#306)

* Additional media keys with icons (#307)

* Add missing scancodes for media keystrokes

* Use icons for media keys

* Fix media scancodes.

* Create README.md

* build: upgrade electron and typescript version

Electron contains the typings files.

* refactor(store): Refactor reducer initialization

Refactored the ngrx/store reducer initialization, because hard to extend the original solution.
Bad practise the object initialization inside the components / services. The new solution use angular DI everywhere.
Separated the web and electron configuration store.

* build: upgrade electron and typescript version

Electron contains the typings files.

* fix(store): Remove the I prefix from IDataStorageRepositoryService

* fix(store): fix observer operator import

* fix(store): Add missing rxjs imports to user-config effect

* fix(store): Add missing rxjs imports to keymap effect
2017-06-13 14:41:40 +02:00
László Monda
679e20d915 Create README.md 2017-06-12 23:10:47 +02:00
József Farkas
1a456c2ced Additional media keys with icons (#307)
* Add missing scancodes for media keystrokes

* Use icons for media keys

* Fix media scancodes.
2017-06-12 20:46:06 +02:00
József Farkas
a8a659dadd Fix keystroke selection when additional field is given but no scancode (#306) 2017-06-11 17:04:03 +02:00
József Farkas
e2fef4fb3e Update electron version
It fixes electron build. The types are part of the electron package itself.
2017-06-11 16:16:27 +02:00
József Farkas
c4b25aab9b Fix NoneAction validation
Fixes #301
2017-06-11 16:02:27 +02:00
József Farkas
efe7e95b3e Media key support (#294)
* Introduce type for KeystrokeAction

* Increment dataModelVersion

New property 'type' for KeystrokeAction

* Mapping for media keys

* Media key selecting support for KeypressTab

* refactor: Use more meaningful name (selectedScancodeOption)

* Store the keystroke type in key action type instead of a new field
2017-06-11 12:11:12 +02:00
Róbert Kiss
8e823b57b4 style(editorconfig): Add json rule to editor config (#297)
We aggreed to use 2 indent size in json files. The reason is npm use 2 indent in package.json and this is the defacto
2017-06-07 08:57:56 +02:00
Attila Csanyi
85db54b00f change macro layout on xs and lg devices 2017-06-06 21:49:21 +02:00
Attila Csanyi
91a4447f2c clicking on a non-active macro action or on the title of the active macro action should cancel the editing of the current macro action 2017-06-06 20:59:55 +02:00
Attila Csanyi
fc002ccd4f use pointer cursor type over the whole macro action title bar (better solution) 2017-06-06 20:50:09 +02:00