Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opex",
"version": "v1.0.0-beta.2",
"version": "v1.0.0-beta.3",
"homepage": "",
"private": true,
"dependencies": {
Expand All @@ -11,6 +11,7 @@
"@testing-library/user-event": "^12.7.4",
"axios": "^0.27.2",
"bignumber.js": "^9.0.1",
"buffer": "^6.0.3",
"faker": "^5.4.0",
"i18next": "^21.8.0",
"i18next-browser-languagedetector": "^6.1.4",
Expand Down
9 changes: 6 additions & 3 deletions public/assets/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"LTC": "LTC",
"TBNB": "TBUSD",
"TBUSD": "TBUSD",
"BCH": "BCH"
"BCH": "BCH",
"TRX": "TRX"
},
"marketInterval": {
"24h": "24 hours",
Expand Down Expand Up @@ -250,15 +251,17 @@
"DepositTETHContentBefore": "Ropsten network ETH test Only accepted! For free download",
"DepositTETHContentAfter": "go to send a test ETH to this address. You must change your wallet Etherium network to Ropsten. This network is on the Metamask wallet network list by default. Any transaction with an amount equal to or greater than 0.001 ETH to the above address will be added to your account.",
"minDeposit": "The minimum acceptable amount {{min}} {{currency}}",
"minDepositText": "Any transaction with a value greater than {{min}} {{currency}} will be added to your account at the following address.",
"minDepositText": "Any transaction will be added to your account at the following address.",
"DepositTBTCContentBefore": "Only BTC test accepted! For free download",
"DepositTBTCContentAfter": "go to any transaction with an amount equal to or greater than 0.001 BTC to the above address will be added to your account.",
"DepositTUSDTContentBefore": "Only USDT Ropsten Network Test is accepted! To learn how to get free,",
"DepositTUSDTContentAfter": "Go. To send a USDT test to this address, you must change your wallet atrium network to Ropsten. This network is on the Metamask wallet network list by default. Any transaction with an amount equal to or greater than From 10 USDT to the above address will be added to your account.",
"depositTime": "* Your balance will increase {{time}} minutes after depositing to the above address.",
"securityConsiderations": "Due to security considerations, the transfer to the account may be delayed slightly. You can see the withdrawal status on the same page in the Deposit / Withdrawal Transactions section.",
"network": "Network",
"selectNetwork": "Select Network"
"selectNetwork": "Select Network",
"gettingAddress": "Getting address...",
"errorGettingAddress": "Failed to get address"
},
"CallbackPage": {
"ok": "The deposit was successful.",
Expand Down
9 changes: 6 additions & 3 deletions public/assets/locales/fa/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"LTC": "لایت کوین",
"TBNB": "بایننس (ت)",
"TBUSD": "دلار بایننس(ت)",
"BCH": "بیتکوین کش"
"BCH": "بیتکوین کش",
"TRX": "ترون"
},
"marketInterval": {
"24h": "24 ساعت",
Expand Down Expand Up @@ -250,15 +251,17 @@
"DepositTETHContentBefore": "فقط ETH تستی شبکه Ropsten مورد قبول قرار می گیرد! برای دریافت رایگان به ",
"DepositTETHContentAfter": " بروید. برای ارسال ETH تستی به این آدرس، باید شبکه اتریومی کیف پول خود را به Ropsten تغییر دهید. این شبکه به طور پیش فرض در فهرست شبکه های کیف پول Metamask وجود دارد. هر تراکنشی با مقدار مساوی یا بیشتر از ۰.۰۰۱ ETH به آدرس بالا، به حساب شما افزوده می شود.",
"minDeposit": "حداقل میزان قابل قبول {{min}} {{currency}}",
"minDepositText": "هر تراکنشی با مقدار بیشتر از {{min}} {{currency}} به آدرس زیر ، به حساب شما افزوده می شود.",
"minDepositText": "هر تراکنشی به آدرس زیر ، به حساب شما افزوده می شود.",
"DepositTBTCContentBefore": "فقط BTC تستی مورد قبول قرار می گیرد! برای دریافت رایگان به ",
"DepositTBTCContentAfter": " بروید. هر تراکنشی با مقدار مساوی یا بیشتر از ۰.۰۰۱ BTC به آدرس بالا، به حساب شما افزوده می شود.",
"DepositTUSDTContentBefore": "فقط USDT تستی شبکه Ropsten مورد قبول قرار می گیرد! برای آشنایی با روش دریافت رایگان به ",
"DepositTUSDTContentAfter": " بروید. برای ارسال USDT تستی به این آدرس، باید شبکه اتریومی کیف پول خود را به Ropsten تغییر دهید. این شبکه به طور پیش فرض در فهرست شبکه های کیف پول Metamask وجود دارد. هر تراکنشی با مقدار مساوی یا بیشتر از ۱۰ USDT به آدرس بالا، به حساب شما افزوده می شود.",
"depositTime": "* موجودی شما {{time}} دقیقه بعد از واریز به آدرس بالا، افزایش پیدا می کند.",
"securityConsiderations": "باتوجه به ملاحظات امنیتی ممکن است انتقال به حساب با کمی تاخیر صورت بگیرد. می توانید وضعیت برداشت را در همین صفحه از بخش ترکنش های واریز/برداشت ببینید.",
"network": "شبکه",
"selectNetwork": " شبکه را انتخاب کنید"
"selectNetwork": " شبکه را انتخاب کنید",
"gettingAddress": "درحال گرفتن آدرس...",
"errorGettingAddress": "خطا در گرفتن آدرس"
},
"CallbackPage": {
"ok": "واریز وجه با موفقیت انجام شد.",
Expand Down
3 changes: 1 addition & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="%PUBLIC_URL%/assets/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=no"/>
<meta name="theme-color" content="#000000"/>
<meta name="description" content=%REACT_APP_DESCRIPTION_CONTENT%/>
<meta name="description"/>

<link rel="manifest" href="%PUBLIC_URL%/assets/manifest.json?v=3.0.0"/>

Expand All @@ -32,7 +32,6 @@

<script src="%PUBLIC_URL%/charting_library/charting_library.min.js"></script>
<script src="%PUBLIC_URL%/env.js"></script>
<title>%REACT_APP_TITLE%</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
4 changes: 4 additions & 0 deletions src/assets/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import litecoin from "./images/src/litecoin.svg";
import tether from "./images/src/tether.svg";
import binance from "./images/src/binance.svg";
import binanceUSD from "./images/src/binanceUSD.svg";
import tron from "./images/src/tron.svg";
import testTron from "./images/src/testTron.svg";
import ethereumLight from "./images/src/ethereumLight.svg";
import toman from "./images/src/toman.svg";
import spaceStar from "./images/src/spaceStar.png";
Expand Down Expand Up @@ -58,6 +60,8 @@ export const images = {
USDT: tether,
BNB: binance,
BUSD: binanceUSD,
TRX: tron,
TTRX: testTron,
ETH: ethereumLight,
IRT: toman,
spaceStar: spaceStar,
Expand Down
19 changes: 19 additions & 0 deletions src/assets/images/src/testTron.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/assets/images/src/tron.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const TextInput = (props) => {
onChange={onchange}
options={options}
classNamePrefix="select"
className={`select ${classes.selectBox}`}
className={`${classes.selectBox} select`}
{...other}
/>
}
Expand Down
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ const rootReducer = combineReducers({

//add custom title & meta
const meta = document.getElementsByTagName('meta')
document.title = window.env.REACT_APP_TITLE;
meta.description.content = window.env.REACT_APP_DESCRIPTION_CONTENT
document.title = window.env.REACT_APP_TITLE ? window.env.REACT_APP_TITLE : " ";
meta.description.content = window.env.REACT_APP_DESCRIPTION_CONTENT ? window.env.REACT_APP_DESCRIPTION_CONTENT : " "


/**
* Base URL of the website.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ReactTooltip from "react-tooltip";
import Icon from "../../../../../../components/Icon/Icon";
import {images} from "../../../../../../assets/images";
import {validateEmail} from "../../../../../../utils/utils";
import {Buffer} from 'buffer';

const ForgetPassword = ({returnFunc}) => {
const [loading, setLoading] = useState(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Button from "../../../../../../components/Button/Button";
import Icon from "../../../../../../components/Icon/Icon";
import {images} from "../../../../../../assets/images";
import ReactTooltip from "react-tooltip";
import {Buffer} from 'buffer';

const RegisterForm = () => {
const {t} = useTranslation();
Expand Down Expand Up @@ -176,7 +177,7 @@ const RegisterForm = () => {
if (captcha.image.value === undefined) {
return <span>{t('captchaAnswer')}</span>
}
return <span style={{backgroundImage: `url("${captcha.image.value}")`}}/>
return <img src={captcha.image.value} className={`height-100`} alt={t('captchaAnswer')}/>
}

return (
Expand Down
Loading