) {
void router.replace({ query: toInstanceRouteQuery({ ...query.value, ...patch }) })
}
-function toggleSort(key: 'name' | 'age') {
- const q = query.value
- if (q.sort === key) update({ dir: q.dir === 'asc' ? 'desc' : 'asc' })
- else update({ sort: key, dir: 'asc' })
+// The table emits the column key and then the direction on every header click. The table cycles through
+// "unsorted" as well; this page never shows that state, so an empty key keeps the current column (ascending).
+let requestedSort: string | undefined
+function onSortBy(key: string) {
+ requestedSort = key
}
-
-function ariaSort(key: 'name' | 'age') {
- if (query.value.sort !== key) return 'none'
- return query.value.dir === 'asc' ? 'ascending' : 'descending'
-}
-
-function sortMark(key: 'name' | 'age') {
- if (query.value.sort !== key) return ''
- return query.value.dir === 'asc' ? ' ▲' : ' ▼'
+function onSortDesc(desc: boolean) {
+ const sort = requestedSort || query.value.sort
+ requestedSort = undefined
+ update({ sort: sort as SortKey, dir: desc ? 'desc' : 'asc' })
}
diff --git a/web/app/pages/pools/[pool].vue b/web/app/pages/pools/[pool].vue
index a8d2370..fdf0ecc 100644
--- a/web/app/pages/pools/[pool].vue
+++ b/web/app/pages/pools/[pool].vue
@@ -10,15 +10,14 @@
{{ $t(`common.live.${status}`) }}
-
- {{ pool.maintenance ? $t('pools.maintenance.disable') : $t('pools.maintenance.enable') }}
-
+ {{ $t('pools.badges.maintenance') }}
+
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index 9b99a9c..9fd7767 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -3,4 +3,8 @@ import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt({
ignores: ['app/types/grus-api.d.ts'],
+ rules: {
+ // Pavo's DataTable names its cell slots item.; the dot is part of the slot name, not a modifier.
+ 'vue/valid-v-slot': ['error', { allowModifiers: true }],
+ },
})
diff --git a/web/package.json b/web/package.json
index 32ca4c1..cdf84e7 100644
--- a/web/package.json
+++ b/web/package.json
@@ -21,7 +21,7 @@
"dependencies": {
"@mdi/js": "^7.4.47",
"@nuxtjs/i18n": "^10.6.0",
- "@onelitefeathernet/pavo": "^0.2.0",
+ "@onelitefeathernet/pavo": "^0.3.0",
"nuxt": "^4.7.0",
"vue": "^3.5.46"
},
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
index f688cce..c98da29 100644
--- a/web/pnpm-lock.yaml
+++ b/web/pnpm-lock.yaml
@@ -15,8 +15,8 @@ importers:
specifier: ^10.6.0
version: 10.6.0(@nuxt/schema@4.7.0)(@vue/compiler-dom@3.5.46)(db0@0.3.4)(dotenv@17.4.2)(esbuild@0.28.2)(giget@3.3.1)(jiti@2.7.0)(rolldown@1.2.19)(rollup@4.68.8)(typescript@5.9.3)(vite@8.3.8(@types/node@26.6.9)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.4)(yaml@2.9.1))(vue@3.5.46(typescript@5.9.3))
'@onelitefeathernet/pavo':
- specifier: ^0.2.0
- version: 0.2.0(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.141.0)(rolldown@1.2.19)(tailwindcss@4.3.5)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.19)(rollup@4.68.8)(vite@8.3.8(@types/node@26.6.9)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.4)(yaml@2.9.1)))(vue@3.5.46(typescript@5.9.3))
+ specifier: ^0.3.0
+ version: 0.3.0(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.141.0)(rolldown@1.2.19)(tailwindcss@4.3.5)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.19)(rollup@4.68.8)(vite@8.3.8(@types/node@26.6.9)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.4)(yaml@2.9.1)))(vue@3.5.46(typescript@5.9.3))
nuxt:
specifier: ^4.7.0
version: 4.7.0(@babel/plugin-syntax-jsx@7.29.7(@babel/core@7.29.13))(@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.13))(@oxc-project/types@0.156.0)(@types/node@26.6.9)(@vue/compiler-sfc@3.5.46)(acorn@8.19.0)(bare-buffer@3.7.3)(confbox@0.2.4)(db0@0.3.4)(dotenv@17.4.2)(esbuild@0.28.2)(eslint@10.15.0(jiti@2.7.0))(giget@3.3.1)(lightningcss@1.33.0)(mlly@1.8.2)(optionator@0.9.4)(oxc-parser@0.141.0)(rolldown@1.2.19)(rollup-plugin-visualizer@7.3.0(rolldown@1.2.19)(rollup@4.68.8))(rollup@4.68.8)(srvx@1.0.8)(terser@5.51.4)(typescript@5.9.3)(vite@8.3.8(@types/node@26.6.9)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.4)(yaml@2.9.1))(vue-tsc@3.3.14(typescript@5.9.3))(yaml@2.9.1)
@@ -1016,8 +1016,8 @@ packages:
'@one-ini/wasm@0.2.1':
resolution: {integrity: sha512-TUqERXGNTifZ9y2g3wPxQrw3HpHv/02DsW3D90T9x0hhonrL1ZqpSmNrU2XkoIq0fP1N6gZfVQzy2Fw1ZvGBNg==}
- '@onelitefeathernet/pavo@0.2.0':
- resolution: {integrity: sha512-nxM4iP7DypN+E5RtJ7LmyfTXZjTcKCtnH6RfgiecTWuhoppuEEKZ9ivKTjrEOzLK9OpXHZEC3oXcMAv03fD0Hw==, tarball: https://npm.pkg.github.com/download/@onelitefeathernet/pavo/0.2.0/fb8e97d327d1f174185837eec3cbe645f4fb0e21}
+ '@onelitefeathernet/pavo@0.3.0':
+ resolution: {integrity: sha512-/a6eYcbnNTytzFcKCvhevJa082pcv8H8jSAAuw4iRwKmVDvYqq5OXbUBf6SIc7MIkvAOEz+GjDZ3tY6Hv2IAWQ==, tarball: https://npm.pkg.github.com/download/@onelitefeathernet/pavo/0.3.0/309903b17e4dc9fc544d3c0545af5bcab93c6460}
hasBin: true
peerDependencies:
tailwindcss: ^4.3.5
@@ -6017,7 +6017,7 @@ snapshots:
'@one-ini/wasm@0.2.1': {}
- '@onelitefeathernet/pavo@0.2.0(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.141.0)(rolldown@1.2.19)(tailwindcss@4.3.5)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.19)(rollup@4.68.8)(vite@8.3.8(@types/node@26.6.9)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.4)(yaml@2.9.1)))(vue@3.5.46(typescript@5.9.3))':
+ '@onelitefeathernet/pavo@0.3.0(confbox@0.2.4)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.5)(mlly@1.8.2)(oxc-parser@0.141.0)(rolldown@1.2.19)(tailwindcss@4.3.5)(unplugin@3.7.0(esbuild@0.28.2)(rolldown@1.2.19)(rollup@4.68.8)(vite@8.3.8(@types/node@26.6.9)(esbuild@0.28.2)(jiti@2.7.0)(terser@5.51.4)(yaml@2.9.1)))(vue@3.5.46(typescript@5.9.3))':
dependencies:
'@fontsource/roboto': 5.3.0
'@material/material-color-utilities': 0.3.0