From 647a5b0c4d8b6689a6a38941471889606f5e4e27 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 6 Apr 2020 17:16:02 -0400 Subject: [PATCH 01/15] new signin/signup --- .eslintrc.json | 1 + package.json | 4 +- static/app-strings.json | 9 +- ui/component/cardVerify/view.jsx | 2 +- ui/component/channelCreate/view.jsx | 2 +- ui/component/common/error-text.jsx | 2 +- .../common/form-components/form-field.jsx | 4 +- ui/component/common/icon-custom.jsx | 5 + ui/component/errorBoundary/view.jsx | 10 +- ui/component/header/view.jsx | 19 +- ui/component/invited/view.jsx | 2 +- ui/component/publishFormErrors/view.jsx | 2 +- ui/component/router/view.jsx | 6 +- ui/component/selectAsset/view.jsx | 2 +- ui/component/sideNavigation/view.jsx | 7 +- ui/component/splash/view.jsx | 3 +- ui/component/supportsLiquidate/view.jsx | 2 +- ui/component/userChannelFollowIntro/view.jsx | 82 +++---- ui/component/userEmail/index.js | 5 +- ui/component/userEmailNew/index.js | 10 +- ui/component/userEmailNew/view.jsx | 197 +++++++++------- ui/component/userEmailReturning/index.js | 13 ++ ui/component/userEmailReturning/view.jsx | 111 +++++++++ ui/component/userEmailVerify/index.js | 5 +- ui/component/userEmailVerify/view.jsx | 55 +++-- ui/component/userFirstChannel/view.jsx | 83 +++---- ui/component/userSignIn/index.js | 49 +--- ui/component/userSignIn/view.jsx | 213 ++--------------- ui/component/userSignUp/index.js | 52 +++++ ui/component/userSignUp/view.jsx | 215 ++++++++++++++++++ ui/component/userTagFollowIntro/view.jsx | 65 +++--- ui/component/userVerify/view.jsx | 2 +- ui/component/walletSend/view.jsx | 2 +- ui/constants/icons.js | 1 + ui/constants/pages.js | 3 +- ui/modal/modalRemoveFile/view.jsx | 2 +- ui/modal/modalRevokeClaim/view.jsx | 2 +- ui/modal/modalWalletEncrypt/view.jsx | 2 +- ui/page/rewards/view.jsx | 2 +- ui/page/signUp/index.js | 7 + ui/page/signUp/view.jsx | 12 + ui/scss/component/_card.scss | 5 + ui/scss/component/_claim-list.scss | 5 + ui/scss/component/_header.scss | 9 + ui/scss/component/_main.scss | 23 +- ui/scss/component/section.scss | 44 ++-- ui/scss/init/_gui.scss | 4 +- ui/scss/themes/light.scss | 2 +- yarn.lock | 12 +- 49 files changed, 845 insertions(+), 531 deletions(-) create mode 100644 ui/component/userEmailReturning/index.js create mode 100644 ui/component/userEmailReturning/view.jsx create mode 100644 ui/component/userSignUp/index.js create mode 100644 ui/component/userSignUp/view.jsx create mode 100644 ui/page/signUp/index.js create mode 100644 ui/page/signUp/view.jsx diff --git a/.eslintrc.json b/.eslintrc.json index 8c1d7d658..50e4be5cb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -30,6 +30,7 @@ "one-var": 0, "prefer-promise-reject-errors": 0, "react/jsx-indent": 0, + "react/jsx-no-comment-textnodes": 0, "react-hooks/exhaustive-deps": "warn", "react-hooks/rules-of-hooks": "error", "react/no-unescaped-entities": 0, diff --git a/package.json b/package.json index 28cb90b9b..35e1abc63 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "@babel/register": "^7.0.0", "@exponent/electron-cookies": "^2.0.0", "@hot-loader/react-dom": "^16.8", - "@lbry/components": "^4.0.1", + "@lbry/components": "^4.1.1", "@reach/menu-button": "0.7.4", "@reach/rect": "^0.2.1", "@reach/tabs": "^0.1.5", @@ -131,7 +131,7 @@ "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", "lbry-redux": "lbryio/lbry-redux#1097a63d44a20b87e443fbaa48f95fe3ea5e3f70", - "lbryinc": "lbryio/lbryinc#0addc624db54000b0447f4539f91f5758d26eef3", + "lbryinc": "lbryio/lbryinc#d6203bbea2ceb805465d20198adbdf7759f896a8", "lint-staged": "^7.0.2", "localforage": "^1.7.1", "lodash-es": "^4.17.14", diff --git a/static/app-strings.json b/static/app-strings.json index be009501c..580d25ed4 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1116,5 +1116,10 @@ "Repost %count%": "Repost %count%", "File Description": "File Description", "View %count% reposts": "View %count% reposts", - "Preparing your content": "Preparing your content" -} + "Preparing your content": "Preparing your content", + "Sign Up with lbry.tv": "Sign Up with lbry.tv", + "Already have an account? %sign_in%": "Already have an account? %sign_in%", + "Sign in with a password (optional)": "Sign in with a password (optional)", + "Sign Up": "Sign Up", + "Don't have an account? %sign_up%": "Don't have an account? %sign_up%" +} \ No newline at end of file diff --git a/ui/component/cardVerify/view.jsx b/ui/component/cardVerify/view.jsx index 901ed4963..904973481 100644 --- a/ui/component/cardVerify/view.jsx +++ b/ui/component/cardVerify/view.jsx @@ -165,7 +165,7 @@ class CardVerify extends React.Component { return (
{scriptFailedToLoad && ( -
There was an error connecting to Stripe. Please try again later.
+
There was an error connecting to Stripe. Please try again later.
)}