Skip to content

Commit

Permalink
Merge pull request #3509 from swaponline/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
noxonsu authored Nov 4, 2020
2 parents 1437a1f + ce5680c commit dec6f3d
Show file tree
Hide file tree
Showing 16 changed files with 401 additions and 368 deletions.
10 changes: 8 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-template.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Bug Template
about: Bug Template. Every correct-formed issue gets +1 token bonus.
about: Something looks broken
title: ''
labels: ''
labels: 'bug'
assignees: ''

---
Expand All @@ -26,6 +26,12 @@ assignees: ''
- Browser:
- OS:

## Your version

- [ ] latest
- [ ] not latest (please try to upgrade first)
- [ ] not sure

## Does this affect atomic swap flow?

- [ ] yes
Expand Down
68 changes: 0 additions & 68 deletions .github/ISSUE_TEMPLATE/complex-manual-test.md

This file was deleted.

13 changes: 3 additions & 10 deletions .github/ISSUE_TEMPLATE/improvement-template.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
---
name: Improvement Template
about: Improvement Template. Every correct-formed issue gets +1 token bonus.
about: Something needs to be improved
title: ''
labels: ''
assignees: ''

---
<!-- Please use English -->

# Problem
# Suggestion for improvement

(What is wrong now? What is working not well?)
(What is working not well? What we need to do in order to implement this feature?)


# Task

(What we need to do in order to implement this feature?)


# Estimate time of implementation
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/main-manual-test.md

This file was deleted.

56 changes: 0 additions & 56 deletions .github/ISSUE_TEMPLATE/new-blockchain-manual-test.md

This file was deleted.

12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/other-issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Other Issue Template
about: Any questions, ideas, or anything else
title: ''
labels: ''
assignees: ''

---
<!-- Please use English -->

(Please write something / give us feedback)

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/standart-task-template.md

This file was deleted.

1 change: 0 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## Checklist

- [x] I have read the [CONTRIBUTING](https://github.com/swaponline/swap.react/wiki/CONTRIBUTING) guide
- [x] Styleguide check `npm run validate`
- [x] Good naming, keep simple
- [x] Tested desktop/mobile
- [x] Tested bright/dark
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- name: npm install, build, and test
run: |
npm run build:mainnet
npm run validate
#zip -r mainnet-build.zip ./config
env:
CI: true
Expand Down
135 changes: 135 additions & 0 deletions docs/CUSTOMIZATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Customization guide

## 1. Change logo

- copy svg logos to `MultiCurrencyWallet/src/front/shared/components/Logo/images` folder
- in `MultiCurrencyWallet/src/front/client/index.js` set up your url and image

```
export default {
colored: {
yourUrl: imageName,
localhost: base,
'swap.online': swapOnlineColored,
},
common: {
yourUrl: imageName,
'swap.online': swapOnline,
},
}
```

(Way to index.html: `MultiCurrencyWallet/src/front/client/index.html`)

- For change preloader go to `index.html` and change url to tour image

```
<div id="loader" class="loader">
<img id="loaderImg" src="https://wiki.swap.online/assets/swap-logo.png" />
</div>
```

- change Cryptocurrency color `MultiCurrencyWallet/src/front/shared/components/ui/CurrencyIcon/images`
- change icon to your (with the same name, e.x. "bitcoin.svg")
- change Cryptocurrency icon `MultiCurrencyWallet/src/front/shared/pages/Exchange/CurrencySlider/images`


## 2. Change links to social networks

Set your own links in `MultiCurrencyWallet/src/front/shared/helpers/links.js`


## 3. Change text

To prevent any conflicts in future (when you will update your source from our branch)

- find in source text like this:
`<FormattedMessage id="Row313" defaultMessage="Deposit" /> `

- go to folder `MultiCurrencyWallet/src/front/shared/localisation`
open en.json
find string with the same id ("Row313")

```
{
"id": "Row313",
"message": "Deposit",
"files": [
"shared/pages/Currency/Currency.js"
]
},
```

- change text in `message` value


## 4. Add your ERC20 token

- go to `MultiCurrencyWallet/src/front/config/mainnet/erc20.js`
- go to `MultiCurrencyWallet/src/core/swap.app/constants/COINS.js` and add token there too
- go to `MultiCurrencyWallet/src/front/shared/redux/reducers/currencies.js` and add token there too


## 5. Add token to "Create wallet" screen

- go to `MultiCurrencyWallet/src/front/shared/redux/reducers/currencies.js` and change `addAssets: false,` to `true`


## 6. Change project name in "too many tabs" screen

0. go to `index.html`
1. add / edit `window.widgetName` to your own


## 7. Change title

0. go to `index.html`
1. add / edit `window.defaultWindowTitle` to your own


## 8. Change logo link (default main wallet page)

0. go to `index.html`
1. add / edit `window.LOGO_REDIRECT_LINK` to your own


## 9. Set custom exchange rate

0. add `customEcxchangeRate` to `window.widgetERC20Tokens`
1. add usd price for `window.widgetERC20Tokens`


## 10. Add exit button to your widget

in `index.html` edit `window.isUserRegisteredAndLoggedIn = false` to `true`


## enable/disbale blockchains on domain

add config named as your domain to `MultiCurrencyWallet/src/front/externalConfigs/swaponline.github.io.js`

```
window.buildOptions = {
showWalletBanners: true, // Allow to see banners
showHowItsWork: true, // Allow show block 'How its work' on exchange page
curEnabled: {
btc: true,
eth: true,
ghost: true,
next: true,
},
}
```

Example: [swaponline.github.io.js](https://github.com/swaponline/MultiCurrencyWallet/blob/master/src/front/externalConfigs/swaponline.github.io.js#L43)


## How to update your version (fork) to latest version

0. Make backup and `git push` all your changes to your repository
1. go here https://github.com/swaponline/MultiCurrencyWallet/compare?expand=1 , click <kbd>Compare across forks</kbd>
2. select your repository in "base branch" (left)
3. click "Create pull request" (enter any title)
4. click "Merge pull request"

If you have conflicts (if sources has been changed on your side) click "resolve conflicts".
5 changes: 5 additions & 0 deletions docs/DONATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Donate to MultiCurrencyWallet

- BTC: (soon)
- LTC: (soon)
- ETH: (soon)
Loading

0 comments on commit dec6f3d

Please sign in to comment.