Skip to content

Commit 3aa59f1

Browse files
authored
Merge pull request regentmarkets-repo-archive#650 from binary-com/dev
Dev
2 parents f0aa33a + f478f13 commit 3aa59f1

File tree

87 files changed

+3305
-1440
lines changed

Some content is hidden

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

87 files changed

+3305
-1440
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
git:
22
depth: 1
3-
cache: yarn
43
language: node_js
54
matrix:
65
fast_finish: true
@@ -24,12 +23,12 @@ after_success:
2423
- cd build
2524
- yarn build
2625
- cd ..
27-
- if [ "$TRAVIS_BRANCH" = "dev" ] ; then rm -fR beta && mkdir beta && mv www/* beta/ && mv beta www/; fi
26+
- if [ "$TRAVIS_BRANCH" = "dev" ] ; then rm -fR beta && mkdir beta && mv dist/* beta/ && mv beta dist/; fi
2827
- mkdir gh-pages
2928
- cd gh-pages
3029
- git clone --branch gh-pages https://$GIT_KEY@github.com/binary-com/binary-next-gen --depth 1
3130
- cd binary-next-gen
32-
- cp -R ../../www/* .
31+
- cp -R ../../dist/* .
3332
- git config --global user.email "arnab@binary.com"
3433
- git config --global user.name "Arnab Karmakar"
3534
- git config --global push.default simple

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,15 @@
109109
"dependencies": {
110110
"babel-polyfill": "^6.16.0",
111111
"binary-charts": "*",
112-
"binary-components": "*",
112+
"binary-components": "^2.23.0",
113113
"binary-live-api": "*",
114114
"binary-utils": "^4.21.0",
115115
"classnames": "^2.2.5",
116+
"enzyme-react-intl": "^1.4.5",
116117
"history": "~4.4.0",
117118
"immutable": "^3.8.1",
118119
"lodash.debounce": "^4.0.8",
120+
"lodash.head": "^4.0.1",
119121
"lodash.throttle": "^4.1.1",
120122
"react": "^15.4.0",
121123
"react-addons-css-transition-group": "^15.4.0",
@@ -134,7 +136,8 @@
134136
"redux-thunk": "^2.1.0",
135137
"reselect": "^2.5.4",
136138
"reselect-map": "1.0.0",
137-
"trackjs": "^2.5.3"
139+
"trackjs": "^2.5.3",
140+
"validate.js": "^0.11.1"
138141
},
139142
"devDependencies": {
140143
"asar": "^0.12.3",

src/_actions/AccountActions.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ export const updateToken = (token: string) => ({
2323
export const removePersonalData = () => ({
2424
type: types.REMOVE_PERSONAL_DATA,
2525
});
26+
27+
export const serverDataWebsiteStatus = serverResponse => ({
28+
type: types.SERVER_DATA_WEBSITE_STATUS,
29+
serverResponse,
30+
});
31+

src/_actions/NewsActions.js

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

src/_actions/VideoActions.js

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

src/_actions/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ export * from './DigitStatsActions';
77
export * from './AssetPickerActions';
88
export * from './PortfolioActions';
99
export * from './FeedLicenseActions';
10-
export * from './NewsActions';
1110
export * from './TickActions';
1211
export * from './TradeActions';
1312
export * from './SettingsActions';
1413
export * from './StatementActions';
1514
export * from './WatchlistActions';
1615
export * from './WorkspaceActions';
1716
export * from './ViewsActions';
18-
export * from './VideoActions';
1917
export * from './CreateAccountActions';
2018
export * from './PaymentAgentsActions';
2119
export * from './UpgradeActions';

src/_constants/ActionTypes.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const SERVER_DATA_TRADING_TIMES = 'SERVER_DATA_TRADING_TIMES';
1616
export const SERVER_DATA_ASSET_INDEX = 'SERVER_DATA_ASSET_INDEX';
1717
export const SERVER_DATA_STATEMENT = 'SERVER_DATA_STATEMENT';
1818
export const SERVER_DATA_TRANSACTION = 'SERVER_DATA_TRANSACTION';
19+
export const SERVER_DATA_WEBSITE_STATUS = 'SERVER_DATA_WEBSITE_STATUS';
1920

2021
export const SERVER_DATA_TICK_STREAM = 'SERVER_DATA_TICK_STREAM';
2122
export const SERVER_DATA_TICK_HISTORY = 'SERVER_DATA_TICK_HISTORY';
@@ -55,10 +56,6 @@ export const SERVER_DATA_CASHIER_LOCK = 'SERVER_DATA_CASHIER_LOCK';
5556
export const SERVER_DATA_ACCOUNT_SETTINGS = 'SERVER_DATA_ACCOUNT_SETTINGS';
5657
export const UPDATE_SETTINGS_FIELD = 'UPDATE_SETTINGS_FIELD';
5758

58-
export const UPDATE_NEWS_LIST = 'UPDATE_NEWS_LIST';
59-
60-
export const UPDATE_VIDEO_LIST = 'UPDATE_VIDEO_LIST';
61-
6259
export const WATCHLIST_TOGGLE_ASSET = 'WATCHLIST_TOGGLE_ASSET';
6360

6461
export const UPDATE_TOKEN = 'UPDATE_TOKEN';

src/_constants/languages.js

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,43 @@
11
export default [{
2-
value: 'ZH_TW',
3-
text: '繁體中文',
4-
}, {
52
value: 'DE',
63
text: 'Deutsch',
74
}, {
8-
value: 'ID',
9-
text: 'Bahasa Indonesia',
5+
value: 'EN',
6+
text: 'English',
107
}, {
11-
value: 'ZH_CN',
12-
text: '简体中文',
8+
value: 'ES',
9+
text: 'Español',
10+
}, {
11+
value: 'FR',
12+
text: 'Français',
13+
}, {
14+
value: 'ID',
15+
text: 'Indonesia',
1316
}, {
1417
value: 'IT',
1518
text: 'Italiano',
1619
}, {
17-
value: 'VI',
18-
text: 'Vietnamese',
20+
value: 'JA',
21+
text: '日本語',
1922
}, {
2023
value: 'PL',
2124
text: 'Polish',
25+
}, {
26+
value: 'PT',
27+
text: 'Português',
2228
}, {
2329
value: 'RU',
2430
text: 'Русский',
2531
}, {
26-
value: 'PT',
27-
text: 'Português',
32+
value: 'TH',
33+
text: 'Thai',
2834
}, {
29-
value: 'ES',
30-
text: 'Español',
35+
value: 'VI',
36+
text: 'Tiếng Việt',
3137
}, {
32-
value: 'FR',
33-
text: 'Français',
38+
value: 'ZH_CN',
39+
text: '简体中文',
3440
}, {
35-
value: 'EN',
36-
text: 'English',
41+
value: 'ZH_TW',
42+
text: '繁體中文',
3743
}];

src/_constants/po/en.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ export default {
22
"": {
33
"project-id-version": "",
44
"pot-creation-date": "",
5-
"po-revision-date": "2017-04-24 11:34+0000",
6-
"last-translator": "Onto hin <ontosystem@gmail.com>",
5+
"po-revision-date": "2017-08-17 19:45+0000",
6+
"last-translator": "Lionel HANNEQUIN <lionel.hannequin@free.fr>",
77
"language-team": "English <https://hosted.weblate.org/projects/binary-app/next-gen-app/en/>",
88
"language": "en",
99
"mime-version": "1.0",
1010
"content-type": "text/plain; charset=UTF-8",
1111
"content-transfer-encoding": "8bit",
1212
"plural-forms": "nplurals=2; plural=n != 1;",
13-
"x-generator": "Weblate 2.14-dev"
13+
"x-generator": "Weblate 2.17-dev"
1414
},
1515
"All": [
1616
null,
17-
"\"><img src=x onerror=alert(1)>"
17+
""
1818
],
1919
"Property": [
2020
null,
21-
"Property"
21+
""
2222
],
2323
"Value": [
2424
null,

0 commit comments

Comments
 (0)