Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit 6218d37

Browse files
committed
fix: fix conflict
2 parents 3b256c8 + fe8a9d3 commit 6218d37

File tree

5 files changed

+11
-40
lines changed

5 files changed

+11
-40
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ CHAIN_SERVERS= # default appchain addresses
5858
APP_NAME= # explorer name
5959
```
6060

61-
> NOTICE: Our CDN for static assets is available at `http://pccoq959o.bkt.clouddn.com/`, namely icons and images can be added by setting `PUBLIC=http://pccoq959o.bkt.clouddn.com/` on `.env`.
61+
> NOTICE: Our CDN for static assets is available at `https://cdn.cryptape.com/`, namely icons and images can be added by setting `PUBLIC=https://cdn.cryptape.com/` on `.env`.
6262
6363
5. Developing
6464

src/containers/Header/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,8 @@ class Header extends React.Component<HeaderProps, HeaderState> {
196196
}
197197
private switchChain = (chain: string = '') => (e?: any) => {
198198
const ip = chain || this.state.searchIp
199-
if (!ip) return
200-
this.props.CITAObservables.setServer(ip.startsWith('http') ? ip : `http://${ip}`)
201-
const chainIp = ip.startsWith('http') ? ip : `http://${ip}`
199+
this.props.CITAObservables.setServer(ip.startsWith('http') ? ip : `https://${ip}`)
200+
const chainIp = ip.startsWith('http') ? ip : `https://${ip}`
202201
window.localStorage.setItem('chainIp', chainIp)
203202
window.location.reload()
204203
}

src/initValues.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Author: Keith-CY
33
* @Date: 2018-07-22 19:59:22
44
* @Last Modified by: Keith-CY
5-
* @Last Modified time: 2018-08-03 18:01:57
5+
* @Last Modified time: 2018-08-15 18:39:21
66
*/
77

88
import { IBlock, IBlockHeader, Transaction, Metadata, ABI } from './typings'
@@ -86,6 +86,7 @@ export const initPanelConfigs: PanelConfigs = {
8686
}
8787

