Commit Graph

19 Commits

Author SHA1 Message Date
Jaco Greeff
3565caf598
Remove sui Responsive component (#3216)
* Remove sui Reponsive component

* Import ordering

* Use media queries as appropriate
2020-07-17 10:16:10 +02:00
Krzysztof Jelski
1fd45bb5ae
Add 'self' CSP for css. (#3212) 2020-07-16 16:17:05 +02:00
Jaco Greeff
8ed93360d9
Rework Button (#3171)
* Rework Button

* Input dropdown buttons

* Adjust cursor & border (InputNumber SI, disabled)

* first/last-of-byte in Button.Group

* Cleanup classes

* Cleanup linting

* Small cleanups

* Swap to actual <button ...>

* Sidebar adjust

* Adjust className creation

* Adjust signer toggle

* Button disabled cursor

* Poll adjust loading

* Basic buttons, SideBar with theme

* Adjust button styling

* Adjust Button shadows
2020-07-13 21:25:12 +02:00
Krzysztof Jelski
a7d312c763
Handle case with no accounts. Log error messages. (#3160) 2020-07-10 15:36:53 +02:00
Krzysztof Jelski
69b85e2d53
Add Content Security Policy header. (#3158) 2020-07-10 15:35:07 +02:00
Krzysztof Jelski
3aa1e8f42b
Open external links (eg. to GitHub or Wiki) in default system browser instead of a new Electron window. (#3159) 2020-07-10 15:31:00 +02:00
Krzysztof Jelski
244d07e5c5
Remove auto updater feature toggle. (#3138) 2020-07-07 18:12:46 +02:00
Ivan Rukhavets
90200ed2f1
Tests for electron app storage (#3118)
* Add unit tests for electron account management

* Use tmp package in file store tests.

* Enable @typescript-eslint/no-useless-constructor extension eslint rule.

* Explicitly assign private field in constructor.

Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
2020-07-07 14:00:02 +02:00
Ivan Rukhavets
c4a900f435
Log update logs to file instead of showing dialogs (#3043)
* Log update logs to file instead of showing dialogs

* fix lint

* remove lind-disable comment
2020-06-25 10:49:01 +02:00
Krzysztof Jelski
f8f7eedad3
Improve Electron App security (#2923)
* WIP on storing accounts without electron remote modules.

* Improve security by isolating main and renderer.

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-06-10 18:09:55 +02:00
Ivan Rukhavets
8d04d5b165
Enable remote module (#2883) 2020-06-05 13:24:21 +02:00
Ivan Rukhavets
368fefef72
Electron app: save accounts to FS, do not download backup, hide warning banner (#2880)
* Electron app: save accounts to FS, do not download backup, hide warning banner

* extract store
2020-06-04 19:58:48 +02:00
Jakub Jóźwiak
a7e2a3b313
Electron updater (#2817)
* Add autoUpdater

* Fix electron auto updater

* Remove unused dependency

* Remove unused async in createWindow function

* fix yarn.lock

* Move updater and createWindow into single func

* Add dialogs

* Reconcile package.json with master.

* Reorder imports.

* Add toggle to control the autoupdate feature.

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Fix linting errors.

* Remove eslint-disables

* yarn.lock

Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
2020-06-01 17:55:11 +02:00
Jakub Jóźwiak
46f92541c9
Disable remote module for main electron browser window (#2847) 2020-05-28 17:11:57 +02:00
Jakub Jóźwiak
00356a75d5
Remove webpack dev server (#2821)
* Remove webpack-dev-server and move alias into base webpack config

* Fix typo
2020-05-27 07:44:02 +02:00
Jakub Jóźwiak
078dbaeb6a
Add relative window size (#2819)
* Add relative window size

* Simplify assign of height and width
2020-05-26 16:27:59 +02:00
Jaco Greeff
c60ba8708a
Bumps w/ eslint (#2802)
* Bumps w/ eslint

* Additional

* Additional

* Additional

* Additional

* Remove style props

* Additional

* Additional

* Additional

* Additional (< 100)

* eslint passes, tsc next

* tsc fixes

* Update deps

* Update i18n
2020-05-24 19:41:14 +02:00
Jaco Greeff
d06c6bd818
Move back initSettings (#2783) 2020-05-20 23:54:40 +02:00
Krzysztof Jelski
e38b27ad90
Basic Electron App setup (#2765)
* Basic Electron setup.

* wip

* Integrate electron with react components from apps workspace

* Refactor package.json scripts.

* Copy public files from apps.

* Import 'initSettings' from apps workspace, fix code style, move scripts into global package.json

* Add build electron step into CI

* Split webpack file into renderer and main

* Add HMR into renderer.config

* Add optimization process in main webpack configuration

* Add ts translation in main webpack config and fix electron start script

* Update dependencies.

* Update dependencies. Change package name.

* Move initSettings func into Api component

* Extract webpack base config and move initSettings into react-api

* Fix webpack config and simplify initSettings import

* WIP on packing electron app (electron.ts doesnt have relative path)

* Fix relative path to the main index.html

* Add README in electron package, update main package.json scripts, add mention about electron-package in main README

* Remove unused dependencies form electron package.json

* Missing file from merge

* Fix main README and change name field in main package.json

* Update dependencies.

* Remove old webpack-dev-serve (creating issues with plugin)

Co-authored-by: jozwiak <kubencki@gmail.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-05-20 13:29:25 +02:00