- Added a loading component to the Join.svelte form to show a loading message when the invite code is being submitted.
- Updated the addCode function to set the loading variable to true before making the API call and set it back to false when the API call is completed.
- Added a msg variable to store any error messages returned by the API call and display them to the user.
- Updated the submit button to show a loading message when the loading variable is true and disable the button when there is no invite code.
- Added a new <aside> element to display the error message if there is one.
- Added a style tag to set the overflow-wrap style property for the <aside> element.
fix: Fix SelectRoom style issue
- Updated the SelectRoom.svelte component to use the variant-ghost class for the <select> element and set the background color and text color based on whether the room is selected or not.
fix: Update SelectServer component
- Updated the SelectServer.svelte component to use the variant-ghost class for the <select> element and added a margin to the component.
- Updated the add server button to use the variant-ghost class and added some margin to the button.
feat: Add loading component
- Added a new loading component to show a loading message and a progress indicator when the page is loading.
refactor: Update prover.ts
- Updated the logging in the genProof function in prover.ts to use console.info instead of console.debug to improve visibility of proof generation.
fix: Update postAuth function
- Added a new postAuth function to make a POST request with basic authentication to the API.
- Updated the createInvite function in server.ts to use the postAuth function to create invite codes with basic authentication.
feat: Add invite code functionality
- Added new types for invite codes and