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

[Priority 2] WEBPACK #375

Merged
merged 17 commits into from Jan 25, 2021
Merged

[Priority 2] WEBPACK #375

merged 17 commits into from Jan 25, 2021

Conversation

berezh
Copy link
Contributor

@berezh berezh commented Nov 2, 2020

No description provided.

@berezh berezh added the WIP Work in progress label Nov 2, 2020
@berezh
Copy link
Contributor Author

berezh commented Nov 3, 2020

@mod @calj @josadcha @VladyslavP @akhlopiachyi @oyershov

Tips for reviewing:

  1. Important files/folders to concentrate most: package.json, webpack.
  2. Tests are working hardly. Ignore them, they will be handled here - Create etalon component's test coverage #377
  3. Eslint is not applied to all files since here will be all files changed. This will be handled here - tslint => eslint migration #376
  4. geetest.js will be fixed here - Redo geetest.js #379
  5. Other changes are about:
  • previous hooks integration for few components
  • adaptation for webpack

@berezh berezh added Ready Ready for a review and removed WIP Work in progress labels Nov 3, 2020
@berezh berezh changed the base branch from master to feature/refactor2 November 4, 2020 12:00
@berezh berezh requested a review from calj November 4, 2020 17:00
@berezh berezh changed the title WEBPACK [Priority 2] WEBPACK Nov 11, 2020
@akhlopiachyi akhlopiachyi self-requested a review December 4, 2020 08:22

const locale = 'en';

export const TestComponentWrapper: React.FC = ({ children }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, use "App" for this functional, not "TestComponentWrapper"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrapper for a component which is under the unit test. This is not the application's wrapper. Are you sure to rename it to App?

src/App.tsx Outdated
Comment on lines 78 to 92
// const lang = useSelector(selectCurrentLanguage);
// const isMobileDevice = useSelector(selectMobileDeviceState);
// return (
// <IntlProvider
// {...{ locale: lang }}
// defaultLocale={lang}
// messages={getTranslations(lang, isMobileDevice)}
// key={lang}>
// <Router history={browserHistory}>
// <Switch>
// <Route exact={true} path="/" component={SignInScreen} />
// </Switch>
// </Router>
// </IntlProvider>
// );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, put here code from "TestComponentWrapper"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is test code, I removed it. This App component contains IntlProvider and ReduxProvider wraps it on upper level

<title>Cryptobase</title>
</head>
<body>
<script src="/config/env.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you need "%PUBLIC_URL%" prefix? I'm not sure this will work in production, need to make a build and check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is webpack's template html page. Relative path is enough.

@@ -3,7 +3,8 @@ import {
connect,
MapStateToProps,
} from 'react-redux';
import { initGeetest } from '../../helpers/geetest';
// MUST BE REMOVED: Vadym P. responsibility
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Why do we need to remove geetest captcha?
  2. Why it's your responsibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will push fix for geetest to this PR

@@ -0,0 +1,281 @@
// /* eslint-disable */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this to be merged right now to master? If it's some code for the future, make proper PR with it

@berezh berezh force-pushed the feature/refactor2 branch 2 times, most recently from 2205fee to 10cd24a Compare December 16, 2020 21:12
@berezh berezh changed the base branch from feature/refactor2 to feature/refactor-vp December 16, 2020 22:18
@berezh berezh added WIP Work in progress and removed Ready Ready for a review labels Dec 16, 2020
@mod mod merged commit 60064d9 into feature/refactor-vp Jan 25, 2021
@mod mod deleted the move-to-webpack branch January 25, 2021 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress
Development

Successfully merging this pull request may close these issues.

None yet

4 participants