Jaco Greeff
e1725e3ebb
Bump API ( #2278 )
...
* Bump API
* Adjust status colors
* Add missing types (change status colors)
2020-02-14 16:57:54 +01:00
Jaco Greeff
73758de7ac
Clear all window vars ( #2159 )
...
* Clear all window vars
* Cleanups
2020-01-21 11:39:11 +01:00
Jaco Greeff
e9de3cf489
API cleanups ( #2139 )
...
* API cleanups
* Revert ready setting
* ... oops
* Adjust dropdown right margin
* API -> functional
2020-01-17 13:04:41 +01:00
Jaco Greeff
1f66137044
Remove snippet sharing ( #2138 )
2020-01-17 11:11:39 +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
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
c3e16ac040
s/useApiContext/useApi/ ( #1900 )
2019-11-16 20:21:46 +01:00
Jaco Greeff
e0acd15b43
useAccounts hook ( #1898 )
...
* useAccounts hook
* Drop some withRouter
* Add setImmediate to trackStream
* Combine unsubscribe into subscribe
* Use before define
* Ass trackPromise
* Cleanup mapping for params
* Addressbook display
2019-11-16 10:13:07 +01:00
Jaco Greeff
c167227845
Add useApiContext ( #1890 )
...
* Add useApiContext
* Add missing withApiContext import
* useCacheKey, rename headers
* Adjustment on sessionRewards naming
* Renames based on defacto standards
2019-11-15 10:51:12 +01:00
CherryLiang
3e6c61107b
show play/stop button ( #1804 )
2019-10-29 12:44:39 +01:00
Jaco Greeff
48a93aa24f
JS editor fixes ( #1752 )
2019-10-21 15:43:35 +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
Jaco Greeff
f33b4b7f91
Rework js-app with func. components ( #1651 )
2019-09-24 13:33:49 +02:00
Jaco Greeff
6f8da05805
More func. components, Button labelIcon -> icon (req.) ( #1649 )
2019-09-24 10:00:05 +02:00
Jaco Greeff
1e0c99dae3
Minor func. component updates ( #1631 )
...
* Minor func component updates
* Swap peer summary to functional
* Swap to setInterval
* Remove unneeded catch
2019-09-19 11:55:44 +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
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
Jaco Greeff
8e2551138e
Swap to subscribeNewHeads in API ( #1529 )
2019-08-24 12:47:26 +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
Stefanie Doll
7dffdb2e7e
Add const example to app-js ( #1424 )
...
* Add const example to app-js
* Trigger Travis
2019-07-19 17:40:31 +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
Jaco Greeff
0e2265ff70
Some initial pre-eslint cleanups ( #1383 )
...
* Some initial cleanups
* Make it lint
* Small s/type/interface/ additions
* Small minor s/type/interface/
* More type -> interface
* Add lint:new rule
* Some small updates
* Cleanup dangling tslint issues
* Small updates
* ui-signer cleanups
* ui-reactive updated
* Make lint:new run
* Mini ui-params cleanups
* Some additions
* Tiny... and done for now.
* 1950 problems (1241 errors, 709 warnings)
* 1829 problems (1181 errors, 648 warnings)
* 1674 problems (1181 errors, 493 warnings) (no any... for now)
* Small additions.
* Array<T> -> T[] (all)
2019-07-14 22:27:12 +02:00
Thibaut Sardan
b2f6d87de1
Use empty props from CardGrid ( #1304 )
...
* empty for account, addressbook
* staking empty screen
* use multi only when values changed
* lint
* withCall paramPick transform
* use paramPick and log things
* swap logging
* Display getMethod errors in withCall
* Remove nested try
* Use updateDb to trigger an update
* fix bonding
* Revert ifs
* Update call.tsx
* lint
* stray logs
2019-06-29 10:02:58 +02:00
Chevdor
2f0172a033
Add new snippet for api.query.balances.freeBalance.multi ( #1288 )
2019-06-10 19:01:04 +02:00
Jaco Greeff
da2cee140f
Fix snippet saving ( #1272 )
2019-06-04 15:48:00 +02:00
kwingram25
dc943d7cd6
Button/TxButton submit on enter ( #1170 )
...
* Button/TxButton submit on enter
* promise linting
* testing ref approach
* Add TxComponent to handle submit on enter
* remove accountNonce
* remove input ref
* remove TxButton constructor
* remove comment
* empty constructor
* linting
* bug with null ref
* linting
2019-05-22 18:08:58 +02:00
Stefanie Doll
41489e7135
Move buttons above the editor ( #1128 )
...
* Move buttons above the editor
* Both solutions - one to be deleted
* removed option 1
2019-05-10 19:03:28 +02:00
Stefanie Doll
de414550bd
Fix examples ( #1063 )
...
* Fix examples
* blockPeriod -> minimum period
2019-05-01 14:44:06 +02:00
Luke Schoen
1ff70781e0
Refactor nitpicks in app-js ( #1052 )
...
* chore: nitpicks
* remove console.logs
2019-04-30 15:22:50 +02:00
Xiliang Chen
7584848185
use pre tag for new line display ( #1015 )
2019-04-13 10:28:21 +02:00
Jaco Greeff
27689e8816
ss58 & US language updates (substrate 1.0-rc) ( #871 )
...
* ss58 & US language updates
* All Finalised -> Finalized
* Remove unused status
* 0.28
* 0.28
2019-03-29 18:26:18 +01:00
Joshy Orndorff
b48b1fd171
Updated addresses for sr25519 ( #839 )
2019-03-24 21:00:09 +01:00
Jaco Greeff
ecd30e3fee
Expose types on JS console ( #832 )
2019-03-23 12:42:02 +01:00
Jaco Greeff
96615d5957
Bump UI, HDKD keyring (new substrate crypto) ( #813 )
...
* Bump UI, HDKD keyring (new substrate crypto)
* Bump ui/* versions
* Pull in latest util-crypto, bp39 fix
* Bump common
* Small enhancements, cleanups (testing WIP)
* Bump
* Update after merge
* Bumps, fix transfer calculation (value may be non-existent)
* Bumpo dependencies
* Label extrinsic hash
* Signature updates
* Update deps
* Adjust status display
* Close status items on click
* Update withRouter duplication
* API bump, (some) creation fixes
* Move bip39 out of the worker (fast enough now via WASM)
* Update after master merge
* Cleanup deps (re-write yarn.lock)
2019-03-20 17:06:29 +01:00
Jaco Greeff
338bd517a0
Remove /index imports (swap to bare) ( #814 )
...
* Remove /index imports (swap to bare)
* Bump deps
2019-03-14 10:45:58 +01:00
Stefanie Doll
4ff77eee26
Move editor from app-js to ui-app component ( #795 )
...
* Move editor from app-js to ui-app component
* move export
* Move codeflask in package.json
2019-03-08 12:41:58 +01:00
Stefanie Doll
3f8ef157e4
Compress code with snappyjs ( #755 )
...
* Compress Base64 strings with snappy
* Move wrapper fix to different PR
* Added snappy typescript declaration
* type str and ch
* Updated yarn.lock
2019-02-25 14:24:19 +01:00
Stefanie Doll
b56480c9ca
Smaller quick-fixes for app-js ( #756 )
...
* Fix wrong copyToClipboard link
* Removed duplicate 'js--App' wrapper
* Fixed overflow in editor for longer code examples
2019-02-24 13:33:44 +01:00
Stefanie Doll
970911536c
Share functionality for app-js api playground ( #740 )
...
* First WIP
* Move all action buttons to component
* More WIP
* removed query-string module, share example through location.hash
* Copy over deep clone
* Fixed onload behaviour
* Working example 'read from url' <-> 'write to url'
* Populate location.hash to state
* comment
* Add selected option to dropdown
* Dropdown WIP debugging
* Removed attempted workaround for MUI Dropdown component Bug, added Fixme
* Added copy to clipboard functionality
* Added feedback animation on copy & switched component back to PureComponent
* Tslint fixes & yarn.lock dump
* Added hash router types
* More type fixes
* Attempt to fix strictNullChecks for document.getSelection()
* Fixed wrong conditional
* prettier links
* Tiny styling tweaks
* Added routing to index
* Removed empty devDependencies from package.json
* Fix sharing
* Try `history` without typing
* Yarn.lock dump
* Removed leftover LocalStorage component
* Removed HashRouterProps
* Code formatting changes
* addressing tslint errors
* Added match ro Props
* Added history: any to Props declaration
2019-02-22 13:51:07 +01:00
Stefanie Doll
333b94001e
Bugfix: deep clone imported snippets ( #737 )
...
* Yarn.lock update
* Deep clone imported snippets, state.snippet empty on default
* Fixed wrong defailt type for 'selected'
* Fix onMount behaviour
2019-02-20 12:53:48 +01:00
Jaco Greeff
9adfd46cc3
Bump i18next version (with usage changes) ( #736 )
...
* Bump i18next version (with usage changes)
* Remove unneeded i18n wrapping (Unlock)
* Bump semantic-ui version
2019-02-20 10:26:27 +01:00
Stefanie Doll
f0198a35d4
Bugfix: Editor doesn't update onLoad if no custom example is selected ( #732 )
2019-02-19 18:28:16 +01:00
Stefanie Doll
12ff6fe32a
Populate example name to input for custom examples ( #731 )
...
* Set snippet name as default value in save input field
* Onlu prefill input for custom examples
2019-02-19 16:18:19 +01:00