import { BrowserRouter, Navigate, Route, Routes } from "react-router-dom"; import { Provider } from "react-redux"; import { store } from "@/store"; import { ChangePasswordPage, ForgotPasswordPage, LoginPage, RegisterPage, ResetPasswordPage, TwoFactorPage, VerifyEmailPage, } from "@/app/auth"; import { RootLayout } from "@/app/layout"; import { MePage, MeLayout } from "@/app/me"; import { ChannelLayout } from "@/app/channel"; import { ProjectLayout, ReposPage, IssuesPage, NewIssuePage, SkillsPage, BoardPage, ChannelPage, RepoDetailPage, CommitDetailPage, IssueDetailPage, SkillDetailPage, PullRequestDetailPage, ProjectSettingsLayout, GeneralSettings, MembersSettings, AccessSettings, LabelsSettings, BillingSettings, } from "@/app/project"; import { ChatPage } from "@/app/chat"; import CodePage from "@/app/project/repo/code"; import CommitsPage from "@/app/project/repo/commits"; import PullsPage from "@/app/project/repo/pulls"; import BranchesPage from "@/app/project/repo/branches"; import TagsPage from "@/app/project/repo/tags"; import RepoSettingsLayout from "@/app/project/repo/settings/RepoSettingsLayout"; import RepoGeneralSettings from "@/app/project/repo/settings/GeneralSettings"; import BranchProtectionSettings from "@/app/project/repo/settings/BranchProtectionSettings"; import TreePage from "@/app/project/repo/tree"; import { RedirectIfAuth, RequireAuth } from "@/components/auth"; import { SettingsLayout, MyAccountPage, BillingPage, AppearancePage, NotificationsPage, PasswordPage, EmailPage, SshKeysPage, AccessKeysPage, PushSettingsPage, } from "@/app/settings"; export default function App() { return ( }> } /> } /> } /> } /> } /> } /> } /> }> }> }> } /> } /> } /> } /> } /> } /> } /> } /> }> } /> } /> } /> } /> } /> } /> } /> } /> } /> }> {/* Channel-based routes if any */} }> } /> } /> } /> } /> } /> } /> } /> }> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> }> }> } /> } /> } /> } /> } /> } /> } /> } /> }> } /> } /> } /> } /> } /> ); }