feat(web): scaffold Vue 3 + Vite + TypeScript project with Element Plus

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
dailz
2026-04-16 22:44:40 +08:00
parent 6a7bde4801
commit 01a1119d13
18 changed files with 2510 additions and 0 deletions

75
web/src/types/jobs.ts Normal file
View File

@@ -0,0 +1,75 @@
export interface ApiResponse<T> {
success: boolean
data?: T
error?: string
}
export interface SubmitJobRequest {
script: string
partition?: string
qos?: string
cpus?: number
memory?: string
time_limit?: string
job_name?: string
environment?: Record<string, string>
work_dir?: string
}
export interface JobResponse {
job_id?: number
name?: string
job_state?: string[]
state_reason?: string
partition?: string
qos?: string
priority?: number | null
time_limit?: string
account?: string
user?: string
cluster?: string
cpus?: number | null
tasks?: number | null
node_count?: number | null
nodes?: string
batch_host?: string
submit_time?: number | null
start_time?: number | null
end_time?: number | null
exit_code?: number | null
standard_output?: string
standard_error?: string
standard_input?: string
working_directory?: string
command?: string
array_job_id?: number | null
array_task_id?: number | null
}
export interface JobListResponse {
jobs?: JobResponse[]
total?: number
page?: number
page_size?: number
}
export interface JobHistoryParams {
users?: string
start_time?: string
end_time?: string
account?: string
partition?: string
state?: string
job_name?: string
submit_time?: string
cluster?: string
qos?: string
constraints?: string
exit_code?: string
node?: string
reservation?: string
groups?: string
wckey?: string
page?: number
page_size?: number
}