Skip to content

Commit fa6c948

Browse files
authored
Merge pull request #937 from nervosnetwork/rc/v0.20.0-beta.1
[ᚬmaster] Release v0.20.0-beta.1
2 parents 919099b + 6a91181 commit fa6c948

File tree

57 files changed

+614
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+614
-308
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# [0.20.0-beta.1](https://github.com/nervosnetwork/neuron/compare/v0.20.0-beta.0...v0.20.0-beta.1) (2019-09-17)
2+
3+
4+
### Bug Fixes
5+
6+
* **neuron-ui:** disable the submit button once a sending request is sent ([0c72b01](https://github.com/nervosnetwork/neuron/commit/0c72b01))
7+
* **neuron-ui:** fix the transaction detail view ([9e6da54](https://github.com/nervosnetwork/neuron/commit/9e6da54))
8+
* **neuron-ui:** fix typo in class name ([3417445](https://github.com/nervosnetwork/neuron/commit/3417445))
9+
* **neuron-ui:** sort outputs of a transaction by outPoint.index ([c9aef30](https://github.com/nervosnetwork/neuron/commit/c9aef30))
10+
11+
12+
### Features
13+
14+
* **neuron-ui:** add a settings icon in the navbar component ([8d929a3](https://github.com/nervosnetwork/neuron/commit/8d929a3))
15+
* Improve localization translations ([44b3642](https://github.com/nervosnetwork/neuron/commit/44b3642))
16+
* **neuron-ui:** add a blank margin around the QRCode for improving recognization ([8a7b246](https://github.com/nervosnetwork/neuron/commit/8a7b246))
17+
* **neuron-ui:** refine transaction list and address list ([e78dd9f](https://github.com/nervosnetwork/neuron/commit/e78dd9f))
18+
* **neuron-ui:** remove hover effect on table header ([a21bc7e](https://github.com/nervosnetwork/neuron/commit/a21bc7e))
19+
* Remove hover background effect on property list and overview details lists ([91a1c6e](https://github.com/nervosnetwork/neuron/commit/91a1c6e))
20+
21+
22+
123
# [0.20.0-beta.0](https://github.com/nervosnetwork/neuron/compare/v0.19.0-beta.1...v0.20.0-beta.0) (2019-09-09)
224

325

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "0.20.0-beta.0",
5+
"version": "0.20.0-beta.1",
66
"npmClient": "yarn",
77
"useWorkspaces": true
88
}

package.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "neuron",
33
"productName": "Neuron",
44
"description": "CKB Neuron Wallet",
5-
"version": "0.20.0-beta.0",
5+
"version": "0.20.0-beta.1",
66
"private": true,
77
"author": {
88
"name": "Nervos Core Dev",
@@ -44,24 +44,17 @@
4444
},
4545
"devDependencies": {
4646
"@types/jest": "24.0.18",
47-
"@typescript-eslint/eslint-plugin": "2.1.0",
48-
"@typescript-eslint/parser": "2.1.0",
47+
"@typescript-eslint/eslint-plugin": "2.2.0",
48+
"@typescript-eslint/parser": "2.2.0",
4949
"concurrently": "4.1.2",
5050
"cross-env": "5.2.1",
5151
"eslint": "6.3.0",
52-
"eslint-config-airbnb": "18.0.1",
53-
"eslint-config-prettier": "6.2.0",
54-
"eslint-plugin-import": "2.18.2",
55-
"eslint-plugin-jsx-a11y": "6.2.3",
56-
"eslint-plugin-prettier": "3.1.0",
57-
"eslint-plugin-react": "7.14.3",
5852
"husky": "3.0.5",
5953
"lerna": "3.16.4",
6054
"ncp": "2.0.0",
6155
"nodemon": "1.19.2",
62-
"prettier": "1.18.2",
6356
"ts-jest": "24.0.2",
64-
"typescript": "3.6.2",
57+
"typescript": "3.6.3",
6558
"wait-on": "3.3.0"
6659
},
6760
"dependencies": {}

packages/neuron-ui/.eslintrc.js

Lines changed: 68 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,69 @@
11
module.exports = {
2-
"extends": [
3-
"../../.eslintrc.js"
4-
],
2+
"extends": ["airbnb", "plugin:prettier/recommended"],
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
55
"settings": {
6+
"import/resolver": {
7+
"node": {
8+
"paths": ["src"],
9+
"extensions": [".js", ".ts", ".jsx", ".tsx"]
10+
}
11+
},
612
"react": {
713
"version": "detect"
814
}
915
},
1016
"rules": {
17+
"prettier/prettier": [2, {
18+
"printWidth": 120
19+
}],
20+
"semi": [2, "never"],
21+
"curly": [2, "all"],
22+
"comma-dangle": [2, {
23+
"arrays": "always-multiline",
24+
"objects": "always-multiline",
25+
"imports": "always-multiline",
26+
"exports": "always-multiline",
27+
"functions": "ignore"
28+
}],
29+
"import/no-extraneous-dependencies": [2, {
30+
"devDependencies": true
31+
}],
32+
"no-unused-vars": "off",
33+
"implicit-arrow-linebreak": "off",
34+
"@typescript-eslint/no-unused-vars": ["error", {
35+
"vars": "local",
36+
"args": "after-used",
37+
"ignoreRestSiblings": false
38+
}],
39+
"arrow-parens": [2, "as-needed"],
40+
"max-len": [2, {
41+
"code": 120,
42+
"ignoreComments": true,
43+
"ignoreTrailingComments": true,
44+
"ignoreUrls": true,
45+
"ignoreStrings": true,
46+
"ignoreTemplateLiterals": true,
47+
"ignoreRegExpLiterals": true,
48+
}],
49+
"object-curly-newline": ["error", {
50+
"ObjectExpression": {
51+
"consistent": true
52+
},
53+
"ObjectPattern": {
54+
"consistent": true
55+
},
56+
"ImportDeclaration": {
57+
"consistent": true,
58+
},
59+
"ExportDeclaration": {
60+
"multiline": true,
61+
"minProperties": 3
62+
}
63+
}],
64+
"no-plusplus": [0],
65+
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
66+
"max-classes-per-file": [0],
1167
"react/jsx-filename-extension": [1, {
1268
"extensions": [".ts", ".tsx"]
1369
}],
@@ -17,5 +73,13 @@ module.exports = {
1773
"no-console": [2, {
1874
"allow": ["info", "warn", "error", "group", "groupEnd"]
1975
}]
20-
}
76+
},
77+
"env": {
78+
"jest": true,
79+
"node": true,
80+
"browser": true
81+
},
82+
"globals": {
83+
"BigInt": "readonly"
84+
},
2185
}

packages/neuron-ui/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neuron-ui",
3-
"version": "0.20.0-beta.0",
3+
"version": "0.20.0-beta.1",
44
"private": true,
55
"author": {
66
"name": "Nervos Core Dev",
@@ -81,10 +81,17 @@
8181
"babel-jest": "24.9.0",
8282
"enzyme": "3.10.0",
8383
"enzyme-adapter-react-16": "1.14.0",
84+
"eslint-config-airbnb": "18.0.1",
85+
"eslint-config-prettier": "6.2.0",
86+
"eslint-plugin-import": "2.18.2",
87+
"eslint-plugin-jsx-a11y": "6.2.3",
88+
"eslint-plugin-prettier": "3.1.0",
89+
"eslint-plugin-react": "7.14.3",
8490
"jest-styled-components": "7.0.0-beta.1",
8591
"jsqr": "1.2.0",
8692
"lint-staged": "9.2.5",
8793
"node-sass": "4.12.0",
94+
"prettier": "1.18.2",
8895
"react-app-rewired": "2.1.3",
8996
"react-test-renderer": "16.9.0",
9097
"rimraf": "3.0.0",

packages/neuron-ui/src/components/Addresses/index.tsx

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,24 @@ const Addresses = ({
7070
className: 'monospacedFont',
7171
minWidth: 100,
7272
maxWidth: 500,
73-
onRender: (item?: State.Address) => {
73+
onRender: (item?: State.Address, _index?: number, column?: IColumn) => {
7474
if (item) {
75+
if (column && (column.calculatedWidth || 0) < 400) {
76+
return (
77+
<div
78+
title={item.address}
79+
style={{
80+
overflow: 'hidden',
81+
display: 'flex',
82+
}}
83+
>
84+
<span className="text-overflow">{item.address.slice(0, -6)}</span>
85+
<span>{item.address.slice(-6)}</span>
86+
</div>
87+
)
88+
}
7589
return (
76-
<span className="text-overflow" title={item.address}>
90+
<span className="textOverflow" title={item.address}>
7791
{item.address}
7892
</span>
7993
)
@@ -86,7 +100,6 @@ const Addresses = ({
86100
key: 'description',
87101
fieldName: 'description',
88102
minWidth: 100,
89-
maxWidth: 300,
90103
onRender: (item?: State.Address) => {
91104
const isSelected = item && localDescription.key === item.address
92105
return item ? (
@@ -130,7 +143,7 @@ const Addresses = ({
130143
onRender: (item?: State.Address) => {
131144
if (item) {
132145
return (
133-
<span title={`${item.balance} shannon`} className="text-overflow">
146+
<span title={`${item.balance} shannon`} className="textOverflow">
134147
{`${shannonToCKBFormatter(item.balance)} CKB`}
135148
</span>
136149
)

packages/neuron-ui/src/components/Overview/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ const ActivityList = ({
127127
onItemInvoked={item => {
128128
showTransactionDetails(item.hash)
129129
}}
130+
className="listNoHover"
130131
styles={{
131132
root: {
132133
backgroundColor: 'transparent',
@@ -326,6 +327,7 @@ const Overview = ({
326327
items={activityItems}
327328
onRenderRow={onTransactionRowRender}
328329
onGoToHistory={onGoToHistory}
330+
className="listNoHover"
329331
t={t}
330332
/>
331333
) : (

packages/neuron-ui/src/components/PasswordRequest/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import { priceToFee, CKBToShannonFormatter } from 'utils/formatters'
88

99
const PasswordRequest = ({
1010
app: {
11-
send: { txID, outputs, description, price, cycles, loading: isSending },
11+
send: { txID, outputs, description, price, cycles },
12+
loadings: { sending: isSending = false },
1213
passwordRequest: { walletID = '', actionType = null, password = '' },
1314
},
1415
settings: { wallets = [] },

0 commit comments

Comments
 (0)