Skip to content

Commit e11f4a2

Browse files
committed
chore: update web dependencies to latest versions and format
- Update Tailwind CSS from 4.1.18 to 4.2.2 - Update Vue from 3.5.28 to 3.5.30 - Update vue-router from 5.0.2 to 5.0.4 - Update @types/jsdom from 27.0.0 to 28.0.1 - Update @types/node from 24.10.13 to 24.12.0 - Update @vitejs/plugin-vue from 6.0.4 to 6.0.5 - Update @vue/tsconfig from 0.8.1 to 0.9.0 - Update jsdom from 28.1.0 to 29.0.1 - Update oxfmt from 0.32.0 to 0.41.0 - Update vite from beta to 8.0.1 - Update vite-plugin-vue-devtools from 8.0.6 to 8.1
1 parent 5a139d9 commit e11f4a2

22 files changed

Lines changed: 979 additions & 1644 deletions

web/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@
1313
"format": "oxfmt src/"
1414
},
1515
"dependencies": {
16-
"@tailwindcss/vite": "^4.1.18",
16+
"@tailwindcss/vite": "^4.2.2",
1717
"pinia": "^3.0.4",
18-
"tailwindcss": "^4.1.18",
19-
"vue": "^3.5.28",
20-
"vue-router": "^5.0.2"
18+
"tailwindcss": "^4.2.2",
19+
"vue": "^3.5.30",
20+
"vue-router": "^5.0.4"
2121
},
2222
"devDependencies": {
2323
"@tsconfig/node24": "^24.0.4",
24-
"@types/jsdom": "^27.0.0",
25-
"@types/node": "^24.10.13",
26-
"@vitejs/plugin-vue": "^6.0.4",
24+
"@types/jsdom": "^28.0.1",
25+
"@types/node": "^24.12.0",
26+
"@vitejs/plugin-vue": "^6.0.5",
2727
"@vue/test-utils": "^2.4.6",
28-
"@vue/tsconfig": "^0.8.1",
29-
"jsdom": "^28.1.0",
28+
"@vue/tsconfig": "^0.9.0",
29+
"jsdom": "^29.0.1",
3030
"npm-run-all2": "^8.0.4",
31-
"oxfmt": "^0.32.0",
31+
"oxfmt": "^0.41.0",
3232
"typescript": "~5.9.3",
33-
"vite": "beta",
34-
"vite-plugin-vue-devtools": "^8.0.6",
35-
"vitest": "^4.0.18",
36-
"vue-tsc": "^3.2.4"
33+
"vite": "^8.0.1",
34+
"vite-plugin-vue-devtools": "^8.1.0",
35+
"vitest": "^4.1.0",
36+
"vue-tsc": "^3.2.6"
3737
},
3838
"engines": {
3939
"node": "^24.0.0"

web/src/__tests__/accounts-page.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ describe('Accounts Page', () => {
119119
const createAccountPasswordInput = document.body.querySelector<HTMLInputElement>(
120120
'.account-modal input[type="password"]',
121121
)
122-
const createAccountForm = document.body.querySelector<HTMLFormElement>('.account-modal form.account-form')
122+
const createAccountForm = document.body.querySelector<HTMLFormElement>(
123+
'.account-modal form.account-form',
124+
)
123125
expect(createAccountNameInput).toBeTruthy()
124126
expect(createAccountPasswordInput).toBeTruthy()
125127
expect(createAccountForm).toBeTruthy()

web/src/__tests__/tokens-page.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ describe('Tokens Page', () => {
101101
expect(document.body.textContent ?? '').toContain('http header')
102102
expect(document.body.textContent ?? '').toContain('mcp json')
103103

104-
const httpHeaderTab = Array.from(document.body.querySelectorAll('button')).find(
105-
(button) => (button.textContent ?? '').includes('http header'),
104+
const httpHeaderTab = Array.from(document.body.querySelectorAll('button')).find((button) =>
105+
(button.textContent ?? '').includes('http header'),
106106
)
107107
expect(httpHeaderTab).toBeTruthy()
108108
httpHeaderTab?.dispatchEvent(new MouseEvent('click', { bubbles: true }))

web/src/__tests__/worker-startup-tool-page.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ describe('Worker Startup Tool Page', () => {
163163
await settleUI()
164164

165165
const previewText = wrapper.get('[data-testid="startup-command-preview"]').text()
166-
expect(previewText).toContain("WORKER_COMPUTER_USE_COMMAND_WHITELIST='[\"echo\",\"time\"]' \\")
167-
expect(previewText).toContain("WORKER_READ_IMAGE_ALLOWED_PATHS='[\"/tmp/a.png\"]' \\")
166+
expect(previewText).toContain('WORKER_COMPUTER_USE_COMMAND_WHITELIST=\'["echo","time"]\' \\')
167+
expect(previewText).toContain('WORKER_READ_IMAGE_ALLOWED_PATHS=\'["/tmp/a.png"]\' \\')
168168

169169
wrapper.unmount()
170170
})
@@ -200,7 +200,9 @@ describe('Worker Startup Tool Page', () => {
200200
await allowAllButton.trigger('click')
201201
await settleUI()
202202

203-
expect(wrapper.get('[data-testid="sys-whitelist-textarea"]').attributes('disabled')).toBeDefined()
203+
expect(
204+
wrapper.get('[data-testid="sys-whitelist-textarea"]').attributes('disabled'),
205+
).toBeDefined()
204206
expect(wrapper.text()).toContain('Disabled because allow_all mode ignores whitelist entries.')
205207

206208
wrapper.unmount()

web/src/__tests__/worker-startup-tool.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ describe('worker startup tool command builder', () => {
3333
const result = buildWorkerSysStartupCommand(config)
3434

3535
expect(result.errors).toEqual([])
36-
expect(result.command).toContain("WORKER_COMPUTER_USE_COMMAND_WHITELIST='[\"echo\",\"time\"]' \\")
37-
expect(result.command).toContain("WORKER_READ_IMAGE_ALLOWED_PATHS='[\"/data/images\",\"/tmp/a.png\"]' \\")
36+
expect(result.command).toContain('WORKER_COMPUTER_USE_COMMAND_WHITELIST=\'["echo","time"]\' \\')
37+
expect(result.command).toContain(
38+
'WORKER_READ_IMAGE_ALLOWED_PATHS=\'["/data/images","/tmp/a.png"]\' \\',
39+
)
3840
})
3941

4042
it('includes call timeout only in manual mode', () => {

web/src/__tests__/workers-page.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,11 @@ describe('Workers Page', () => {
535535
if (url === '/api/v1/workers' && method === 'POST') {
536536
const parsedBody = JSON.parse(String(init?.body ?? '{}'))
537537
expect(parsedBody).toEqual({ type: 'worker-sys' })
538-
return jsonResponse({ node_id: 'node-sys-1', type: 'worker-sys', worker_secret: 'secret-sys-1' })
538+
return jsonResponse({
539+
node_id: 'node-sys-1',
540+
type: 'worker-sys',
541+
worker_secret: 'secret-sys-1',
542+
})
539543
}
540544
throw new Error(`unexpected url: ${url}`)
541545
})

web/src/components/common/ErrorBanner.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ defineProps<{
55
</script>
66

77
<template>
8-
<p class="m-0 border border-[#fca5a5] rounded-default bg-[#fef2f2] text-offline px-4 py-2.5 text-sm">{{ message }}</p>
8+
<p
9+
class="m-0 border border-[#fca5a5] rounded-default bg-[#fef2f2] text-offline px-4 py-2.5 text-sm"
10+
>
11+
{{ message }}
12+
</p>
913
</template>

web/src/components/dashboard/ChangePasswordModal.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ function closeModal(): void {
6969
aria-labelledby="change-password-modal-title"
7070
>
7171
<div class="flex items-center justify-between px-6 py-5 border-b border-stroke">
72-
<h3 id="change-password-modal-title" class="m-0 text-xl font-semibold">Change Password</h3>
72+
<h3 id="change-password-modal-title" class="m-0 text-xl font-semibold">
73+
Change Password
74+
</h3>
7375
</div>
7476

7577
<div class="p-6 grid gap-5">
7678
<p class="m-0 text-secondary text-sm leading-normal">
77-
Update your console account password. Existing sessions for this account will be rotated.
79+
Update your console account password. Existing sessions for this account will be
80+
rotated.
7881
</p>
7982

8083
<form

web/src/components/dashboard/PaginationBar.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const emit = defineEmits<{
1515
</script>
1616

1717
<template>
18-
<footer class="flex justify-between items-center gap-4 px-6 py-4 bg-surface-soft border-t border-stroke max-[960px]:flex-col max-[960px]:items-start">
18+
<footer
19+
class="flex justify-between items-center gap-4 px-6 py-4 bg-surface-soft border-t border-stroke max-[960px]:flex-col max-[960px]:items-start"
20+
>
1921
<span class="font-sans text-[13px] text-secondary">Showing {{ footerText }}</span>
2022
<div class="inline-flex items-center gap-3">
2123
<button

web/src/components/dashboard/StatsGrid.vue

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,48 @@ defineProps<{
99
</script>
1010

1111
<template>
12-
<section class="grid grid-cols-4 gap-5 max-[960px]:grid-cols-2 max-[620px]:grid-cols-1 max-[620px]:gap-4">
13-
<article class="bg-surface border border-stroke rounded-lg p-6 shadow-card flex flex-col justify-center transition-[transform,box-shadow] duration-200 animate-[rise-in_550ms_ease-out] hover:-translate-y-0.5 hover:shadow-card-hover hover:border-stroke-hover">
12+
<section
13+
class="grid grid-cols-4 gap-5 max-[960px]:grid-cols-2 max-[620px]:grid-cols-1 max-[620px]:gap-4"
14+
>
15+
<article
16+
class="bg-surface border border-stroke rounded-lg p-6 shadow-card flex flex-col justify-center transition-[transform,box-shadow] duration-200 animate-[rise-in_550ms_ease-out] hover:-translate-y-0.5 hover:shadow-card-hover hover:border-stroke-hover"
17+
>
1418
<p class="m-0 text-sm text-secondary font-medium">Total Workers</p>
15-
<p class="mt-3 mb-0 text-[32px] font-bold leading-none text-primary font-mono tracking-[-0.02em]">{{ totalWorkers }}</p>
19+
<p
20+
class="mt-3 mb-0 text-[32px] font-bold leading-none text-primary font-mono tracking-[-0.02em]"
21+
>
22+
{{ totalWorkers }}
23+
</p>
1624
</article>
17-
<article class="bg-surface border border-stroke rounded-lg p-6 shadow-card flex flex-col justify-center transition-[transform,box-shadow] duration-200 animate-[rise-in_550ms_ease-out] hover:-translate-y-0.5 hover:shadow-card-hover hover:border-stroke-hover">
25+
<article
26+
class="bg-surface border border-stroke rounded-lg p-6 shadow-card flex flex-col justify-center transition-[transform,box-shadow] duration-200 animate-[rise-in_550ms_ease-out] hover:-translate-y-0.5 hover:shadow-card-hover hover:border-stroke-hover"
27+
>
1828
<p class="m-0 text-sm text-secondary font-medium">Online</p>
19-
<p class="mt-3 mb-0 text-[32px] font-bold leading-none text-online font-mono tracking-[-0.02em]">{{ onlineWorkers }}</p>
29+
<p
30+
class="mt-3 mb-0 text-[32px] font-bold leading-none text-online font-mono tracking-[-0.02em]"
31+
>
32+
{{ onlineWorkers }}
33+
</p>
2034
</article>
21-
<article class="bg-surface border border-stroke rounded-lg p-6 shadow-card flex flex-col justify-center transition-[transform,box-shadow] duration-200 animate-[rise-in_550ms_ease-out] hover:-translate-y-0.5 hover:shadow-card-hover hover:border-stroke-hover">
35+
<article
36+
class="bg-surface border border-stroke rounded-lg p-6 shadow-card flex flex-col justify-center transition-[transform,box-shadow] duration-200 animate-[rise-in_550ms_ease-out] hover:-translate-y-0.5 hover:shadow-card-hover hover:border-stroke-hover"
37+
>
2238
<p class="m-0 text-sm text-secondary font-medium">Offline</p>
23-
<p class="mt-3 mb-0 text-[32px] font-bold leading-none text-offline font-mono tracking-[-0.02em]">{{ offlineWorkers }}</p>
39+
<p
40+
class="mt-3 mb-0 text-[32px] font-bold leading-none text-offline font-mono tracking-[-0.02em]"
41+
>
42+
{{ offlineWorkers }}
43+
</p>
2444
</article>
25-
<article class="bg-surface border border-stroke rounded-lg p-6 shadow-card flex flex-col justify-center transition-[transform,box-shadow] duration-200 animate-[rise-in_550ms_ease-out] hover:-translate-y-0.5 hover:shadow-card-hover hover:border-stroke-hover">
45+
<article
46+
class="bg-surface border border-stroke rounded-lg p-6 shadow-card flex flex-col justify-center transition-[transform,box-shadow] duration-200 animate-[rise-in_550ms_ease-out] hover:-translate-y-0.5 hover:shadow-card-hover hover:border-stroke-hover"
47+
>
2648
<p class="m-0 text-sm text-secondary font-medium">{{ staleWorkersLabel }}</p>
27-
<p class="mt-3 mb-0 text-[32px] font-bold leading-none text-stale font-mono tracking-[-0.02em]">{{ staleWorkers }}</p>
49+
<p
50+
class="mt-3 mb-0 text-[32px] font-bold leading-none text-stale font-mono tracking-[-0.02em]"
51+
>
52+
{{ staleWorkers }}
53+
</p>
2854
</article>
2955
</section>
3056
</template>

0 commit comments

Comments
 (0)