All checks were successful
Publish / Test, build, and push image (push) Successful in 3m38s
35 lines
631 B
Go
35 lines
631 B
Go
package app
|
|
|
|
import "archi_folio/internal/store"
|
|
|
|
const (
|
|
maxUploadBytes = 20 << 20
|
|
maxFormBytes = 24 << 20
|
|
)
|
|
|
|
type Config struct {
|
|
Addr string
|
|
DatabasePath string
|
|
SessionSecret string
|
|
AdminUsername string
|
|
AdminPassword string
|
|
UploadDir string
|
|
Version string
|
|
}
|
|
|
|
type pageData struct {
|
|
Title string
|
|
Active string
|
|
Content store.SiteContent
|
|
Projects []store.Project
|
|
Project store.Project
|
|
Image store.ProjectImage
|
|
Contacts []store.ContactRequest
|
|
Admin bool
|
|
AdminTab string
|
|
Error string
|
|
Success string
|
|
CurrentPath string
|
|
Version string
|
|
}
|