Update to 0.7.0-unstable4

This commit is contained in:
Yann Stepienik
2023-06-13 12:07:30 +01:00
parent d4a2f24a50
commit 8d113b5337
3 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -67,9 +67,9 @@ function ShowcasesItem({ isDark, item }) {
overflow: 'hidden',
}}></p>
<Stack direction="row" spacing={2} justifyContent="flex-start">
<Button className="CheckButton" color="primary" variant="contained">
Install
</Button>
<div>
<DockerComposeImport installerInit defaultName={item.name} dockerComposeInit={item.compose} />
</div>
<Link to={"/cosmos-ui/market-listing/" + item.name} style={{
textDecoration: 'none',
}}>
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.7.0-unstable3",
"version": "0.7.0-unstable4",
"description": "",
"main": "test-server.js",
"bugs": {
+5
View File
@@ -304,6 +304,11 @@ func StartServer() {
router.PathPrefix("/cosmos-ui").Handler(http.StripPrefix("/cosmos-ui", fs))
// temporary message to help people migrate version. DELETE IN NEXT VERSION
router.HandleFunc("/ui", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Please empty your browser's cache and reload the page. You are seeing this message because the UI was moved from /ui to /cosmos-ui, in order to fix compatibility with apps like OpenSense who also use /ui. The issue is that your browser still has the old UI URL cached. This message will disappear in the next version of Cosmos, to solve the compatibility issue. Sorry for the inconvenience."))
})
router = proxy.BuildFromConfig(router, HTTPConfig.ProxyConfig)
router.HandleFunc("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {