Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/1492 webpack optimization eslint and thread-loader #1510

Merged
merged 6 commits into from
Jul 27, 2021

Conversation

ShynRou
Copy link
Contributor

@ShynRou ShynRou commented Jul 19, 2021

relates to #1492

  • add more profiling tools
  • add parallel flag to TerserPlugin
  • replace eslint-loader with eslint-webpack-config
  • add thread-loader to babel-loader

These changes should change nothing for the result, but the build process should be a bit quicker especially on multi-core CPUs.

@ShynRou ShynRou requested review from soulBit and creed-victor July 19, 2021 10:00
@ShynRou ShynRou added dependencies Pull requests that update a dependency file enhancement New feature or request labels Jul 19, 2021
creed-victor
creed-victor previously approved these changes Jul 20, 2021
soulBit
soulBit previously approved these changes Jul 21, 2021
@ShynRou
Copy link
Contributor Author

ShynRou commented Jul 21, 2021

Sadly the ESLint-plugin implementation seems to not work right now. I'll try to get it to work properly... sorry

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 21, 2021

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d1dd80a
Status: ✅  Deploy successful!
Preview URL: https://6b23bfa3.sovryn.pages.dev

View logs

@ShynRou ShynRou dismissed stale reviews from soulBit and creed-victor via 6f2280a July 21, 2021 12:46
@ShynRou
Copy link
Contributor Author

ShynRou commented Jul 21, 2021

@creed-victor @soulBit
I fixed the ESLint Plugin config and with that I had to fix an error with useAnalytics, that is raised by the new eslint-plugin-react-hooks version.

@soulBit soulBit self-requested a review July 21, 2021 15:24
soulBit
soulBit previously approved these changes Jul 21, 2021
@ShynRou ShynRou requested a review from creed-victor July 26, 2021 09:10
creed-victor
creed-victor previously approved these changes Jul 27, 2021
…ack-optimization-eslint

# Conflicts:
#	config/webpack.config.js
#	yarn.lock
@creed-victor creed-victor dismissed stale reviews from soulBit and themself via f6d7c51 July 27, 2021 13:14
@creed-victor creed-victor merged commit 26403e1 into development Jul 27, 2021
@creed-victor creed-victor deleted the feat/1492-webpack-optimization-eslint branch July 27, 2021 13:25
soulBit added a commit that referenced this pull request Aug 24, 2021
* [BuySovPage] remove dropped content

* [BuySovPage] update InfoBar

* [BuySovPage] update Onboarding and Features

* [BuySovPage] fix, headings, fix issues with the onboarding

* add landingPage container.

* Add Welcome section

* Add Total value locked section

* Promotions section - initial commit (PromotionsCarousel)

* add landing page ArbitrageOpportunity.

* add LendingAssets to LandingPage.

* PromotionsCard initial version

* add top amm pools.

* fix landing ui issue.

* Promotions - PromotionCard adjustments

* Promotions section adjustments

