- Added handler for editing bio to handlers.js - Added openProfile() and closeProfile() buttons in AppWindowContainer (Profile page is global) - Added Logout and Profile functionality to Sidebar.js - SidebarItem(text).onClick() fires twice, unable to resolve - Adjust Login page styling - Added onLogout() to index.js (removes auth_token) - Added Profile.js, displays user's profile picture (placeholder), name, and bio. User can edit bio. - Added removeAuthToken() to util.js - Added /signout to vite config
51 lines
1.0 KiB
TypeScript
51 lines
1.0 KiB
TypeScript
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
root: './src',
|
|
build: {
|
|
outDir: '../dist',
|
|
minify: false,
|
|
emptyOutDir: true,
|
|
sourcemap: true,
|
|
target: 'esnext' // modern version of browsers, allows top-level await
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/ws": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true,
|
|
ws: true
|
|
},
|
|
"/login": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/signup": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/signout": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/profile": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/api": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
},
|
|
"/db": {
|
|
target: "http://localhost:10002",
|
|
changeOrigin: true
|
|
}
|
|
},
|
|
host: true,
|
|
allowedHosts: ['sam.local'],
|
|
},
|
|
esbuild: {
|
|
keepNames: true
|
|
}
|
|
});
|