Skip to content

Commit

Permalink
Feature trading (#20)
Browse files Browse the repository at this point in the history
* Adjust name weights

* [CI Skip]  0.39.0-beta.11

skip-checks: true

* Use lookup accountId for IdentiIcon display (polkadot-js#2065)

* [CI Skip]  0.39.0-beta.12

skip-checks: true

* Styling tweaks (polkadot-js#2066)

* Styling tweaks

* Linting

* [CI Skip]  0.39.0-beta.13

skip-checks: true

* (tiny) Badge styling updates (polkadot-js#2067)

* [CI Skip]  0.39.0-beta.14

skip-checks: true

* Disable contracts call RPC if unavailable (polkadot-js#2068)

* disable contract rpc

* bump

* [CI Skip]  0.39.0-beta.15

skip-checks: true

* Fix Identicon on-not-connected (polkadot-js#2070)

* [CI Skip]  0.39.0-beta.16

skip-checks: true

* Hide council voting when not a member (polkadot-js#2071)

* Hide council voting when not a member

* Disable instead of hide

* [CI Skip]  0.39.0-beta.17

skip-checks: true

* Add "send to council" to treasury (polkadot-js#2075)

* [CI Skip]  0.39.0-beta.18

skip-checks: true

* Add useTranslation for all apps (polkadot-js#2076)

* [CI Skip]  0.39.0-beta.19

skip-checks: true

* Display all identity info on hover (polkadot-js#2077)

* Display all identity info on hover

* Bump API

* displayName linting

* [CI Skip]  0.39.0-beta.20

skip-checks: true

* Provide judgement via account hover (polkadot-js#2078)

* Provide judgement via account hover

* Click to provide judgement

* [CI Skip]  0.39.0-beta.21

skip-checks: true

* Grayscale identity (polkadot-js#2079)

* [CI Skip]  0.39.0-beta.22

skip-checks: true

* Bump API (derives for proposals) (polkadot-js#2080)

* [CI Skip]  0.39.0-beta.23

skip-checks: true

* Cleanup display from identity (polkadot-js#2081)

* Cleanup display from identity

* Bump API

* [CI Skip]  0.39.0-beta.24

skip-checks: true

* Revert opacity adjustment

* [CI Skip]  0.39.0-beta.25

skip-checks: true

* Updae the council counter refresh (polkadot-js#2082)

* [CI Skip]  0.39.0-beta.26

skip-checks: true

* bump deps (polkadot-js#2088)

* [CI Skip]  0.39.0-beta.27

skip-checks: true

* Bump to latest api (polkadot-js#2089)

* Bump to latest api

* beta 17

* [CI Skip]  0.39.0-beta.28

skip-checks: true

* Disable spellcheck on input fields (polkadot-js#2090)

* [CI Skip]  0.39.0-beta.29

skip-checks: true

* Bump deps (polkadot-js#2091)

* [CI Skip]  0.39.0-beta.30

skip-checks: true

* Slash revert council proposal (polkadot-js#2093)

* Slash revert council proposal

* Disabled slashes when none

* [CI Skip]  0.39.0-beta.31

skip-checks: true

* Minor overflow adjustments (polkadot-js#2095)

* Minor overflow adjustments

* Default names to uppercase

* s/normal/none/

* isAddress check for text formatting

* Adjust caching with isAddress info

* Overflow to bottom

* [CI Skip]  0.39.0-beta.32

skip-checks: true

* Kulupu (polkadot-js#2092)

* Kulupu

* Add old DispatchInfo ovverride

* Old DispatchError & DispatchResult

* Moment typo

* [CI Skip]  0.39.0-beta.33

skip-checks: true

* Translation into Chinese (polkadot-js#2086)

* fix: init

* fix: 添加部分翻译

* fix: 完成账户翻译的验证

* fix: 添加汉语支持

* fix: 完成第一个阶段

* fix: 翻译部分内容

* fix:

* fix: 添加账户和合约的翻译

* fix: reset source config

* fix: reset source

* Fixup sidebar translation (polkadot-js#2096)

* Fixup sidebar translation

* Update transaltion extraction

* [CI Skip]  0.39.0-beta.34

skip-checks: true

* Some useTranslation updates (polkadot-js#2097)

* Some useTranslation updates

* AccountName caching

* [CI Skip]  0.39.0-beta.35

skip-checks: true

* Payment info display (polkadot-js#2003)

* Payment info display

* Bump deps

* Fee display

* [CI Skip]  0.39.0-beta.36

skip-checks: true

* Filter accounts/addresses by tag or name (polkadot-js#2102)

* Filter accounts/addresses by tag or name

* Filter identity names (as available)

* Adjust filter input label

* [CI Skip]  0.39.0-beta.37

skip-checks: true

* Lowercase filter (polkadot-js#2103)

* Lowercase filter

* Keep AccountId/AccountIndex mixed-case check

* Remove (unused) translation

* [CI Skip]  0.39.0-beta.38

skip-checks: true

* Bump API (Percentage, updated IdentityInfo) (polkadot-js#2104)

* [CI Skip]  0.39.0-beta.39

skip-checks: true

* Bump API (Proposal failsafe) (polkadot-js#2105)

* [CI Skip]  0.39.0-beta.40

skip-checks: true

* Remove FF warning (can now connect to local ws) (polkadot-js#2106)

* [CI Skip]  0.39.0-beta.41

skip-checks: true

* Display sub identities (polkadot-js#2107)

* [CI Skip]  0.39.0-beta.42

skip-checks: true

* Additional useTranslation conversions (polkadot-js#2109)

* Additional useTranslation conversions

* quotes

* Bumps

* Cleanup params wit overrides

* [CI Skip]  0.39.0-beta.43

skip-checks: true

* Staking filter (name, address) (polkadot-js#2110)

* Staking filter (name, address)

* Dislay parent & sub

* Formatting

* [CI Skip]  0.39.0-beta.44

skip-checks: true

* Own controller check on staking options (polkadot-js#2111)

* Own controller check on staking options

* Update SetSessionKey.tsx

* [CI Skip]  0.39.0-beta.45

skip-checks: true

* Bump deps (scan mirror) (polkadot-js#2112)

* [CI Skip]  0.39.0-beta.46

skip-checks: true

* Adjust sub name display (polkadot-js#2113)

* [CI Skip]  0.39.0-beta.47

skip-checks: true

* API 1.0-beta & common 2.0-beta (polkadot-js#2115)

* API 1.0-beta & common 2.0-beta

* May fix effect issue

* [CI Skip]  0.39.0-beta.48

skip-checks: true

* Common bump (no Alice stash in dev) (polkadot-js#2116)

* [CI Skip]  0.39.0-beta.49

skip-checks: true

* Cache pernt/child display parts (polkadot-js#2117)

* [CI Skip]  0.39.0-beta.50

skip-checks: true

* Bump API (polkadot-js#2121)

* [CI Skip]  0.39.0-beta.51

skip-checks: true

* Bump API (imOnline decoding) (polkadot-js#2122)

* [CI Skip]  0.39.0-beta.52

skip-checks: true

* Bump UI (chain settings) (polkadot-js#2125)

* [CI Skip]  0.39.0-beta.53

skip-checks: true

* Nominations lists text update (polkadot-js#2126)

* [CI Skip]  0.39.0-beta.54

skip-checks: true

* Additional useTranslation (polkadot-js#2118)

* Additional useTranslation

* Cleanup imports

* Cleanup unused props

* [CI Skip]  0.39.0-beta.55

skip-checks: true

* Connecting overlay rendering order (polkadot-js#2130)

* Connecting overlay rendering order

* API

* Combine components

* Unused import

* [CI Skip]  0.39.0-beta.56

skip-checks: true

* Always include staking favourites in the list (polkadot-js#2131)

* Always include staking favourites in the list

* Filter by actual session validators

* [CI Skip]  0.39.0-beta.57

skip-checks: true

* Add judgement waiting (polkadot-js#2134)

* [CI Skip]  0.39.0-beta.58

skip-checks: true

* Additional useTranslation usage (polkadot-js#2133)

* [CI Skip]  0.39.0-beta.59

skip-checks: true

* Display decoded ExtrinsicFailed errors (polkadot-js#2137)

* Display decoded ExtrinsicFailed errors

* Revert debug log

* Bump API (error lookup)

* [CI Skip]  0.39.0-beta.60

skip-checks: true

* Remove snippet sharing (polkadot-js#2138)

* [CI Skip]  0.39.0-beta.61

skip-checks: true

* API cleanups (polkadot-js#2139)

* API cleanups

* Revert ready setting

* ... oops

* Adjust dropdown right margin

* API -> functional

* [CI Skip]  0.39.0-beta.62

skip-checks: true

* No withCall for all functional (polkadot-js#2042)

* No withCall for all functional

* Linting

* Remove HOC, unneeded eslint override

* Cleanups

* [CI Skip]  0.39.0-beta.63

skip-checks: true

* Adjust overlays (polkadot-js#2142)

* [CI Skip]  0.39.0-beta.64

skip-checks: true

* Fix identity effect with twitter (polkadot-js#2145)

* [CI Skip]  0.39.0-beta.65

skip-checks: true

* Align noteImminent with Substrate (polkadot-js#2149)

* [CI Skip]  0.39.0-beta.66

skip-checks: true

* Swap council slashing cancel threshold to 50% (polkadot-js#2151)

* [CI Skip]  0.39.0-beta.67

skip-checks: true

* Bump deps (polkadot-js#2150)

* [CI Skip]  0.39.0-beta.68

skip-checks: true

* Remove IdentityInfo override (polkadot-js#2152)

* [CI Skip]  0.39.0-beta.69

skip-checks: true

* Society app (polkadot-js#2148)

* Society app

* useCheck

* Summary

* Updates

* Bump API with society

* Bump API (fixed publish)

* [CI Skip]  0.39.0-beta.70

skip-checks: true

* Democracy with useTranslation (polkadot-js#2153)

* Democracy with useTranslation

* Remove isSuspended display

* One isSubstrateV2 less

* Linting

* [CI Skip]  0.39.0-beta.71

skip-checks: true

* Bump API (incl. staking ledger fixes) (polkadot-js#2156)

* Bump API (incl. staking ledger fixes)

* Api context

* Replace counter

* Linting

* Swap t -> useTranslation

* Cleanup unwrap

* Rebuild i18n (& make auto-config)

* Remove old eslint override

* [CI Skip]  0.39.0-beta.72

skip-checks: true

* Set Modal default to open (polkadot-js#2157)

* [CI Skip]  0.39.0-beta.73

skip-checks: true

* useTranslation Suspense fallback (polkadot-js#2158)

* useTranslation Suspense fallback

* import path

* Some small useTranslation conversions

* [CI Skip]  0.39.0-beta.74

skip-checks: true

* Clear all window vars (polkadot-js#2159)

* Clear all window vars

* Cleanups

* [CI Skip]  0.39.0-beta.75

skip-checks: true

* Show society rotation & challenge periods (polkadot-js#2160)

* Shw rotation & challenge periods

* Display Bids

* [CI Skip]  0.39.0-beta.76

skip-checks: true

* Account create options, sort by created (polkadot-js#2161)

* [CI Skip]  0.39.0-beta.77

skip-checks: true

* Allow Qr scanning with name (polkadot-js#2163)

* [CI Skip]  0.39.0-beta.78

skip-checks: true

* Use ButtonCancel for all Cancel-only buttons (polkadot-js#2164)

* Use ButtonCancel for all Cancel-only buttons

* Small cleanups

* [CI Skip]  0.39.0-beta.79

skip-checks: true

* Auto-add Button.Group inside Modal.Actions (polkadot-js#2165)

* Auto-add Button.Group inside Modal.Actions

* Pass onCancel prop through to Modal.Actions

* Cancel rendering in contracts

* [CI Skip]  0.39.0-beta.80

skip-checks: true

* Cleanup AccountName display (polkadot-js#2166)

* [CI Skip]  0.39.0-beta.81

skip-checks: true

* Metadata update reload (polkadot-js#2143)

* Metadata update reload

* Check around status

* [CI Skip]  0.39.0-beta.82

skip-checks: true

* Remove last css files (all styled-components) (polkadot-js#2168)

* Additional css -> styled

* Apps class prefix renames

* Remove last css files

* Cleanup linked wrapper

* [CI Skip]  0.39.0-beta.83

skip-checks: true

* Fully split active/inactive nominations (polkadot-js#2169)

* [CI Skip]  0.39.0-beta.84

skip-checks: true

* xh members/candidates (society) (polkadot-js#2172)

* [CI Skip]  0.39.0-beta.85

skip-checks: true

* Swap Edgeware types to published (polkadot-js#2173)

* [CI Skip]  0.39.0-beta.86

skip-checks: true

* Swap council voting from TxModal (polkadot-js#2141)

* Swap council voting from TxModal

* Cleanup toggles

* Apply account filters

* useCouncilMembers

* Pass filter through to Propose

* Linting

* [CI Skip]  0.39.0-beta.87

skip-checks: true

* Handle DispatchError failures gracefully (polkadot-js#2182)

* Handle DispatchError failures gracefully

* Also allow queue display failures

* [CI Skip]  0.39.0-beta.88

skip-checks: true

* Allow sorting of staking returns (polkadot-js#2183)

* [CI Skip]  0.39.0-beta.89

skip-checks: true

* Adjust SI formats to full SI name (polkadot-js#2184)

* Adjust SI formats to full SI name

* Linting

* [CI Skip]  0.39.0-beta.90

skip-checks: true

* Bump API (polkadot-js#2186)

* [CI Skip]  0.39.0-beta.91

skip-checks: true

* Social account recovery (polkadot-js#2187)

* Social account recovery ... start

* Dialogs with send buttons

* TxButton icons (before I forget)

* Recovery start

* withSpinner

* [CI Skip]  0.39.0-beta.92

skip-checks: true

* Add Westend, externalize endpoints (polkadot-js#2171)

* Add Westend, externalize endpoints

* Update scanner with all current namespaces

* WebEnd type overrides

* Westend link to Polkascan

* [CI Skip]  0.39.0-beta.93

skip-checks: true

* Signer unlock password indicator (polkadot-js#2190)

* Signer unlock password indicator

* Combine UnlockError in Unlock

* [CI Skip]  0.39.0-beta.94

skip-checks: true

* Adjust available labels (polkadot-js#2191)

* [CI Skip]  0.39.0-beta.95

skip-checks: true

* Add preimage buttons to proposals (polkadot-js#2192)

* Add preimage buttons to proposals

* Styling overrides

* InputAddress filter

* [CI Skip]  0.39.0-beta.96

skip-checks: true

* Remove old votes from council (polkadot-js#2193)

* [CI Skip]  0.39.0-beta.97

skip-checks: true

* TxButton withSpinner swap (polkadot-js#2194)

* TxButton withSpinner swap

* TxModal onClick -> onStart (in modal)

* [CI Skip]  0.39.0-beta.98

skip-checks: true

* AddressMulti -> InputAddressMulti (polkadot-js#2195)

* [CI Skip]  0.39.0-beta.99

skip-checks: true

* Apply Vote conviction (polkadot-js#2197)

* [CI Skip]  0.39.0-beta.100

skip-checks: true

* Remove ja from i18n settings (polkadot-js#2198)

* [CI Skip]  0.39.0-beta.101

skip-checks: true

* Bump deps (polkadot-js#2199)

* [CI Skip]  0.39.0-beta.102

skip-checks: true

* Bump deps (polkadot-js#2202)

* Bump deps

* Re-apply v10-era linked check

* Expand key inline

* Expand type

* Extract exraction logic

* Latest API

* Fix linting around identity (now in metadata)

* Bump latest

* [CI Skip]  0.39.0-beta.103

skip-checks: true

* Society vouching (polkadot-js#2204)

* Society vouching

* Bump API, decode votes

* Inline count

* Remove unused style

* [CI Skip]  0.39.0-beta.104

skip-checks: true

* Staking list rendering optimizations (polkadot-js#2206)

* Staking list rendering optimizations

* Cleanups

* [CI Skip]  0.39.0-beta.105

skip-checks: true

* Convert options & items (tabs) to useMemo (polkadot-js#2207)

* Convert options & items (tabs) to useMemo

* Add missing var in useMemo

* Remove floating isSubstrateV2

* Cleanup staking entry

* Remove unneeded ?

* [CI Skip]  0.39.0-beta.106

skip-checks: true

* Bump API (polkadot-js#2208)

* [CI Skip]  0.39.0-beta.107

skip-checks: true

* Add derive availability failsafes (global) (polkadot-js#2210)

* Add derive availability failsafes (global)

* Check all isApiReady

* [CI Skip]  0.39.0-beta.108

skip-checks: true

* Empty heartbeats should not display (polkadot-js#2212)

* [CI Skip]  0.39.0-beta.109

skip-checks: true

* Bump deps (polkadot-js#2213)

* [CI Skip]  0.39.0-beta.110

skip-checks: true

* Squash session summary rendering (polkadot-js#2214)

* [CI Skip]  0.39.0-beta.111

skip-checks: true

* Adjust summary balance displays (polkadot-js#2215)

* Society voting on defender (polkadot-js#2216)

* Society voting on defender

* Bump deps

* Bump API (correct types)

* [CI Skip]  0.39.0-beta.112

skip-checks: true

* Bump deps (polkadot-js#2217)

* Bump deps

* Add extraction tests

* [CI Skip]  0.39.0-beta.113

skip-checks: true

* Bump API (polkadot-js#2219)

* [CI Skip]  0.39.0-beta.114

skip-checks: true

* Expose signed transactions (polkadot-js#2203)

* sign offline WIP

* signing transactions from extrinsics screen

* signing tx from accounts screen

* added translations

* removed unnecessary value

* removed console logs

* removed unused import

* used new signAsync method

* fixed types

* removed unused imports

* added missing translations

* code review changes

* fixed signing with local account

* added sign toggle

* improvements for QR

* [CI Skip]  0.39.0-beta.115

skip-checks: true

* 0.39 (polkadot-js#2220)

* 0.39

* Linting

* [CI Skip]  0.39.1

skip-checks: true

* Bump API (polkadot-js#2223)

* [CI Skip]  0.40.0-beta.0

skip-checks: true

* Bump API (polkadot-js#2224)

* Bump API

* Type adjustments

* Update zero const

* [CI Skip]  0.40.0-beta.1

skip-checks: true

* Add preimage button to externals (polkadot-js#2228)

* Add preimage button to externals

* Skip or on externals

* [CI Skip]  0.40.0-beta.2

skip-checks: true

* Bump deps (polkadot-js#2229)

* [CI Skip]  0.40.0-beta.3

skip-checks: true

* Change dockerfile to use local version as opposed to cloning polkadot… (polkadot-js#2225)

* Change dockerfile to use local version as opposed to cloning polkadot-js/apps

* Update Dockerfile

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

* [CI Skip]  0.40.0-beta.4

skip-checks: true

* Build only apps component via docker (polkadot-js#2231)

* [CI Skip]  0.40.0-beta.5

skip-checks: true

* Bump deps (polkadot-js#2232)

* Bump deps

* Update types

* [CI Skip]  0.40.0-beta.6

skip-checks: true

* Display day breakdown for voting locks (polkadot-js#2234)

* [CI Skip]  0.40.0-beta.7

skip-checks: true

* Bump deps (polkadot-js#2238)

* [CI Skip]  0.40.0-beta.8

skip-checks: true

* Only update initial selected nominations once (polkadot-js#2241)

* [CI Skip]  0.40.0-beta.9

skip-checks: true

* Apply WS_URL consistently (polkadot-js#2244)

* [CI Skip]  0.40.0-beta.10

skip-checks: true

* Exapnd locks (& display all) (polkadot-js#2245)

* [CI Skip]  0.40.0-beta.11

skip-checks: true

* fix images

* build passed

* fix derive

* WIP: offer modal

* WIP add modal

* first impl trading

* add offers lists

* add trading lists

* passed lint

* passed build

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
Co-authored-by: Keith Ingram <kwingram25@gmail.com>
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Co-authored-by: dushaobindoudou <dushaobindoudou@gmail.com>
Co-authored-by: Marcin Żółkiewski <zolkiewski.marcin@gmail.com>
Co-authored-by: philipstanislaus <6912756+philipstanislaus@users.noreply.github.com>
  • Loading branch information
7 people committed Feb 12, 2020
1 parent 6a84c18 commit fbb7455
Show file tree
Hide file tree
Showing 368 changed files with 11,953 additions and 8,458 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# 0.39.1

- **Breaking** Drop support for V1 Substrate chains
- Translation into Chinese (Thanks to https://github.com/dushaobindoudou)
- Support for sign-only transactions (Thanks to https://github.com/mzolkiewski)
- Add support for WestEnd testnet
- Add support for social recovery in accounts
- Add counters for all proposal-based apps
- Disable spellcheck on all input fields (privacy)
- Query the paymentInfo API to get weight fee information
- Remove FF warning with https:// -> ws://localhost
- Staking now supports where the controller or stash accounts are not local
- Social app
- Add support for identity setting (via identity module)
- Add support for registrars to hand out identity judgements
- Use both internal and lib hooks as applicable (refactoring)
- Support QR codes (accounts) with optional names
- Cleanup all Modals, simplify
- Adjust balance display formats
- Update to latest libraries (incl. util 2.0 & api 1.0)

# 0.38.1

- Fix summarybar in 123-code (Thanks to https://github.com/anakornk)
- Update Edgeware with correct keys (Thanks to https://github.com/drewstone)
- Add InputAddressMulti inputs, both to council and staking nominators
- Rework all layouts, removing cards for table-ike-layouts
- Technical comittee app
- Allow for external proposal and queued for dispatch in democracy
- Add pre-image support to democracy proposals (including imminent)
- Improved staking page rendering (background)
- Update to latest libraries

# 0.37.1

- Support for Kusama CC3
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ RUN apt-get update && apt-get install -y curl git gnupg
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs

WORKDIR /app
RUN git clone https://github.com/polkadot-js/apps
WORKDIR /apps
COPY . .

WORKDIR /app/apps
RUN npm install yarn -g
RUN yarn
RUN NODE_ENV=production yarn build
RUN NODE_ENV=production yarn build:www

FROM ubuntu:18.04

RUN apt-get update && apt-get -y install nginx

COPY --from=builder /app/apps/packages/apps/build /var/www/html
COPY --from=builder /apps/packages/apps/build /var/www/html

EXPOSE 80

Expand Down
90 changes: 34 additions & 56 deletions i18next-scanner.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
// Copyright 2017-2020 @polkadot/apps authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.

const fs = require('fs');
const path = require('path');
const typescript = require('typescript');

const findPackages = require('./scripts/findPackages');

function transform (file, enc, done) {
const { ext } = path.parse(file.path);

if (ext === '.tsx') {
const content = fs.readFileSync(file.path, enc);

const { outputText } = typescript.transpileModule(content, {
compilerOptions: {
target: 'es2018'
},
fileName: path.basename(file.path)
});

const parserHandler = (key, options) => {
options.defaultValue = key;
options.ns = /packages\/(.*?)\/src/g.exec(file.path)[1];
this.parser.set(key, options);
};

this.parser.parseFuncFromString(outputText, parserHandler);
}

done();
}

module.exports = {
input: [
'packages/*/src/**/*.{ts,tsx}',
Expand All @@ -15,44 +46,14 @@ module.exports = {
debug: true,
func: {
list: ['t', 'i18next.t', 'i18n.t'],
extensions: ['.tsx']
extensions: ['.tsx', '.ts']
},
trans: {
component: 'Trans'
},
lngs: ['en'],
defaultLng: 'en',
ns: [
'app-123code',
'app-accounts',
'app-address-book',
'app-claims',
'app-contracts',
'app-council',
'app-dashboard',
'app-democracy',
'app-explorer',
'app-extrinsics',
'app-generic-asset',
'app-js',
'app-parachains',
'app-settings',
'app-staking',
'app-storage',
'app-sudo',
'app-tech-comm',
'app-toolbox',
'app-transfer',
'app-treasury',
'apps',
'apps-routing',
'react-api',
'react-components',
'react-params',
'react-query',
'react-signer',
'ui'
],
ns: findPackages().map(({ dir }) => dir),
defaultNs: 'ui',
resource: {
loadPath: 'packages/apps/public/locales/{{lng}}/{{ns}}.json',
Expand All @@ -63,28 +64,5 @@ module.exports = {
nsSeparator: false, // namespace separator
keySeparator: false // key separator
},
transform: function transform (file, enc, done) {
const { ext } = path.parse(file.path);

if (ext === '.tsx') {
const content = fs.readFileSync(file.path, enc);

const { outputText } = typescript.transpileModule(content, {
compilerOptions: {
target: 'es2018'
},
fileName: path.basename(file.path)
});

const parserHandler = (key, options) => {
options.defaultValue = key;
options.ns = /packages\/(.*?)\/src/g.exec(file.path)[1];
this.parser.set(key, options);
};

this.parser.parseFuncFromString(outputText, parserHandler);
}

done();
}
transform
};
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"packages": [
"packages/*"
],
"version": "0.39.0-beta.40"
"version": "0.40.0-beta.11"
}
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.39.0-beta.40",
"version": "0.40.0-beta.11",
"private": true,
"engines": {
"node": ">=10.13.0",
Expand All @@ -10,36 +10,37 @@
"packages/*"
],
"resolutions": {
"@polkadot/api": "^0.100.0-beta.27",
"@polkadot/api-contract": "^0.100.0-beta.27",
"@polkadot/keyring": "^1.8.1",
"@polkadot/types": "^0.100.0-beta.27",
"@polkadot/util": "^1.8.1",
"@polkadot/util-crypto": "^1.8.1",
"@polkadot/api": "^1.1.0-beta.20",
"@polkadot/api-contract": "^1.1.0-beta.20",
"@polkadot/keyring": "^2.1.1",
"@polkadot/types": "^1.1.0-beta.20",
"@polkadot/util": "^2.1.1",
"@polkadot/util-crypto": "^2.1.1",
"babel-core": "^7.0.0-bridge.0",
"typescript": "^3.7.4"
"typescript": "^3.7.5"
},
"scripts": {
"analyze": "yarn run build && cd packages/apps && yarn run source-map-explorer build/main.*.js",
"build": "yarn run build:code && yarn run build:i18n",
"build": "yarn run build:i18n && yarn run build:code",
"build:code": "NODE_ENV=production polkadot-dev-build-ts",
"build:i18n": "i18next-scanner --config i18next-scanner.config.js",
"build:www": "rm -rf packages/apps/build && mkdir -p packages/apps/build && yarn run build:i18n && cd packages/apps && NODE_ENV=production webpack --config webpack.config.js",
"docs": "echo \"skipping docs\"",
"clean": "polkadot-dev-clean-build",
"clean:i18n": "rm -rf packages/apps/public/locales/en && mkdir -p packages/apps/public/locales/en",
"lint": "eslint --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
"postinstall": "polkadot-dev-yarn-only",
"test": "echo \"skipping tests\"",
"test": "jest packages/app-claims/src",
"vanitygen": "node packages/app-accounts/scripts/vanitygen.js",
"start": "cd packages/apps && webpack --config webpack.config.js"
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/core": "^7.8.3",
"@babel/register": "^7.7.7",
"@babel/runtime": "^7.7.7",
"@polkadot/dev-react": "^0.32.14",
"@polkadot/ts": "^0.1.90",
"autoprefixer": "^9.7.1",
"@babel/runtime": "^7.8.3",
"@polkadot/dev-react": "^0.33.3",
"@polkadot/ts": "^0.2.1",
"autoprefixer": "^9.7.4",
"empty": "^0.10.1",
"html-loader": "^0.5.5",
"i18next-scanner": "^2.10.3",
Expand All @@ -53,6 +54,6 @@
"postcss-sass": "^0.4.1",
"postcss-simple-vars": "^5.0.0",
"precss": "^4.0.0",
"source-map-explorer": "^2.1.0"
"source-map-explorer": "^2.2.2"
}
}
6 changes: 3 additions & 3 deletions packages/app-123code/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/app-123code",
"version": "0.39.0-beta.40",
"version": "0.40.0-beta.11",
"description": "A basic app that shows the ropes on customisation",
"main": "index.js",
"scripts": {},
Expand All @@ -10,7 +10,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.7",
"@polkadot/react-components": "^0.39.0-beta.40"
"@babel/runtime": "^7.8.3",
"@polkadot/react-components": "^0.40.0-beta.11"
}
}
1 change: 1 addition & 0 deletions packages/app-123code/src/Transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default function Transfer ({ accountId }: Props): React.ReactElement<Prop
label='make transfer'
params={[recipientId, amount]}
tx='balances.transfer'
withSpinner
/>
</Button.Group>
</div>
Expand Down
10 changes: 5 additions & 5 deletions packages/app-accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkadot/app-accounts",
"version": "0.39.0-beta.40",
"version": "0.40.0-beta.11",
"main": "index.js",
"repository": "https://github.com/polkadot-js/apps.git",
"author": "Jaco Greeff <jacogr@gmail.com>",
Expand All @@ -10,11 +10,11 @@
"contributors": [],
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.7.7",
"@polkadot/react-components": "^0.39.0-beta.40",
"@polkadot/react-qr": "^0.48.0-beta.8",
"@babel/runtime": "^7.8.3",
"@polkadot/react-components": "^0.40.0-beta.11",
"@polkadot/react-qr": "^0.49.0-beta.2",
"@types/file-saver": "^2.0.0",
"@types/yargs": "^13.0.2",
"@types/yargs": "^15.0.2",
"detect-browser": "^4.8.0",
"file-saver": "^2.0.0",
"yargs": "^15.0.2"
Expand Down
Loading

0 comments on commit fbb7455

Please sign in to comment.