Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b0d50f523 | ||
|
|
49d9394cd7 | ||
|
|
798293813c | ||
|
|
42a3791e6b |
No files matched your search
@@ -37,7 +37,7 @@
|
|||||||
},
|
},
|
||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@t3-oss/env-nextjs": "^0.13.10",
|
"@t3-oss/env-nextjs": "^0.13.11",
|
||||||
"better-sqlite3": "^12.6.2",
|
"better-sqlite3": "^12.6.2",
|
||||||
"dns-caching": "^0.2.9",
|
"dns-caching": "^0.2.9",
|
||||||
"drizzle-orm": "^0.45.1",
|
"drizzle-orm": "^0.45.1",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"prettier": "@homarr/prettier-config",
|
"prettier": "@homarr/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"fast-xml-parser": "^5.5.7",
|
"fast-xml-parser": "^5.5.8",
|
||||||
"zod": "^4.2.1"
|
"zod": "^4.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@homarr/common": "workspace:^0.1.0",
|
"@homarr/common": "workspace:^0.1.0",
|
||||||
"@homarr/core": "workspace:^0.1.0",
|
"@homarr/core": "workspace:^0.1.0",
|
||||||
"dockerode": "^4.0.9"
|
"dockerode": "^4.0.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@homarr/eslint-config": "workspace:^0.2.0",
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export class DashDotIntegration extends Integration implements ISystemHealthMoni
|
|||||||
cpuModel: serverInfo.cpu.model,
|
cpuModel: serverInfo.cpu.model,
|
||||||
operatingSystemVersion: `${serverInfo.os.distro} ${serverInfo.os.release} (${serverInfo.os.kernel})`,
|
operatingSystemVersion: `${serverInfo.os.distro} ${serverInfo.os.release} (${serverInfo.os.kernel})`,
|
||||||
uptime: serverInfo.os.uptime,
|
uptime: serverInfo.os.uptime,
|
||||||
gpuNames: serverInfo.gpu.map((gpu) => gpu.brand),
|
gpuNames: serverInfo.gpu.layout.map((gpu) => gpu.brand),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,14 +161,14 @@ export class DashDotIntegration extends Integration implements ISystemHealthMoni
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async getCurrentGpuLoadAsync() {
|
private async getCurrentGpuLoadAsync() {
|
||||||
const response = await fetchWithTrustedCertificatesAsync(this.url("/load/gpu"));
|
try {
|
||||||
const result = await response.text();
|
const response = await fetchWithTrustedCertificatesAsync(this.url("/load/gpu"));
|
||||||
|
const result = await response.json();
|
||||||
// response is either valid json or empty if gpu widget is disabled.
|
const data = await gpuLoadApi.parseAsync(result);
|
||||||
if (result.length === 0) return [];
|
return data.layout;
|
||||||
|
} catch {
|
||||||
const data = await gpuLoadApi.parseAsync(JSON.parse(result));
|
return [];
|
||||||
return data.layout;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private getChannel() {
|
private getChannel() {
|
||||||
@@ -219,14 +219,16 @@ const internalServerInfoApi = z.object({
|
|||||||
),
|
),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
gpu: z
|
gpu: z.object({
|
||||||
.array(
|
layout: z
|
||||||
z.object({
|
.array(
|
||||||
brand: z.string(),
|
z.object({
|
||||||
model: z.string().optional(),
|
brand: z.string(),
|
||||||
}),
|
model: z.string().optional(),
|
||||||
)
|
}),
|
||||||
.default([]),
|
)
|
||||||
|
.default([]),
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
const cpuLoadPerCoreApiList = z.array(cpuLoadPerCoreApi);
|
const cpuLoadPerCoreApiList = z.array(cpuLoadPerCoreApi);
|
||||||
|
|||||||
Generated
+34
-34
@@ -890,8 +890,8 @@ importers:
|
|||||||
packages/core:
|
packages/core:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@t3-oss/env-nextjs':
|
'@t3-oss/env-nextjs':
|
||||||
specifier: ^0.13.10
|
specifier: ^0.13.11
|
||||||
version: 0.13.10(arktype@2.1.20)(typescript@5.9.3)(zod@4.2.1)
|
version: 0.13.11(arktype@2.1.20)(typescript@5.9.3)(zod@4.2.1)
|
||||||
better-sqlite3:
|
better-sqlite3:
|
||||||
specifier: ^12.6.2
|
specifier: ^12.6.2
|
||||||
version: 12.6.2
|
version: 12.6.2
|
||||||
@@ -1217,8 +1217,8 @@ importers:
|
|||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../common
|
version: link:../common
|
||||||
fast-xml-parser:
|
fast-xml-parser:
|
||||||
specifier: ^5.5.7
|
specifier: ^5.5.8
|
||||||
version: 5.5.7
|
version: 5.5.9
|
||||||
zod:
|
zod:
|
||||||
specifier: ^4.2.1
|
specifier: ^4.2.1
|
||||||
version: 4.2.1
|
version: 4.2.1
|
||||||
@@ -1251,8 +1251,8 @@ importers:
|
|||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../core
|
version: link:../core
|
||||||
dockerode:
|
dockerode:
|
||||||
specifier: ^4.0.9
|
specifier: ^4.0.10
|
||||||
version: 4.0.9
|
version: 4.0.10
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@homarr/eslint-config':
|
'@homarr/eslint-config':
|
||||||
specifier: workspace:^0.2.0
|
specifier: workspace:^0.2.0
|
||||||
@@ -4601,8 +4601,8 @@ packages:
|
|||||||
'@swc/types@0.1.25':
|
'@swc/types@0.1.25':
|
||||||
resolution: {integrity: sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==}
|
resolution: {integrity: sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==}
|
||||||
|
|
||||||
'@t3-oss/env-core@0.13.10':
|
'@t3-oss/env-core@0.13.11':
|
||||||
resolution: {integrity: sha512-NNFfdlJ+HmPHkLi2HKy7nwuat9SIYOxei9K10lO2YlcSObDILY7mHZNSHsieIM3A0/5OOzw/P/b+yLvPdaG52g==}
|
resolution: {integrity: sha512-sM7GYY+KL7H/Hl0BE0inWfk3nRHZOLhmVn7sHGxaZt9FAR6KqREXAE+6TqKfiavfXmpRxO/OZ2QgKRd+oiBYRQ==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
arktype: ^2.1.0
|
arktype: ^2.1.0
|
||||||
typescript: '>=5.0.0'
|
typescript: '>=5.0.0'
|
||||||
@@ -4618,8 +4618,8 @@ packages:
|
|||||||
zod:
|
zod:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@t3-oss/env-nextjs@0.13.10':
|
'@t3-oss/env-nextjs@0.13.11':
|
||||||
resolution: {integrity: sha512-JfSA2WXOnvcc/uMdp31paMsfbYhhdvLLRxlwvrnlPE9bwM/n0Z+Qb9xRv48nPpvfMhOrkrTYw1I5Yc06WIKBJQ==}
|
resolution: {integrity: sha512-NC+3j7YWgpzdFu1t5y/8wqibTK0lm5RS4bjXA1n8uwik3wIR4iZM4Fa+U2BaMa5k3Qk8RZiYhoAIX0WogmGkzg==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
arktype: ^2.1.0
|
arktype: ^2.1.0
|
||||||
typescript: '>=5.0.0'
|
typescript: '>=5.0.0'
|
||||||
@@ -6413,12 +6413,12 @@ packages:
|
|||||||
resolution: {integrity: sha512-FO/Jemn08gf9o9E6qtqOPQpyauwf2rQAzfpoUlMyqNpdaVb0ImR/wXKoutLZKp1tks58F8Z8iR7va7H1ne09cw==}
|
resolution: {integrity: sha512-FO/Jemn08gf9o9E6qtqOPQpyauwf2rQAzfpoUlMyqNpdaVb0ImR/wXKoutLZKp1tks58F8Z8iR7va7H1ne09cw==}
|
||||||
engines: {node: '>= 6.0.0'}
|
engines: {node: '>= 6.0.0'}
|
||||||
|
|
||||||
docker-modem@5.0.6:
|
docker-modem@5.0.7:
|
||||||
resolution: {integrity: sha512-ens7BiayssQz/uAxGzH8zGXCtiV24rRWXdjNha5V4zSOcxmAZsfGVm/PPFbwQdqEkDnhG+SyR9E3zSHUbOKXBQ==}
|
resolution: {integrity: sha512-XJgGhoR/CLpqshm4d3L7rzH6t8NgDFUIIpztYlLHIApeJjMZKYJMz2zxPsYxnejq5h3ELYSw/RBsi3t5h7gNTA==}
|
||||||
engines: {node: '>= 8.0'}
|
engines: {node: '>= 8.0'}
|
||||||
|
|
||||||
dockerode@4.0.9:
|
dockerode@4.0.10:
|
||||||
resolution: {integrity: sha512-iND4mcOWhPaCNh54WmK/KoSb35AFqPAUWFMffTQcp52uQt36b5uNwEJTSXntJZBbeGad72Crbi/hvDIv6us/6Q==}
|
resolution: {integrity: sha512-8L/P9JynLBiG7/coiA4FlQXegHltRqS0a+KqI44P1zgQh8QLHTg7FKOwhkBgSJwZTeHsq30WRoVFLuwkfK0YFg==}
|
||||||
engines: {node: '>= 8.0'}
|
engines: {node: '>= 8.0'}
|
||||||
|
|
||||||
doctrine@2.1.0:
|
doctrine@2.1.0:
|
||||||
@@ -6971,8 +6971,8 @@ packages:
|
|||||||
fast-xml-builder@1.1.4:
|
fast-xml-builder@1.1.4:
|
||||||
resolution: {integrity: sha512-f2jhpN4Eccy0/Uz9csxh3Nu6q4ErKxf0XIsasomfOihuSUa3/xw6w8dnOtCDgEItQFJG8KyXPzQXzcODDrrbOg==}
|
resolution: {integrity: sha512-f2jhpN4Eccy0/Uz9csxh3Nu6q4ErKxf0XIsasomfOihuSUa3/xw6w8dnOtCDgEItQFJG8KyXPzQXzcODDrrbOg==}
|
||||||
|
|
||||||
fast-xml-parser@5.5.7:
|
fast-xml-parser@5.5.9:
|
||||||
resolution: {integrity: sha512-LteOsISQ2GEiDHZch6L9hB0+MLoYVLToR7xotrzU0opCICBkxOPgHAy1HxAvtxfJNXDJpgAsQN30mkrfpO2Prg==}
|
resolution: {integrity: sha512-jldvxr1MC6rtiZKgrFnDSvT8xuH+eJqxqOBThUVjYrxssYTo1avZLGql5l0a0BAERR01CadYzZ83kVEkbyDg+g==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
faster-babel-types@0.1.0:
|
faster-babel-types@0.1.0:
|
||||||
@@ -8849,8 +8849,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
|
resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
path-expression-matcher@1.1.3:
|
path-expression-matcher@1.2.0:
|
||||||
resolution: {integrity: sha512-qdVgY8KXmVdJZRSS1JdEPOKPdTiEK/pi0RkcT2sw1RhXxohdujUlJFPuS1TSkevZ9vzd3ZlL7ULl1MHGTApKzQ==}
|
resolution: {integrity: sha512-DwmPWeFn+tq7TiyJ2CxezCAirXjFxvaiD03npak3cRjlP9+OjTmSy1EpIrEbh+l6JgUundniloMLDQ/6VTdhLQ==}
|
||||||
engines: {node: '>=14.0.0'}
|
engines: {node: '>=14.0.0'}
|
||||||
|
|
||||||
path-key@3.1.1:
|
path-key@3.1.1:
|
||||||
@@ -9975,8 +9975,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
|
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
strnum@2.2.1:
|
strnum@2.2.2:
|
||||||
resolution: {integrity: sha512-BwRvNd5/QoAtyW1na1y1LsJGQNvRlkde6Q/ipqqEaivoMdV+B1OMOTVdwR+N/cwVUcIt9PYyHmV8HyexCZSupg==}
|
resolution: {integrity: sha512-DnR90I+jtXNSTXWdwrEy9FakW7UX+qUZg28gj5fk2vxxl7uS/3bpI4fjFYVmdK9etptYBPNkpahuQnEwhwECqA==}
|
||||||
|
|
||||||
style-to-js@1.1.16:
|
style-to-js@1.1.16:
|
||||||
resolution: {integrity: sha512-/Q6ld50hKYPH3d/r6nr117TZkHR0w0kGGIVfpG9N6D8NymRPM9RqCUv4pRpJ62E5DqOYx2AFpbZMyCPnjQCnOw==}
|
resolution: {integrity: sha512-/Q6ld50hKYPH3d/r6nr117TZkHR0w0kGGIVfpG9N6D8NymRPM9RqCUv4pRpJ62E5DqOYx2AFpbZMyCPnjQCnOw==}
|
||||||
@@ -11774,7 +11774,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@ndaidong/bellajs': 12.0.1
|
'@ndaidong/bellajs': 12.0.1
|
||||||
cross-fetch: 4.1.0
|
cross-fetch: 4.1.0
|
||||||
fast-xml-parser: 5.5.7
|
fast-xml-parser: 5.5.9
|
||||||
html-entities: 2.6.0
|
html-entities: 2.6.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- encoding
|
- encoding
|
||||||
@@ -13412,15 +13412,15 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@swc/counter': 0.1.3
|
'@swc/counter': 0.1.3
|
||||||
|
|
||||||
'@t3-oss/env-core@0.13.10(arktype@2.1.20)(typescript@5.9.3)(zod@4.2.1)':
|
'@t3-oss/env-core@0.13.11(arktype@2.1.20)(typescript@5.9.3)(zod@4.2.1)':
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
arktype: 2.1.20
|
arktype: 2.1.20
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
zod: 4.2.1
|
zod: 4.2.1
|
||||||
|
|
||||||
'@t3-oss/env-nextjs@0.13.10(arktype@2.1.20)(typescript@5.9.3)(zod@4.2.1)':
|
'@t3-oss/env-nextjs@0.13.11(arktype@2.1.20)(typescript@5.9.3)(zod@4.2.1)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@t3-oss/env-core': 0.13.10(arktype@2.1.20)(typescript@5.9.3)(zod@4.2.1)
|
'@t3-oss/env-core': 0.13.11(arktype@2.1.20)(typescript@5.9.3)(zod@4.2.1)
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
arktype: 2.1.20
|
arktype: 2.1.20
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
@@ -15347,7 +15347,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
yaml: 2.5.1
|
yaml: 2.5.1
|
||||||
|
|
||||||
docker-modem@5.0.6:
|
docker-modem@5.0.7:
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.4.3
|
debug: 4.4.3
|
||||||
readable-stream: 3.6.2
|
readable-stream: 3.6.2
|
||||||
@@ -15356,12 +15356,12 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
dockerode@4.0.9:
|
dockerode@4.0.10:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@balena/dockerignore': 1.0.2
|
'@balena/dockerignore': 1.0.2
|
||||||
'@grpc/grpc-js': 1.12.5
|
'@grpc/grpc-js': 1.12.5
|
||||||
'@grpc/proto-loader': 0.7.13
|
'@grpc/proto-loader': 0.7.13
|
||||||
docker-modem: 5.0.6
|
docker-modem: 5.0.7
|
||||||
protobufjs: 7.4.0
|
protobufjs: 7.4.0
|
||||||
tar-fs: 2.1.4
|
tar-fs: 2.1.4
|
||||||
uuid: 10.0.0
|
uuid: 10.0.0
|
||||||
@@ -16120,13 +16120,13 @@ snapshots:
|
|||||||
|
|
||||||
fast-xml-builder@1.1.4:
|
fast-xml-builder@1.1.4:
|
||||||
dependencies:
|
dependencies:
|
||||||
path-expression-matcher: 1.1.3
|
path-expression-matcher: 1.2.0
|
||||||
|
|
||||||
fast-xml-parser@5.5.7:
|
fast-xml-parser@5.5.9:
|
||||||
dependencies:
|
dependencies:
|
||||||
fast-xml-builder: 1.1.4
|
fast-xml-builder: 1.1.4
|
||||||
path-expression-matcher: 1.1.3
|
path-expression-matcher: 1.2.0
|
||||||
strnum: 2.2.1
|
strnum: 2.2.2
|
||||||
|
|
||||||
faster-babel-types@0.1.0(@babel/types@7.26.0):
|
faster-babel-types@0.1.0(@babel/types@7.26.0):
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -18114,7 +18114,7 @@ snapshots:
|
|||||||
|
|
||||||
path-exists@4.0.0: {}
|
path-exists@4.0.0: {}
|
||||||
|
|
||||||
path-expression-matcher@1.1.3: {}
|
path-expression-matcher@1.2.0: {}
|
||||||
|
|
||||||
path-key@3.1.1: {}
|
path-key@3.1.1: {}
|
||||||
|
|
||||||
@@ -19507,7 +19507,7 @@ snapshots:
|
|||||||
|
|
||||||
strip-json-comments@3.1.1: {}
|
strip-json-comments@3.1.1: {}
|
||||||
|
|
||||||
strnum@2.2.1: {}
|
strnum@2.2.2: {}
|
||||||
|
|
||||||
style-to-js@1.1.16:
|
style-to-js@1.1.16:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -19718,7 +19718,7 @@ snapshots:
|
|||||||
byline: 5.0.0
|
byline: 5.0.0
|
||||||
debug: 4.4.3
|
debug: 4.4.3
|
||||||
docker-compose: 1.3.2
|
docker-compose: 1.3.2
|
||||||
dockerode: 4.0.9
|
dockerode: 4.0.10
|
||||||
get-port: 7.1.0
|
get-port: 7.1.0
|
||||||
proper-lockfile: 4.1.2
|
proper-lockfile: 4.1.2
|
||||||
properties-reader: 3.0.1
|
properties-reader: 3.0.1
|
||||||
|
|||||||
Reference in new issue
Block a user