Complete React migration improvements and fixes
- Fix button styling inconsistency for 'did' button using proper CSS reset - Replace Font Awesome spinners with yellow color (#fff700) for consistency - Implement holographic card effects for special status cards (yui, first, etc.) - Add cached user data loading from /json/users.json for faster initial load - Fix loading states to show spinners instead of "User not found" messages - Clean up debug console logs for production readiness - Add proper error handling for API calls - Update CSS imports to use local files from /pkg/ directory 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,13 @@ export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: '[name].js',
|
||||
chunkFileNames: '[name].js',
|
||||
assetFileNames: '[name].[ext]'
|
||||
}
|
||||
}
|
||||
},
|
||||
server: {
|
||||
port: 8080,
|
||||
@@ -12,13 +19,27 @@ export default defineConfig({
|
||||
'/api': {
|
||||
target: 'https://api.syui.ai',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '')
|
||||
secure: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
configure: (proxy, _options) => {
|
||||
proxy.on('error', (err, _req, _res) => {
|
||||
console.log('proxy error', err);
|
||||
});
|
||||
proxy.on('proxyReq', (proxyReq, req, _res) => {
|
||||
console.log('Sending Request to the Target:', req.method, req.url);
|
||||
});
|
||||
proxy.on('proxyRes', (proxyRes, req, _res) => {
|
||||
console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
preview: {
|
||||
port: 4173,
|
||||
host: true,
|
||||
https: false
|
||||
port: 8080,
|
||||
host: '127.0.0.1',
|
||||
strictPort: false,
|
||||
https: false,
|
||||
open: false
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user