Files
crawlab/frontend/crawlab-ui/typings/interfaces/models/git.d.ts
Marvin Zhang b5f10cb6a8 feat: add TypeScript interfaces for Vuex store modules
- Introduced new interfaces for various store modules including environment, file, git, layout, node, notification alerts, channels, requests, settings, plugins, projects, roles, schedules, spiders, systems, tags, tasks, tokens, and users.
- Each module includes state, getters, mutations, and actions definitions to enhance type safety and maintainability.
- Added utility interfaces for file handling and view-specific types for database, git, login, node, project, result, schedule, spider, task, and user.
- Improved overall structure and organization of TypeScript typings for better developer experience.
2025-09-12 14:57:42 +08:00

50 lines
940 B
TypeScript

export declare global {
interface GitChange {
path?: string;
name?: string;
is_dir?: boolean;
staging?: string;
worktree?: string;
extra?: string;
children?: GitChange[];
}
interface GitLog {
hash?: string;
msg?: string;
branch?: string;
author_name?: string;
author_email?: string;
timestamp?: string;
refs?: GitRef[];
}
interface GitRef {
type?: 'branch' | 'tag';
name?: string;
full_name?: string;
hash?: string;
timestamp?: string;
remote_track?: string;
}
interface GitDiff {
current_content?: string;
parent_content?: string;
}
interface Git extends BaseModel {
url?: string;
name?: string;
auth_type?: string;
username?: string;
password?: string;
current_branch?: string;
status?: GitStatus;
error?: string;
auto_pull?: boolean;
spiders?: Spider[];
clone_logs?: string[];
}
}