Skip to content

Commit 5b8875a

Browse files
Razzwanorenyodfat
authored andcommitted
feat: First loading speed improvement
1 parent 93287a1 commit 5b8875a

Some content is hidden

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

41 files changed

+66
-73
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 1.0.2
22
- Features Added
3+
- First loading speed improvement
34
- Support Multi-call Generic Scheme
45
- Use subgraph v40_0 and arc.js 0.2.76
56
- Added xGEN / GEN bridge

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
},
5454
"scripts": {
5555
"analyze": "NODE_ENV=production NETWORK=main ANALYZE=1 node --max_old_space_size=4096 node_modules/.bin/webpack --config webpack.prod.config.js --progress --colors",
56+
"analyze:build": "NODE_ENV=production ANALYZE=1 NETWORK=private node --max_old_space_size=4096 node_modules/.bin/webpack --config webpack.prod.config.js",
5657
"build": "webpack --config webpack.prod.config.js",
5758
"build-dev": "node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --config webpack.dev.config.js",
5859
"build-travis": "cross-env NODE_ENV=production NETWORK=main node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --config webpack.prod.config.js",

src/actions/profilesActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Box = require("3box");
1+
import * as Box from "3box";
22

33
import { AsyncActionSequence, IAsyncAction } from "actions/async";
44
import { getWeb3Provider } from "arc";

src/components/Account/AccountBalance.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import BN = require("bn.js");
1+
import * as BN from "bn.js";
22
import { formatTokens } from "lib/util";
33
import * as React from "react";
44
import * as css from "./Account.scss";

src/components/Account/AccountBalances.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Address, IDAOState, IMemberState } from "@daostack/arc.js";
22
import { baseTokenName, ethErrorHandler, genName, ethBalance, standardPolling } from "lib/util";
33

4-
import BN = require("bn.js");
4+
import * as BN from "bn.js";
55
import AccountBalance from "components/Account/AccountBalance";
66
import Reputation from "components/Account/Reputation";
77
import withSubscription, { ISubscriptionProps } from "components/Shared/withSubscription";

src/components/Account/AccountPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { connect } from "react-redux";
1212
import { IRootState } from "reducers";
1313
import { IProfileState } from "reducers/profilesReducer";
1414

15-
import BN = require("bn.js");
15+
import * as BN from "bn.js";
1616

1717
import * as css from "./Account.scss";
1818

src/components/Account/AccountProfilePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IDAOState, IMemberState, DAO } from "@daostack/arc.js";
22
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
33

4-
import BN = require("bn.js");
4+
import * as BN from "bn.js";
55
import { getProfile, updateProfile } from "actions/profilesActions";
66
import { getArc, enableWalletProvider } from "arc";
77
import classNames from "classnames";

src/components/Account/Reputation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import BN = require("bn.js");
1+
import * as BN from "bn.js";
22
import { fromWei } from "lib/util";
33
import Tooltip from "rc-tooltip";
44
import * as React from "react";

src/components/Dao/DaoMember.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import BN = require("bn.js");
1+
import * as BN from "bn.js";
22
import { IDAOState, IMemberState, Member } from "@daostack/arc.js";
33
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
44
import AccountImage from "components/Account/AccountImage";

src/components/Feed/FeedItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import BN = require("bn.js");
1+
import * as BN from "bn.js";
22
import AccountImage from "components/Account/AccountImage";
33
import AccountProfileName from "components/Account/AccountProfileName";
44
import Reputation from "components/Account/Reputation";
55
import { generate } from "geopattern";
66
import { fromWei } from "lib/util";
77

8-
import moment = require("moment");
8+
import * as moment from "moment";
99
import { Link } from "react-router-dom";
1010
import { IProfileState } from "reducers/profilesReducer";
1111
import * as React from "react";

0 commit comments

Comments
 (0)