8888
export const initServerList = (process.env.CHAIN_SERVERS || '').split(',')
89+
console.log(initServerList)
8990
export const initPrivateKeyList = []
9091
export const initError = { message: '', code: '' }
9192
export const initAccountState = {

src/utils/fetcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const fetchStatistics = params =>
5353

5454
export const fetchServerList = () =>
5555
axios
56-
.get(`${process.env.PUBLIC}defaultServerList.json`)
56+
.get(`${process.env.PUBLIC}/defaultServerList.json`)
5757
.then((res: AxiosResponse) => res.data)
5858
.catch(() => {
5959
throw new Error(ErrorTexts.SERVER_LIST_NOT_FOUND)

yarn.lock

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ binary-extensions@^1.0.0:
882882
version "1.11.0"
883883
resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205"
884884

885-
bindings@^1.2.1, bindings@^1.3.0:
885+
bindings@^1.3.0:
886886
version "1.3.0"
887887
resolved "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz#b346f6ecf6a95f5a815c5839fc7cdb22502f1ed7"
888888

@@ -911,15 +911,15 @@ bluebird@^2.9.34:
911911
version "2.11.0"
912912
resolved "https://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1"
913913

914-
bluebird@^3.0.2, bluebird@^3.4.7, bluebird@^3.5.0, bluebird@^3.5.1:
914+
bluebird@^3.4.7, bluebird@^3.5.0, bluebird@^3.5.1:
915915
version "3.5.1"
916916
resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9"
917917

918918
919919
version "4.11.6"
920920
resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215"
921921

922-
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.11.6, bn.js@^4.4.0, bn.js@^4.6.4:
922+
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.11.6, bn.js@^4.4.0:
923923
version "4.11.8"
924924
resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f"
925925

@@ -1802,10 +1802,6 @@ [email protected], crypto-browserify@^3.11.0:
18021802
randombytes "^2.0.0"
18031803
randomfill "^1.0.3"
18041804

1805-
crypto-js@^3.1.9-1:
1806-
version "3.1.9-1"
1807-
resolved "https://registry.npmjs.org/crypto-js/-/crypto-js-3.1.9-1.tgz#fda19e761fc077e01ffbfdc6e9fdfc59e8806cd8"
1808-
18091805
crypto-random-string@^1.0.0:
18101806
version "1.0.0"
18111807
resolved "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
@@ -2310,16 +2306,6 @@ ecc-jsbn@~0.1.1:
23102306
dependencies:
23112307
jsbn "~0.1.0"
23122308

2313-
eccrypto@^1.0.3:
2314-
version "1.0.3"
2315-
resolved "https://registry.npmjs.org/eccrypto/-/eccrypto-1.0.3.tgz#a4120e6ce98b0072c1ceaafdead156f6bb8b24e3"
2316-
dependencies:
2317-
elliptic "^6.0.2"
2318-
es6-promise "^3.0.2"
2319-
nan "^2.1.0"
2320-
optionalDependencies:
2321-
secp256k1 "^2.0.4"
2322-
23232309
echarts@^4.0.4:
23242310
version "4.1.0"
23252311
resolved "https://registry.npmjs.org/echarts/-/echarts-4.1.0.tgz#d588c95f73c1a9928b9c73d5b769751c3185bcdc"
@@ -2338,7 +2324,7 @@ elegant-spinner@^1.0.1:
23382324
version "1.0.1"
23392325
resolved "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e"
23402326

2341-
elliptic@^6.0.0, elliptic@^6.0.2, elliptic@^6.4.0:
2327+
elliptic@^6.0.0, elliptic@^6.4.0:
23422328
version "6.4.0"
23432329
resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df"
23442330
dependencies:
@@ -2489,10 +2475,6 @@ es6-map@^0.1.3:
24892475
es6-symbol "~3.1.1"
24902476
event-emitter "~0.3.5"
24912477

2492-
es6-promise@^3.0.2:
2493-
version "3.3.1"
2494-
resolved "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613"
2495-
24962478
es6-promise@^4.0.5:
24972479
version "4.2.4"
24982480
resolved "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.4.tgz#dc4221c2b16518760bd8c39a52d8f356fc00ed29"
@@ -5313,7 +5295,7 @@ mz@^2.6.0:
53135295
object-assign "^4.0.1"
53145296
thenify-all "^1.0.0"
53155297

5316-
[email protected], nan@^2.0.2, nan@^2.0.8, nan@^2.0.9, nan@^2.1.0, nan@^2.10.0, nan@^2.3.3, nan@^2.4.0, nan@^2.9.2:
5298+
[email protected], nan@^2.0.2, nan@^2.0.8, nan@^2.10.0, nan@^2.3.3, nan@^2.4.0, nan@^2.9.2:
53175299
version "2.10.0"
53185300
resolved "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"
53195301

@@ -7201,17 +7183,6 @@ scss-tokenizer@^0.2.3:
72017183
js-base64 "^2.1.8"
72027184
source-map "^0.4.2"
72037185

7204-
secp256k1@^2.0.4:
7205-
version "2.0.10"
7206-
resolved "https://registry.npmjs.org/secp256k1/-/secp256k1-2.0.10.tgz#c7d6a3c119e1ca44083c367b0715e184907417b3"
7207-
dependencies:
7208-
bindings "^1.2.1"
7209-
bluebird "^3.0.2"
7210-
bn.js "^4.6.4"
7211-
elliptic "^6.0.2"
7212-
nan "^2.0.9"
7213-
object-assign "^4.0.1"
7214-
72157186
seek-bzip@^1.0.5:
72167187
version "1.0.5"
72177188
resolved "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz#cfe917cb3d274bcffac792758af53173eb1fabdc"

0 commit comments

Comments
 (0)