Commit Graph

71 Commits

Author SHA1 Message Date
Jaco Greeff
9001400ef0
TxButton withSpinner swap (#2194)
* TxButton withSpinner swap

* TxModal onClick -> onStart (in modal)
2020-01-24 15:19:49 +01:00
Jaco Greeff
1d5a756b69
Auto-add Button.Group inside Modal.Actions (#2165)
* Auto-add Button.Group inside Modal.Actions

* Pass onCancel prop through to Modal.Actions

* Cancel rendering in contracts
2020-01-21 17:34:34 +01:00
Jaco Greeff
8e971ef7eb
Use ButtonCancel for all Cancel-only buttons (#2164)
* Use ButtonCancel for all Cancel-only buttons

* Small cleanups
2020-01-21 15:47:44 +01:00
Jaco Greeff
18af907070
Set Modal default to open (#2157) 2020-01-20 15:30:25 +01:00
Jaco Greeff
13cb0cb3a0
No withCall for all functional (#2042)
* No withCall for all functional

* Linting

* Remove HOC, unneeded eslint override

* Cleanups
2020-01-17 13:55:14 +01:00
Jaco Greeff
be79bbc325
Additional useTranslation (#2118)
* Additional useTranslation

* Cleanup imports

* Cleanup unused props
2020-01-15 21:14:47 +01:00
Jaco Greeff
562e11dc06
Bump deps (#2091) 2020-01-06 16:16:50 +01:00
Jaco Greeff
15bd35fd90
Add useTranslation for all apps (#2076) 2019-12-19 11:08:21 +01:00
Keith Ingram
0695f6bed4 Disable contracts call RPC if unavailable (#2068)
* disable contract rpc

* bump
2019-12-18 10:49:45 +01:00
Jaco Greeff
6c58db0187
Small cleanups on withCalls (#2040)
* Fixups

* More

* Some withCalls -> useCall

* Linting

* Always defined

* Re-apply democracy changes

* TimePeriod adjusted

* Cleanup imports

* Additional

* More conversions

* Small loading cleanups

* Small context updates
2019-12-13 15:55:15 +01:00
Jaco Greeff
6dab5e1295
Rollback latest (something went wrong) (#2039)
* Revert "[CI Skip]  0.38.0-beta.64"

This reverts commit 632c224df4.

* Revert "Apply useToggle as appropriate (#2036)"

This reverts commit 62f74422f2.

* Revert "[CI Skip]  0.38.0-beta.63"

This reverts commit 635f61637c.

* Revert "Small updates for V2 democracy (#2038)"

This reverts commit 32db955f8c.

* Revert last bumps
2019-12-13 11:25:50 +01:00
Jaco Greeff
62f74422f2
Apply useToggle as appropriate (#2036)
* Apply useToggle as appropriate

* Update inset
2019-12-13 10:05:54 +01:00
Jaco Greeff
2f899cef4d
Add header prop on Modal (#2025)
* Add header prop on Modal

* Bump API, fixed electionsPhragmen

* s/HEADER/header/
2019-12-09 23:35:12 +01:00
Jaco Greeff
5b9be93aa7
Bump API (Polkadot frame-identity types) (#2024)
* Bump API (Polkadot frame-identity types)

* Typo
2019-12-09 21:13:39 +01:00
Jaco Greeff
dafea25972
Allow voting on treasury page (#2019)
* Allow voting on treasury page

* More re-usable voting components (a start)

* Ficup imports

* Adjust modals

* Bump API
2019-12-09 17:54:57 +01:00
Jaco Greeff
ce89d7e92d
Revert "Remove contracts call functionality (not working) (#1999)" (#2004)
This reverts commit 0aacf3a09d.
2019-12-05 19:50:12 +01:00
Jaco Greeff
0aacf3a09d Remove contracts call functionality (not working) (#1999) 2019-12-04 14:28:06 -05:00
Jaco Greeff
e1464b85f9
Adjust with API with explicit registry (#1922)
* Update for latest API (explicit registry)

* Edgeware adjusted types

* Bump API
2019-11-21 17:04:54 +01:00
Keith Ingram
7e65066d18 Functional InputNumber with fixed bugs (#1820)
* Functional InputNumber

* linting

* linting

* remove max button

* linting

* linting

* version

* version

* combine values

* fix

* Re-enable SI dropdown

* KSM  formats

* Formatting tweaks

* Mini fixes

* Adjust postfix opacity

* Linting

* More linting

* Remove unneeded list override

* Misc small adjustments

* Vertical alignment
2019-11-12 12:00:44 +01:00
Keith Ingram
669910cc2a Use most recent contract from result block (#1861)
* find most recent contract

* Use filterRecords

* Bump API
2019-11-09 12:15:06 +01:00
Jaco Greeff
a7404079cb
Bump deps (#1849) 2019-11-07 00:25:40 +01:00
Keith Ingram
dd300c4431
Fix contract bug & improvements (#1845)
* constructor index bug

* Contract fixes

* lint

* console

* console
2019-11-05 21:23:44 +01:00
Jaco Greeff
5b219d546c Bump API 2019-11-05 15:34:26 +01:00
Keith Ingram
c2543ae9b2
Contract.call RPC interface with return type (#1780)
* contracts api + rpc

* finalized

* tweak

* api bump

* linting
2019-10-31 20:45:31 +02:00
kwingram25
1dc4e0e967 Contract call interface using RPC for non-mutating messages (#1745)
* start

* Droptdown functional

* continue

* initial working version
2019-10-21 15:25:05 +02:00
Jaco Greeff
2f3117dc05
Droptdown functional (#1731) 2019-10-18 10:24:03 +02:00
Jaco Greeff
332936cac3
Remove value & defaultValue combinations (contracts) (#1728) 2019-10-15 15:22:56 +02:00
Jaco Greeff
5d7c2f1433
Fix typos (#1724) 2019-10-15 10:06:58 +02:00
Jaco Greeff
3f0d3eea2e
Bump API (Latest polkadot types) (#1721) 2019-10-11 16:56:40 +02:00
Eswara Sai
2a4d761e0f Added parser to extract i18n strings (#1710)
* Added parser to extract i18n strings

* Fixed issues with eslint for config file

* Moved i18n locales to apps/public folder

* Updated script to have i18n strings as default value
2019-10-11 15:12:36 +02:00
kwingram25
81c925f3d7 UI support for v2 ABI (#1602)
* ui support for v2 ABI

* drop v1 support

* update ABI display

* changes

* buttons

* update ABI display

* ABI v1 error message

* fix key warning

* Bump deps

* Bump deps

* Updates for merge

* default gas and endowment
2019-10-10 21:37:07 +02:00
Jaco Greeff
f67058e4c0
Cleanup InputAddress export, proper props (#1673) 2019-09-27 12:29:30 +02:00
Jaco Greeff
f5b0247270
Additional func. component conversions (#1659)
* Additional func. component conversions

* rendering function cleanups (pre-convert)

* Additional

* Forks to functional
2019-09-26 16:16:07 +02:00
Jaco Greeff
6f8da05805
More func. components, Button labelIcon -> icon (req.) (#1649) 2019-09-24 10:00:05 +02:00
Kai
41a7a07602 Fix broken contract deployment function (#1643)
* Fix contract deployment after contracts runtime module change <https://github.com/paritytech/substrate/pull/3649>

* Fix style warning detected by ci
2019-09-21 18:41:32 +02:00
Bhanu Teja P
01271da389 Add relevant icons to top-level buttons (#1618)
* Add relevant icons to top-level buttons

* Add some missing icons

* Add some missing icons

* Add missing icons
2019-09-19 12:57:10 +02:00
Jaco Greeff
fbe68b6c5d
Reset themes, single palette (#1607)
* Reset themes, single palette

* Additional comments

* Bump identicon, darkorange highlights

* Default button colors to $default

* isPrimary for all major (maybe rather shouldn't)

* All input buttons are non-primary

* Toggle to $highlight, links to $primary

* Swap darkorange to Thibaut-orange

* Icon  highlight to non-orange

* Highlight  package bump

* Updates

* Adjust referendum result color (aligning with orig Polkadot)

* Bumpos, button text color
2019-09-18 12:59:56 +02:00
kwingram25
c9790f85d9
useContext instead of withApi (#1579)
* useContext instead of withApi

* types to interface, fixes
2019-09-03 15:00:09 +02:00
Jaco Greeff
ec8be875df
typescript-eslint 2 (#1568)
* Setup for typescript-eslint 2

* Cleanup linting

* Bump ui version

* Exclude build folders
2019-09-01 13:34:56 +02:00
Jaco Greeff
e4c933cc87
Bump deps (#1560) 2019-08-30 09:09:11 +02:00
kwingram25
2752bedc6e
Functional components (app-*) (#1559)
* Functional components (app-*)

* refactor

* refactor

* refactor

* refactor

* refactor

* Revert "refactor"

This reverts commit 300a12ed7de5b1000f32f5269dff67f5ee1c1515.

* onRemove
2019-08-29 17:45:02 +02:00
Jaco Greeff
66ca8ea61e
Hygiene, some additional type -> interface (#1552)
* Higene, some additional type -> interface

* Liniting
2019-08-28 12:52:48 +02:00
kwingram25
537e7529c2
Remove unsafe React methods (#1520)
* unsafe react methods

* Update sui to 0.88.0
2019-08-27 14:43:12 +02:00
Jaco Greeff
b8ee65c52a
componentWillMount -> UNSAFE_componentWillMount (#1508)
* componentWillMount -> UNSAFE_componentWillMount

* componentWillReceiveProps -> UNSAFE_componentWillReceiveProps

* Bump API for session keys
2019-08-17 13:39:59 +02:00
Jaco Greeff
e6ca2db884
Rename ui-* -> react-* (#1495)
* Rename ui-* -> react-*

* Rename actual folders

* react-app -> react-components

* CSS links
2019-08-12 13:12:05 +02:00
Jaco Greeff
b4de745cda
Support latest api (with dynamic types) (#1447)
* Make a start, halfway down with issues found...

* Around  80% through untangling  the linter

* Seems linted...

* Adjust latest

* Update for latest (Moment -> u64)

* Method -> Call

* Bump api from npm

* formatNumber (no unwrap needed)

* Update to latest ui packages

* Revert internal version downgrades
2019-07-29 12:24:43 +02:00
Jaco Greeff
9d76cadeec
Update for new Extrinsic v1/v2 support (#1435)
* Pull era/nonce/signer information for Extrinsic

* Bumop api... here we go...

* Fixup types, only signer is left

* Stub signer

* Apisigner operational
2019-07-22 21:27:17 +02:00
Stefanie Doll
7d451c6f88 Add endpoint fallbacks option and handling of consts to ui-api (#1416)
* Add `fallback` option to ui-api to pass more than one endpoint for backwards compatibility

* set correct endpoint

* remove console.logs

* linting issues

* const -> consts typo

* changed query example to blockPeriod

* turn `fallback`: string[] | string into fallbacks array

* turn while loop into map

* less params & removed let

* Adjust withCall typing, don't allow voting in treasury
2019-07-18 15:11:57 +02:00
Jaco Greeff
8bb35dd9ff
Complete eslint swap (#1407) 2019-07-16 11:56:40 +02:00
Jaco Greeff
144c8bbd85
eslint fixes (round 2) (#1401)
* eslint fixes (round 2)

* ui-params converted

* Tiny.

* Classes fix

* Some type cleanups

* Cleanup traling ,

* < 1k

* Small additions

* <750

* Mini updates modifiers

* More ui-app cleanups

* 312 problems (182 errors, 130 warnings)
2019-07-15 23:17:19 +02:00