diff --git a/apps/operator/components/Avatar.vue b/apps/operator/components/Avatar.vue index 41f0221..ed913db 100644 --- a/apps/operator/components/Avatar.vue +++ b/apps/operator/components/Avatar.vue @@ -15,7 +15,7 @@ const initials = computed(() => .split(' ') .filter(Boolean) .slice(0, 2) - .map((p) => p[0].toUpperCase()) + .map((p) => p.charAt(0).toUpperCase()) .join(''), ) diff --git a/apps/operator/components/UserMenu.vue b/apps/operator/components/UserMenu.vue index d8648d1..5734d20 100644 --- a/apps/operator/components/UserMenu.vue +++ b/apps/operator/components/UserMenu.vue @@ -10,7 +10,10 @@ const route = useRoute() const open = ref(false) -const displayName = computed(() => user.value?.userInfo?.name || user.value?.userName || 'operator') +const displayName = computed(() => { + const name = (user.value?.userInfo as { name?: string } | undefined)?.name + return name || (user.value?.userName as string | undefined) || 'operator' +}) const email = computed(() => (user.value?.userInfo as { email?: string } | undefined)?.email ?? '') function toggle() { diff --git a/apps/operator/package.json b/apps/operator/package.json index 8e01f9b..3df45d4 100644 --- a/apps/operator/package.json +++ b/apps/operator/package.json @@ -2,7 +2,7 @@ "name": "@dezky/operator", "version": "0.0.1", "private": true, - "description": "Dezky operator portal — internal admin app (Nuxt 3)", + "description": "Dezky operator portal — internal admin app (Nuxt 4)", "scripts": { "dev": "nuxt dev --host 0.0.0.0 --port 3000", "build": "nuxt build", @@ -11,14 +11,16 @@ "lint": "eslint ." }, "dependencies": { - "nuxt": "^3.13.0", + "nuxt": "^4.4.6", "nuxt-oidc-auth": "1.0.0-beta.11", + "undici": "^7.2.1", "vue": "^3.5.0", "vue-router": "^4.4.0" }, "devDependencies": { "@types/node": "^20.0.0", - "typescript": "^5.5.0" + "typescript": "^5.6.0", + "vue-tsc": "^3.2.6" }, "packageManager": "pnpm@9.12.0" } diff --git a/apps/operator/pages/audit.vue b/apps/operator/pages/audit.vue index c6e5544..69e2528 100644 --- a/apps/operator/pages/audit.vue +++ b/apps/operator/pages/audit.vue @@ -391,7 +391,7 @@ function fmtRelative(iso: string | null | undefined): string {
{{ archives?.length - ? `archived through seq ${archives[0].endSeq} · ${archives.length} batch${archives.length === 1 ? '' : 'es'}` + ? `archived through seq ${archives[0]!.endSeq} · ${archives.length} batch${archives.length === 1 ? '' : 'es'}` : 'no archives yet · 90-day hot retention' }}
diff --git a/apps/operator/pages/pricing.vue b/apps/operator/pages/pricing.vue index 8d3e136..41ae4b8 100644 --- a/apps/operator/pages/pricing.vue +++ b/apps/operator/pages/pricing.vue @@ -209,7 +209,7 @@ const sortedPrices = computed(() =>