Skip to content

Commit

Permalink
[release] v0.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar committed Mar 31, 2024
1 parent 04fde54 commit 1f4c13f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/dashboard/resourceDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ResourceDashboard = ({ xAxis, zoom, setZoom, slot, metrics }) => {
</span>
}}
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])
} />

<Grid item xs={12} md={7} lg={8}>
Expand Down
11 changes: 11 additions & 0 deletions client/src/pages/servapps/containers/docker-compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.15.2",
"version": "0.15.3",
"description": "",
"main": "test-server.js",
"bugs": {
Expand Down
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 1f4c13f

Please sign in to comment.