@nvent-addon/app 1.0.0-alpha.1 → 1.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nventapp",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.11",
4
4
  "configKey": "nventapp",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
@@ -45,25 +45,25 @@
45
45
  <div class="max-w-5xl mx-auto p-6 space-y-6">
46
46
  <!-- Stat cards -->
47
47
  <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
48
- <StatCard
48
+ <NventStatCard
49
49
  icon="i-lucide-server"
50
50
  :count="namedWorkers.length"
51
51
  label="Workers"
52
52
  variant="blue"
53
53
  />
54
- <StatCard
54
+ <NventStatCard
55
55
  icon="i-lucide-zap"
56
56
  :count="totalActiveInvocations"
57
57
  label="Active invocations"
58
58
  variant="amber"
59
59
  />
60
- <StatCard
60
+ <NventStatCard
61
61
  icon="i-lucide-cpu"
62
62
  :count="totalFunctions"
63
63
  label="Functions"
64
64
  variant="purple"
65
65
  />
66
- <StatCard
66
+ <NventStatCard
67
67
  icon="i-lucide-shield-check"
68
68
  :count="`${healthyComponentCount}/${totalComponentCount}`"
69
69
  label="Components healthy"
@@ -1,14 +1,14 @@
1
1
  import { defineEventHandler, useIii } from "#imports";
2
2
  export default defineEventHandler(async () => {
3
- const { iii } = useIii();
3
+ const iii = useIii();
4
4
  const [health, workers] = await Promise.allSettled([
5
5
  iii.trigger({ function_id: "engine::health::check", payload: {} }),
6
- iii.listWorkers()
6
+ iii.trigger({ function_id: "engine::workers::list", payload: {} })
7
7
  ]);
8
8
  return {
9
9
  health: health.status === "fulfilled" ? health.value : null,
10
10
  healthError: health.status === "rejected" ? String(health.reason) : null,
11
- workers: workers.status === "fulfilled" ? Array.isArray(workers.value) ? workers.value : [workers.value] : [],
11
+ workers: workers.status === "fulfilled" ? workers.value?.workers ?? [] : [],
12
12
  workersError: workers.status === "rejected" ? String(workers.reason) : null
13
13
  };
14
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nvent-addon/app",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.11",
4
4
  "description": "nvent app module for Nuxt.js",
5
5
  "repository": "DevJoghurt/nvent",
6
6
  "license": "MIT",
@@ -23,27 +23,27 @@
23
23
  "prepack": "pnpm build"
24
24
  },
25
25
  "dependencies": {
26
- "@iconify-json/devicon": "^1.2.61",
26
+ "@iconify-json/devicon": "^1.2.62",
27
27
  "@iconify-json/heroicons": "1.2.3",
28
- "@iconify-json/lucide": "^1.2.98",
28
+ "@iconify-json/lucide": "^1.2.105",
29
29
  "@nhealth/nutils": "^0.0.3",
30
- "@nuxt/kit": "4.4.2",
31
- "@nuxt/ui": "4.5.1",
30
+ "@nuxt/kit": "4.4.4",
31
+ "@nuxt/ui": "4.7.1",
32
32
  "@vue-flow/background": "^1.3.2",
33
33
  "@vue-flow/controls": "^1.1.3",
34
34
  "@vue-flow/core": "^1.48.2",
35
35
  "@vue-flow/minimap": "^1.5.4",
36
- "defu": "^6.1.4",
36
+ "defu": "^6.1.7",
37
37
  "json-editor-vue": "^0.18.1",
38
- "nuxt": "4.4.2",
38
+ "nuxt": "4.4.4",
39
39
  "pathe": "^2.0.3",
40
- "zod": "^4.3.6"
40
+ "zod": "^4.4.3"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@nuxt/module-builder": "^1.0.2",
44
- "@nuxt/schema": "4.4.2",
45
- "@types/node": "^25.5.0",
44
+ "@nuxt/schema": "4.4.4",
45
+ "@types/node": "^25.6.0",
46
46
  "typescript": "latest",
47
- "vitest": "^4.1.0"
47
+ "vitest": "^4.1.5"
48
48
  }
49
49
  }