* Fix string in EN (#1558)

Change from Action to Amount

* Add new string PT-BR (#1552)

* Add new string PT-BR

Added the string of: #1549

* Minor change

* New string

* Minor change

* Update src/locales/pt_br/translation.json

* Minor change

* Fix

* [Swap] - added footer (#1561)

* changed v1 pool smart-contracts (#1566)

* Feat/1492  webpack optimization eslint and thread-loader (#1510)

* [Webpack] replace eslint-loader with eslint-webpack-plugin, update eslint-dependencies

* [Webpack] use thread-loader for js/ts

* [Webpack] fix ESLintPlugin config

* [useAnalytics] export useCookie's static functions to be used in useAnalytics

* yarn.lock update

Co-authored-by: Victor Creed <rytis.grincevicius+cv@gmail.com>

* Align buttons in margin trade dialog (#1497)

* Align buttons in margin trade dialog

* [Portfolio] - fix #1555

Co-authored-by: soulBit <its.soulBit@gmail.com>
Co-authored-by: pietro-maximoff <pietro.maxim.official@protonmail.com>
Co-authored-by: Victor Creed <69458664+creed-victor@users.noreply.github.com>

* Change Vesting Schedule to Type (#1557)

* removes dummy MOC lending contract (#1567)

* [Lend] - disabled buttons (deposit, withdraw) if user is not connected #1506 (#1565)

* Initial rework of TradingVolume section

* TradingVolume section and welcome title adjustments

* fix arbitrage assets logo.

* Implement promotion links to specific modals

* update tokens icons.

* fix Arbitrage list issue.

* update isNullOrUndefined.

* add isValidArbitrage function.

* Promotion cards adjustments

* fix isNullOrUndefined null check.

* add validation to ArbitrageOpportunity data.

* fix Arbitrage list issue. (#1590)

* fix Arbitrage list issue.

* update isNullOrUndefined.

* add isValidArbitrage function.

* fix isNullOrUndefined null check.

* Cross chain Deposits & Withdrawals (#1347)

* add stepper component.

* add babelfish steps to stepper.

* add stepper animations.

* chain selector

* make stepper reusable

* improve stepper.

* add network select babelfish

* add tokens to babelfish flow.

* add babelfish deposit components.

* add Processing step.

* imporve babelfish components.

* implement transition animation

* increase animation time

* improve transition modal.

* fix back btn action.

* update chain selector ui.

* update token selector design.

* add transition to bridge deposit.

* improve reviewStep and amount selector.

* add stepper to cross-chain deposit.

* remove Babelfish unused components.

* fix stepper values.

* cross-chain deposit transactions

* bsc and mainnet token contracts added

* merged master

* mainnet assets + withdraw assets

* merged animations

* add babelfish icon.

* improve chainSelector ui.

* add asset balance to Token selector.

* improve bridge steps ui.

* fix deposit compelete ui.

* add backbutton to cross-chain deposit.

* fix deposit network detection.

* fixes receiver address

* improve bridge deposit ui.

* fix cross-chain issues.

* fix cross-chain deposit issues.

* fixes xusd aggregator bug

* fix ReturnToPortfolio wallet connect.

* cross-bridge withdrawal

* remove return to wallet stop from withdraw flow.

* improve return to portfolio.

* fix cross-chain sidebar position.

* fix bridge issue.

* fix ui size.

* apply new sovryn wallet changes to frontend.
Co-authored-by: Dustin Hagemeier <dustin@commit.international>

* [Webpack] fix duplicate react version when linking packages

* [Webpack] add link to a related react github issue

* add wallet selector step to babelfish deposit flow

* Added new sovryn/react-wallet library version.

* fix code review.

* [Portfolio] - fix #1555

* Bump wallet dependency version

* some of review fixes

* fix babelfish backgrond color.

* fix wallet selector disconnect.

* fix bridge transaltion issues.

* fix bridgeDeposit buttons.

* fix babelfish withdraw design.

* fix sizing.

* add all BridgeDeposit component translations.

* add BridgeWithdrawPage translations.

* fix typo.

* fix PR comments.

* Upgraded wallet version (#1586)

* upgraded wallet version - support for software wallets on test mode.

* enable software wallet from env

* keep metamask connected on cross-chain deposits (#1588)

Co-authored-by: Victor Creed <rytis.grincevicius+cv@gmail.com>

* fix cross chain deposit disconnect wallet.

* fix bridge deposit/withdraw design issues.

* fix bridge notSupported text.

* fix cross chain wallet logo issue.

* return to profile ledger.

Co-authored-by: rick23p <peymannaderi3@gmail.com>
Co-authored-by: Victor Creed <rytis.grincevicius+cv@gmail.com>
Co-authored-by: boltsr <skrullweb.dev@gmail.com>
Co-authored-by: ShynRou <dustin@commit.international>
Co-authored-by: soulBit <its.soulBit@gmail.com>
Co-authored-by: Peiman Naderi <peymannaderi3@yahoo.com>
Co-authored-by: pietro-maximoff <pietro.maxim.official@protonmail.com>
Co-authored-by: Victor Creed <69458664+creed-victor@users.noreply.github.com>
Co-authored-by: Rick <81699526+rick23p@users.noreply.github.com>

* Promotion cards - asset logos

* Fix margin trade promotion links

* Fix/cross chain (#1596)

* fixes linter "import/no-anonymous-default-export" issue

* portoflio button styling fix

* Feat/388 remove bootstrap (#1528)

* [Styling] remove react-bootstrap

* [Styling] remove bootstrap and remove in css usages

* [Styling] add bootstrap compatibility styles

* [Styling] change bootstrap classes to tailwind

* [Styling] change bootstrap classes to tailwind 2

* [Styling] change bootstrap classes to tailwind 3

* [Styling] change bootstrap classes to tailwind 4

* [Styling] change bootstrap classes to tailwind 5

* [Styling] change bootstrap classes to tailwind 6; sr-only

* [Styling] change bootstrap classes to tailwind 7, fix table header

* [Styling] revert changed negative margins

* [Styling] fix SwapForm AssetSelector

* [Styling] fix FormSelect border

* [Styling] fix bg-secondary changes, fix TradingVolume

* [Styling] fix max width usages especially for modals

* [Styling] re-add bootstrap default heading styling

* [Styling] use tailwind for RewardPage

* [Styling] fixed TableTransactionStatus and some forgotten StyledComponents

* [Styling] re-apply commit 3dcd68d

* Feat/1494 replace moment (#1569)

* [DateLocalization] replace moment with dayjs

* [DateLocalization] remove IgnorePlugin moment locale hack

* [StakingDateSelector] fix typos and typings

* Remove antd package

* [Trading Chart] Fix border

Co-authored-by: Soul Bit <its.soulBit@gmail.com>

* update assets.

* update lending assets design.

* Feat/1496 remove dead code (#1564)

* [Cleanup] remove out commented code

* [Cleanup] remove unused utils

* [Cleanup] remove unused files in app/pages

* [Cleanup]  remove WhitelistedNotifications and it's hook

* [Cleanup] remove unused files in app/containers

* [Cleanup] remove unused files in app/components

* [Cleanup] remove empty unused app/hooks/useSwapToUsdRate

* [Cleanup] remove unused package sentry

* [Cleanup] remove out commented jsx

* [Cleanup] re-add unused app/components/Form components

* [Cleanup] re-add unused app/pages/OriginsLaunchpad

* [Cleanup] re-add unused code in MarginTradePage TradeDialog

Co-authored-by: Soul Bit <its.soulBit@gmail.com>

* update amm balance table design.

* Disable claim button on reward SOV when tx is in progress (#1600)

Co-authored-by: tiltom <tilnak.tomas@gmail.com>

* add new landing footer.

* Remove eslint-disable comments (#1578)

* [Cleanup] remove eslint-ignore and fix react-hook usage

* [Cleanup] remove eslint-ignore in NetworkDialog and fix corresponding issues

* [Cleanup] remove eslint-ignore and fix issues

* [Cleanup] remove eslint-ignore, add immediate option to useInterval

* [Cleanup] remove eslint-ignore and fix issue, add useCallbacks

* [Cleanup] fix unused imports and missing, useless useEffect dependencies

* [Cleanup] fix self introduced TradingChart crash

* [Cleanup] fix code style issues

* [Cleanup] fix code style issues

* [Cleanup] fix further code style issues

Co-authored-by: Soul Bit <its.soulBit@gmail.com>

* Feat/1496 ban ts ignore (#1570)

* [ESLint] enable @typescript-eslint/ban-ts-comment, fix vscode eslint error

* [ESLint] remove ts-ignore and fix underlying web3-eth-contract version conflict

Co-authored-by: Victor Creed <rytis.grincevicius+cv@gmail.com>

* update lock.

* update lock.

* finish TVL and Lend borrow table.

* improve landing page.

* disable stats page.

* fix responsive issues.

* improve landing page responsive and styles.

* [BuySOV] fix styling issues caused by global CSS changes

* [browsers] update supported browsers and add a table to readme (#1601)

* fix: contract writer failing to send transactions

* fix for margin trading issue

* add landing banner origin fish sale.

* Show connected user wallet address in babelfish flows (#1599)

* feat(babelfish): show user wallet in babelfish deposit and withdraw flows

* fix(babelfish): remove eth as native coin on rsk chain

* Fix/cross chain issue (#1606)

* add switchNetwork to wallet selector.

* #157-amount = bridge fee, disable withdraw/deposit

* handle defaults metamask switch network.

* fix PR comments.

* add warning to bridge widthraw amount selector.

* feat(babelbish): add posibility to use different block explorers for networks in LinkToExplorer component

Co-authored-by: Rick <81699526+rick23p@users.noreply.github.com>
Co-authored-by: rick23p <peymannaderi3@gmail.com>

* finish landing page banner.

* fix landing page issues.

* add apy to amm pools.

* fix amm pool apy.

* fix apy issue in amm balance.

* [LendingPage] fix HistoryTable timestamp type mismatch (#1613)

* [LendingPage] fix HistoryTable timestamp type mismatch

* [LendingPage] change interface to represent api result

* fix ArbitrageOpportunity image.

* fix linkAsset issue in promotions.

* update origin fish banner title.

* Update testnet lockedSOV, AMM contract addresses

* Fix BNB amm testnet address

* [Lend] Fix profit display calculation

* add CryptocurrencyPrices component.

* fix TradingVolume data.

* [Staking] - update MAX Stake Length

* [Staking] - fix for date extending

* fix landing page responsive issues.

* fix PR comments.

* fix landing page promotion overflow.

* fix promotion center.

* [Landing] Update copy and links for promos

* [Buy SOV] Fix Lend CTA copy

* [Buy SOV] Remove unused imports/comment

* Feat/user wallet on babelfish (#1614)

* feat(babelfish): show user wallet in babelfish deposit and withdraw flows

* fix(babelfish): remove eth as native coin on rsk chain

* Fix/cross chain issue (#1606)

* add switchNetwork to wallet selector.

* #157-amount = bridge fee, disable withdraw/deposit

* handle defaults metamask switch network.

* fix PR comments.

* add warning to bridge widthraw amount selector.

* fix Stepper styles.

* fix babelfish not showing lines.

* change insufficientDaily text.

Co-authored-by: Victor Creed <rytis.grincevicius+cv@gmail.com>
Co-authored-by: Victor Creed <69458664+creed-victor@users.noreply.github.com>

* cross chain responsive design improvements.

* Force rebuild

* Fix Buy Sov modal title

* Hide cross chain for release

* Fix/crypto price (#1634)

* improve priceChange in tables.

Co-authored-by: soulBit <its.soulBit@gmail.com>

Co-authored-by: ShynRou <dustin@commit.international>
Co-authored-by: rick23p <peymannaderi3@gmail.com>
Co-authored-by: tiltom <tilnak.tomas@gmail.com>
Co-authored-by: bitcoinuser <bitcoinuser@users.noreply.github.com>
Co-authored-by: Pietro MaximOFF <74987028+pietro-maximoff@users.noreply.github.com>
Co-authored-by: Victor Creed <69458664+creed-victor@users.noreply.github.com>
Co-authored-by: Victor Creed <rytis.grincevicius+cv@gmail.com>
Co-authored-by: pietro-maximoff <pietro.maxim.official@protonmail.com>
Co-authored-by: Rick <81699526+rick23p@users.noreply.github.com>
Co-authored-by: Rytis Grincevičius <rytis.grincevicius@gmail.com>
Co-authored-by: boltsr <skrullweb.dev@gmail.com>
Co-authored-by: Peiman Naderi <peymannaderi3@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants