mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 12:41:54 +03:00
web ui: index and basic details page, api refactoring
This commit is contained in:
@@ -37,19 +37,19 @@ type PDF struct {
|
||||
Grayscale bool `env:"GRAYSCALE,default=false"`
|
||||
MediaPrint bool `env:"MEDIA_PRINT,default=true"`
|
||||
Zoom float64 `env:"ZOOM,default=1"`
|
||||
Viewport string `env:"VIEWPORT,default=1920x1080"`
|
||||
DPI uint `env:"DPI,default=300"`
|
||||
Viewport string `env:"VIEWPORT,default=1280x720"`
|
||||
DPI uint `env:"DPI,default=150"`
|
||||
Filename string `env:"FILENAME,default=page.pdf"`
|
||||
}
|
||||
|
||||
type API struct {
|
||||
Prefix string `env:"PREFIX,default=/"`
|
||||
Address string `env:"ADDRESS,default=0.0.0.0:5001"`
|
||||
}
|
||||
|
||||
type UI struct {
|
||||
Enabled bool `env:"ENABLED,default=true"`
|
||||
Prefix string `env:"PREFIX,default=/"`
|
||||
Theme string `env:"THEME,default=basic"`
|
||||
}
|
||||
|
||||
type DB struct {
|
||||
|
||||
Reference in New Issue
Block a user