Skip to content

Commit 05db099

Browse files
committed
feat: migrate React frontend from core repository
Migrate all React components, pages, and assets from the core repository to webapp. The webapp now serves the complete frontend while proxying API requests to the core backend. Changes: - Migrated 6 React components (Dashboard, Repository, RepositoryListItem, PullRequest, PullRequestView, Logs) - Updated all API calls from /v1/* to /api/v1/* to work with Express proxy - Created authentication hook (useAuth) and protected routes - Added page components for routing (Dashboard, Repository, PullRequest, Admin) - Configured CSS modules support in Vite - Copied static assets (images, styles) from core - Updated routing in App.jsx with protected routes - Enhanced Header with authentication UI Architecture: - Frontend calls /api/v1/* endpoints - Express proxy strips /api prefix and forwards to core as /v1/* - Core backend remains completely unchanged - Cookie-based authentication handled by proxy layer All checks passing: linting, formatting, type checking, and build.
1 parent ea9e0a4 commit 05db099

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7320
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Dependencies
22
node_modules
3-
package-lock.json
43

54
# Build output
65
dist

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
name="description"
88
content="Worlddriven admin interface for managing repositories and configurations"
99
/>
10+
<link rel="icon" href="/images/favicon-32x32.png" />
1011
<title>Worlddriven Admin</title>
12+
<link rel="stylesheet" href="/style.css" />
1113
<link rel="stylesheet" href="/theme.css" />
1214
</head>
1315
<body>

0 commit comments

Comments
 (0)