Add job-archive-demo.tar to .gitignore and ignore .idea directory in migrations/mysql***

***Update config-demo.json with new database connection details***
***Add console.log statement in Systems.root.svelte***
***Add "Partitions" menu item in Header.svelte***
***Add partitions related files and routes***
***Add partitions.entrypoint.js***
***Update Makefile to use pnpm instead of npm***
***Comment out wget commands in startDemo.sh***
***Update rollup.config.mjs to include partitions.entrypoint.js***
***Add PartitionSetting.svelte and Dashboard.svelte
This commit is contained in:
sanjay7178
2024-02-15 17:05:01 +05:30
parent f534ad66e1
commit f58a0217f8
15 changed files with 990 additions and 7 deletions

View File

@@ -45,6 +45,8 @@ var routes []Route = []Route{
{"/monitoring/node/{cluster}/{hostname}", "monitoring/node.tmpl", "Node <ID> - ClusterCockpit", false, setupNodeRoute},
{"/monitoring/analysis/{cluster}", "monitoring/analysis.tmpl", "Analysis - ClusterCockpit", true, setupAnalysisRoute},
{"/monitoring/status/{cluster}", "monitoring/status.tmpl", "Status of <ID> - ClusterCockpit", false, setupClusterRoute},
{"/partitions/systems/{cluster}", "partitions/systems.tmpl", "Cluster <ID> - ClusterCockpit", false, setupClusterRoute},
}
func setupHomeRoute(i InfoType, r *http.Request) InfoType {
@@ -97,6 +99,8 @@ func setupClusterRoute(i InfoType, r *http.Request) InfoType {
i["id"] = vars["cluster"]
i["cluster"] = vars["cluster"]
from, to := r.URL.Query().Get("from"), r.URL.Query().Get("to")
fmt.Println(i["cluster"], i["hostname"] , i["id"], from, to)
fmt.Println(i)
if from != "" || to != "" {
i["from"] = from
i["to"] = to