Signup/Login + styling adjustments
- Modified SearchBar styling - Modified TopBar to display blank circle if the user has no networks (previously missing image icon) - Refactored Login into AuthPage.js - AuthPage contains a tab selector for switching between Signup and Login - Both Login/Signup send the request and either receive an auth_token or an error message - If auth_token, user will be logged in as usual, in both cases - Signup validates user input before sending request - Added /signup target in vite config file
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Socket from "/_/code/ws/Socket.js"
|
||||
import "./Home/Home.js"
|
||||
import "./Home/Login.js"
|
||||
import "./Home/AuthPage/AuthPage.js"
|
||||
import "./Home/ConnectionError.js"
|
||||
import util from "./util.js"
|
||||
|
||||
@@ -155,7 +155,7 @@ let Global = class {
|
||||
|
||||
this.getProfile().then(async (status) => {
|
||||
if (status === 401) {
|
||||
Login()
|
||||
AuthPage()
|
||||
} else if(status === 500) {
|
||||
ConnectionError()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user