processing / p5.js-web-editor

The p5.js Editor is a website for creating p5.js sketches, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! You can create, share, or remix p5.js sketches without needing to download or configure anything.
https://editor.p5js.org
GNU Lesser General Public License v2.1
1.3k stars 1.27k forks source link

Removed redundant redirects between client and server #2993

Closed Mubashirshariq closed 2 weeks ago

Mubashirshariq commented 5 months ago

Fixes #2992

Changes: Server Side: Made changes on the server: Redirected "/sketches" and "/assets" to URLs with the username. Also, redirected "/reset-password" and "/reset-password/:reset_password_token" to "/account" if the user is logged in. client : Made changes on the client: Removed all Higher-Order Component (HOC) auth checks from routes.jsx, deleted createRedirectWithUsername component, and removed auth.js file.

I have verified that this pull request:

Mubashirshariq commented 5 months ago

@lindapaiste plz review this PR ,i have made the proposed changes.

Mubashirshariq commented 1 month ago

@raclim could you please reveiw this PR since it has been open for a very long time

raclim commented 3 weeks ago

@Mubashirshariq Sure, I'm sorry that it took some time! Would you be able to resolve some of the merge conflicts here first?

Mubashirshariq commented 3 weeks ago

@raclim sure will do that

Mubashirshariq commented 3 weeks ago

@raclim done with resolving conflicts