Initial read-only ComfyUI jobs portal
Deploy ComfyUI Jobs / deploy (push) Failing after 6m25s
Test and build ComfyUI Jobs / test-build (push) Successful in 11m9s

This commit is contained in:
2026-10-02 19:38:51 +00:00
commit fe0f2b14c0
37 changed files with 15448 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
<section class="jobs"><div class="heading"><div><div class="eyebrow">REMOTE JOBS</div><h1>Job monitor</h1><p>Read-only view of the remote ComfyUI queue and history.</p></div><button class="refresh" type="button" (click)="reload()">Refresh</button></div><div class="notice" *ngIf="error">{{error}}</div><div class="loading" *ngIf="loading">Loading remote jobs…</div><div class="empty" *ngIf="!loading&&!error&&!jobs.length">No remote jobs were returned.</div><div class="grid"><article class="job" *ngFor="let job of jobs"><div class="jobhead"><h2>{{job.title}}</h2><span [class]="'status '+job.status">{{job.status}}</span></div><div class="meta"><span>ID {{job.promptId}}</span><span>{{job.outputCount}} output{{job.outputCount===1?'':'s'}}</span></div><div class="assets" *ngIf="job.assets.length"><span *ngFor="let asset of job.assets">{{asset.filename}}</span></div></article></div></section>
+1
View File
@@ -0,0 +1 @@
.heading{display:flex;justify-content:space-between;align-items:start;gap:1rem;margin-bottom:2rem}.eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.12em;color:#3b82f6}h1{margin:.35rem 0}.heading p{color:#63738a}.refresh{padding:.65rem 1rem;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.job{background:#fff;border:1px solid #dce3ed;border-radius:14px;padding:1.25rem}.jobhead{display:flex;justify-content:space-between;gap:1rem}.job h2{font-size:1rem;margin:0;color:#18283d}.status{font-size:.75rem;border-radius:999px;padding:.25rem .55rem;background:#e8eef7}.status.completed{background:#dcfce7;color:#166534}.status.failed{background:#fee2e2;color:#991b1b}.meta{display:flex;gap:1rem;color:#63738a;font-size:.8rem;margin-top:.8rem}.assets{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:1rem}.assets span{background:#f1f5f9;border-radius:6px;padding:.25rem .4rem;font-size:.75rem}.notice{padding:1rem;background:#fff1f0;color:#b42318;border-radius:10px}.loading,.empty{padding:3rem;text-align:center;color:#63738a}
+2
View File
@@ -0,0 +1,2 @@
import { CommonModule } from '@angular/common'; import { Component,inject } from '@angular/core'; import { HttpClient } from '@angular/common/http'; interface Job{promptId:string;title:string;status:string;outputCount:number;assets:Array<{filename:string}>;}
@Component({standalone:true,imports:[CommonModule],templateUrl:'./jobs.page.html',styleUrls:['./jobs.page.scss']}) export class JobsPage { jobs:Job[]=[];loading=true;error='';private http=inject(HttpClient);constructor(){this.reload();}reload():void{this.loading=true;this.error='';this.http.get<{jobs:Job[]}>('/api/jobs').subscribe({next:x=>{this.jobs=x.jobs;this.loading=false;},error:e=>{this.error=e.status===502?'ComfyUI is unavailable right now.':'Unable to load jobs.';this.loading=false;}});}}
+1
View File
@@ -0,0 +1 @@
<section class="login"><div class="panel"><div class="eyebrow">COMFYUI JOBS</div><h1>Sign in</h1><p>View remote ComfyUI jobs and their current output state.</p><form (ngSubmit)="submit()"><label>Username<input name="username" [(ngModel)]="username" autocomplete="username" required></label><label>Password<input name="password" type="password" [(ngModel)]="password" autocomplete="current-password" required></label><label class="remember"><input type="checkbox" name="remember" [(ngModel)]="remember"> Remember me</label><button type="submit">Sign in</button><div class="error" *ngIf="error">{{error}}</div></form></div></section>
+1
View File
@@ -0,0 +1 @@
.login{min-height:70vh;display:grid;place-items:center}.panel{width:min(100%,420px);padding:2.5rem;background:#fff;border:1px solid #dce3ed;border-radius:20px;box-shadow:0 18px 50px #233b5d18}.eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.12em;color:#3b82f6}.panel h1{margin:.4rem 0}.panel p{color:#63738a}.panel form{display:grid;gap:1rem}.panel label{display:grid;gap:.4rem;color:#42526b;font-weight:600}.panel input:not([type=checkbox]){padding:.75rem;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.remember{display:flex!important;align-items:center;font-weight:400!important}.panel button{padding:.8rem;border:0;border-radius:8px;background:#2563eb;color:white;font-weight:700}.error{color:#b42318;background:#fff1f0;padding:.7rem;border-radius:8px}
+2
View File
@@ -0,0 +1,2 @@
import { CommonModule } from '@angular/common'; import { Component,inject } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { Router } from '@angular/router'; import { AuthService } from '../auth.service';
@Component({standalone:true,imports:[CommonModule,FormsModule],templateUrl:'./login.page.html',styleUrls:['./login.page.scss']}) export class LoginPage { username='';password='';remember=true;error='';private auth=inject(AuthService);private router=inject(Router);submit():void{this.error='';this.auth.login(this.username,this.password,this.remember).subscribe({next:()=>this.router.navigateByUrl('/jobs'),error:()=>this.error='Invalid username or password.'});} }