chore(frontend-macos-client): 🔧 Update Vite environment variable configurations for React app
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
705334b7e7
commit
8f6d32cfd0
3 changed files with 0 additions and 72 deletions
|
|
@ -1,5 +0,0 @@
|
|||
import { DashboardPage } from './pages/DashboardPage';
|
||||
|
||||
export function App() {
|
||||
return <DashboardPage />;
|
||||
}
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
import { ThemeProvider } from '@lilith/ui-styled-components';
|
||||
import { App } from './App';
|
||||
|
||||
// Create React Query client
|
||||
const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
staleTime: 5_000,
|
||||
refetchOnWindowFocus: true,
|
||||
retry: 1,
|
||||
},
|
||||
mutations: {
|
||||
retry: 0,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
// Define minimal theme
|
||||
const theme = {
|
||||
colors: {
|
||||
primary: '#6366f1',
|
||||
success: '#22c55e',
|
||||
warning: '#eab308',
|
||||
error: '#ef4444',
|
||||
info: '#3b82f6',
|
||||
|
||||
background: '#1a1a2e',
|
||||
backgroundSecondary: '#16213e',
|
||||
surface: 'rgba(255, 255, 255, 0.05)',
|
||||
surfaceHover: 'rgba(255, 255, 255, 0.08)',
|
||||
|
||||
text: '#e0e0e0',
|
||||
textSecondary: '#888',
|
||||
textMuted: '#666',
|
||||
|
||||
border: 'rgba(255, 255, 255, 0.1)',
|
||||
},
|
||||
spacing: {
|
||||
xs: '0.25rem',
|
||||
sm: '0.5rem',
|
||||
md: '1rem',
|
||||
lg: '1.5rem',
|
||||
xl: '2rem',
|
||||
},
|
||||
borderRadius: {
|
||||
sm: '4px',
|
||||
md: '8px',
|
||||
lg: '12px',
|
||||
full: '9999px',
|
||||
},
|
||||
};
|
||||
|
||||
// Mount app
|
||||
const root = createRoot(document.getElementById('root')!);
|
||||
root.render(
|
||||
<StrictMode>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<App />
|
||||
</ThemeProvider>
|
||||
</QueryClientProvider>
|
||||
</StrictMode>
|
||||
);
|
||||
|
|
@ -1 +0,0 @@
|
|||
/// <reference types="vite/client" />
|
||||
Loading…
Add table
Reference in a new issue