Skip to content

Commit

Permalink
Merge pull request #28 from caioricciuti/V1.5
Browse files Browse the repository at this point in the history
Release V1.5
  • Loading branch information
caioricciuti authored Oct 12, 2024
2 parents 2b1f840 + 4959c31 commit 151828d
Show file tree
Hide file tree
Showing 121 changed files with 13,377 additions and 5,422 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ dist-ssr


# Remove some things for docker-compose
.clickhouse_local_data
.clickhouse_local_data

4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ COPY package*.json ./
# Install dependencies
RUN npm install

# Run browser list update
RUN npx update-browserslist-db@latest


# Bundle app source inside Docker image
COPY . .

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.png" />
<link rel="icon" type="image/svg+xml" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ch-ui</title>
<title>CH-UI - Data is better when we see it!</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
3,385 changes: 2,542 additions & 843 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,32 @@
},
"dependencies": {
"@clickhouse/client-web": "^1.0.1",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^3.9.0",
"@monaco-editor/react": "^4.6.0",
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-context-menu": "^2.1.5",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-navigation-menu": "^1.2.1",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"@tanstack/react-table": "^8.20.5",
"@tanstack/react-virtual": "^3.10.8",
"ag-grid-community": "^31.3.1",
"ag-grid-react": "^31.3.1",
"class-variance-authority": "^0.7.0",
Expand All @@ -37,16 +47,21 @@
"framer-motion": "^11.1.7",
"lucide-react": "^0.368.0",
"monaco-editor": "^0.48.0",
"next-themes": "^0.3.0",
"papaparse": "^5.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-resizable-panels": "^2.0.17",
"react-router-dom": "^6.23.0",
"react-tabs": "^6.0.2",
"recharts": "^2.12.7",
"sonner": "^1.4.41",
"sql-formatter": "^15.3.1",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"vaul": "^0.9.0"
"vaul": "^0.9.0",
"zod": "^3.23.8",
"zustand": "^5.0.0-rc.2"
},
"devDependencies": {
"@types/react": "^18.2.66",
Expand Down
Binary file added public/logo.old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/vite.png
Binary file not shown.
64 changes: 0 additions & 64 deletions src/App.jsx

This file was deleted.

43 changes: 43 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Sidebar from "./components/Sidebar";
import HomePage from "@/pages/Home";
import MetricsPage from "@/pages/Metrics";
import SettingsPage from "@/pages/Settings";
import { ThemeProvider } from "@/components/theme-provider";
import AppInitializer from "@/components/AppInit";
import NotFound from "./pages/NotFound";
import { PrivateRoute } from "@/components/privateRoute"; // Import PrivateRoute

export default function App() {
return (
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
<Router>
<AppInitializer>
<div className="flex h-screen overflow-hidden">
<Sidebar />
<Routes>
<Route
path="/"
element={
<PrivateRoute>
<HomePage />
</PrivateRoute>
}
/>
<Route
path="/metrics"
element={
<PrivateRoute>
<MetricsPage />
</PrivateRoute>
}
/>
<Route path="/settings" element={<SettingsPage />} />
<Route path="*" element={<NotFound />} />
</Routes>
</div>
</AppInitializer>
</Router>
</ThemeProvider>
);
}
80 changes: 0 additions & 80 deletions src/TabContents/HomeTabContent.jsx

This file was deleted.

Loading

0 comments on commit 151828d

Please sign in to comment.