This commit is contained in:
2025-05-23 16:10:49 +04:00
parent 3f01074e3f
commit 29d0d25a3b
133 changed files with 346 additions and 168 deletions

View File

@@ -0,0 +1,38 @@
package heroagent
import "fmt"
// Config holds configuration for HeroLauncher.
type Config struct {
Port string
// Add other configuration fields as needed
}
// DefaultConfig returns a default configuration.
func DefaultConfig() Config {
return Config{
Port: "8081", // Default port for HeroLauncher, can be different from UI
}
}
// HeroLauncher represents the main application launcher.
type HeroLauncher struct {
config Config
}
// New creates a new HeroLauncher instance.
func New(config Config) *HeroLauncher {
return &HeroLauncher{
config: config,
}
}
// Start starts the HeroLauncher.
// This is a placeholder and would contain actual server start logic.
func (hl *HeroLauncher) Start() error {
fmt.Printf("Placeholder HeroLauncher started on port %s (from placeholder pkg/heroagent)\n", hl.config.Port)
// In a real scenario, this would be a blocking call, e.g., http.ListenAndServe()
// For the placeholder, we can just block indefinitely or simulate work.
select {} // Block forever
return nil
}

View File

@@ -1,4 +1,4 @@
{{ extends "pkg/servers/ui/views/layouts/base.jet" }}
{{ extends "/layouts/base.jet" }}
{{ block title() }}Dashboard - HeroApp UI{{ end }}

View File

@@ -1,4 +1,4 @@
{{ extends "pkg/servers/ui/views/layouts/base.jet" }}
{{ extends "/layouts/base.jet" }}
{{ block title() }}Login - HeroApp UI{{ end }}

View File

@@ -1,4 +1,4 @@
{{ extends "pkg/servers/ui/views/layouts/base.jet" }}
{{ extends "/layouts/base.jet" }}
{{ block title() }}Process Manager - HeroApp UI{{ end }}