Skip to content

Commit 10bcb13

Browse files
committed
style: remove inline comments from JSX code
1 parent 7b4ad55 commit 10bcb13

File tree

1 file changed

+10
-27
lines changed

1 file changed

+10
-27
lines changed

src/App.jsx

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom' // React Router for client-side routing
2-
import { HelmetProvider } from 'react-helmet-async' // For managing document head tags and SEO
3-
import { AuthProvider } from './context/AuthContext' // Authentication state management
4-
import { ContentProvider } from './context/ContentContext' // Content data management
5-
import { TutorialProvider } from './context/TutorialContext' // Tutorial-specific state management
6-
import { ThemeProvider } from './context/ThemeContext' // Theme and UI appearance management
7-
import ErrorBoundary from './components/ErrorBoundary' // Error handling wrapper component
8-
import Header from './components/Header' // Site navigation header
9-
import Footer from './components/Footer' // Site footer
10-
import ProtectedRoute from './components/ProtectedRoute' // Route protection for authenticated users
1+
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
2+
import { HelmetProvider } from 'react-helmet-async'
3+
import { AuthProvider } from './context/AuthContext'
4+
import { ContentProvider } from './context/ContentContext'
5+
import { TutorialProvider } from './context/TutorialContext'
6+
import { ThemeProvider } from './context/ThemeContext'
7+
import ErrorBoundary from './components/ErrorBoundary'
8+
import Header from './components/Header'
9+
import Footer from './components/Footer'
10+
import ProtectedRoute from './components/ProtectedRoute'
1111
import GlobalSiteMeta from './components/GlobalSiteMeta'
1212
import Home from './pages/Home' // Landing/home page
1313
import Grundlagen from './pages/Grundlagen' // Linux basics page
@@ -19,24 +19,15 @@ import AdminDashboard from './pages/AdminDashboard' // Admin control panel
1919
function App() {
2020
return (
2121
<ErrorBoundary>
22-
// Global error boundary to catch rendering errors throughout the app
2322
<HelmetProvider>
24-
// Manages document head tags, meta information, and SEO
2523
<ThemeProvider>
26-
// Provides theme switching (light/dark mode) functionality
2724
<Router>
28-
// React Router for client-side navigation and route management
2925
<AuthProvider>
30-
// Handles user authentication, login/logout, and protected routes
3126
<ContentProvider>
32-
// Manages CMS content, site metadata, and dynamic pages
3327
<TutorialProvider>
34-
// Provides tutorial-specific state and CRUD operations
3528
<div className="min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800 transition-colors">
3629
<GlobalSiteMeta />
3730
<Routes>
38-
// Public Routes
39-
// Home page - main landing page with hero and tutorial sections
4031
<Route
4132
path="/"
4233
element={
@@ -47,7 +38,6 @@ function App() {
4738
</ErrorBoundary>
4839
}
4940
/>
50-
// Grundlagen page - Linux basics and fundamentals
5141
<Route
5242
path="/grundlagen"
5343
element={
@@ -58,7 +48,6 @@ function App() {
5848
</ErrorBoundary>
5949
}
6050
/>
61-
// Tutorial detail page - individual tutorial view with content
6251
<Route
6352
path="/tutorials/:id"
6453
element={
@@ -69,7 +58,6 @@ function App() {
6958
</ErrorBoundary>
7059
}
7160
/>
72-
// Post detail page - individual blog post/article view
7361
<Route
7462
path="/pages/:pageSlug/posts/:postSlug"
7563
element={
@@ -80,7 +68,6 @@ function App() {
8068
</ErrorBoundary>
8169
}
8270
/>
83-
// Dynamic page - CMS-driven pages with customizable content
8471
<Route
8572
path="/pages/:slug"
8673
element={
@@ -91,10 +78,7 @@ function App() {
9178
</ErrorBoundary>
9279
}
9380
/>
94-
// Login page - user authentication
9581
<Route path="/login" element={<ErrorBoundary><Login /></ErrorBoundary>} />
96-
// Protected Routes
97-
// Admin dashboard - requires authentication, manages content
9882
<Route
9983
path="/admin"
10084
element={
@@ -105,7 +89,6 @@ function App() {
10589
</ProtectedRoute>
10690
}
10791
/>
108-
// Fallback Route - catches all unmatched paths
10992
<Route
11093
path="*"
11194
element={

0 commit comments

Comments
 (0)