feat: Add repository status and update functionality
- Add ORIGINAL_REPO_URL environment variable for repository updates - Create RepoStatusButton component with status display and update functionality - Enhance GitManager with fullUpdate() method (git pull + npm install + build) - Add fullUpdateRepo API endpoint for complete repository updates - Display repository status with visual indicators (up-to-date, updates available, etc.) - Show real-time progress during update process - Add manual refresh capability for repository status - Integrate repository status component into main page
This commit is contained in:
@@ -41,6 +41,13 @@ export const scriptsRouter = createTRPCRouter({
|
||||
return result;
|
||||
}),
|
||||
|
||||
// Full update repository (git pull, npm install, build)
|
||||
fullUpdateRepo: publicProcedure
|
||||
.mutation(async () => {
|
||||
const result = await gitManager.fullUpdate();
|
||||
return result;
|
||||
}),
|
||||
|
||||
// Get script content for viewing
|
||||
getScriptContent: publicProcedure
|
||||
.input(z.object({ path: z.string() }))
|
||||
|
||||
Reference in New Issue
Block a user