Commit Graph

48 Commits

Author SHA1 Message Date
Jaco
2422145a24
Adjust spec with references (not able to bump ts 5 as of yet) (#9190)
* Bump to TS 5.0

* Revert TS bump (needs investigation)
2023-03-17 08:34:43 +02:00
Jaco
8ac29cc410
Bump cain-specific type definitions (#9180)
* Bump cain-specific type definitions

* Adjust

* Adjust

* Bump metaverse

* Restore non-dev acala types

* Bump chartjs

* Bump electron

* Re-apply acala types with fixes
2023-03-15 10:54:54 +02:00
Jaco
eacf028ba6
Use .js imports in src (#9132)
* Use .js imports in src

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Add WP extension aliases

* Bump dev

* Additional

* Additional

* Adjust extensionAlias order
2023-03-09 12:11:03 +02:00
Jaco
27098f34b8
Bump deps (#9040)
* Bump deps

* Bumps

* Adjust

* Adjust

* Adjust test imports

* Adjust

* Re-adjust

* Fix frequency package name

* Adjust build

* Adjust

* Fix before import

* Adjust

* require script

* Adjust checks

* Linting fixes

* Fix json alongside other tests

* Move fixup script

* Remove main type: "module"

* Adjust (some) tests

* Adjust chartjs imports

* Bump deps

* Adjust

* Bump deps

* Adjust styled imports

* Bump deps

* Adjust
2023-02-20 11:38:52 +02:00
Jaco
4929b1c6fd
Update headers for 2023 (#8665)
* Update headers for 2023

* Adjust env-config
2023-01-01 10:32:05 +02:00
Jaco
24a136b320
Bump deps (w/ deprecations) (#8532) 2022-12-14 10:07:49 +02:00
Jaco
22c40638ab
0.122.2 (#8321)
* Bump Electron

* 0.122.2

* Remove enableRemoteModule (removed from Electron)
2022-11-07 12:22:28 +02:00
Jaco
d294a1f2d1
Swap to React 18 createRoot (#7397)
* Swap to React 18 createRoot

* npols\0
2022-04-19 15:02:55 +03:00
Jaco
51835328db
2022 (#6764) 2022-01-01 09:30:15 +02:00
Jaco
7ff500787d
Enable Ledger desktop via node-hid (#6385)
* Enable Ledger desktop via node-hid

* Node?

* Pass isElectron prop
2021-10-23 17:10:12 +03:00
Jaco
f512c1a539
Bump de & api (w/ __Unused on enum) (#6326)
* Bump de & api (w/ __Unused on enum)

* Linting fixes

* tsc adjustments

* Api bump
2021-10-17 16:37:57 +03:00
Krzysztof Jelski
ca8bbd1836
Reduce warnings in tests (#6132)
* Change i18next from wait to suspense (resolves console warning in app and in tests)

* Reduce error and warning output in fast tests
2021-09-16 15:08:53 +02:00
Jaco Greeff
e09a6de018
Adjust CSP for workers (#4786) 2021-03-08 08:23:42 +01:00
Krzysztof Jelski
2c524aed07
Remove colon from account path in Electron (#4361) 2021-01-11 10:26:58 +01:00
Jaco Greeff
fea29170cd
Update CSP for ws (#4350) 2021-01-11 09:36:20 +01:00
Jaco Greeff
6dbb188a1a
2021 (#4310) 2021-01-03 11:33:39 +01:00
Ewa Kowalska
541213f233
Ek extract type only imports into separate group (#4168)
* Plug new beta of eslint plugin simple import sort

* Apply new configuration to existing imports
2020-12-07 16:04:05 +01:00
Jaco Greeff
7b3bf5fd76
TypeScript 4.1.2 (a bit later than others...) (#4133)
* TypeScript 4.1.2 (a bit later than others...)

* linting

* Bump berry

* dedupe

* linting

* Bump @polkadot/dev

* Adjust

* deps
2020-12-01 21:33:16 +01:00
Ewa Kowalska
87505b1c59
Eslint imports (#4037)
* Add eslint configuration

* Patch eslint plugin for sorting imports

* Apply eslint rules for imports
2020-12-01 14:40:42 +01:00
Jaco Greeff
a0b82d88a4
Use import type { ... } (#4052)
* Use import type { ... }

* value imports

* TypeDefInfo

* Apply suggestions from code review

* fixes... am going blind.
2020-11-19 16:20:14 +01:00
Krzysztof Jelski
d9318de290
Electron app housekeeping (#3958)
* Update Electron version. Externalize electron builder configuration.

* Move script-related CSP to script-src section

* Change local dev address to 127.0.0.1.

* Update content security policy hashes

* Upgrade electron-log

* Remove dependency no react types
2020-11-02 16:07:56 +01:00
Krzysztof Jelski
a640183600
Fix IPC communication in Electron account store (#3952) 2020-10-31 13:52:14 +01:00
Jaco Greeff
59623f419b
(Very) experimental dark theme (only localhost) (#3731)
* (Very) experimental dark theme (only localhost)

* Listener for theme changes

* ThemeProps

* Use actual theme with colors

* Page background

* Adjust with theme.bgPage

* Table adjustments

* Some progress (menu & inputs)

* Adjustments in a number of places

* Progress colors

* Modals

* Some calandar stuff

* Toggle

* Updates

* Hack around dropdowns

* Popup menus

* Overlays

* Connecting overlays
2020-10-01 15:50:33 +02:00
Jaco Greeff
7ba7339d96
SPDX (#3705) 2020-09-17 16:46:46 +02:00
Jaco Greeff
8815703d00
Bump dev, fix linting (#3603)
* Bump dev, fix linting

* Small zh adjustments

* Remove rpc.* zh
2020-09-03 16:36:24 +02:00
Jaco Greeff
2448b7f883
Hooks with useMemo (no extra re-renders) (#3567)
* Hooks with useMemo (no extra re-renders)

* Extract defaults

* sorted targets

* Linting
2020-08-29 13:16:27 +02:00
Jaco Greeff
970474e748
Electron WASM execution allowance (#3555) 2020-08-28 11:43:44 +02:00
Krzysztof Jelski
1663eea3bf
Add icon to window configuration. (#3365) 2020-08-07 14:21:23 +02:00
Jaco Greeff
107bfc7065
Warn on locally stored accounts (#3345) 2020-08-05 14:39:51 +02:00
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