personal-website/websiteapp/finder/finder.go

35 lines
728 B
Go
Raw Normal View History

2023-03-20 11:20:37 +00:00
package finder
import (
2023-04-29 13:58:39 +00:00
"personalwebsite/webfilesystem"
2023-03-20 11:20:37 +00:00
"personalwebsite/websiteapp"
"github.com/gin-gonic/gin"
)
2023-04-29 12:03:03 +00:00
type FinderApplication struct {
2023-04-29 13:58:39 +00:00
fs *webfilesystem.WebFileSystem
2023-03-20 11:20:37 +00:00
manifest websiteapp.ApplicationManifest
}
2023-04-29 13:58:39 +00:00
func NewFinderApplication(webFs *webfilesystem.WebFileSystem) *FinderApplication {
return &FinderApplication{
fs: webFs,
manifest: websiteapp.ApplicationManifest{
AppId: "finder",
WindowName: "TODO DELETE", //TODO DELETE
},
}
}
2023-04-29 12:03:03 +00:00
func (f *FinderApplication) GetManifest() websiteapp.ApplicationManifest {
2023-03-20 11:20:37 +00:00
return f.manifest
}
2023-04-29 12:03:03 +00:00
func (f *FinderApplication) GetId() string {
2023-03-20 11:20:37 +00:00
return f.manifest.AppId
}
2023-04-29 12:03:03 +00:00
func (f *FinderApplication) Render(isMobile bool) gin.H {
2023-04-29 13:58:39 +00:00
2023-03-20 11:20:37 +00:00
return gin.H{}
}