Skip to content

Commit

Permalink
likhith/sync-with-master (#8194)
Browse files Browse the repository at this point in the history
* chore: change reaction and call validateAllProperties (#8165)

* Henry/92021/trade types cant change in responsive (#8160)

* fix: make trade types clickable in responsive for digits contracts

* fix: keep trade params collapsed initially

* fix: merge issues

* fix: merge issue solved

* fix: Empty-Commit

* Revert "henry/92021/fix: make trade types clickable in responsive for digits contracts (#8046)"

This reverts commit c1453e4.

* fix: trade types not switchable for digits contracts in responsive

---------

Co-authored-by: Henry Hein <henryhein@Henry-Heins-MacBook-Pro-T90XTJ00Q4.local>

* translations: 📚 sync translations with crowdin (#8181)

Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>

* Revert "chore: change reaction and call validateAllProperties (#8165)" (#8182)

This reverts commit 2f889dd.

* thisyahlen/fix: firefox staging fix (#8185)

* fix: firefox staging fix

* fix: remove lodash

* Update qa_server url (#8190)

---------

Co-authored-by: Aizad Ridzo <103104395+aizad-deriv@users.noreply.github.com>
Co-authored-by: henry-deriv <118344354+henry-deriv@users.noreply.github.com>
Co-authored-by: Henry Hein <henryhein@Henry-Heins-MacBook-Pro-T90XTJ00Q4.local>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: DerivFE <80095553+DerivFE@users.noreply.github.com>
Co-authored-by: Hamid <hamid@regentmarkets.com>
Co-authored-by: thisyahlen <104053934+thisyahlen-deriv@users.noreply.github.com>
Co-authored-by: balakrishna-deriv <56330681+balakrishna-deriv@users.noreply.github.com>
  • Loading branch information
9 people committed Apr 10, 2023
1 parent 96363dc commit 982c7d0
Show file tree
Hide file tree
Showing 24 changed files with 267 additions and 285 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/generate_app_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- **PR**: [${{ steps.generate_app_id.outputs.pr_url }}](${{ steps.generate_app_id.outputs.pr_url }})
- **URLs**:
- **w/ App ID + Server**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=frontend.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}
- **w/ App ID + Server**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=red.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}
- **Original**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}
- **App ID**: `${{ steps.generate_app_id.outputs.app_id }}`
Expand All @@ -55,14 +55,14 @@ jobs:
```
- **PR**: [${{ steps.generate_app_id.outputs.pr_url }}](${{ steps.generate_app_id.outputs.pr_url }})
- **URLs**:
- **w/ App ID + Server**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=frontend.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}
- **w/ App ID + Server**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=red.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}
- **Original**: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}
- **App ID**: `${{ steps.generate_app_id.outputs.app_id }}`
```
</details>
- name: Store generated URL in artifact
run: echo "HOME_URL=${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=frontend.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}" >> ${{ github.workspace }}/url.txt
run: echo "HOME_URL=${{ steps.vercel_preview_url.outputs.vercel_preview_url }}?qa_server=red.binaryws.com&app_id=${{ steps.generate_app_id.outputs.app_id }}" >> ${{ github.workspace }}/url.txt
- name: Upload artifact
uses: actions/upload-artifact@master
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@
position: absolute;
bottom: 0;
width: 100vw;
z-index: 3;
display: flex;
padding: 1.6rem 0.8rem;
justify-content: space-between;

&--is-expanded {
bottom: 9.8rem;
svg {
z-index: 3;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
import classNames from 'classnames';
import React from 'react';
import { SwipeableProps, useSwipeable } from 'react-swipeable';
import Icon from '../icon';
import classNames from 'classnames';

type TSwipeableWrapper = {
className?: string;
onChange?: (prop?: number) => void;
is_disabled?: boolean;
is_trade_params_expanded?: boolean;
} & SwipeableProps;

const SwipeableWrapper = ({
children,
className,
onChange,
is_trade_params_expanded = false,
...props
}: React.PropsWithChildren<TSwipeableWrapper>) => {
const SwipeableWrapper = ({ children, className, onChange, ...props }: React.PropsWithChildren<TSwipeableWrapper>) => {
const [active_index, setActiveIndex] = React.useState(0);

React.useEffect(() => {
Expand Down Expand Up @@ -51,6 +44,7 @@ const SwipeableWrapper = ({
onSwipedRight: swipedRight,
...props,
});

return (
<div className='dc-swipeable'>
<div
Expand All @@ -64,11 +58,7 @@ const SwipeableWrapper = ({
{childrenWithWrapperDiv}
</div>
{!props.is_disabled && (
<nav
className={classNames('dc-swipeable__nav', {
'dc-swipeable__nav--is-expanded': is_trade_params_expanded,
})}
>
<nav className='dc-swipeable__nav'>
<Icon
className='dc-swipeable__nav__item'
icon='IcChevronDoubleLeft'
Expand Down
5 changes: 1 addition & 4 deletions packages/core/src/Stores/common-store.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import * as SocketCache from '_common/base/socket_cache';
import { reject } from 'lodash';

import { action, computed, makeObservable, observable } from 'mobx';
import { changeLanguage, getAllowedLanguages } from '@deriv/translations';
import { getAppId, getUrlBinaryBot, getUrlSmartTrader, isMobile, platforms, routes, toMoment } from '@deriv/shared';

import BaseStore from './base-store';
import BinarySocket from '_common/base/socket_base';
import ServerTime from '_common/base/server_time';
Expand Down Expand Up @@ -121,7 +118,7 @@ export default class CommonStore extends BaseStore {
window.localStorage.setItem('i18n_language', key);
}

return new Promise(resolve => {
return new Promise((resolve, reject) => {
WS.setSettings({
set_settings: 1,
preferred_language: key,
Expand Down
3 changes: 0 additions & 3 deletions packages/trader/src/Modules/Trading/Containers/trade.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const Trade = ({
symbol,
is_synthetics_available,
is_synthetics_trading_market_available,
is_trade_params_expanded,
is_vanilla,
}) => {
const [digits, setDigits] = React.useState([]);
Expand Down Expand Up @@ -200,7 +199,6 @@ const Trade = ({
should_show_active_symbols_loading
}
className={classNames({ 'vanilla-trade-chart': is_vanilla })}
is_trade_params_expanded={is_trade_params_expanded}
>
{show_digits_stats && <DigitsWidget digits={digits} tick={tick} />}
<ChartTrade
Expand Down Expand Up @@ -255,7 +253,6 @@ export default connect(({ client, common, modules, ui }) => ({
should_show_active_symbols_loading: modules.trade.should_show_active_symbols_loading,
is_chart_loading: modules.trade.is_chart_loading,
is_market_closed: modules.trade.is_market_closed,
is_trade_params_expanded: modules.trade.is_trade_params_expanded,
show_digits_stats: modules.trade.show_digits_stats,
is_trade_enabled: modules.trade.is_trade_enabled,
prepareTradeStore: modules.trade.prepareTradeStore,
Expand Down
1 change: 0 additions & 1 deletion packages/trader/src/Stores/Modules/Trading/trade-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,6 @@ export default class TradeStore extends BaseStore {
obj_old_values = {},
should_forget_first = true
) {
if (this.is_trade_params_expanded === true) this.setIsTradeParamsExpanded(false);
// To switch to rise_fall_equal contract type when allow equal is checked on first page refresh or
// when switch back to Rise/Fall from another contract type i.e.
if (obj_new_values.contract_type && obj_new_values.contract_type === 'rise_fall' && !!this.is_equal) {
Expand Down
1 change: 1 addition & 0 deletions packages/translations/src/i18next/i18next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const i18n_config = {
hashTransKey(defaultValue: string) {
return crc32(defaultValue);
},
useSuspense: false,
},
lng: initial_language,
fallbackLng: 'EN',
Expand Down
26 changes: 13 additions & 13 deletions packages/translations/src/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"27731356": "تم تعطيل حسابك مؤقتًا. يرجى الاتصال بنا عبر <0>الدردشة الحية</0> لتمكين عمليات الإيداع والسحب مرة أخرى.",
"27830635": "شركة ديريف (V) المحدودة",
"28581045": "أضف حساب MT5 حقيقي",
"30801950": "سيتم فتح حسابك بـ {{legal_entity_name}}، وتنظمه هيئة مالطا للألعاب، وسيخضع لقوانين مالطا.",
"30801950": "سيتم فتح حسابك لدى {{legal_entity_name}} ، تنظمها هيئة مالطا للألعاب ، وسيخضع لقوانين مالطا.",
"33433576": "يرجى استخدام المحفظة الإلكترونية لسحب أموالك.",
"35089987": "قم بتحميل الجزء الأمامي والخلفي من رخصة القيادة الخاصة بك.",
"41737927": "شكرًا لك",
Expand Down Expand Up @@ -113,15 +113,15 @@
"162080773": "For Put\n",
"164112826": "تسمح لك هذه المجموعة بتحميل الكتل من عنوان URL إذا قمت بتخزينها على خادم بعيد، وسيتم تحميلها فقط عند تشغيل الروبوت الخاص بك.",
"164564432": "الودائع غير متاحة مؤقتًا بسبب صيانة النظام. يمكنك عمل الودائع الخاصة بك عند اكتمال الصيانة.",
"165294347": "يرجى تعيين بلد إقامتك في إعدادات حسابك للوصول إلى الصراف.",
"165294347": "يرجى تعيين بلد إقامتك في إعدادات حسابك للوصول إلى الكاشير.",
"165312615": "استمر على الهاتف",
"165682516": "إذا كنت لا تمانع في المشاركة، فما منصات التداول الأخرى التي تستخدمها؟",
"165682516": "إذا كنت لا تمانع في المشاركة، فما هي منصات التداول الأخرى التي تستخدمها؟",
"170185684": "تجاهل",
"170244199": "سأغلق حسابي لأسباب أخرى.",
"171307423": "التعافي",
"171307423": "الاستشفاء",
"171579918": "انتقل إلى الاستبعاد الذاتي",
"171638706": "المتغيرات",
"173991459": "نحن نرسل طلبك إلى البلوكشين.",
"173991459": "سنقوم بأرسال ن طلبك إلى البلوكشين / blockchain.",
"174793462": "سترايك",
"176319758": "الحد الأقصى لإجمالي الحصة على مدى 30 يومًا",
"176654019": "100 ألف دولار - 250 ألف دولار",
Expand All @@ -146,9 +146,9 @@
"204797764": "نقل إلى العميل",
"204863103": "وقت الخروج",
"206010672": "حذف {{ delete_count }} كتل",
"207824122": "يرجى سحب أموالك من حساب (حسابات) Deriv التالية:",
"207824122": "يرجى سحب أموالك من (حسابات) Deriv التالية:",
"209533725": "لقد قمت بالتحويل {{amount}} {{currency}}",
"210385770": "إذا كان لديك حساب نشط، يرجى تسجيل الدخول للمتابعة. بخلاف ذلك، يرجى الاشتراك.",
"210385770": "إذا كان لديك حساب نشط، يرجى تسجيل الدخول منه للمتابعة.غير ذلك، يرجى الاشتراك.",
"211224838": "الاستثمار",
"211461880": "من السهل تخمين الأسماء والألقاب الشائعة",
"211847965": "<0>تفاصيلك الشخصية</0> غير مكتملة. يرجى الانتقال إلى إعدادات حسابك وإكمال تفاصيلك الشخصية لتمكين عمليات السحب.",
Expand Down Expand Up @@ -176,13 +176,13 @@
"238496287": "يعتبر التداول بالرافعة المالية عالي المخاطر، لذلك من الجيد استخدام ميزات إدارة المخاطر مثل وقف الخسارة. إيقاف الخسارة يسمح لك بذلك",
"243614144": "هذا متاح فقط للعملاء الحاليين.",
"245005091": "ادنى",
"245187862": "ستتخذ DRC <0>قرارًا بشأن الشكوى</0> (يرجى ملاحظة أن DRC لا تذكر أي إطار زمني للإعلان عن قرارها).",
"245187862": "ستتخذ جمهورية الكونغو الديمقراطية قرارًا <0> بشأن الشكوى </0> (يرجى ملاحظة أن جمهورية الكونغو الديمقراطية لا تذكر أي إطار زمني لإعلان قرارها",
"245812353": "إذا كان {{ condition }} يُرجع {{ value }}",
"247418415": "يمكن أن يصبح تداول الألعاب إدمانًا حقيقيًا، كما يمكن لأي نشاط آخر أن يصل إلى أقصى حدوده. لتجنب خطر مثل هذا الإدمان، نقدم فحصًا للواقع يمنحك ملخصًا لتداولاتك وحساباتك على أساس منتظم.",
"247418415": "يمكن أن يصبح تداول الألعاب إدمانًا حقيقيًا، كما يمكن لأي نشاط آخر أن يصل إلى أقصى حدوده. لتجنب خطر مثل هذا الإدمان، نحن نقدم التحقق من الواقع بحيث يمنحك ملخصًا لتداولاتك وحساباتك على أساس منتظم.",
"248565468": "تحقق من البريد الإلكتروني لحساب {{ identifier_title }} الخاص بك وانقر فوق الارتباط الموجود في البريد الإلكتروني للمتابعة.",
"248909149": "أرسل رابطًا آمنًا إلى هاتفك",
"248909149": "أرسل رابطًا موثوق إلى هاتفك",
"251134918": "معلومات الحساب",
"251322536": "حسابات EA المشتقة",
"251322536": "حسابات EA من Deriv",
"251445658": "موضوع داكن",
"251882697": "شكرًا لك! تم تسجيل ردك في نظامنا.<0/><0/> الرجاء النقر فوق «موافق» للمتابعة.",
"254912581": "تشبه هذه الكتلة EMA، إلا أنها تمنحك خط EMA بالكامل استنادًا إلى قائمة الإدخال والفترة المحددة.",
Expand Down Expand Up @@ -234,11 +234,11 @@
"310234308": "أغلق جميع مراكزك.",
"312142140": "هل تريد حفظ حدود جديدة؟",
"312300092": "يقوم بقص المسافات داخل سلسلة أو نص معين.",
"313298169": "أمين الصندوق لدينا معطل مؤقتًا بسبب صيانة النظام. يمكنك الوصول إلى Cashier في بضع دقائق عند اكتمال الصيانة.",
"313298169": "الكاشير لدينا معطل مؤقتًا بسبب صيانة النظام. يمكنك الوصول إلى الكاشير في بضع دقائق عند اكتمال الصيانة.",
"313741895": "تُرجع هذه الكتلة «True» إذا كانت الشمعة الأخيرة سوداء. يمكن وضعها في أي مكان على اللوحة باستثناء الكتلة الجذرية لمعايير التجارة.",
"315306603": "لديك حساب لم يتم تعيين عملة له. يرجى اختيار عملة للتداول باستخدام هذا الحساب.",
"316694303": "هل الشمعة سوداء؟",
"318865860": "مجاور",
"318865860": "اغلاق",
"318984807": "تكرر هذه المجموعة التعليمات الواردة بداخلها لعدد محدد من المرات.",
"323179846": "يمكن ضبط الفاصل الزمني لكل شمعة من دقيقة واحدة إلى يوم واحد.",
"323209316": "حدد استراتيجية Deriv Bot",
Expand Down
Loading

0 comments on commit 982c7d0

Please sign in to comment.