feat: add repository management dialogs and store functionality

- Implement CreateRepoDialog for creating new repositories with form validation.
- Implement EditRepoDialog for editing existing repository details.
- Implement SyncRepoDialog for syncing repositories with Gitea, including repository creation if necessary.
- Implement WorkspaceDetailDialog for managing workspace links and actions.
- Enhance the repo store with new state management for repository actions, including creating, editing, and syncing repositories.
- Add build configuration utilities for repository synchronization.
- Create a new page for repository management, integrating all dialogs and functionalities.
- Add login route for authentication.
This commit is contained in:
2026-02-25 01:02:55 +08:00
parent f4643464ba
commit 7ec6428643
32 changed files with 3303 additions and 71 deletions

View File

@@ -0,0 +1,13 @@
import { z } from 'zod';
export const giteaConfigSchema = z.object({
GITEA_TOKEN: z.string().min(1, 'Gitea Token is required'),
GITEA_URL: z.url('Must be a valid URL'),
});
export type GiteaConfig = z.infer<typeof giteaConfigSchema>;
export const defaultGiteaConfig: GiteaConfig = {
GITEA_TOKEN: '',
GITEA_URL: 'https://git.xiongxiao.me',
};