Files
ComfyUI_frontend/browser_tests/fixtures/data/systemStats.ts
Christian Byrne bd90747fb2 [backport core/1.42] fix(manager): migrate 4 endpoints GET→POST for CSRF hardening (#11589)
Backport of #11520 to `core/1.42`.

Cherry-picked merge commit bd96bdf4cc.

**Conflict resolved**:
`browser_tests/tests/dialogs/managerDialog.spec.ts` was deleted in
`core/1.42` but modified in the original PR — kept PR version since the
file was changed in the original PR.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-11589-backport-core-1-42-fix-manager-migrate-4-endpoints-GET-POST-for-CSRF-hardening-34c6d73d3650818dab99ec7708ed027c)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Dr.Lt.Data <128333288+ltdrdata@users.noreply.github.com>
2026-04-24 14:55:09 -07:00

26 lines
643 B
TypeScript

import type { SystemStats } from '@/schemas/apiSchema'
export const mockSystemStats: SystemStats = {
system: {
os: 'posix',
python_version: '3.11.9 (main, Apr 2 2024, 08:25:04) [GCC 13.2.0]',
embedded_python: false,
comfyui_version: '0.3.10',
pytorch_version: '2.4.0+cu124',
argv: ['main.py', '--listen', '0.0.0.0'],
ram_total: 67108864000,
ram_free: 52428800000
},
devices: [
{
name: 'NVIDIA GeForce RTX 4090',
type: 'cuda',
index: 0,
vram_total: 25769803776,
vram_free: 23622320128,
torch_vram_total: 25769803776,
torch_vram_free: 23622320128
}
]
}