feat: add mobile bottom nav, compact navbar search, update vite proxy to 8002

This commit is contained in:
chunyu
2026-08-17 08:37:51 +08:00
parent 43c941fa67
commit a14badf8f7
16 changed files with 3014 additions and 61 deletions
+4 -5
View File
@@ -15,9 +15,8 @@ export default defineConfig({
],
proxy: {
'/api': {
target: 'http://127.0.0.1:8000',
target: 'http://127.0.0.1:8002',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
bypass: (req) => {
if (req.headers.accept?.includes('text/html')) {
return req.url;
@@ -25,16 +24,16 @@ export default defineConfig({
},
},
'/ws': {
target: 'ws://127.0.0.1:8000',
target: 'ws://127.0.0.1:8002',
ws: true,
rewrite: (path) => path.replace(/^\/ws/, ''),
},
'/media/': {
target: 'http://127.0.0.1:8000',
target: 'http://127.0.0.1:8002',
changeOrigin: true,
},
'/user': {
target: 'http://127.0.0.1:8000',
target: 'http://127.0.0.1:8002',
changeOrigin: true,
bypass: (req) => {
if (req.headers.accept?.includes('text/html')) {