style: format web workspace

This commit is contained in:
2026-07-24 17:54:16 +09:00
parent 1c2cb01882
commit 54bb7209a4
32 changed files with 974 additions and 529 deletions
@@ -1,4 +1,4 @@
import type { PageLoad } from './$types';
import type { PageLoad } from "./$types";
export const load: PageLoad = ({ params }) => ({
sourceTreeId: params.sourceTreeId,
@@ -10,7 +10,10 @@ import type { PageLoad } from "./$types";
export const load: PageLoad = async ({ fetch, params }) => {
const runtimeId = params.runtimeId;
const [runtimes, workdirs, cleanupPlan] = await Promise.all([
loadJson<ListResponse<Runtime>>(fetch, workspaceApiPath(params.workspaceId, "/runtimes")),
loadJson<ListResponse<Runtime>>(
fetch,
workspaceApiPath(params.workspaceId, "/runtimes"),
),
loadJson<BrowserWorkingDirectoryListResponse>(
fetch,
workspaceApiPath(
@@ -20,7 +23,10 @@ export const load: PageLoad = async ({ fetch, params }) => {
),
loadJson<RuntimeCleanupPlanResponse>(
fetch,
workspaceApiPath(params.workspaceId, `/runtimes/${encodeURIComponent(runtimeId)}/cleanup-plan`),
workspaceApiPath(
params.workspaceId,
`/runtimes/${encodeURIComponent(runtimeId)}/cleanup-plan`,
),
),
]);