Browse Source

go install github.com/a-h/templ/cmd/templ@latest

pull/7312/merge
Chris Lu 2 days ago
parent
commit
479e7bc38b
  1. 2
      weed/admin/view/app/admin_templ.go
  2. 2
      weed/admin/view/app/cluster_brokers_templ.go
  3. 2
      weed/admin/view/app/cluster_collections_templ.go
  4. 2
      weed/admin/view/app/cluster_ec_shards_templ.go
  5. 2
      weed/admin/view/app/cluster_ec_volumes_templ.go
  6. 2
      weed/admin/view/app/cluster_filers_templ.go
  7. 2
      weed/admin/view/app/cluster_masters_templ.go
  8. 2
      weed/admin/view/app/cluster_volume_servers_templ.go
  9. 2
      weed/admin/view/app/cluster_volumes_templ.go
  10. 2
      weed/admin/view/app/collection_details_templ.go
  11. 2
      weed/admin/view/app/ec_volume_details_templ.go
  12. 2
      weed/admin/view/app/file_browser_templ.go
  13. 2
      weed/admin/view/app/maintenance_config_schema_templ.go
  14. 2
      weed/admin/view/app/maintenance_config_templ.go
  15. 2
      weed/admin/view/app/maintenance_queue_templ.go
  16. 2
      weed/admin/view/app/maintenance_workers_templ.go
  17. 2
      weed/admin/view/app/object_store_users_templ.go
  18. 2
      weed/admin/view/app/policies_templ.go
  19. 2
      weed/admin/view/app/s3_buckets_templ.go
  20. 2
      weed/admin/view/app/subscribers_templ.go
  21. 2
      weed/admin/view/app/task_config_schema_templ.go
  22. 2
      weed/admin/view/app/task_config_templ.go
  23. 2
      weed/admin/view/app/task_config_templ_templ.go
  24. 2
      weed/admin/view/app/task_detail_templ.go
  25. 2
      weed/admin/view/app/topic_details_templ.go
  26. 2
      weed/admin/view/app/topics_templ.go
  27. 2
      weed/admin/view/app/volume_details_templ.go
  28. 2
      weed/admin/view/components/config_sections_templ.go
  29. 2
      weed/admin/view/components/form_fields_templ.go
  30. 4
      weed/admin/view/layout/layout_templ.go

2
weed/admin/view/app/admin_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/cluster_brokers_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/cluster_collections_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/cluster_ec_shards_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/cluster_ec_volumes_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/cluster_filers_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/cluster_masters_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/cluster_volume_servers_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/cluster_volumes_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/collection_details_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/ec_volume_details_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/file_browser_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/maintenance_config_schema_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/maintenance_config_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/maintenance_queue_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/maintenance_workers_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/object_store_users_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/policies_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/s3_buckets_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/subscribers_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/task_config_schema_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/task_config_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/task_config_templ_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/task_detail_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/topic_details_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/topics_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/app/volume_details_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package app
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/components/config_sections_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package components
//lint:file-ignore SA4006 This context is only used if a nested component is present.

2
weed/admin/view/components/form_fields_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package components
//lint:file-ignore SA4006 This context is only used if a nested component is present.

4
weed/admin/view/layout/layout_templ.go

@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.906
// templ: version: v0.3.960
package layout
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@ -37,7 +37,6 @@ func Layout(c *gin.Context, content templ.Component) templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
username := c.GetString("username")
if username == "" {
username = "admin"
@ -139,7 +138,6 @@ func Layout(c *gin.Context, content templ.Component) templ.Component {
return templ_7745c5c3_Err
}
for _, menuItem := range GetConfigurationMenuItems() {
isActiveItem := currentPath == menuItem.URL
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<li class=\"nav-item\">")
if templ_7745c5c3_Err != nil {

Loading…
Cancel
Save