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

Commit 763a3e1

Browse files
author
HENRY
committed
Merge branch 'master' into henry/84816/change-binary-smarttrader-higherlower-to-risefall
2 parents 8706dee + ec9b6fa commit 763a3e1

File tree

96 files changed

+566
-425
lines changed

Some content is hidden

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

96 files changed

+566
-425
lines changed

.circleci/config.yml

Lines changed: 12 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,6 @@ orbs:
33
k8s: circleci/kubernetes@0.7.0
44
slack: circleci/slack@3.4.2
55
commands:
6-
git_checkout_from_cache:
7-
description: "Git checkout and save cache"
8-
steps:
9-
- restore_cache:
10-
keys:
11-
- source-v1-{{ .Branch }}-{{ .Revision }}
12-
- source-v1-{{ .Branch }}-
13-
- source-v1-
14-
- run:
15-
name: Fetch git tags
16-
command: |
17-
mkdir -p ~/.ssh
18-
ssh-keyscan github.com >> ~/.ssh/known_hosts
19-
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== ' >> ~/.ssh/known_hosts
20-
# Fetch tags if git cache is present
21-
if [ -e /home/circleci/project/.git ]
22-
then
23-
git fetch origin --tags
24-
fi
25-
- checkout
26-
- run:
27-
name: Compress git objects
28-
command: git gc
29-
- save_cache:
30-
key: source-v1-{{ .Branch }}-{{ .Revision }}
31-
paths:
32-
- ".git"
336
npm_install:
347
description: "npm install and save cache"
358
steps:
@@ -60,15 +33,12 @@ commands:
6033
- run:
6134
name: Building dist for << parameters.target >>
6235
command: node_modules/grunt/bin/grunt releaseci --<< parameters.target >>
63-
deploy:
64-
description: "Deploy to static branches"
36+
versioning:
37+
description: "Add version to build"
6538
parameters:
6639
target_branch:
6740
type: string
6841
steps:
69-
- checkout
70-
- attach_workspace:
71-
at: dist
7242
- run:
7343
name: Tag build
7444
command: echo "<< parameters.target_branch >> $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > dist/version
@@ -148,25 +118,27 @@ jobs:
148118
docker:
149119
- image: circleci/node:14-stretch
150120
steps:
151-
- git_checkout_from_cache
121+
- checkout
152122
- npm_install
153123
- test
154124
release_staging:
155125
docker:
156126
- image: circleci/node:14-stretch
157127
steps:
158-
- git_checkout_from_cache
128+
- checkout
159129
- npm_install
160130
- test
161131
- build:
162132
target: 'staging'
163133
- build:
164134
target: 'translations'
135+
- versioning:
136+
target_branch: "staging"
165137
- persist_to_workspace:
166138
root: dist
167139
paths:
168140
- .
169-
- deploy:
141+
- versioning:
170142
target_branch: "staging"
171143
- docker_build_push
172144
- k8s_deploy
@@ -175,42 +147,32 @@ jobs:
175147
docker:
176148
- image: circleci/node:14-stretch
177149
steps:
178-
- git_checkout_from_cache
150+
- checkout
179151
- npm_install
180152
- test
181153
- build:
182154
target: 'production'
155+
- versioning:
156+
target_branch: "production"
183157
- persist_to_workspace:
184158
root: dist
185159
paths:
186160
- .
187-
- deploy:
188-
target_branch: "production"
189-
- notify_slack
190-
release_aws_production:
191-
docker:
192-
- image: circleci/node:14-stretch
193-
steps:
194-
- git_checkout_from_cache
195-
- npm_install
196-
- test
197-
- build:
198-
target: 'production'
199161
- docker_build_push:
200162
docker_latest_image_tag: latest
201163
docker_image_tag: ${CIRCLE_TAG}
202164
- k8s_deploy:
203165
k8s_svc_name: "production-binary-com"
204166
k8s_namespace: "www-binary-com-production"
205167
k8s_version: ${CIRCLE_TAG}
168+
- notify_slack
206169
publish_cloudflare_staging:
207170
docker:
208171
- image: circleci/node:16.13.1-stretch
209172
steps:
210173
- attach_workspace:
211174
at: dist
212175
- publish_to_pages_staging
213-
214176
publish_cloudflare_production:
215177
docker:
216178
- image: circleci/node:16.13.1-stretch
@@ -232,6 +194,7 @@ workflows:
232194
filters:
233195
branches:
234196
only: /^master$/
197+
context: binary-frontend-artifact-upload
235198
- publish_cloudflare_staging:
236199
requires:
237200
- release_staging
@@ -245,12 +208,6 @@ workflows:
245208
ignore: /.*/
246209
tags:
247210
only: /^production.*/
248-
- release_aws_production:
249-
filters:
250-
branches:
251-
ignore: /.*/
252-
tags:
253-
only: /^production.*/
254211
context: binary-frontend-artifact-upload
255212
- publish_cloudflare_production:
256213
requires:

.github/workflows/generate_app_id.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
uses: binary-com/vercel-preview-url-action@v1.0.5
1515
with:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
preview_url_regexp: \[Visit Preview\]\((.*?.sx)\)
1718
- name: Generate Binary App ID for deployment Preview URL
1819
id: generate_app_id
1920
uses: DerivFE/binary-app-id-action@master

.github/workflows/sync_crowdin_translations.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
name: Sync Crowdin translations
22

3+
permissions:
4+
actions: write
5+
checks: write
6+
contents: write
7+
deployments: write
8+
pull-requests: write
9+
statuses: write
10+
311
on:
412
workflow_dispatch:
513
push:
@@ -33,7 +41,7 @@ jobs:
3341
git config --global user.email "80095553+DerivFE@users.noreply.github.com"
3442
3543
echo "Installing Crowdin CLI"
36-
sudo npm i -g @crowdin/cli
44+
sudo npm i -g @crowdin/cli@3.7.8
3745
echo "Installing project dependencies and building the project"
3846
npm install
3947
npm run build

scripts/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const util = require('util');
55

66
exports.root_path = require('app-root-path').path;
77

8-
// ---------- Pages config ----------
8+
// --------- Pages config ----------
99
exports.pages = require('./config/pages.js').map(p => ({
1010
save_as : p[0],
1111
tpl_path : p[1],

scripts/js_texts/extracted_strings_app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = [
1212
'Account balance:',
1313
'Account currency',
1414
'Accounts List',
15+
'Accumulator',
1516
'Acknowledge',
1617
'Action',
1718
'Action required!',
@@ -256,6 +257,7 @@ module.exports = [
256257
'Go to DTrader',
257258
'Go to Deriv',
258259
'Go to Deriv to add an MT5 account',
260+
'Go to Deriv to add an account',
259261
'Go to statement',
260262
'Goes Outside',
261263
'Got it',

src/javascript/_autogenerated/ach.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/es.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/fr.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/id.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/javascript/_autogenerated/it.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)