From c96ca70c2a3fe305c897e36ac23c34be0f97591d Mon Sep 17 00:00:00 2001 From: bobronaud Date: Mon, 6 May 2024 17:36:28 +0300 Subject: [PATCH] add signin option for guest move claer localstorate in signin provider --- et --hard HEAD~1 | 1008 +++++++++++++++++ frontend/src/components/Modals/SignIn.jsx | 10 +- .../src/components/Navigation/GuestMenu.jsx | 10 + frontend/src/providers/AuthProvider.jsx | 1 + 4 files changed, 1028 insertions(+), 1 deletion(-) create mode 100644 et --hard HEAD~1 diff --git a/et --hard HEAD~1 b/et --hard HEAD~1 new file mode 100644 index 00000000..06b894ad --- /dev/null +++ b/et --hard HEAD~1 @@ -0,0 +1,1008 @@ +2490845 (HEAD -> add-signIn-option-for-guest, origin/add-signIn-option-for-guest) Merge branch 'hexlet-rus:main' into add-signIn-option-for-guest +0af48fe (upstream/main, origin/main, origin/HEAD, main) Merge pull request #486 from bobrov-site/fixedTGFooter +5b00336 added locale for tg footer +b8f3c7f fixed footer +19d8f8e add signin option for guest +e3db524 Merge pull request #480 from bobronaud/fix-empty-snippetName +cdd5200 (origin/fix-empty-snippetName) fix empty snippet name +69c25fa Merge pull request #475 from bobrov-site/fixBootstrapStyle +7f457ab remove bootstrap min css from header +f7fa865 fix bootstrap styles scss +260ee65 fix bootstrap styles scss +53d1680 Merge pull request #470 from bobrov-site/fixSnippetExtantion +3e2fd35 Merge pull request #471 from bobrov-site/fixedFAQSectionOnLanding +8a38779 remove extention name from new snippets +b8ade91 added dash to locales +3dd1184 fixed another faq question to one style +ea4b84a fix lint +5fff5b6 fixed faq +a2a10df added html extention +5f5a886 Merge pull request #466 from bobrov-site/ViewButtonForEditor +0ac950f Merge branch 'main' into ViewButtonForEditor +8260d31 Merge pull request #455 from bobrov-site/addSaveButton +146958e lint backend +ef03c64 make lint +1cb6eeb imported DisplayIconView +0e1aa73 created component ActionsToolbar +fbcc6ea lint +dcc3cd1 linter +905544f linter +806848c added updateIsNotMobile +d3f374d added d-none and d-md-inline-block to button +dda3296 one time render to useEffect +dc7eded added displayicons +25e8bbf added direction in state, and added action updateDirection +b5b2c71 import direction. Added useEffect on mobile +e0163ce added icons +06fc7d3 Merge pull request #464 from JS-Demi/bugfix-faq-theme +bb948f6 Merge pull request #463 from bobrov-site/fixedUserMenuDropdownMobile +76002cf Merge pull request #460 from Loresina/fix-send-message +dd7614f fix: logging emails in dev mode +191c504 import toast to ActionsToolbar. Added handleSaveCode +94f2726 remove commentary from useSaveButton +9c2a300 added locales ru, eng for toast +5b7074b removed useNavigate import +7b78162 removeNavigation +a140076 Merge pull request #459 from bobrov-site/fixMarginsInLanding +90a84d8 fixed dropdown on mobile +90f6bda Fix bug #462 +ff0d5d1 fix: test default name +854710a fix: mailer.config +6fcac41 fixed color in background-dark for 991px max width size +d73fec4 added align-items-center +85b1266 fixed paddings in black second screen +33559f0 Merge pull request #451 from Heaven-Tonight/reg-update-forms-validation-enhancements +5fd7f51 Merge branch 'main' into addSaveButton +352c5f2 Merge pull request #454 from bobrov-site/fixRegistrationButton +35ed2b7 back to left items inside collapse header +e6de151 back to center items inside collapse header +32200a3 added className navbar-logo and added width 150px for logo from min-width 992px +5d00443 back to lg expand navbar +c86d586 added a check for forbidden characters in username +80b5618 deleted disallowing entering whitespaces handlers for username/email fields in reg/updated forms +e5e6169 Merge pull request #452 from IVANn84/faq-update +7317db1 added save code button +5e742de make fix +0e1ddf5 added layout of saveButton in toolbar +079d7a6 created useSaveButton hook +3e0efc3 added locales for saveButton +06b6dad remove nav-list class from navbar +3afd1a6 fixed 992px header size collapse +bb42d3a Separate the title from the description +0debd5f Merge pull request #450 from VarWaeR/issue_branch +7bafd00 Merge pull request #447 from vyacheslav-pv/bugfix-toolbar +f1bfd41 fixed username field feedback error ("no leading/trailing/middle whitespaces" rule) +217facd [#448] added classes d-none for snippet card footer buttons +55c01b1 change flex-flow +cdbc79b Merge pull request #445 from vyacheslav-pv/update-snippet +8bd757c Add class for tooltip +0c580c8 import Sass +e0ad482 Add utilities +b7c8788 remove the "w-auto" class in the toolbar snippet +dfc4130 Merge pull request #437 from bobronaud/switch-to-new-landing +1b0f45a (origin/switch-to-new-landing) fix logo`s theme switching +6f8177a Merge pull request #436 from KirillTheStranger/footer-update +1f46b23 fix header. add lang and theme selectors +9d54a27 fix landing locales. remove footer`s email form +d9ec39e add styles to buttons start code +0a35d3f add button to code without reg +1a8dc57 change roots for old/new landings +8253e6e [#435] center footer to look the same as hole page +854f95c Merge pull request #433 from bobronaud/fix-new-snippet-html +ff3aeaa Merge pull request #431 from bobronaud/improve-snippet-ux +91f466b fix-new-snippet-html +dabda9d implement copy snippet as guest +5b6ee59 add modal to copy snippet as guest +b28a6c3 replace signin button to auth warning alert in snippet +27213da Merge pull request #429 from bobronaud/fix-copy-snippet +4fa0c41 add toast on copy snippet +f7df0da fix copy snippet +2d68c2d Merge pull request #427 from bobronaud/fix-light-theme +de92c0c fix light theme +5078aaa Merge pull request #426 from bobronaud/fix-landing-header +9071334 fix landing header +83c5081 Merge pull request #421 from KirillTheStranger/create-avatar-change-modal +0403052 Merge pull request #425 from bobronaud/hide-share_tab-in-user_menu +646d216 Merge pull request #424 from bobronaud/feature-remove_account +d8eeb63 Merge pull request #362 from Ledchig/main +51c3c0b update routes for newLanding +6f48899 hide share tab in user menu +85ec6e1 implement remove account +6f023b7 [#418] create two modals: to upload user avatar, to delete user avatar, create locales for both modals +1b6c21c Merge pull request #415 from Heaven-Tonight/guest-user-snippets-feature +460d2b6 Merge pull request #414 from Heaven-Tonight/update-account-form-hotfix +ba9b99c fixed update-account-form errors displaying +6a8d0e9 added create and save snippets feature for guest users +a4749d6 Merge pull request #413 from hexlet-rus/dependabot/npm_and_yarn/follow-redirects-1.15.4 +a1eeace fix theme mode detect +d54a1bb Bump follow-redirects from 1.15.2 to 1.15.4 +3829710 update header +ba28aa6 update header +0ef3a73 Update comments from tester +c395499 update detector theme mode +7656f4e update auth buttons text +24cdecd update bg images, header and footer lists +949f255 update overflow bg image and footer width +43aa390 update footer width +2aa2d28 add fonts, update theme colors and imgs +755414b Merge branch 'hexlet-rus:main' into main +c3c9fc1 Merge pull request #411 from hexlet-rus/dependabot/npm_and_yarn/adobe/css-tools-4.3.2 +25633d8 Merge pull request #412 from elenashcherbinina/faq_text_color +eaa9b67 add styles for signin and signup buttons +b2fc228 update horizontal scroll +70e914f add background images +5c63862 add background images +7bb8689 add backgroud for points block +f3b193d #410 changed --bs-accordion-active-color to white +3ac977a add inline advantages block with mouse scroll +ab7ffb1 Bump @adobe/css-tools from 4.3.1 to 4.3.2 +d9efd55 add all links, update header, footer +74b7a4d Merge branch 'hexlet-rus:main' into main +50dced4 update Makefile +8a31ef8 add git-update +4baf4c7 Merge pull request #406 from niramov/tooltip +e923d65 add button-start hover effect +7220a6a add hover effect on nav-links +237fe82 [#399 fix snippet-tooltip +a32daea Merge branch 'hexlet-rus:main' into main +cd5dd62 Merge pull request #404 from Lena05k/warning-tooltip +5adc7e1 Merge pull request #405 from elenashcherbinina/supported_languages +759fdae #401 deleted php and python from supported-languages +990a74a Delete Row, Col +02f55c5 Made the warning tooltip wider +d4f265d Merge pull request #402 from hexlet-rus/dependabot/npm_and_yarn/axios-1.6.0 +510cae7 Bump axios from 1.4.0 to 1.6.0 +e47d2fb update faq h2 +ee85966 Merge branch 'hexlet-rus:main' into main +db7c8e0 Merge pull request #385 from d13ch/html_brunch +357696e fixes +d2d2b4a Merge branch 'main' into html_brunch +a51fc90 fix e2e tests +0c11bd7 fix lint errors +9d52c46 fix tests +cf0cb84 add html compile to backend +5f15945 Merge branch 'hexlet-rus:main' into main +1dda385 Merge pull request #397 from hexlet-rus/dependabot/npm_and_yarn/browserify-sign-4.2.2 +8e3c8d7 Merge pull request #395 from elenashcherbinina/faq-text-muted +c633cad Merge pull request #394 from elenashcherbinina/footer-text-muted +073ab2f Bump browserify-sign from 4.2.1 to 4.2.2 +625b2a3 Merge pull request #396 from Scampik/modal-createSnippet +afd5ef7 add e2e-test for modal create snippets +2bbdd9e upd NewSnippet support lng only JS +d61c4fb #387 add modal for create new snippet +6b4df90 Merge pull request #393 from SamIvan-ark/main +e6ac515 Merge pull request #390 from hexlet-rus/dependabot/npm_and_yarn/babel/traverse-7.23.2 +6bae77f add test for html snippet +1d72ee8 remove snippet language substitution in axios resp +0274efd changed class because text-muted was unvisible +770125b changed class text-muted to text-secondary for visibility +7a9825c Merge pull request #389 from Shamatarev/task-#375-add-eg-local-for-License-Condition +c213fe6 Fix scroll reset after navigating pages +8725022 Add scrollToTop component into utils +3864cad finish +1b5daab fix linter mistakes +224a843 Bump @babel/traverse from 7.21.4 to 7.23.2 +6e8ae80 task 375-add-eg-local-for-License-Condition ver1.2 +a7b977e +898b7b0 task 375-add-eg-local-for-License-Condition ver1.1 +90368a4 task-#375-add-eg-local-for-License-Condition ver1 +dee153c Merge pull request #388 from GusinieIstorii/main +fe3d17d Merge branch 'hexlet-rus:main' into main +ede90fb fix typo 'sign in' button +8515861 Merge pull request #386 from elenashcherbinina/snippet_name +c303786 [#368] move icons mapping to utils, remove getIcon +e1a70f5 [#368] add html render +9bb56af [#379] added a space-symbol to validationSchemas.js/snippetName +a8872da Merge branch 'hexlet-rus:main' into main +98ccd7f [#368] add html as supported language +c4d1444 Merge pull request #384 from elenashcherbinina/signin_branch +5017819 [#381] added link to forgot Password in Forms/SignInForm.jsx +73fca1c Merge pull request #382 from Scampik/snippet_branch +f216e9f Merge pull request #363 from likurg42/snippet-duplication-feature +ccc22fb fix new snippet name generation, modal header size and translation +cf9fc30 Merge remote-tracking branch 'hexlet-rus/main' into snippet-duplication-feature merge-upstream +1ba165e add confirmation modal for snippet duplication +161ff01 [#378] fix error msg edit snippet name +91ffaef adda i18n +6672f5d Merge branch 'hexlet-rus:main' into main +adc5e15 Merge pull request #380 from SkyAjax/feature-reset-password +c2e847a [#355] fix checkHash function +0b80530 [#355] fix checkHash function +f1f046a [#355] remove extra return +f396268 Merge pull request #367 from SkyAjax/main +5cf9fdd [#355] fix linter error +5add9b2 [#355] fix non-exist hash access +c4a3d72 update footer +ea461be Merge branch 'hexlet-rus:main' into main +e17e19d Merge pull request #356 from shahzod418/language-detector +a8e94b7 [#355] fix lint errors +7dbae4b [#355] update yarn.lock +d8d133d [#355] update comments +cb0ebc6 change duplication snippet icon and behaviour +eb45068 update styles for pc +c113501 Merge branch 'hexlet-rus:main' into main +a6f201d await initI18next +cd87f40 Merge pull request #366 from glazovanastasia/patch-1 +87cf695 Clean up +b21f764 Merge branch 'main' into language-detector +89d53c1 Delete docs/testcase.yaml +39ef282 [#355] add reset password feature +f005849 clean footer links +ade3e19 Merge pull request #364 from hexlet-rus/dependabot/npm_and_yarn/adobe/css-tools-4.3.1 +7aebaca Bump @adobe/css-tools from 4.2.0 to 4.3.1 +f3720f8 fix url link to hexlet +1f5b205 remove code server request +67a73dc add snippet duplication +38c2357 [#355] work in progress +b67c391 Merge pull request #361 from fey/fix-dev-github-signin-redirect +035bd85 update border color +31200ac add new FAQ and update spaces, bgImage +c22faef Merge branch 'hexlet-rus:main' into main +d7edb5d fix while backend redirected to itself isntead of to frontend url +0f27a1d Merge pull request #359 from shahzod418/remove-confirm-password +d3385b0 Remove backend/src/users/validation/compare-passwords.ts +efbadf1 Merge pull request #358 from faciledictu/linter-fix +7e81324 added all elements on landing +eec91ce Merge branch 'hexlet-rus:main' into main +6930bb5 Fix yarn.lock +b131182 Lint fix +f417cc4 Removed confirmPassword field in remaining locations +4bede02 Remove confirm password field +cde5a20 Add REACT_APP_NODE_ENV in playwright config +3c33a99 Fix linter issues +2d6e9c5 Fix linter params +70b4e13 Update eslint&plugins +167dfe6 fix lint errors +a168dfc Change fallback language setting +6f924cb Language detector +62be48e fix mailer serivce config +18ffc7a Merge pull request #353 from faciledictu/ui-ux-issues +b53e7de sentry update +0f09ccb Disable minimap. Resolves #320 +b06896e Fix editor state reset +e7aea9b Fix selectors +0a7a4d6 Fix layout and theme issues +a87f393 Merge pull request #351 from faciledictu/validation-issues +5b853da Fix locales +b1d8b84 Fix password validaton +d68af85 Trim values before data sending +f247fce Add punycode emails. Resolves #194 +4e251ef Merge pull request #344 from faciledictu/faciledictu/issue340 +8f3e172 fix +088b42d new landing +9bad6e4 Merge pull request #350 from DieWerkself/fixCheckRegister +57401dc fix method name +1a1aaf6 fix resolve +8408611 Merge branch 'main' into fixCheckRegister +a99b14d Merge pull request #349 from faciledictu/oauth-button +a0af036 Merge pull request #345 from faciledictu/password-validation +665f492 Merge pull request #342 from faciledictu/backend-remove-dependencies +ed420aa Merge pull request #341 from faciledictu/faciledictu/issue328 +79805df Fixed login uniqueness check +0ec0195 Update redirect +2f2f05a Fix GithubSignInButton +f0cd4d9 Update instructions +0ad443d Update frontend e2e-tests +f6a0298 Add validation on backend. Fix #316 +9a8fd55 Fix #316 +a3f0323 Add instructions for setting up OAuth. Resolves #340 +c96b933 Remove unnecessary dependencies +52fbf79 Fix migrations +380e487 Rename 'login' to 'username' or 'signin' +f51e0b1 Update endpoints to 'signin' and 'signout' +94a336d Add DB migration +af2ae2d Rename check-username.ts +2c227aa Rename 'login' to 'username' or 'signin' +31fdaad Merge pull request #338 from faciledictu/frontend-new-design +02e6ebd Refactor hooks +c77a225 Fix formatting +c528ee5 Update tests +fc6a883 Redesign +100b94f Set linters +940baa8 Install and update packages +eeb27dd Change files structure +64229fd Merge pull request #336 from SkyAjax/main +80d977b Merge pull request #335 from Shamilist/test-start +39010c4 Merge pull request #331 from Shamilist/e2e-test +bd8f0d0 Merge pull request #308 from boldurean/task-287 +9ca823b [#309] fix bg color and localisation +45cf81c Merge remote-tracking branch 'upstream/main' +4e3222d [#325] add react-router switch +795d5e8 [#177] change sign in button test-id +77d4404 [#334]change e2e test start command in package.json +99ef17e change e2e test start command in package.json +df06852 Add TODO's for added changes +595f867 [#177] fix proplem with random emails and logins +43da259 Merge pull request #317 from Aallyycoop/add_spinner +4c2d0d2 [#309] add loading spinner +89fdb28 Merge pull request #333 from Shamilist/readme +6d3a112 [#332] Update Node version in README.md +111e942 [#177] write tests allure ids 364, 366, 367 +1ccbd7d Merge pull request #329 from Shamilist/e2e-test +4415c3f Merge pull request #326 from TemaGolovin/fix-short-validate-password +325a2ff Merge pull request #330 from AavadaKedavra/333_add_testcases +99da26a update test-cases +b56da2a Delete test-cases.cvs +9712f5a [#177] write tests allure ids 301, 332, 333, 334 +37ad74a Merge pull request #324 from ola-9/reset-pass +fab2c59 Merge pull request #321 from hexlet-rus/dependabot/npm_and_yarn/word-wrap-1.2.4 +5f72672 added password validation in SignInForm +6056e61 Merge pull request #323 from MikhailR1337/303-http-to-https-redirect +767a3f9 reset password +0932be0 303 updated static.json +70b7eb8 Merge pull request #322 from MikhailR1337/303-http-to-https-redirect +666a9e8 Bump word-wrap from 1.2.3 to 1.2.4 +d775a6f Merge pull request #306 from Shamilist/e2e-test +f556ee9 303 added https only config +ff8d7c4 303 fixed project starting error +29a77f4 [#177] fix linter +0599052 [#177] fix random password in Unable to register by invalid email case +8ebe591 [#177] fix Unable to re-register case +06f67e4 [#177] write tests allure ids 299, 300, 302 +253a3c2 [#309] add loading spinner +2954c82 Merge pull request #312 from peperopuripuri/Public-email-Github-registration +e0b1355 Merge branch 'main' into Public-email-Github-registration +e352cec Merge pull request #315 from ilya-rodin/fix-link +4d071da Merge pull request #311 from likurg42/fix-email-validation-letter-case +527f5ba Merge pull request #305 from likurg42/login-signup-form-update +eb44a2d fix form input classes +68f87cc #313 fix wronk url in link +f1647bc remove unnecessary styles and change form styles import +c843b46 [#283] fix: undo changes on the frontend +acf97e5 [#283] fix: change email to lower case +cda5466 [#283/282] fix: fix route profile +1c9b125 [#283] feat: added logic for registering via github with a hidden email +259b7d4 [#283] fix: add parametr in scope for oauth github +cce1e4b Merge branch 'main' into fix-email-validation-letter-case +5c89137 fix make email validation with different letter case +e70c288 Merge pull request #300 from faciledictu/linter-config +8b8a229 Add lint with -fix option +797222e Merge branch 'hexlet-rus:main' into linter-config +5ceb2e0 Fix: #287 Show Snippet Unavailable Dialog and navigate user to home page if snippet has been deleted +822b22e Merge pull request #304 from hexlet-rus/dependabot/npm_and_yarn/semver-5.7.2 +1113856 move login and signup forms into components, use them in pages and modals +a6427b8 Merge pull request #297 from ilya-rodin/fix-font +d593fc5 Bump semver from 5.7.1 to 5.7.2 +225448a Merge pull request #302 from hexlet-rus/dependabot/npm_and_yarn/tough-cookie-4.1.3 +7f29ea5 Merge pull request #299 from Mabby20/fix-routes-profile +7f9be36 Merge pull request #301 from AavadaKedavra/333_add_testcases +56996b5 Bump tough-cookie from 4.1.2 to 4.1.3 +86a0e4d add test-cases from Allure TestOps +cc704b2 Fix code formatting +62b847f Allow js and jsx files checking +5e86fb7 Add --fix option to lint command +1d84b37 rename thing... +40705d7 feat: fix previous commit +bac316b complete fix #288 +6c773ae fix global font +0786360 add monospace font +b42c080 fix syntax error +2704eaa Merge pull request #295 from faciledictu/fix-previous-resolving +3d01469 feat: add popup and localization +8d9e4a7 Fix previous conflict resolving +e13988c Merge pull request #293 from ilya-rodin/refactor-validation-schemas +f426dd7 fix conflicts +0cecb09 Merge pull request #292 from ilya-rodin/refactor-validation-schemas +5b42e29 Merge branch 'main' into refactor-validation-schemas +927a95b closes #289 +ce48bd9 Merge https://github.com/peperopuripuri/runit into Public-email-Github-registration +a5cb800 [282] fix routes profile +a88a346 add attention in bottom and alert and modal +ff0a489 Merge pull request #291 from faciledictu/update-readme +f245c85 Merge pull request #290 from faciledictu/signup-form-messages +170bf40 Merge pull request #286 from faciledictu/signin-error-message +505d336 Merge pull request #1 from faciledictu/validation-schemas +ad80617 Add validation schemas +25ba367 Update readme +303fd1b Fix SignUp form messages +209472b Fix signIn error message +a809887 add correction +81c308f Merge pull request #281 from SemyonSt/main +39ff0c8 fix logout +83a88db Merge pull request #278 from ola-9/login +4f0b335 cleanup comments, add details +52299f0 fix playwright config +46af242 fix routes and frontend tests +2bbbe6e Login bug +73ffe02 Merge pull request #262 from kairina2020/patch-1 +1a0e49e Update requirements.md +7ad88d7 Update requirements.md +67752c6 Merge pull request #268 from AavadaKedavra/333_add_testcases +1a610e3 Merge pull request #275 from hexlet-rus/dependabot/npm_and_yarn/socket.io-parser-4.2.3 +a363e08 Merge pull request #276 from M4XPRD/fix-profile-maxprd +f5d48a3 Merge pull request #272 from SemyonSt/main +1395ef7 fix bag route lending 2 +d6ddda6 Update use cases.yaml +0d75454 Final eslint fixes +a3c2523 Small eslint fixes +e52fbbc Small eslint fixes +d699d20 Rename use casec.yaml to use cases.yaml +010dfec Update requirements.md +115e4a8 Create use casec.yaml +b7190bc Update requirements.md +0a7d640 Profile text changed and CSS added +83ecac4 Merge branch 'fix-profile-maxprd' of https://github.com/M4XPRD/runit into fix-profile-maxprd +ed6a870 [#259] Delete copyProfileButton +634b231 Merge pull request #274 from NadyKamenskaya/readme-update +24e6c8f Bump socket.io-parser from 4.2.2 to 4.2.3 +34603fd Update files to match +c29bb6c fix bag route lending +ee01e7d fix bag route lending +406de1a add env example +70d6d9c fix +cda1f98 Merge pull request #270 from NadyKamenskaya/validate-bugfix +9420b38 Packages updated +a7f4271 React scripts updated +75b6b22 Routes renamed and Links added +cd5029e Routes change and addition +8fd124b Profile route changed +45babfa Improved locals +49f98bb Account page created +0927165 Profile page refactoring +8b770b9 Improved CSS +87e88f9 Profile route renamed +0f8cb03 Created Snippets component +17262d6 [#266] Set a configuration for validateOnBlur +1612431 Update requirements.md +cfd5104 Create testcase.yaml +4237292 Merge pull request #265 from hexlet-rus/dependabot/npm_and_yarn/vm2-3.9.19 +9ac786e Merge pull request #264 from NadyKamenskaya/profile-update +9f1891b Merge pull request #263 from AavadaKedavra/main +cf40bea Bump vm2 from 3.9.17 to 3.9.19 +62f6ff1 [#259] Delete copyProfileButton from locales +2b40f4d [#259] Delete copyProfileButton +4b5f191 Update requirements.yml +0a6bf01 Update requirements.yml +0e6b002 Create requirements.yml +027b7dc Update .gitkeep +92329eb Update requirements.md +9addd3c Create requirements.md +0ec93d7 Update .gitkeep +4e7a141 Merge pull request #255 from hexlet-rus/dependabot/npm_and_yarn/engine.io-6.4.2 +cc64060 Merge pull request #256 from Viktorline/main +c00a9c7 add link to api documentation +f135a8f add sentry frontend +38158c8 add test error +33e4e83 test error +551e856 add sentry test +de0766f Bump engine.io from 6.4.1 to 6.4.2 +4464f98 Merge pull request #247 from hexlet-rus/dependabot/npm_and_yarn/vm2-3.9.17 +f800fb9 Merge pull request #253 from redaktorscha/fix-landing +1dd24a3 Merge pull request #1 from dzencot/fix-landing +03d738f fix tests +0d3ca82 Merge pull request #252 from LarendsD/main +376ec9b fix oauth links +288ef20 merge upstream +a6f4195 fix Footer (add scoped styles, fix links color on hover) +89346af fix Landing (remove commented code) +c9712e6 fix Navbar styles and logo (remove blank space from svg), add header tag +2db6f0e fix Fax styles +771b851 fix Landing styles (margins between sections) +5ef5d11 fix Faq styles +214f240 fix application.scss (remove landing css import) +984b30b fix landing and navbar styles +7b6c6d6 fix linting last one +d3676aa fix linting? +c3c7316 fix lint errors +20d6337 added migration to fill null values for slugs +90cdc60 fix navbar and layout (naming, links, styles, signup button text) +9b75f5e Merge pull request #251 from LarendsD/main +38473fb Merge branch 'main' into main +39ee3dd Merge pull request #250 from SuperSnowSnail/Issue248 +eaf93f5 fix tests pass +55b4786 added tags +3a0f347 added swagger documentation +f997322 [#248] Fix login validation bug in modals +19380d4 Merge pull request #245 from boldurean/extractSnippets +e433fcb fix navbar (add react-bootstrap components, fix responsive behaviour) +568452f Bump vm2 from 3.9.15 to 3.9.17 +9a23997 Extract Snippet component/styles out from Profile page +2aafddb add make tag release +86d06be add packge-lock to ignore +856d094 rm lock +351bf4b update oauth and sentry +9b713b0 Merge pull request #243 from JS-NinjaNN/fix-validation-for-username +12415e5 Fixes #240 +91cc4dd fix lock +803fa30 Merge pull request #242 from hexlet-rus/github-oauth +04c55f2 Merge branch 'main' into github-oauth +b5b8bff Merge pull request #238 from hexlet-rus/dependabot/npm_and_yarn/vm2-3.9.15 +b5e220b Merge branch 'main' into dependabot/npm_and_yarn/vm2-3.9.15 +4c03752 Merge pull request #236 from hexlet-rus/sentry +a7bcb65 fix +9486dbd Merge pull request #239 from fey/hide-github +938abfd hide github +fb6a133 Bump vm2 from 3.9.14 to 3.9.15 +d01e38f fix lint errors +e76a87b add sentry +49dde10 Merge branch 'github-oauth' +e7d1123 fix lock-file +9246233 Merge pull request #234 from hexlet-rus/github-oauth +b5d0236 Merge branch 'main' into github-oauth +09f469e fix yarn.lock +4637bef add oauth +462b274 Merge pull request #232 from fey/add-sparkpost +ba5b512 Merge pull request #233 from fey/add-swagger +58cc527 add swagger +06925a9 send email only for exists users +a864c35 use smtp for production +4e60241 Merge pull request #231 from semenChe/signIn-update +f4e440b Adding an explanation to a comment +b96ac81 Temporarily hide password reset link +d21941a Merge pull request #229 from boldurean/fix-221 +e7fc5c6 Create .gitkeep +bf217b0 Update Navbar links to contain "editor" when user logged in +dba78e7 Update featureRequest.yml +a2742ad Merge pull request #220 from AnastasiaKv/snippet-autosave +736b105 Merge branch 'main' into snippet-autosave +8b89496 Add deferred value +0c5231c fix tests +d735e20 Merge pull request #226 from hexlet-rus/dependabot/npm_and_yarn/sqlite3-5.1.5 +9c60631 Merge pull request #225 from tysky/optimize-assets +2b3d694 Merge pull request #218 from faciledictu/email-validation +878eb8d Fix debounce by creating hook +f259a40 Merge pull request #227 from antonkrupin/main +ed1c147 remove 'бесплатный' from remindPass.footer.signUp signIn.footer.signUp +b1f67cb Bump sqlite3 from 5.1.4 to 5.1.5 +8981bfb move nestjs cli dep for deploy +6853f05 fix makefile +20312a3 fix public folder +fab186c fix package.json +919b3ae delete font awesome icons +655bc85 remove unused eslint disable lines +de99737 fix yup +89b8681 fix getting snippet name +c21dd93 code splitting by routes +845cbe5 Merge pull request #219 from philologistIsCodingHere/update-links +ca330d4 fixed conflict +5da9073 Merge pull request #217 from sgmdlt/patch-1 +f03e33b Add snippet load and code autosave +b8421fd Remove repetitive snippet loading +3fac0cb Refactor snippet button +e53f703 update link +18faac3 update link +8f94b5c update link +9e05518 Update README.ru.md +83059d3 Update README.md +60813c3 Fix email validation +c6697ce fix start command +7e3f50a Merge pull request #215 from AnastasiaKv/update-dependencies +5fa9baf Merge pull request #216 from sgmdlt/patch-2 +e7572d6 Update README.ru.md +0b06d32 Update README.md +332a4cb Merge branch 'main' into update-dependencies +671805c Fix for Playwright Tests +d02be5a Fix dependencies +6fb29e2 Move to devDependencies +eb07a49 Merge pull request #214 from AnastasiaKv/fix-embed-snippets-load +dda4609 Merge pull request #203 from hexlet-rus/tests +38e4a06 fix +3e8192f fix tests +e60401e Add node-gyp pckg +435a427 fix version +a4eb805 rm lock file +eaecc8b fix lock file +f25076b Merge branch 'main' into tests +922d00a warning fix +8d4b17e Fix snippet loading +e47ea48 Merge pull request #213 from fey/fix-migrations +b420fa6 add migrations +3a93c33 fix migrations +79e7e60 Merge pull request #211 from fey/update-setup +aa1a17d update instructions +f36036b remove procfile dev +09d56b3 fix? +c692c5a fix +17c1ac5 add node version +9448023 fix commands +995f732 update setup +5006f4b Merge pull request #205 from AnastasiaKv/fix-snippet-links +2aed6a4 Create dependabot.yml +227733e Fix editor bug when loading snippet code & creating new shippet +41ac211 Fix slug generation +5f46234 Remove slug updates for every snippet data update +6daa771 Merge pull request #206 from LarendsD/main +479f474 Merge pull request #204 from YuliaMisc/bugfix/issue-194 +135438a add build +2ddef4e add playwright workflow +de28798 fix lint +7891f81 fix config +f12a75d fix tests +70fc8ba added password recovery +65967d8 Fetch user data for generation of sharing links +f64af7a Fix snippets api for embaed link +3de96bd Update auth routes and refactor other +4c63a43 Update locals +b6ec50b Fix share&save snippet feature +19b9ea1 Check and fix links for opening snippet +c1abfe4 bugfix issue-194 +8ed0020 fix +bdee0be fix install command +0a36a8b fix lint errors +cf11b4c fix migrations +8630e29 add tests +68afb4f Merge pull request #202 from PShorin/main +45f0600 Merge pull request #172 from AnastasiaKv/fix-snippets-duplicate-bug +9eeb07e Merge pull request #171 from hexlet-rus/dependabot/npm_and_yarn/backend/cookiejar-2.1.4 +30d1391 Added Copy URL to Profile #186 +f7392d0 Merge pull request #201 from seregad544/fix_pr_not_found +867489a fixed linter errors +8ebe7f0 Merge pull request #192 from seregad544/not_found +8a31318 Merge pull request #190 from MikRyam/editProfile +5be3488 Merge pull request #189 from MikRyam/email_feedback +4f8d3a7 fix typo +5e0f746 Merge pull request #196 from hexlet-rus/dependabot/npm_and_yarn/frontend/http-cache-semantics-4.1.1 +7ee8b05 Merge pull request #195 from hexlet-rus/dependabot/npm_and_yarn/backend/http-cache-semantics-4.1.1 +f0027bd Bump http-cache-semantics from 4.1.0 to 4.1.1 in /frontend +87ad768 Bump http-cache-semantics from 4.1.0 to 4.1.1 in /backend +954507f [#51] added NotFoundPage +d300291 [#184] fix issue #184, issue #185 +852fe73 [#181] fix email field feedback message bug 2 +2350f46 [#181] fix email feedback message bug +95f3a31 [#183] fix incorrect email field feedback bug +1a1ad3f Merge pull request #188 from YuliaMisc/bugfix/issue-178 +24a7edf Merge pull request #187 from YuliaMisc/bugfix/issue-179 +de529cc fix feedback bug +b4182b3 fix page RemindPassword +0adea19 Update featureRequest.yml +4070bda Update task.yml +2600ec4 Update task.yml +fe65dc6 Fix selected user data for link +7379844 Create async thunk for fetching profile data +42b22c2 Bump cookiejar from 2.1.3 to 2.1.4 in /backend +f409a83 Remove redundant data fetching +f4a5995 fix deploy +1e85c70 add package.json +7af8c7e Merge pull request #168 from hexlet-rus/fix-routing +b8daa53 add todo +f8c8053 fixes +81e51dc Merge pull request #167 from Abra19/put-landing-text-to-locale +c5991d5 Merge pull request #166 from JS-Samurai/add-task-issue-template +74ddd1f Merge pull request #165 from JS-Samurai/add-feature-request-issue-template +c88fbad Merge pull request #163 from Abra19/footer-add-source +c3d9ae3 Merge pull request #164 from JS-Samurai/add-bug-issue-template +59ffcd5 put landing text to locale +9087445 [#159] add task issue template +b4aa6be [#159] add feature request issue template +ed8d516 add bugreport.yml template +9861932 footer add source code +28ca262 fix snippets router +56ac2f0 fix init +6b838d5 fixes +3621316 remove js +6a86f49 fix command +1ebd375 Merge pull request #158 from Abra19/update-footer-support +155d329 Merge pull request #157 from tigp/make-linter-happy +05f54b3 insert support mail in footer +ec163f8 added eslint-disable in files +e3b6a37 cant resolved problem in to the src/index.jsx and added to the .eslintignore +679dd82 [#154] fixed linter errors +8fe9701 fix +09614bb Merge pull request #156 from hexlet-rus/refactoring +1375d5a Merge remote-tracking branch 'elizablok/feature/slug' into refactoring +4c6d503 Merge pull request #148 from vladikKir/enter-button-update +dae32b4 Merge branch 'main' into enter-button-update +3b4ed28 Merge branch 'main' of github.com:hexlet-rus/runit into main +ab5f67b Merge pull request #153 from hexlet-rus/dependabot/npm_and_yarn/backend/class-validator-0.14.0 +7ffbb1a Merge pull request #149 from vladikKir/faq-update +e57d198 Update enter button way to login page +6a18db6 fixes +8531ea6 Bump class-validator from 0.13.2 to 0.14.0 in /backend +4372531 Merge branch 'main' of github.com:vladikKir/runit into main +ba4e206 Add FAQ comment +21f6212 Merge branch 'main' of github.com:hexlet-rus/runit into main +eb76ffe Add FAQ comment +8cecbe4 Merge pull request #144 from hexlet-rus/refactoring +10ad735 add eslintignore to frontend +1a0683c Update enter button way to login page +295d01c add tsconfig to frontend +cdda29f hotfix +eb83d7e hotfix +bbf5e9c hotfix +3d709c4 Merge branch 'main' into refactoring +1ee93a9 Merge pull request #141 from Abra19/validation-text-update +6bfe237 Merge branch 'main' into refactoring +beb3882 refactoring update +c73b946 change validation text SugnupPage -> Login +66b1682 Merge pull request #1 from hexlet-rus/main +75feb8b hotfix styles +a2a039b fix commands +63b10c6 Merge pull request #135 from EgorUlitin/links-in-navbar-hotfix +5afd543 Merge pull request #137 from hexlet-rus/dependabot/npm_and_yarn/json5-1.0.2 +800eab5 Bump json5 from 1.0.1 to 1.0.2 +303fcde resoleve conflicts +80781c0 rm dist +f902c01 refactoring backend +3d3ac3c refactoring frontend +7feb5e2 Merge pull request #136 from rinat-lucky/fix-on-push-badge +e10e04b Merge pull request #134 from denikeev/fix-eslint +26384d9 Merge pull request #133 from antonkrupin/main +0873699 Merge pull request #130 from EgorUlitin/the-name-update +3c5b0e0 fix on-push badge +1824fb3 Update README.md +f0678ac fix 26 errors and 3 linter warnings +f3d9262 add end newline +5a67b26 add lint frontend & fix 'npx eslint .' +6cba253 Merge branch 'main' into main +5955c18 remove class fs-4 +ea6836e add media query +877f118 change links in buttons "Начать кодить" +59cebb9 add bootstrap classes for adaptive displaying +f63f6e8 add media queries for adaptive buttons displaying +0b1d9b0 add bootstrap classes for adaptive displaying +abf5173 add bootstrap classes for adaptive navbar dispalying +f0f9059 update the name in project +5b8a449 Merge pull request #132 from hexlet-rus/dependabot/npm_and_yarn/jsonwebtoken-and-nestjs/jwt-and-passport-jwt-9.0.0 +b63dc85 Merge pull request #131 from maddbuzz/snippet-saving-status +cca82ec Merge pull request #128 from tigp/locales-hotfix +4ef1118 Bump jsonwebtoken, @nestjs/jwt and passport-jwt +4385011 Merge pull request #127 from denikeev/edit-modals-style +ff93987 Merge pull request #126 from LarendsD/main +aa55d03 fix +f81892f Show the current saving status of the snippet. Closes #28 +b3e9615 add new line at end of file +c9f539e removed a duplicate import(LicenseAgreement) +d060825 removed useless semicolon +067e3ca Merge pull request #123 from EgorUlitin/landing-migrate-to-react +d02696b Merge pull request #106 from tigp/adding-locales-switcher +15e5911 Merge branch 'main' into adding-locales-switcher +8fb69c3 update tests +3efbbf1 [#110] fix borders in modals +87cc8dc [#110] edit modals style to dark +17d6473 [#110] refactoring Navbar, ShareRepl components; fix eslint errors; +3ea492d [#110] move all common styles into scss; delete bootstrap duplicate import; up deps; +da80538 Merge branch 'hexlet-rus:main' into main +70f5de2 add update user and change password at backend +ba63284 migrate landing to react +a1be574 Merge pull request #120 from antonkrupin/main +765c883 remove changes in webpack config +ef1a21d Merge pull request #124 from LarendsD/main +8df31de Merge branch 'main' into main +edecf43 Merge pull request #121 from Mansur903/main +ce5bf42 Merge pull request #117 from artem-mar/edit-profile +f79b79c [#115] added license agreement -fix +260dedb delete make start-dev +a491833 add hot-reload for frontend +437397a Merge pull request #122 from hexlet-rus/fix-sentry +f869445 update webpack config +a2eb868 [#115] added license agreement +0829a1f fix snippet err +c6d4f74 change webpack config before change i have error in ChromeDev tools: uncaught (in promise) referenceerror: process is not defined at __webpack_default_export__ +8e6a144 change link path to (href="/editor") in buttons "Начать кодить" +90706eb added TODO +cc4830c Merge pull request #116 from movmovbaby/add-sentry +73d5acf updated update-user.dto.ts +adbf307 added userSlice +234570b updated Profile.jsx +5ef5b03 updated locales +5b2105f added EditProfile and ChangePassword to Modal.jsx +4134747 added ChangePassword modal +54c92aa added EditProfile modal +0faf312 Added sending errors via sentry +457ceab add slug column to db and change frontend slug link +a1f1e8a Merge pull request #113 from Difuster/check-styles-rem-pass +e3a0060 Merge pull request #109 from EgorUlitin/landing-stylefix +fc85cdc checked styles in remind-pass +22715d4 Merge pull request #108 from hexlet-rus/dependabot/npm_and_yarn/qs-and-formidable-6.10.3 +c25e1a7 Bump qs and formidable +70ccc66 Merge pull request #112 from hexlet-rus/dependabot/npm_and_yarn/decode-uri-component-0.2.2 +a33a04a Bump decode-uri-component from 0.2.0 to 0.2.2 +d07c277 Merge pull request #97 from Difuster/edit_footer +1303bcd Delete 1668857027632-migrations.ts +4cbada4 add margin for faq section +3d740fa update accordion style on landing page +4e0ed3a added at footer language changer +b9819c0 fixed and added some new locales +c2a1b47 Merge pull request #103 from EgorUlitin/logo-bugfix +e5d8d1e Merge pull request #102 from svyatoslavxq/implement-email-case-insensitivity +4eb1041 added new locales for english +643c686 fixed indent deep and added lang switcher button +f1b010c added a missing semilicon +9b10c5e fix navbar logo display +9c5625b feat: email-case-insensitivity +8c2b3bf Merge pull request #101 from svyatoslavxq/add-indents-on-landing +ede44f8 fix: indents on landing page +f926107 disable eslint rule in migration +9cde236 edit_footer +ea9e489 Merge pull request #96 from Asya-Kamaeva/faq +d294940 Merge branch 'main' into faq +b9f8ce5 added faq section +1a08f70 Merge pull request #93 from hexlet-rus/adaptive-landing +6422cb0 Merge branch 'main' into adaptive-landing +5ac9a15 Merge pull request #92 from svyatoslavxq/change-png-logo-to-svg +17a1307 fix links +3718da1 Revert "Revert "added adaptive for landing page"" +a624358 style: change png logo to svg +65e06fe Merge pull request #91 from userao/editing-dropout-button +cff9294 Update Profile.module.css +695a171 Merge pull request #88 from Wenn911/feature2 +19ff257 commented code deleted +7f6133f dropout button relocated +78db046 Update README.md +805eb49 Update release.yml +a3498e1 Merge pull request #86 from Hexlet/revert-65-adaptive-landing +e00035a Revert "added adaptive for landing page" +5088537 fix +b6b819a Merge pull request #85 from Hexlet/dependabot/npm_and_yarn/engine.io-6.2.1 +4da3840 Merge pull request #80 from Funkicide/add-confirmation +f9e6b87 fix deleted closing brace for tag +2d43fda Merge branch 'main' into add-confirmation +1bcc450 Bump engine.io from 6.2.0 to 6.2.1 +0d55193 Merge pull request #84 from Hexlet/dependabot/npm_and_yarn/glob-parent-and-webpack-cli/generators-5.1.2 +901e96c Merge pull request #83 from Hexlet/dependabot/npm_and_yarn/ejs-and-webpack-cli/generators-3.1.8 +979ada8 Merge pull request #82 from Hexlet/dependabot/npm_and_yarn/got-and-webpack-cli/generators--removed +9806d13 Merge pull request #81 from tigp/add-en-locales +ddf1176 Merge pull request #79 from kaamosdao/unify-modal-style +e1269b8 Merge pull request #76 from Hexlet/dependabot/npm_and_yarn/loader-utils-1.4.2 +3c49628 Merge pull request #70 from userao/fixing-dropout-button +cfec702 Merge branch 'main' into fixing-dropout-button +c4f28e1 Bump glob-parent and @webpack-cli/generators +a3c3ce7 Bump ejs and @webpack-cli/generators +671750b Bump got and @webpack-cli/generators +d3b9cc8 Merge pull request #69 from LarendsD/websocket +bb8066d Merge pull request #65 from Asya-Kamaeva/adaptive-landing +8ff3d8e Merge pull request #64 from Wenn911/feature +b317140 Merge pull request #63 from kaamosdao/auth-interfaces-error-handling +a3baddd Merge pull request #58 from Difuster/dif_br +0fb9536 Merge pull request #77 from kaamosdao/readme-update +5a5834d Merge pull request #78 from kaamosdao/fix-iframe-button +b7f5005 added english locales +306a2fe fixed newReplButton +6b151de fixed newReplBtn +4363130 Merge branch 'Hexlet:main' into dif_br +2d7e235 add confirmation on snippet deletion +cdc9f58 change signup modal style +ab10b2d change signin modal style +b102c65 change info modal style +e0b1176 make runit logo link open new tab on click +d187ded Bump loader-utils from 1.4.1 to 1.4.2 +e17145d snippet cards no longer cover dropout button +b9b2eab add make build to readme +167cb63 websockets backend +7fec682 revert release drop migrations +5483d06 update prod db +a0f2f1b Delete PageNotFound.jsx +ebefc53 fix footer & add footer in landing page +a62300b fixed mistake in last commit +fdcc6d0 added adaptive for landing page +75bd4f4 change logo & delete burger menu +8e798b3 Merge branch 'main' into dif_br +2df16e7 Merge pull request #56 from artem-mar/rename-snippet +e436c64 add min-height to form-group signIn page +f52990b add min-height to form-group +9a9cfb6 Merge pull request #62 from gogoiakash2311/update-footer +e8193bb deleted footer on about page +e7c9088 redesigned the ability to rename/delete snippets +6a5d0c8 added snippets slice +f389762 Merge pull request #59 from kaamosdao/unified-style +7424ae7 change background, hover havbar button, bg-color profile page +a6a8175 change background, text color footer +5bf4817 change background, text color Navbar +ead9675 change background, text color About page +ec2fd4c checked translations in jsx +2e979a5 added renameSnippet func to snippetProvider.jsx +7a73272 added snippet renaming handler to Profile.jsx +ff43e9f added RenameRepl modal +ab844e1 change signUp form footer link color +77dd7be change signUp bg-color, text color, :active, :focus inputs +6726ef1 change bg-color, text-white signUp card +20cdd17 change signUp bg-color, fluid container +e18f1e4 change signIn inputs :acive and :focus +1d23d4f change signIn inputs bg-color, text color +6ccf502 change signin page container bg-color, change to fluid, add margin bottom +51c7d25 change containers bg-color, change margin to padding +dc12bea add border to editor, terminal +4572b92 change background color, hover/disabled shareButton +e5dfd13 change background color runButton +bdafc8b add style.css import +cbc252b Merge pull request #54 from Asya-Kamaeva/adding-footer +2bbc8c4 Merge pull request #53 from LarendsD/database +4804664 Merge pull request #45 from Hexlet/dependabot/npm_and_yarn/loader-utils-1.4.1 +c43b4c1 Merge pull request #44 from LarendsD/main +ed5692a Merge pull request #42 from Funkicide/replace-tags +af91f5d added footer +6c31a04 fix postgres +34f461a Bump loader-utils from 1.4.0 to 1.4.1 +d9e9bb1 fix tests +c8ae37c delete useless middleware +fe31d94 add redirections to https +143a4ef [#40] Replace tags on landing +045cf6f Merge pull request #36 from artem-mar/changeNameField +db2b648 rename 'name' to 'login' in migrations +0c0eb32 Merge pull request #32 from Takaiva/delete-snippet +ed9bc32 remove useless dep #25 +e3aee67 Merge pull request #30 from sleepy-corpse/auth-bar +5643fc5 rename Name field to Login +df9054d update name validation (backend) +2b0c054 update texts +7ace323 Merge branch 'main' into auth-bar +f4b813d add AuthBanner component and auth context usage +3e05134 remove useless get query, filter snippets directly #25 +009c62f Merge pull request #35 from LarendsD/main +a00eef0 Merge pull request #34 from Funkicide/add-translations +20f763d Merge pull request #33 from sleepy-corpse/name-generator +9a525d0 delete and fix some files +792de26 add e2e tests +88c0b9a [#29] Add translations to the editor +8a97ae2 Add snippet name generation +a20e0f9 fix yandex verification +2e04608 fix favicon +7282973 add favicon +f31c646 add a snippet deletion handler #25 +9a4a1c6 add a notification when registering if a user already exists #25 +4e604a8 add a snippet deletion function to provider #25 +d774b14 add yandex verification +0a42e3f Require authorization for editing(fix) +32ea3d8 Require authorization for editing +f476692 Merge pull request #21 from Hexlet/landing-route +6f4fbe5 fix link +8b0bccb fix snippet link +34dfa91 fix links +b4e1505 reverse doctype +ff04077 fix link +c61836f add landing routing +e9720cd use heroku email from secrets +7cd3b49 update release.yml action +5673c21 update deploy aciton +17b8ea8 Merge pull request #17 from Takaiva/share-embed +6bcb6c3 resolve conficts #9 +ac404ba add clipboard to copy on button click #9 +39a7589 update snippet provider, add methods for embedding components #9 +8663a69 add local storage clearing when access token expired #9 +1b2fd48 update navbar #9 +434771a update locales for new components #9 +872f9b3 add new embedPagePath, remove useless /repls page path #9 +b6e9414 remove navbar from root index.jsx to be able to not render it on certain pages; add main layout outler to avoid forcefully render navbar for embed snippet component; add private route to restrict access to profile #9 +eeed388 add styles for modals #9 +950c3d1 update main modal component due to changes #9 +2ef8518 add new universal component for sharing and saving snippets, simplifying the logic #9 +d71a08a make this modal usefull only for "New Repl" button on profile page #9 +c56ead5 update signIn/signUp modals to not fource user to create new repl after authorizing #9 +c9f3233 add main component for snippet embedding #9 +4ba5335 add run button component for embed version of snippet without updating the source code on click #9 +7df945b add word breaking logic to editor, especially usefull for embed version of editor #9 +57e6962 add styles for run button for embed snippet frame #9 +cad18db update SHARE button logic, add various behaviour based on user login status and search params #9 +5a1c285 add redirect to profile when authorize with separate signIn/signUp pages #9 +7fbf1c2 update profile page and styles for profile #9 +247fca9 Merge pull request #16 from Pavel-nk95/redoing-the-landing +8a49072 Merge pull request #15 from LarendsD/main +7f83426 routes changed +d5364ac code correction based on comments +785cdae fix logout button +b26b113 Merge pull request #14 from Takaiva/profile-page +05b2fd1 small fixes #4 +7d6b176 made prettier #4 +53bd445 update tests #4 +d62b7e9 add checking login status with localStorage as well to avoid navbar components re-rendrs #4 +72a8a65 update texts #4 +1d7cc69 add routing to profile when click on My Repls in bar menu #4 +b8c36b5 update validation rules for snippet name and update text through i18n #4 +9b5b377 update text through i18n #4 +2b6c797 add profile page and styles #4 +f1d2bfa Create LICENSE.md +adcc9d4 Delete LICENCE.md +40ef39d Create LICENCE.md +da8a9af Merge pull request #11 from Pavel-nk95/redoing-the-landing +d926cf7 Merge pull request #10 from Takaiva/snippet/modal +bbbe8b6 small fixes #5 +df4a7f6 add correctly moving to a page with save snippet even if click outside the modal window fix #5 +3630f52 make lint #5 +822dab5 complete task +ee41bc3 add buffer #5 +22d67ee add posibility to use optionally "code" or "name" keys when creating snippet while making post query #5 +680fd9a add code loading from snippet when snippet search params are present #5 +d654754 update routes with more info #5 +a7e1607 add snippet provider wrapper to entire app, add main modal component #5 +fe523ab add modal reducer to redux store #5 +e527337 update locales due to modal components #5 +57632c4 update auth provider #5 +2cd6c0c add snippet provider component as a context api unified interface for operating on snippets #5 +88d25c4 render 'My Repls' component in navbar menu only when user is logged in #5 +6f84e89 restrict xterm to overflow; fix ui making editor and output terminal look symmetrical #5 +2d5710d add share button opening modals, add correct snippet id initialization when component mounts, add snippet code updating after every run if it has been saved #5 +747e059 add style for two main buttons: run and share #5 +468b087 add encoded link for every repl saved in profile #5 +6a95cd8 update texts, add login status updating with auth provider #5 +24a6f87 added modal slice with modal components for sharing tool #5 +f5cc285 initial commit diff --git a/frontend/src/components/Modals/SignIn.jsx b/frontend/src/components/Modals/SignIn.jsx index f5b61fce..9abd1eaa 100644 --- a/frontend/src/components/Modals/SignIn.jsx +++ b/frontend/src/components/Modals/SignIn.jsx @@ -2,13 +2,21 @@ import Button from 'react-bootstrap/Button'; import Modal from 'react-bootstrap/Modal'; import { useTranslation } from 'react-i18next'; import { useDispatch } from 'react-redux'; +import { useNavigate } from 'react-router'; +import routes from '../../routes'; import { actions } from '../../slices'; import SignInForm from '../Forms/SignInForm'; function SignInModal({ handleClose, isOpen }) { const dispatch = useDispatch(); const { t } = useTranslation(); + const navigate = useNavigate(); + + const handleSuccess = () => { + handleClose(); + navigate(routes.myProfilePagePath()); + }; return ( @@ -18,7 +26,7 @@ function SignInModal({ handleClose, isOpen }) { - +
{t('signIn.footer.signUpHeader')} diff --git a/frontend/src/components/Navigation/GuestMenu.jsx b/frontend/src/components/Navigation/GuestMenu.jsx index 9dccdc5e..0d33090d 100644 --- a/frontend/src/components/Navigation/GuestMenu.jsx +++ b/frontend/src/components/Navigation/GuestMenu.jsx @@ -15,6 +15,10 @@ function GuestMenu() { dispatch(actions.openModal({ type: 'newSnippet' })); }; + const handleSignInButton = () => { + dispatch(actions.openModal({ type: 'signingIn' })); + }; + const handleRegButton = () => { dispatch(actions.openModal({ type: 'signingUp' })); }; @@ -38,6 +42,12 @@ function GuestMenu() { +
  • + + {t('signIn.signInButton')} + +
  • +
  • {t('signUp.registerButton')} diff --git a/frontend/src/providers/AuthProvider.jsx b/frontend/src/providers/AuthProvider.jsx index 24d99995..874a0c72 100644 --- a/frontend/src/providers/AuthProvider.jsx +++ b/frontend/src/providers/AuthProvider.jsx @@ -38,6 +38,7 @@ function AuthProvider({ children }) { }, signIn: () => { + localStorage.removeItem('guestUserData'); dispatch(fetchUserData()) .unwrap() .catch((serializedError) => {