PR to merge update into next#8
Open
ThaNightHawk wants to merge 147 commits into
Open
Conversation
Frontpage, navbar, footer, half-finished profile-page Missing: Shop, Challenges + Challenge-selection, Leaderboard, Login-functionality, Settings-page, Patreon-features and so on
Removed: - Easy Renamed: - Medium => Normal - Extreme => Expert
Tested down to 1366x768 screensize on own work-laptop
Removing deprecated profile-directory. Contained the profile-page before adding server-side rendering to the meta-data, to allow for embeds on Discord and various platforms.
Added `needLogin` to allow for links in the navbar, that requires the user to be logged in, for them to show.
Updated the upload-methods to fit all screensizes properly, by using 50% on width for both methods, I did `max-width: 450px` before 🤡
Leaderboard is *finished*, minor tweaks can be done to design, but right now it looks stable. Currently mocking the API with mock-data from the /api/-endpoints on frontend. Needs to be adapted to final API when CORS is fixed on that.
…est/SaberQuest-frontend into dev/rewrite_reactnextjs
Changed the rank shown on leaderboard to match the users actual rank, and not index of the array for the shown page of the leaderboard. Also fixes rank-colors.
Storm lost avatar-privileges. Fixing null-check on user-avatar on leaderboard. Returns /Logo.svg if user-avatar is null.
Finished challenges-page design. Currently not using live-data, but just HTML. - Removed Mock-API.
added: Middleware.ts Fixed an oversight in the Leaderboard-fetch, replaced Fetch with Axios, and listens to response-codes instead of the data returned.
…<img> to be <Image>-tags from NextJS - Temp replaced /profile/id with /profile/id/advanced to mock login.
…o changes and more.
Added an IMGTest endpoint on /profile, to test all borders - Added borders to player-PFP's, where visible, fake-auth in Middleware - Updated NavBar component to have a *somewhat* useable phone-menu but still need updates to it.
…, +Type refactoring, +Enums, +AES256 Encrypt JWT token on cookie creation. Removed fakeauth, we only use real auth RAAAAAAAAHHH (Updated Middleware, could probably be even better, idk rn?) - Implemented daily challenges-page with countdown until next set of challenges. - Enums added, no way???? - Refactored type interfaces to reuse types, instead of have copies of 3 user-types. Shop is broken. Missing logic to handle when a user tries to purchase + needs a redesign.
Shop is now added + Rarities-tags + Notification-system (Supports `success`, `error`, `warning` + timer.)
…Footer????, removed wrong "Session" import in Shop Updated the user-inventory to show item rarity, both in border, hover:background and in the name of the item. - Footer had something updated somewhere????? (Idk wtf is updated in it) - Updated type interface for Items to reflect added rarity-string
…abled **all** frontend caching, to allow the backend to handle that. Middleware updated to account for new authed page, Patreons can now select borders on the settings-page (Instantly updated throughout the site), Borders.ts-list added, containing all the current borders. Updated various pages to fix glitching effect not being removed, when the user deselect the glitched-border.
Fixed caching on leaderboard-page, to allow for new borders to be loaded on change. - Fixed border-clause on profile-menu - Added a reason as to why a user is not allowed to use a patreon-border, if they're not patreon. Profile-page sometimes doesn't render, when a user selects "Profile" from the profile-menu.
Added tabs + animations to the about-page, to minimize the length of the page. - Updated navbar styling
Updated the navbar to work for phones (99.9% of the cases), redid the phone menu for the user-menu, fixed centering on footer, updated leaderboard to be responsive in size. Updated minor things on the About-page
Added a complete list of challenges to /about, under the "Challenges"-tab. Redid color of "normal" difficulty, and redid some styling on the frontpage, to make it more useable on screen with scaled text
Updated shop to use the Leaderboard-template, so ensure uniform styling. - Crafting-page moved to the profile-menu as a sub-option
Fixed missing padding top/bottom
Feedback, Settings, Shop and About changes. Only missing profile now. - Added rarity-indicator to shop-items when in mobile-UI: https://i.imgur.com/IF2psXv.png
Profile now supports mobile.
Made the inventory-tab and completed challenges-tab have same styling, to keep a uniform design, and not have it change to random widths, depending on the content. (Idk why I did that in the first place, it's dumb)
Uses API_URL to correctly show images.
Now extends further back than the 10 latest challenges, by using the correct API endpoint. (Avoiding CORS by using server-side API made on the Frontend in this one :fear:)
NextJS made breaking changes in 14.2.5, causing the frontend to hot reload **constantly**. Given that I haven't fixed stuff, I'm currently downgrading the package until I have done so.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.