Skip to content

Commit

Permalink
add typescript support, create configuration processor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxkr committed Mar 12, 2020
1 parent 8fc0ea6 commit 604ad50
Show file tree
Hide file tree
Showing 7 changed files with 411 additions and 133 deletions.
156 changes: 153 additions & 3 deletions lisk-dex-electron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion lisk-dex-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@
"@liskhq/lisk-cryptography": "^2.2.0",
"@liskhq/lisk-passphrase": "^2.0.3",
"@liskhq/lisk-transactions": "^2.3.1",
"@types/jest": "^25.1.4",
"@types/node": "^13.9.0",
"@types/react": "^16.9.23",
"@types/react-dom": "^16.9.5",
"axios": "^0.19.0",
"cors-anywhere": "^0.4.1",
"electron-is-dev": "^1.1.0",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-scripts": "^3.3.0"
"react-scripts": "^3.3.0",
"typescript": "^3.8.3"
},
"scripts": {
"electron": "electron .",
Expand Down
9 changes: 9 additions & 0 deletions lisk-dex-electron/src/API.js → lisk-dex-electron/src/API.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import axios from 'axios';
export const API_URL = 'http://54.174.172.179:7011';


export function getClient(api_base_url: string) {
return axios.create({
baseURL: api_base_url,
timeout: 10000,
headers: { 'X-LiskDexUI-Version': '0.2' }
});
}

const instance = axios.create({
baseURL: API_URL,
timeout: 10000,
Expand Down
Loading

0 comments on commit 604ad50

Please sign in to comment.