diff --git a/core/webapi/artwork.go b/core/webapi/artwork.go index 713771d..6e94549 100644 --- a/core/webapi/artwork.go +++ b/core/webapi/artwork.go @@ -90,6 +90,20 @@ type UserBrief struct { Avatar string `json:"imageBig"` } +type ArtworkBrief struct { + ID string `json:"id"` + Title string `json:"title"` + ArtistID string `json:"userId"` + ArtistName string `json:"userName"` + ArtistAvatar string `json:"profileImageUrl"` + Thumbnail string `json:"url"` + Pages int `json:"pageCount"` + XRestrict int `json:"xRestrict"` + AiType int `json:"aiType"` + Bookmarked any `json:"bookmarkData"` + IllustType int `json:"illustType"` +} + type Illust struct { ID string `json:"id"` Title string `json:"title"` diff --git a/core/webapi/newest.go b/core/webapi/newest.go index fd4639f..8af17a8 100644 --- a/core/webapi/newest.go +++ b/core/webapi/newest.go @@ -7,19 +7,6 @@ import ( "github.com/gofiber/fiber/v2" ) -type ArtworkBrief struct { - ID string `json:"id"` - Title string `json:"title"` - ArtistID string `json:"userId"` - ArtistName string `json:"userName"` - ArtistAvatar string `json:"profileImageUrl"` - Thumbnail string `json:"url"` - Pages int `json:"pageCount"` - XRestrict int `json:"xRestrict"` - AiType int `json:"aiType"` - Bookmarked any `json:"bookmarkData"` -} - func GetNewestArtworks(c *fiber.Ctx, worktype string, r18 string) ([]ArtworkBrief, error) { token := session.GetToken(c) URL := http.GetNewestArtworksURL(worktype, r18, "0") diff --git a/views/assets/tumblr.svg b/views/assets/tumblr.svg new file mode 100644 index 0000000..6b4e836 --- /dev/null +++ b/views/assets/tumblr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/views/pages/components/thumbnail-dt.jet.html b/views/pages/components/thumbnail-dt.jet.html index 66d2348..c4178ad 100644 --- a/views/pages/components/thumbnail-dt.jet.html +++ b/views/pages/components/thumbnail-dt.jet.html @@ -1,4 +1,5 @@