diff --git a/changelog.md b/changelog.md index 5eb4fb3e..b0f489d8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## Version 0.15.3 + - Add support for sysctls as array + - Fix temperature appearing in the disk usage widget + ## Version 0.15.2 - Fix an issue with DB creations diff --git a/client/src/pages/dashboard/resourceDashboard.jsx b/client/src/pages/dashboard/resourceDashboard.jsx index 7fbb857b..8754f496 100644 --- a/client/src/pages/dashboard/resourceDashboard.jsx +++ b/client/src/pages/dashboard/resourceDashboard.jsx @@ -38,7 +38,7 @@ const ResourceDashboard = ({ xAxis, zoom, setZoom, slot, metrics }) => { }} data={ - Object.keys(metrics).filter((key) => key.startsWith("cosmos.system.disk")).map((key) => metrics[key]) + Object.keys(metrics).filter((key) => key.startsWith("cosmos.system.disk.")).map((key) => metrics[key]) } /> diff --git a/client/src/pages/servapps/containers/docker-compose.jsx b/client/src/pages/servapps/containers/docker-compose.jsx index 9d9fade3..bf72f012 100644 --- a/client/src/pages/servapps/containers/docker-compose.jsx +++ b/client/src/pages/servapps/containers/docker-compose.jsx @@ -182,6 +182,17 @@ const convertDockerCompose = (config, serviceName, dockerCompose, setYmlError) = } } + // convert Sysctls array to map + if (doc.services[key].sysctls) { + if (Array.isArray(doc.services[key].sysctls)) { + let sysctls = {}; + doc.services[key].sysctls.forEach((sysctl) => { + sysctls['' + sysctl] = ''; + }); + doc.services[key].sysctls = sysctls; + } + } + // convert network if (doc.services[key].networks) { if (Array.isArray(doc.services[key].networks)) { diff --git a/package.json b/package.json index d60d89c3..3e442b0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.15.2", + "version": "0.15.3", "description": "", "main": "test-server.js", "bugs": { diff --git a/vite.config.js b/vite.config.js index c697baa8..c11b9c16 100644 --- a/vite.config.js +++ b/vite.config.js @@ -11,7 +11,8 @@ export default defineConfig({ server: { proxy: { '/cosmos/api': { - target: 'https://localhost:8443', + // target: 'https://localhost:8443', + target: 'https://yann-server.com', secure: false, ws: true, }