commit a8aa7aafc1b80a238ef840134d9b9b03e9a4a18a
parent 12353856ffc342b1634ab457b2b203f30cfc58f0
Author: breadcat <breadcat@users.noreply.github.com>
Date: Sat, 11 Apr 2026 10:23:39 +0100
Move stray types to include-type
Diffstat:
3 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/include-admin.go b/include-admin.go
@@ -12,15 +12,6 @@ import (
"time"
)
-type AdminPageData struct {
- Config Config
- Error string
- Success string
- OrphanData OrphanData
- ActiveTab string
- MissingThumbnails []VideoFile
-}
-
func renderAdminPage(w http.ResponseWriter, r *http.Request, data AdminPageData) {
if data.ActiveTab == "" {
data.ActiveTab = r.FormValue("active_tab")
diff --git a/include-cbz.go b/include-cbz.go
@@ -185,12 +185,6 @@ func drawImage(dst *image.RGBA, src image.Image, x, y int) {
}
}
-// CBZImage represents a single image within a CBZ file
-type CBZImage struct {
- Filename string
- Index int
-}
-
// getCBZImages returns a list of images in a CBZ file
func getCBZImages(cbzPath string) ([]CBZImage, error) {
r, err := zip.OpenReader(cbzPath)
diff --git a/include-types.go b/include-types.go
@@ -124,3 +124,17 @@ type SedRule struct {
Description string `json:"description"`
Command string `json:"command"`
}
+
+type CBZImage struct {
+ Filename string
+ Index int
+}
+
+type AdminPageData struct {
+ Config Config
+ Error string
+ Success string
+ OrphanData OrphanData
+ ActiveTab string
+ MissingThumbnails []VideoFile
+}
+\ No newline at end of file