diff --git a/assets/pages/index.vue b/assets/pages/index.vue index f107fdba..6983df2b 100644 --- a/assets/pages/index.vue +++ b/assets/pages/index.vue @@ -85,7 +85,7 @@ const router = useRouter(); const sort = $ref("running"); const query = ref(""); -const mostRecentContainers = $computed(() => [...containers.value].sort((a, b) => b.created - a.created)); +const mostRecentContainers = $computed(() => [...containers.value].sort((a, b) => +b.created - +a.created)); const runningContainers = $computed(() => mostRecentContainers.filter((c) => c.state === "running")); const list = computed(() => { diff --git a/package.json b/package.json index fc8f02d1..137efa84 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "build": "vite build", "release": "release-it", "test": "TZ=UTC vitest", + "typecheck": "vue-tsc --noEmit", "docs:dev": "vitepress dev docs --open", "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs"