Website Structure

This commit is contained in:
supalerk-ar66 2026-01-13 10:46:40 +07:00
parent 62812f2090
commit 71f0676a62
22365 changed files with 4265753 additions and 791 deletions

View file

@ -0,0 +1,25 @@
import { PluginStore } from '../plugins';
import { outputHandler, SimpleGitExecutor, SimpleGitTask } from '../types';
import { Scheduler } from './scheduler';
export declare class GitExecutorChain implements SimpleGitExecutor {
private _executor;
private _scheduler;
private _plugins;
private _chain;
private _queue;
private _cwd;
get cwd(): string;
set cwd(cwd: string);
get env(): import("../types").GitExecutorEnv;
get outputHandler(): outputHandler | undefined;
constructor(_executor: SimpleGitExecutor, _scheduler: Scheduler, _plugins: PluginStore);
chain(): this;
push<R>(task: SimpleGitTask<R>): Promise<R>;
private attemptTask;
private onFatalException;
private attemptRemoteTask;
private attemptEmptyTask;
private handleTaskData;
private gitResponse;
private _beforeSpawn;
}

View file

@ -0,0 +1,14 @@
import type { PluginStore } from '../plugins';
import type { GitExecutorEnv, outputHandler, SimpleGitExecutor, SimpleGitTask } from '../types';
import { Scheduler } from './scheduler';
export declare class GitExecutor implements SimpleGitExecutor {
cwd: string;
private _scheduler;
private _plugins;
private _chain;
env: GitExecutorEnv;
outputHandler?: outputHandler;
constructor(cwd: string, _scheduler: Scheduler, _plugins: PluginStore);
chain(): SimpleGitExecutor;
push<R>(task: SimpleGitTask<R>): Promise<R>;
}

View file

@ -0,0 +1,2 @@
import { SimpleGit, SimpleGitOptions } from '../../../typings';
export declare function gitP(...args: [] | [string] | [Partial<SimpleGitOptions>] | [string, Partial<SimpleGitOptions>]): SimpleGit;

View file

@ -0,0 +1,11 @@
type ScheduleCompleteCallback = () => void;
export declare class Scheduler {
private concurrency;
private logger;
private pending;
private running;
constructor(concurrency?: number);
private schedule;
next(): Promise<ScheduleCompleteCallback>;
}
export {};

View file

@ -0,0 +1,23 @@
import { SimpleGitTask } from '../types';
import { GitError } from '../errors/git-error';
import { OutputLogger } from '../git-logger';
type AnySimpleGitTask = SimpleGitTask<any>;
type TaskInProgress = {
name: string;
logger: OutputLogger;
task: AnySimpleGitTask;
};
export declare class TasksPendingQueue {
private logLabel;
private _queue;
constructor(logLabel?: string);
private withProgress;
private createProgress;
push(task: AnySimpleGitTask): TaskInProgress;
fatal(err: GitError): void;
complete(task: AnySimpleGitTask): void;
attempt(task: AnySimpleGitTask): TaskInProgress;
static getName(name?: string): string;
private static counter;
}
export {};