Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 6f3d98d

Browse files
authored
Merge pull request #1341 from negar-binary/negar/new_menu
negar/new_menu
2 parents 47edb68 + 75952fe commit 6f3d98d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+579
-723
lines changed

scripts/bin/GenerateStaticData.pm

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,13 @@ sub _texts {
388388
push @texts, localize('Your account has no trading activity.');
389389

390390
#strings for authenticate page
391-
push @texts, localize('Your account is fully authenticated. You can view your [_1]trading limits here');
392391
push @texts, localize('To authenticate your account, kindly email the following to [_1]');
393-
push @texts, localize('- A scanned copy of your passport, driving licence (provisional or full) or identity card, showing your name and date of birth.');
394-
push @texts, localize('and');
395-
push @texts, localize('- A scanned copy of a utility bill or bank statement (no more than 3 months old).');
392+
push @texts, localize('A scanned copy of your passport, driving licence (provisional or full) or identity card, showing your name and date of birth. Your document must be valid for at least 6 months after this date.');
393+
push @texts, localize('A scanned copy of a utility bill or bank statement (no more than 3 months old).');
396394
push @texts, localize('This feature is not relevant to virtual-money accounts.');
395+
push @texts, localize('Your account is currently suspended. Only withdrawals are now permitted. For further information, please contact [_1].');
396+
push @texts, localize('Deposits and withdrawal for your account is not allowed at this moment. Please contact [_1] to unlock it.');
397+
push @texts, localize('Withdrawal for your account is not allowed at this moment. Please contact [_1] to unlock it.');
397398

398399
#strings for japanws page
399400
push @texts, localize('Questions');
@@ -572,14 +573,6 @@ sub _texts {
572573
push @texts, localize('Number of ticks');
573574
push @texts, localize('Last digit stats for the latest [_1] ticks on [_2]');
574575

575-
#strings for my_accountws
576-
push @texts, localize('You are currently logged in to your real money account with [_1] ([_2]).');
577-
push @texts, localize('You are currently logged in to your virtual money account ([_2]).');
578-
push @texts, localize('Deposit [_1] [_2] virtual money into your account [_3]');
579-
push @texts, localize('Your [_1] account is unavailable. For any questions please contact [_2].');
580-
push @texts, localize('Your [_1] accounts are unavailable. For any questions please contact [_2].');
581-
push @texts, localize('Customer Support');
582-
583576
#strings for tnc_approvalws
584577
push @texts, localize('[_1] has updated its [_2]. By clicking OK, you confirm that you have read and accepted the updated [_2].');
585578
push @texts, localize('Terms & Conditions');
@@ -791,8 +784,9 @@ sub _texts {
791784
push @texts, localize('If you need assistance feel free to contact our [_1]Customer Support');
792785
push @texts, localize('Your account is not fully authenticated. Please visit the <a href="[_1]">authentication</a> page for more information.');
793786
push @texts, localize('details');
787+
push @texts, localize('Deposit [_1] [_2] virtual money into your account [_3]');
794788

795-
# strings for user/settings/metatrader page
789+
# strings for user/metatrader page
796790
push @texts, localize('Login');
797791
push @texts, localize('To create a real account for MetaTrader, switch to your [_1] real money account.');
798792
push @texts, localize('To create a real account for MetaTrader, <a href="[_1]">upgrade to [_2] real money account</a>.');

scripts/config/pages.pl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ sub all_pages {
5353
## ws
5454
['user/authenticatews', 'user/authenticatews', 'default', 'Authenticate', 'ja'],
5555
['cashier/forwardws', 'cashier/deposit_withdraw_ws', 'default', 'Cashier'],
56-
['user/settings/limitsws', 'user/settings/limitsws', 'default', 'Account Limits'],
56+
['user/security/limitsws', 'user/security/limitsws', 'default', 'Account Limits'],
5757
['account/account_transferws', 'cashier/account_transferws', 'default', 'Account Transfer'],
5858
['cashier/payment_agent_listws', 'cashier/payment_agent_listws', 'default', 'Payment Agent Deposit'],
5959
['cashier/top_up_virtualws', 'user/top_up_virtualws', 'default', 'Give Me More Money!'],
@@ -73,23 +73,23 @@ sub all_pages {
7373
['resources/asset_indexws', 'resources/asset_indexws', 'default', 'Asset Index', 'ja'],
7474
['resources/market_timesws', 'resources/market_timesws', 'default', 'Trading Times'],
7575

76-
['user/settings/api_tokenws', 'user/settings/api_tokenws', 'default', 'API Token', 'ja'],
77-
['user/settings/metatrader', 'user/settings/metatrader', 'default', 'MetaTrader'],
78-
['user/change_passwordws', 'user/settings/change_passwordws', 'default', 'Change Password'],
76+
['user/security/api_tokenws', 'user/security/api_tokenws', 'default', 'API Token', 'ja'],
77+
['user/metatrader', 'user/metatrader', 'default', 'MetaTrader'],
78+
['user/security/change_passwordws', 'user/security/change_passwordws', 'default', 'Change Password'],
7979
['user/portfoliows', 'user/portfoliows', 'default', 'Portfolio'],
8080
['user/profit_tablews', 'user/profit_tablews', 'default', 'Profit Table'],
81-
['user/settings/self_exclusionws', 'user/settings/self_exclusionws', 'default', 'Account Details'],
82-
['user/settings/detailsws', 'user/settings/settings_detailsws', 'default', 'Personal Details'],
83-
['user/settings/securityws', 'user/settings/settings_securityws', 'default', 'Security'],
81+
['user/security/self_exclusionws', 'user/security/self_exclusionws', 'default', 'Account Details'],
82+
['user/security/cashier_passwordws','user/security/cashier_passwordws', 'default', 'Cashier Password'],
8483
['user/statementws', 'user/statementws', 'default', 'Statement'],
85-
['user/my_accountws', 'user/my_accountws', 'default', 'My Account'],
8684
['user/settingsws', 'user/settingsws', 'default', 'Settings'],
87-
['user/settings/iphistoryws', 'user/settings/iphistory', 'default', 'Login History', 'ja'],
85+
['user/securityws', 'user/securityws', 'default', 'Security'],
86+
['user/security/iphistoryws', 'user/security/iphistory', 'default', 'Login History', 'ja'],
8887
['user/tnc_approvalws', 'legal/tnc_approvalws', 'default', 'Terms and Conditions Approval'],
88+
['user/settings/detailsws', 'user/settings/detailsws', 'default', 'Personal Details'],
8989
['user/settings/assessmentws', 'user/settings/financial_assessmentws', 'default', 'Financial Assessment', 'ja'],
9090
['user/lost_passwordws', 'user/lost_passwordws', 'default', 'Password Reset'],
9191
['user/reset_passwordws', 'user/reset_passwordws', 'default', 'Password Reset'],
92-
['user/settings/authorised_appsws', 'user/settings/authorised_appsws', 'default', 'Authorised Applications', 'ja'],
92+
['user/security/authorised_appsws', 'user/security/authorised_appsws', 'default', 'Authorised Applications', 'ja'],
9393
['user/reality_check_frequencyws', 'user/reality_check_frequencyws', 'default', 'Reality Check'],
9494
['user/reality_check_summaryws', 'user/reality_check_summaryws', 'default', 'Reality Check'],
9595

scripts/lib/BS.pm

Lines changed: 17 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -191,96 +191,34 @@ sub js_config {
191191
sub menu {
192192
my @menu;
193193

194-
# trade page
195-
push @menu,
196-
{
197-
id => 'topMenuTrading',
198-
class => 'ja-hide',
199-
url => url_for('/trading'),
200-
text => localize('Start Trading'),
201-
link_class => 'pjaxload'
202-
};
203-
204-
# japan's trade page
205-
push @menu,
206-
{
207-
id => 'topMenuJPTrading',
208-
class => 'all-hide ja-show',
209-
url => url_for('/jptrading'),
210-
text => localize('Start Trading'),
211-
link_class => 'pjaxload'
212-
};
213-
214-
# myaccount
215-
my $my_account_ref = {
216-
id => 'topMenuMyAccount',
217-
url => url_for('/user/my_accountws'),
218-
text => localize('My Account'),
219-
class => 'by_client_type client_real client_virtual',
220-
link_class => 'with_login_cookies pjaxload',
221-
sub_items => [],
222-
};
223-
224194
# Portfolio
225-
push @{$my_account_ref->{sub_items}},
195+
push @menu,
226196
{
227197
id => 'topMenuPortfolio',
228198
url => url_for('/user/portfoliows'),
229199
text => localize('Portfolio'),
230-
link_class => 'with_login_cookies pjaxload',
200+
class => 'client_logged_in invisible',
201+
link_class => 'pjaxload',
231202
};
232203

233-
push @{$my_account_ref->{sub_items}},
204+
push @menu,
234205
{
235206
id => 'topMenuProfitTable',
236207
url => url_for('/user/profit_tablews'),
237208
text => localize('Profit Table'),
238-
link_class => 'with_login_cookies pjaxload',
209+
class => 'client_logged_in invisible',
210+
link_class => 'pjaxload',
239211
};
240212

241-
push @{$my_account_ref->{sub_items}},
213+
push @menu,
242214
{
243215
id => 'topMenuStatement',
244216
url => url_for('/user/statementws'),
245217
text => localize('Statement'),
246-
link_class => 'with_login_cookies pjaxload',
247-
};
248-
249-
push @{$my_account_ref->{sub_items}},
250-
{
251-
id => 'topMenuChangePassword',
252-
url => url_for('/user/change_passwordws'),
253-
text => localize('Password'),
254-
link_class => 'with_login_cookies pjaxload',
255-
};
256-
257-
push @{$my_account_ref->{sub_items}},
258-
{
259-
id => 'topMenuAccountSettings',
260-
url => url_for('/user/settingsws'),
261-
text => localize('Settings'),
262-
link_class => 'with_login_cookies pjaxload',
263-
};
264-
265-
push @{$my_account_ref->{sub_items}},
266-
{
267-
id => 'topMenuBecomeAffiliate',
268-
class => 'ja-hide',
269-
url => url_for('/affiliate/signup'),
218+
class => 'client_logged_in invisible',
270219
link_class => 'pjaxload',
271-
text => localize('Affiliate'),
272220
};
273221

274-
push @{$my_account_ref->{sub_items}},
275-
{
276-
id => 'topMenuAuthenticateAccount',
277-
url => url_for('/user/authenticatews'),
278-
text => localize('Authenticate'),
279-
class => 'by_client_type client_real ja-hide',
280-
link_class => 'with_login_cookies pjaxload',
281-
};
282-
push @menu, $my_account_ref;
283-
284222
# cashier
285223
push @menu,
286224
{
@@ -316,7 +254,6 @@ sub menu {
316254
$resources_items_ref->{'sub_items'} = [$asset_index_ref, $trading_times_ref];
317255
push @menu, $resources_items_ref;
318256

319-
# Portfolio
320257
push @menu,
321258
{
322259
id => 'topMenuShop',
@@ -326,6 +263,15 @@ sub menu {
326263
target => '_blank'
327264
};
328265

266+
push @menu,
267+
{
268+
id => 'topMenuPaymentAgent',
269+
class => 'invisible',
270+
url => url_for('/paymentagent/transferws'),
271+
text => localize('Payment Agent'),
272+
link_class => 'pjaxload'
273+
};
274+
329275
# push @{$menu}, $self->_main_menu_trading();
330276

331277
return \@menu;
Lines changed: 1 addition & 0 deletions
Loading

src/images/pages/footer/partner-icon.svg

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/javascript/binary/base/logged_in.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ var LoggedInHandler = (function() {
1818
// set cookies
1919
page.client.set_cookie('loginid' , loginid);
2020
page.client.set_cookie('loginid_list', loginid_list);
21+
22+
if (!$('body').hasClass('BlueTopBack')) sessionStorage.setItem('check_tnc', loginid_list);
2123
}
2224
page.client.set_cookie('login', tokens[loginid]);
2325

2426
// set flags
25-
sessionStorage.setItem('check_tnc', '1');
2627
if (!$('body').hasClass('BlueTopBack')) localStorage.setItem('risk_classification', 'check');
2728
GTM.set_login_flag();
2829

0 commit comments

Comments
 (0)