mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-04 09:35:07 +01:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user