Skip to content

Commit

Permalink
Store, features, and overall project organization changes
Browse files Browse the repository at this point in the history
  • Loading branch information
caioricciuti committed Oct 31, 2024
1 parent 69aa6f7 commit 4cfb12f
Show file tree
Hide file tree
Showing 52 changed files with 1,562 additions and 826 deletions.
12 changes: 6 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Sidebar from "./components/Sidebar";
import Sidebar from "@/components/common/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 { ThemeProvider } from "@/components/common/theme-provider";
import AppInitializer from "@/components/common/AppInit";
import NotFound from "./pages/NotFound";
import { PrivateRoute } from "@/components/privateRoute"; // Import PrivateRoute
import Admin from "@/pages/admin/Admin";
import { AdminRoute } from "@/components/admin/adminRoute";
import { PrivateRoute } from "@/components/common/privateRoute"; // Import PrivateRoute
import Admin from "@/pages/Admin";
import { AdminRoute } from "@/features/admin/routes/adminRoute";

export default function App() {
return (
Expand Down
15 changes: 0 additions & 15 deletions src/components/admin/adminRoute.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useEffect, useState, ReactNode } from "react";
import Logo from "/logo.png";
import { MultiStepLoader as Loader } from "@/components/ui/multi-step-loader";


Expand All @@ -14,7 +13,7 @@ declare global {
};
}
}
import useAppStore from "@/store/appStore";
import useAppStore from "@/store";
import { toast } from "sonner";

const AppInitializer = ({ children }: { children: ReactNode }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const ConfirmationDialog: React.FC<ConfirmationDialogProps> = ({
</DialogTitle>
</div>
<DialogDescription className="text-gray-400">
{description}
<div dangerouslySetInnerHTML={{ __html: description }} />
</DialogDescription>
</DialogHeader>
<DialogFooter className="flex justify-end space-x-2 mt-6">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useEffect, useRef } from "react";
import { Link, useLocation, useNavigate } from "react-router-dom";
import { useTheme } from "@/components/theme-provider";
import { useTheme } from "@/components/common/theme-provider";
import {
SquareTerminal,
Github,
Expand Down Expand Up @@ -59,7 +59,7 @@ import {
} from "@/components/ui/tooltip";
import { Separator } from "@/components/ui/separator";
import Logo from "/logo.png";
import useAppStore from "@/store/appStore";
import useAppStore from "@/store";
import { Badge } from "@/components/ui/badge";

const commandsSheet = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Navigate } from "react-router-dom";
import useAppStore from "@/store/appStore";
import useAppStore from "@/store";
import { ReactNode } from "react";

export function PrivateRoute({ children }: { children: ReactNode }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";

import FilterComponent from "@/components/misc/FilterComponent";
import FilterComponent from "@/components/common/FilterComponent";

import {
ArrowDown,
Expand All @@ -56,7 +56,7 @@ import {
FilterX,
Info,
} from "lucide-react";
import DownloadDialog from "@/components/misc/DownloadDialog";
import DownloadDialog from "@/components/common/DownloadDialog";

interface TableProps<T extends RowData> {
result: {
Expand Down
File renamed without changes.
131 changes: 0 additions & 131 deletions src/components/tabs/HomeTab.tsx

This file was deleted.

94 changes: 0 additions & 94 deletions src/components/tabs/editor/SqlEditor.tsx

This file was deleted.

Loading

0 comments on commit 4cfb12f

Please sign in to comment.