on master help sign in
Merge branch 'master' into mino-onboarding-invites
commit92feccf5661b63885db0b5d5fbe6d7db476e64fb authorFang <git@fang.io> dateThu 18 Apr 2019, 16:35 (8 years ago) parentab4284334de3a4
8 files changed+60−37
CHANGELOG+11 README.md+19−1 package-lock.json+1−1 package.json+3−4 src/Root.js−5 src/bridge/components/ReactSVGComponents.js+24−24 src/bridge/views/CreateGalaxy.js+1−1 src/bridge/views/IssueChild.js+1−1
CHANGELOG+11
@@ -1,6 +1,17 @@
11
22# Changelog
33
4+- 1.3.0 (2019-04-18)
5+ This release simplifies the flows surrounding networking keys and brings many other quality of life improvements.
6+
7+ * Simplify the network key generation & download flows (#85, #92)
8+ * Allow viewing points without logging in (#80)
9+ * Display transaction confirmation status after submission (#99)
10+ * Support the optional BIP39 mnemonic passphrase (#94)
11+ * Makes the browser back button work for navigating in Bridge (#86)
12+ * Various smaller UI improvements (#87, #100, #104, #106, #113, #116)
13+ * Various smaller code improvements (#82, #91, #95, #96, #108, #115)
14+
415- 1.2.1 (2019-03-21)
516 This release fixes an issue with the spawning of child points.
617
README.md+19−1
@@ -4,7 +4,25 @@ An application for interacting with Azimuth.
44
55## Usage
66
7−To run Bridge, follow the instructions on the [latest release][rele] page.
7+### Requirements
8+
9+Python 3.7.2
10+
11+### Instructions
12+
13+1. To use Bridge, [download a release](https://github.com/urbit/bridge/releases) and unzip it (`bridge-$version.zip`).
14+2. Open up your command line interface (Terminal on MacOS, Command Prompt on Windows).
15+3. `cd` into the `bridge-$version` directory.
16+4. Run this command: `python3 -m http.server 5000 --bind 127.0.0.1`
17+5. You can then use Bridge by navigating to http://localhost:5000 using a web browser.
18+
19+### Verify checksums
20+
21+To validate your downloaded file's integrity, compare the lines in checksum.txt to SHA-256 hashes of the `bridge-$version` directory's contents.
22+
23+- On MacOS: `shasum -a 256 -c checksums.txt .`
24+- On Linux: `sha256sum -c checksums.txt .`
25+- On Windows: Go into the `build` directory and verify files individually with `CertUtil -hashFile [file_name] SHA256`
826
927## Development Notes
1028
package-lock.json+1−1
@@ -1,6 +1,6 @@
11{
22 "name": "bridge",
3− "version": "1.2.1",
3+ "version": "1.3.0",
44 "lockfileVersion": 1,
55 "requires": true,
66 "dependencies": {
package.json+3−4
@@ -1,6 +1,6 @@
11{
22 "name": "bridge",
3− "version": "1.2.1",
3+ "version": "1.3.0",
44 "description": "An application for interacting with Azimuth",
55 "repository": {
66 "type": "git",
@@ -53,9 +53,8 @@
5353 "build": "react-scripts build",
5454 "test": "react-scripts test --env=jsdom",
5555 "eject": "react-scripts eject",
56− "checksum": "find build -exec shasum -a256 {} ';' > checksums.txt",
57− "tar": "tar -czvf bridge-$npm_package_version.tar.gz README.md bridge-https.py checksums.txt build",
58− "zip": "zip -FSr bridge-$npm_package_version.zip README.md bridge-https.py checksums.txt build",
56+ "checksum": "cd build && find . -exec shasum -a256 {} ';' > ../checksums.txt && cd ..",
57+ "zip": "zip -ur bridge-$npm_package_version.zip README.md bridge-https.py checksums.txt && cd build && zip -ur ../bridge-$npm_package_version.zip ./* && cd ..",
5958 "release": "npm install && npm run build && npm run checksum && npm run zip",
6059 "pilot:ganache": "ganache-cli -m 'benefit crew supreme gesture quantum web media hazard theory mercy wing kitten' > /dev/null &",
6160 "pilot:deploy": "cd node_modules/azimuth-solidity && truffle deploy",
src/Root.js−5
@@ -9,7 +9,6 @@ import { AppNavigation } from './common/components/AppNavigation'
99
1010import './common/style/index.css'
1111import './bridge/style/index.css'
12−import './walletgen/style/index.css'
1312
1413class Root extends React.Component {
1514 constructor(props) {
@@ -88,10 +87,6 @@ class Root extends React.Component {
8887 return (
8988 <React.Fragment>
9089 {appComponent}
91− <AppNavigation
92− setView={this.setView}
93− appView={this.state.appView}
94− />
9590 </React.Fragment>
9691 )
9792 }
src/bridge/components/ReactSVGComponents.js+24−24
@@ -2,59 +2,59 @@ import React from 'react'
22import { get, map } from 'lodash'
33
44const ReactSVGComponents = {
5− svg: p => {
5+ svg: (p, key) => {
66 return (
7− <svg {...p.attr} version={'1.1'} xmlns={'http://www.w3.org/2000/svg'}>
8− { map(get(p, 'children', []), child => ReactSVGComponents[child.tag](child)) }
7+ <svg {...p.attr} version={'1.1'} xmlns={'http://www.w3.org/2000/svg'} key={key}>
8+ { map(get(p, 'children', []), (child, idx) => ReactSVGComponents[child.tag](child, idx)) }
99 </svg>
1010 )
1111 },
12− circle: p => {
12+ circle: (p, key) => {
1313 return (
14− <circle {...p.attr}>
15− { map(get(p, 'children', []), child => ReactSVGComponents[child.tag](child)) }
14+ <circle {...p.attr} key={key}>
15+ { map(get(p, 'children', []), (child, idx) => ReactSVGComponents[child.tag](child, idx)) }
1616 </circle>
1717 )
1818 },
19− rect: p => {
19+ rect: (p, key) => {
2020 return (
21− <rect {...p.attr}>
22− { map(get(p, 'children', []), child => ReactSVGComponents[child.tag](child)) }
21+ <rect {...p.attr} key={key}>
22+ { map(get(p, 'children', []), (child, idx) => ReactSVGComponents[child.tag](child, idx)) }
2323 </rect>
2424 )
2525 },
26− path: p => {
26+ path: (p, key) => {
2727 return (
28− <path {...p.attr}>
29− { map(get(p, 'children', []), child => ReactSVGComponents[child.tag](child)) }
28+ <path {...p.attr} key={key}>
29+ { map(get(p, 'children', []), (child, idx) => ReactSVGComponents[child.tag](child, idx)) }
3030 </path>
3131 )
3232 },
33− g: p => {
33+ g: (p, key) => {
3434 return (
35− <g {...p.attr}>
36− { map(get(p, 'children', []), child => ReactSVGComponents[child.tag](child)) }
35+ <g {...p.attr} key={key}>
36+ { map(get(p, 'children', []), (child, idx) => ReactSVGComponents[child.tag](child, idx)) }
3737 </g>
3838 )
3939 },
40− polygon: p => {
40+ polygon: (p, key) => {
4141 return (
42− <polygon {...p.attr}>
43− { map(get(p, 'children', []), child => ReactSVGComponents[child.tag](child)) }
42+ <polygon {...p.attr} key={key}>
43+ { map(get(p, 'children', []), (child, idx) => ReactSVGComponents[child.tag](child, idx)) }
4444 </polygon>
4545 )
4646 },
47− line: p => {
47+ line: (p, key) => {
4848 return (
49− <line {...p.attr}>
50− { map(get(p, 'children', []), child => ReactSVGComponents[child.tag](child)) }
49+ <line {...p.attr} key={key}>
50+ { map(get(p, 'children', []), (child, idx) => ReactSVGComponents[child.tag](child, idx)) }
5151 </line>
5252 )
5353 },
54− polyline: p => {
54+ polyline: (p, key) => {
5555 return (
56− <polyline {...p.attr}>
57− { map(get(p, 'children', []), child => ReactSVGComponents[child.tag](child)) }
56+ <polyline {...p.attr} key={key}>
57+ { map(get(p, 'children', []), (child, idx) => ReactSVGComponents[child.tag](child, idx)) }
5858 </polyline>
5959 )
6060 }
src/bridge/views/CreateGalaxy.js+1−1
@@ -167,7 +167,7 @@ class CreateGalaxy extends React.Component {
167167 <ValidatedSigil
168168 className='tr-0 mt-05 mr-0 abs'
169169 patp={state.galaxyName}
170− size={76}
170+ size={68}
171171 margin={8} />
172172 </GalaxyInput>
173173
src/bridge/views/IssueChild.js+1−1
@@ -253,7 +253,7 @@ class IssueChild extends React.Component {
253253 <ValidatedSigil
254254 className={'tr-0 mt-05 mr-0 abs'}
255255 patp={state.desiredPoint}
256− size={76}
256+ size={68}
257257 margin={8}
258258 validator={() => this.validatePoint(state.desiredPoint)} />
259259 </PointInput>