Commit Graph

884 Commits

Author SHA1 Message Date
Luke Schoen
df91405d1b fix: Fixes #163 Concat index before value for queries with array response (#172)
Applies to queries to storage @polkadot/storage/ such as staking.ts and session.ts having type ['AccountId'].
2018-08-02 10:13:45 +02:00
Travis CI
2ddff94741 [CI Skip] 0.19.10 2018-08-02 05:40:11 +00:00
Jaco Greeff
1ea1e193c6
sodium-wasm support (#170)
* sodium-wasm support

* Update deps
2018-08-02 07:34:39 +02:00
Travis CI
fb9d0153c2 [CI Skip] 0.19.9 2018-07-31 13:34:50 +00:00
Travis CI
ea523021ce [CI Skip] 0.19.8 2018-07-31 09:13:11 +00:00
Travis CI
38502ea04f [CI Skip] 0.19.7 2018-07-30 10:12:09 +00:00
Jaco Greeff
dec2432956 Bump deps 2018-07-30 12:07:04 +02:00
Jaco Greeff
613c10a455 Bump deps 2018-07-30 11:48:29 +02:00
Travis CI
d7a686f109 [CI Skip] 0.19.6 2018-07-29 14:33:22 +00:00
Jaco Greeff
1a00af0626 Update deps 2018-07-29 16:28:12 +02:00
Travis CI
7c09b33f2f [CI Skip] 0.19.5 2018-07-25 10:04:50 +00:00
Travis CI
a353c54b01 [CI Skip] 0.19.4 2018-07-24 16:30:06 +00:00
Travis CI
a7001f785c [CI Skip] 0.19.3 2018-07-24 15:31:13 +00:00
Jaco Greeff
9e8557bcb1
Add length prefix to Bytes type (#159)
* Add length prefix to bytes

* Update types
2018-07-24 17:26:17 +02:00
Travis CI
0d7f056f07 [CI Skip] 0.19.2 2018-07-23 15:59:20 +00:00
Travis CI
6f3ed409e3 [CI Skip] 0.19.1 2018-07-23 14:38:10 +00:00
Jaco Greeff
d4ad240462 Bump deps, staking.(un)nominate 2018-07-23 16:31:44 +02:00
Travis CI
4db0572e82 [CI Skip] 0.18.26 2018-07-22 12:10:48 +00:00
Jaco Greeff
2dccb5959f
Update deps, fix formatting, parachain priv methods (#156)
* Update deps for empty params

* Bump deps

* Render ParachainId
2018-07-22 14:05:38 +02:00
Travis CI
c3183ff351 [CI Skip] 0.18.25 2018-07-15 16:06:37 +00:00
Jaco Greeff
7e1b5b1ab6 Bump deps 2018-07-15 18:01:01 +02:00
Travis CI
20e161b02d [CI Skip] 0.18.24 2018-07-13 14:32:36 +00:00
Travis CI
d5b4057db4 [CI Skip] 0.18.23 2018-07-13 14:14:19 +00:00
Travis CI
397184cf19 [CI Skip] 0.18.22 2018-07-13 12:34:32 +00:00
Travis CI
c1de6977fd [CI Skip] 0.18.21 2018-07-13 11:13:12 +00:00
Travis CI
a186eb2c3d [CI Skip] 0.18.20 2018-07-13 09:32:39 +00:00
Jaco Greeff
67691af8c3
Update Referendum text display (#145) 2018-07-13 11:26:56 +02:00
Travis CI
02aefa60e1 [CI Skip] 0.18.19 2018-07-13 09:11:59 +00:00
Jaco Greeff
433749524c
Wrap SideBar items in withRouter (#150) 2018-07-13 11:06:50 +02:00
Travis CI
0fc2144a3e [CI Skip] 0.18.18 2018-07-13 07:50:44 +00:00
Travis CI
7c912a2cde [CI Skip] 0.18.17 2018-07-13 05:45:13 +00:00
YJ
57800cdb83 Fixes #103: Convert functional components to pure (#135)
* ui-signer pureComponentify

* ui-react pureCompify

* Status queue prop

* ui-app Button

* ui-app InputExtrinsic

* apps, app-rpc, ui-app, ui-react

* app-extrinsics, app-explorer, apps

* fixes for tslint

* more linter fixes

* Update index.tsx

* Update index.tsx

* Update Nonce.tsx

* Update index.tsx

* Update Results.tsx

* Update index.tsx

* Update Queries.tsx

* Update NodeInfo.tsx

* Update index.tsx

* Update Item.tsx

* style fixes

* TSLINTs
2018-07-13 07:40:31 +02:00
Travis CI
6a694f7c5b [CI Skip] 0.18.16 2018-07-12 17:49:31 +00:00
Travis CI
8e23cd04d7 [CI Skip] 0.18.15 2018-07-12 15:53:56 +00:00
Jaco Greeff
84e5ab8cbb
Fix index change not updating for 0 (#142)
* Fix index change not updating for 0

* Update resolutions
2018-07-12 17:48:22 +02:00
Travis CI
d8940c9f49 [CI Skip] 0.18.14 2018-07-11 15:25:40 +00:00
Jaco Greeff
5dc348304c
Encode consensus.setStorage(KeyValueStorage[]) (#131)
* Start of override KeyValueStorage

* All Upload of KV storage data

* Update dependencies

* KV parse & submission

* Cleanup display of storage queries

* Bump dependencies (incl. KV decoding fix)
2018-07-11 17:19:56 +02:00
Travis CI
cea9d9cbc5 [CI Skip] 0.18.13 2018-07-11 12:55:01 +00:00
Travis CI
b96c450774 [CI Skip] 0.18.12 2018-07-11 06:54:14 +00:00
YJ
aaf7286042 stricter types (#134) 2018-07-11 08:49:35 +02:00
Travis CI
0f5b461fd5 [CI Skip] 0.18.11 2018-07-10 08:38:30 +00:00
Travis CI
378fed132c [CI Skip] 0.18.10 2018-07-09 11:42:56 +00:00
Jaco Greeff
3fb85094a6
Example & tutorial (#127)
* Add tutorial step 001

* Update LICENSE header

* Query storage via HOC

* Tut 003, read proposals

* Tut 004 replacing HOC

* Pull Intentions & Proposals together

* Add final image

* Cleanup unused methods

* Source links

* Remove unused var
2018-07-09 13:38:31 +02:00
Travis CI
8d41e8ada9 [CI Skip] 0.18.9 2018-07-05 13:31:10 +00:00
Travis CI
dd3ee80349 [CI Skip] 0.18.8 2018-07-03 15:00:48 +00:00
Jaco Greeff
f561d6c4fa
Fix storage select (#123) 2018-07-03 16:55:56 +02:00
Travis CI
da2ce5a2a5 [CI Skip] 0.18.7 2018-06-28 15:25:37 +00:00
Jaco Greeff
349c35cf41
Fix extrinsic submissions (#111)
* Update parent when values have changed

* Fix linting

* Cast for correct signature

* Cater for correct "Bytes" for submitExtrinsic
2018-06-28 17:19:18 +02:00
Travis CI
b805bccf5f [CI Skip] 0.18.6 2018-06-28 14:36:55 +00:00
Travis CI
2f19a06d5b [CI Skip] 0.18.5 2018-06-28 05:16:31 +00:00
Travis CI
25ea6ad657 [CI Skip] 0.18.4 2018-06-27 10:47:31 +00:00
Jaco Greeff
f523383216
Add TSLint (#106) 2018-06-27 12:43:07 +02:00
Travis CI
4b5c3733ad [CI Skip] 0.18.3 2018-06-26 15:48:52 +00:00
Jaco Greeff
6cafd1492a Update dependencies 2018-06-26 17:43:45 +02:00
Travis CI
235b671d11 [CI Skip] 0.18.2 2018-06-26 10:15:09 +00:00
Jaco Greeff
f2d234b591
Fix parameter updates (#105) 2018-06-26 12:10:41 +02:00
Travis CI
75b3a9759b [CI Skip] 0.18.1 2018-06-25 16:07:53 +00:00
Jaco Greeff
078e2e431a
Support enumerable accounts (#102)
Covert to TypeScript
2018-06-25 18:02:47 +02:00
Travis CI
249962e453 [CI Skip] 0.17.15 2018-06-19 08:10:26 +00:00
Travis CI
875275c2b9 [CI Skip] 0.17.14 2018-06-14 16:41:09 +00:00
Travis CI
bb6562b46b [CI Skip] 0.17.13 2018-06-13 20:37:48 +00:00
Jaco Greeff
9c89026e6e
Copyright project authors (#95)
* Copyright project authors

* Add contributors
2018-06-13 22:32:49 +02:00
Travis CI
5b87995d14 [CI Skip] 0.17.12 2018-06-13 14:49:34 +00:00
Luke Schoen
5296c4fee1 fix: Fixes #88 buttonbar style cornering on Accounts and Addresses pages (#90)
* fix: Fixes #88 buttonbar style cornering on Accounts and Addresses pages

- Add right corners to Forget
- Add left corners to Reset

* refactor: Move overrides for buttonbar corner styles into shared resource

* fix: Add newline to end of file

* refactor: Refactor using PostCSS variables, nesting, and import

* refactor: Move variables into partials subfolder. Apply CSS when preceding sibling is spacer

* fix: Remove unnecessary comma to pass CI linting

* fix: Add initial divider with no padding to apply corners conditionally

There is no CSS selector combinator that allows conditional styling of an element conditional upon "subsequent" sibling elements existing. This is a work-around whereby a dummy divider with no padding is added to the start of the button group such that the custom corner overrides only apply to button groups that contain a 1st and 3rd element that are dividers. Only options for conditional styling dependent on "preceding" sibling elements currently exist that are compatible across browsers (i.e. 'Adjacent sibling combinator' by use of `+` and 'General sibling combinator' by use of `~`, see below reference for details).

Another alternative solution that was considered by not deemed generic enough was to conditionally apply the custom cornering only to button groups that are contained within a classname that contains the text "--Editor", on the assumption that the Forget, Reset, Save button group would only be used within a nesting containing such a wildcard value (as is currently the case)
```
div [class*="--Editor"] {
  .ui--Button-Group {
    .ui.buttons {
      .button:nth-child(1) {
        border-top-right-radius: $small-corner;
        border-bottom-right-radius: $small-corner;
      }
      .ui.button.compact.mini.basic + .button:nth-child(3) {
        border-top-left-radius: $small-corner;
        border-bottom-left-radius: $small-corner;
      }
    }
  }
}
```

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors

* fix: Resolve linting CI errors

* fix: Add missing dependencies to package.json to pass CI

* refactor: Move widthless divider into base Group component

* refactor: Move button group custom cornering styles
2018-06-13 16:42:03 +02:00
Travis CI
2e98b92cf1 [CI Skip] 0.17.11 2018-06-13 07:23:43 +00:00
Travis CI
61e7d21b84 [CI Skip] 0.17.10 2018-06-13 07:16:42 +00:00
Luke Schoen
934d2b912a feat: Fixes #75. Add edit icon from semantic-ui to account name input field (#83)
* feat: Fixes #75. Add edit icon from semantic-ui to account name input field

Adding an edit icon that is embedded in the account name input field makes it more obvious to the user that the input field isn't read-only, and that there is a way to "click before doing" (i.e. editing the input field that is identified as being editable before the ability to save changes is granted). Some users may click the edit icon itself thinking it toggles the ability to edit the input field, whilst others may just recognise that the edit icon means the input field is editable. In either case just having the edit icon should suffice as being the initial "call to action" for a user wishing to edit the input field, and since the Reset and Save buttons illuminate when the account name is modified, they'll recognise that a further step is required to save their changes.

* resolve introduced ESLint and Flow errors

* fix: Move attributes up so they are in alphabetical order

* fix: Remove unnecessary classenames. Edit icon stays within input field
2018-06-13 09:08:13 +02:00
Travis CI
6312cf4270 [CI Skip] 0.17.9 2018-06-12 11:46:10 +00:00
Jaco Greeff
bb3c44fb13 Merge master 2018-06-12 13:41:46 +02:00
Jaco Greeff
cacc08b93c Update dependencies 2018-06-12 13:34:07 +02:00
Travis CI
c83c37cfb4 [CI Skip] 0.17.8 2018-06-12 09:00:45 +00:00
Jaco Greeff
96a5330d86
Add yarn & node to engines (#91)
* Add yarn & node to engines

* yarn ^1.3.2

* Update dependencies
2018-06-12 10:55:23 +02:00
Travis CI
57b77db310 [CI Skip] 0.17.7 2018-06-11 16:09:47 +00:00
Jaco Greeff
e77363ba1b
Upgrade dependencies (#87)
* Upgrade dependencies

* Update getting started

* Attemp test-case for https://github.com/polkadot-js/apps/issues/81

* Fix small typos
2018-06-11 18:05:23 +02:00
Travis CI
2c0918581d [CI Skip] 0.17.6 2018-06-11 07:13:11 +00:00
Travis CI
34b17880a3 [CI Skip] 0.17.5 2018-05-31 13:31:05 +00:00
Travis CI
acfc1facbd [CI Skip] 0.17.4 2018-05-31 12:05:21 +00:00
Jaco Greeff
e55f10e8d8
Fix array type display (#69) 2018-05-31 13:59:00 +02:00
Travis CI
2cccf30f00 [CI Skip] 0.17.3 2018-05-30 10:13:38 +00:00
Jaco Greeff
d45642e3f6
Fix address defaultValue/value, hide testing accounts (#66)
* Fix address defaultValue/value

* @flow cleanups

* Remove debug info

* Properly hide dev chain addresses (default)

* Close https://github.com/polkadot-js/apps/issues/68

* Don't allow pre-existing accounts and addr

* Failsafe on conversion check

* Don't try to encode arrays

* Display decoded Proposals as text
2018-05-30 12:07:45 +02:00
Travis CI
bae287ad3c [CI Skip] 0.17.2 2018-05-29 18:00:21 +00:00
Jaco Greeff
f0a8370ea2 Update dependencies 2018-05-29 19:55:05 +02:00
Travis CI
71d3c2e706 [CI Skip] 0.17.1 2018-05-29 15:38:11 +00:00
Jaco Greeff
ba36eede0b
Include ui-* packages in repo (development speed) (#65)
* Include ui-* packages in repo (development speed)

* Bump

* Bump

* Cleanup dependencies
2018-05-29 17:33:29 +02:00
Travis CI
4d1156bbfb [CI Skip] 0.7.2 2018-05-29 14:43:39 +00:00
Jaco Greeff
fa47246874 Update dependencies 2018-05-29 16:39:17 +02:00
Travis CI
c35c8c0731 [CI Skip] 0.7.1 2018-05-29 12:38:30 +00:00
Jaco Greeff
a4531a50d6
Update for latest @polkadot/params (#64)
* Update for latest @polkadot/params

* Allow passing in of WS_URL environment

* Cleanup block display

* Update dependencies
2018-05-29 14:34:23 +02:00
Travis CI
6881f555da [CI Skip] 0.6.12 2018-05-28 20:36:29 +00:00
Jaco Greeff
540a39ff48
Use apiSupport & apiConnected from withApi (#63) 2018-05-28 22:31:24 +02:00
Travis CI
bcd7867ba7 [CI Skip] 0.6.11 2018-05-28 16:46:51 +00:00
Jaco Greeff
4790214a24
Support both poc-1 & latest encodings (#62)
* Support both poc-1 & latest encodings

* v.
2018-05-28 18:43:14 +02:00
Travis CI
5fb30b8b0e [CI Skip] 0.6.10 2018-05-28 08:06:05 +00:00
Travis CI
9bc9bfd6fe [CI Skip] 0.6.9 2018-05-27 16:59:30 +00:00
Jaco Greeff
69d0985410
Cleanup type definitions (#59)
* Cleanup type definitions

* Update dependencies

* Update depnedencies
2018-05-27 18:54:24 +02:00
Travis CI
c447844ffd [CI Skip] 0.6.8 2018-05-25 16:04:47 +00:00
Jaco Greeff
004824dbec
Be explicit in State returns (#58)
* Be explicit in State returns

* Cleanup Param properties

* Cleanup casting

* Cleanup type manipulations

* Don't allow null for InputAddress defaultValue
2018-05-25 17:57:51 +02:00
Travis CI
ccae56beca [CI Skip] 0.6.7 2018-05-25 14:09:42 +00:00
Jaco Greeff
07f2a1ae07
Use componentDidUpdate for change triggers (#57)
* Use componentDidUpdate for change triggers

* Update dependencies
2018-05-25 16:05:01 +02:00
Travis CI
42c52c3387 [CI Skip] 0.6.6 2018-05-25 12:31:20 +00:00
Jaco Greeff
c99a119878
Move Balance -> u128, Index -> u32 (#56)
* u128 balances operational

* Allow app build (from src)
2018-05-25 14:26:56 +02:00
Travis CI
598bbde6c8 [CI Skip] 0.6.5 2018-05-24 16:09:13 +00:00
Jaco Greeff
99b188bf5d
Update dependencies, cleanup app-rpc results (#55)
* Align with upstream types

* Fix app-rpc outputs
2018-05-24 18:04:49 +02:00
Travis CI
917cfeba97 [CI Skip] 0.6.4 2018-05-23 16:16:51 +00:00
Travis CI
e8fe1abfbb [CI Skip] 0.6.3 2018-05-23 16:05:57 +00:00
Jaco Greeff
397dd0c983
Update jsonrpc dependency tree (#54)
* Use tyopeToString from @polkadot/params

* Upgrades... before checks

* Cleanups... WIP.

* more WIP.

* Expand defaultValue & handlers

* Cleanups

* CodeClimate cleanups

* Additional CodeClimate cleanups

* Base for app-rpc

* Initial split into ui-signer

* Signer operational (extrinsics)

* Decode extrinsic method

* RPC progress...

* RPC class works again

* @flow cleanups
2018-05-23 18:01:42 +02:00
Travis CI
578555ce1a [CI Skip] 0.6.2 2018-05-17 13:57:45 +00:00
Travis CI
a8b0c04068 [CI Skip] 0.6.1 2018-05-17 12:56:52 +00:00
Jaco Greeff
6753dc0ad2
Use @babel 7 (#52)
* Use @babel 7

* Use @babel 7

* Use custom webpack config

* Minify input css

* Remove @flow header form webpack.config

* Webpack config re-usable

* Split with vendor/main bundles

* Use hash for main entry, specify chunkHash

* Import base postcss config

* Hashing uses blake2

* Align number formats

* Use contenthash fro extracted css

* Format number directly

* Split runtime (better caching)
2018-05-17 14:51:41 +02:00
Travis CI
7c3a2e9d37 [CI Skip] 0.5.2 2018-05-15 16:16:56 +00:00
Travis CI
8b0dfd661c [CI Skip] 0.5.1 2018-05-15 15:06:16 +00:00
Jaco Greeff
5f884c4b65
Add utility/toolbox app (#51)
* Upgrades

* Add & use Output component

* Render app in content

* Use update @polkadot/dev-react

* Add app-toolbox

* DRY className concat

* Hashing in place

* Verify signature operational

* Entry updates

* Verification operational

* Final cleanups before PR

* Bump version
2018-05-15 16:58:32 +02:00
Travis CI
e1f1ca5153 [CI Skip] 0.4.12 2018-05-14 15:50:42 +00:00
Jaco Greeff
a940292287
Convert to @polkadot/param formatters (#49)
* Convert to @polkadot/param formatters

* WIP

* Renderinbg operational

* Update with checks

* Show 'empty' with no array values

* Pass-through label properly

* Pass through isDisabled property
2018-05-14 17:43:22 +02:00
Travis CI
92cc9c2add [CI Skip] 0.4.11 2018-05-12 18:45:23 +00:00
Jaco Greeff
62279af6b9
Pass through Button.Or className (#48) 2018-05-12 20:38:19 +02:00
Travis CI
410a3be007 [CI Skip] 0.4.10 2018-05-12 18:28:20 +00:00
Travis CI
9ba16dabd6 [CI Skip] 0.4.9 2018-05-12 13:13:17 +00:00
Jaco Greeff
ea50c4f1fe
Pull in ui-app components only (#46)
* Pull in ui-app components only

* Undefined check

* Small overall layout updates (buttons)

* Password hide/unhide icons

* Automatically assign name to inputs
2018-05-12 15:05:41 +02:00
Travis CI
905e9c8ff8 [CI Skip] 0.4.8 2018-05-12 11:03:43 +00:00
Jaco Greeff
8c349a0420
Dropdown label type update (#43) 2018-05-12 12:57:03 +02:00
Travis CI
3c2e0d6446 [CI Skip] 0.4.7 2018-05-12 09:33:39 +00:00
Travis CI
33983cce97 [CI Skip] 0.4.6 2018-05-12 08:50:01 +00:00
Jaco Greeff
b20a131b15
Be explicit in supported input types (#42)
* Be explicit in supported input types

* label as React$Node
2018-05-12 10:42:13 +02:00
Travis CI
14d10ef6af [CI Skip] 0.4.5 2018-05-12 08:37:31 +00:00
Jaco Greeff
1489a1c4e6
Add defaultLabel for Labelled (#40)
* Add defaultLabel

* Typing for defaultLabel

* Add null for label prop

* Try to fix (in the dark)

* Allow anything for label
2018-05-12 10:29:54 +02:00
Travis CI
a4a83f9795 [CI Skip] 0.4.4 2018-05-12 08:20:59 +00:00
Jaco Greeff
9eb671cd17
Expose CopyButton properties (#41) 2018-05-12 10:12:59 +02:00
Travis CI
1108e96b53 [CI Skip] 0.4.3 2018-05-12 08:02:44 +00:00
Jaco Greeff
af452ba222
Remove unneeded key prop 2018-05-12 09:55:37 +02:00
Travis CI
2cee2b2b79 [CI Skip] 0.4.2 2018-05-12 06:37:55 +00:00
Jaco Greeff
ccd656fb75
Remove wayward debug log 2018-05-12 08:30:06 +02:00
Travis CI
9c201d1323 [CI Skip] 0.4.1 2018-05-11 16:14:14 +00:00
Jaco Greeff
b11a6981a2
Optimise components (#39)
* ui-react-app -> ui-app

* CopyButton, Input & Password components

* Convert all to use ui-app/{Input, Label}

* Change to PureComponent where we have onChange listeners

* Cleanup layouts

* Swap dropdown components, remove uselexx constructors

* Allow address/account forget

* Bump

* Searching with headers operational

* flex grow/shrink for icon + account add

* Fix balance & transaction display (account/address management)

* Adjust balance layout

* Equalise padding
2018-05-11 18:08:10 +02:00