mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
update docs and web
This commit is contained in:
@@ -517,6 +517,12 @@ const docTemplate = `{
|
||||
"name": "title",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Torrent category",
|
||||
"name": "category",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Torrent poster",
|
||||
@@ -638,6 +644,9 @@ const docTemplate = `{
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -965,6 +974,9 @@ const docTemplate = `{
|
||||
"bytes_written_data": {
|
||||
"type": "integer"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
"chunks_read": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
@@ -510,6 +510,12 @@
|
||||
"name": "title",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Torrent category",
|
||||
"name": "category",
|
||||
"in": "formData"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Torrent poster",
|
||||
@@ -631,6 +637,9 @@
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -958,6 +967,9 @@
|
||||
"bytes_written_data": {
|
||||
"type": "integer"
|
||||
},
|
||||
"category": {
|
||||
"type": "string"
|
||||
},
|
||||
"chunks_read": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
@@ -18,6 +18,8 @@ definitions:
|
||||
properties:
|
||||
action:
|
||||
type: string
|
||||
category:
|
||||
type: string
|
||||
data:
|
||||
type: string
|
||||
hash:
|
||||
@@ -242,6 +244,8 @@ definitions:
|
||||
type: integer
|
||||
bytes_written_data:
|
||||
type: integer
|
||||
category:
|
||||
type: string
|
||||
chunks_read:
|
||||
type: integer
|
||||
chunks_read_useful:
|
||||
@@ -633,6 +637,10 @@ paths:
|
||||
in: formData
|
||||
name: title
|
||||
type: string
|
||||
- description: Torrent category
|
||||
in: formData
|
||||
name: category
|
||||
type: string
|
||||
- description: Torrent poster
|
||||
in: formData
|
||||
name: poster
|
||||
|
||||
@@ -118,20 +118,20 @@ var Mstile150x150png []byte
|
||||
//go:embed pages/site.webmanifest
|
||||
var Sitewebmanifest []byte
|
||||
|
||||
//go:embed pages/static/js/2.00261e25.chunk.js
|
||||
var Staticjs200261e25chunkjs []byte
|
||||
//go:embed pages/static/js/2.15e75e72.chunk.js
|
||||
var Staticjs215e75e72chunkjs []byte
|
||||
|
||||
//go:embed pages/static/js/2.00261e25.chunk.js.LICENSE.txt
|
||||
var Staticjs200261e25chunkjsLICENSEtxt []byte
|
||||
//go:embed pages/static/js/2.15e75e72.chunk.js.LICENSE.txt
|
||||
var Staticjs215e75e72chunkjsLICENSEtxt []byte
|
||||
|
||||
//go:embed pages/static/js/2.00261e25.chunk.js.map
|
||||
var Staticjs200261e25chunkjsmap []byte
|
||||
//go:embed pages/static/js/2.15e75e72.chunk.js.map
|
||||
var Staticjs215e75e72chunkjsmap []byte
|
||||
|
||||
//go:embed pages/static/js/main.4f4f0915.chunk.js
|
||||
var Staticjsmain4f4f0915chunkjs []byte
|
||||
//go:embed pages/static/js/main.c58215fb.chunk.js
|
||||
var Staticjsmainc58215fbchunkjs []byte
|
||||
|
||||
//go:embed pages/static/js/main.4f4f0915.chunk.js.map
|
||||
var Staticjsmain4f4f0915chunkjsmap []byte
|
||||
//go:embed pages/static/js/main.c58215fb.chunk.js.map
|
||||
var Staticjsmainc58215fbchunkjsmap []byte
|
||||
|
||||
//go:embed pages/static/js/runtime-main.f542387e.js
|
||||
var Staticjsruntimemainf542387ejs []byte
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"files": {
|
||||
"main.js": "/static/js/main.4f4f0915.chunk.js",
|
||||
"main.js.map": "/static/js/main.4f4f0915.chunk.js.map",
|
||||
"main.js": "/static/js/main.c58215fb.chunk.js",
|
||||
"main.js.map": "/static/js/main.c58215fb.chunk.js.map",
|
||||
"runtime-main.js": "/static/js/runtime-main.f542387e.js",
|
||||
"runtime-main.js.map": "/static/js/runtime-main.f542387e.js.map",
|
||||
"static/js/2.00261e25.chunk.js": "/static/js/2.00261e25.chunk.js",
|
||||
"static/js/2.00261e25.chunk.js.map": "/static/js/2.00261e25.chunk.js.map",
|
||||
"static/js/2.15e75e72.chunk.js": "/static/js/2.15e75e72.chunk.js",
|
||||
"static/js/2.15e75e72.chunk.js.map": "/static/js/2.15e75e72.chunk.js.map",
|
||||
"index.html": "/index.html",
|
||||
"static/js/2.00261e25.chunk.js.LICENSE.txt": "/static/js/2.00261e25.chunk.js.LICENSE.txt"
|
||||
"static/js/2.15e75e72.chunk.js.LICENSE.txt": "/static/js/2.15e75e72.chunk.js.LICENSE.txt"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/js/runtime-main.f542387e.js",
|
||||
"static/js/2.00261e25.chunk.js",
|
||||
"static/js/main.4f4f0915.chunk.js"
|
||||
"static/js/2.15e75e72.chunk.js",
|
||||
"static/js/main.c58215fb.chunk.js"
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -207,7 +207,7 @@ func RouteWebPages(route gin.IRouter) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Browserconfigxml))
|
||||
c.Header("Cache-Control", "public, max-age=31536000")
|
||||
c.Header("ETag", etag)
|
||||
c.Data(200, "text/xml; charset=utf-8", Browserconfigxml)
|
||||
c.Data(200, "application/xml; charset=utf-8", Browserconfigxml)
|
||||
})
|
||||
|
||||
route.GET("/dlnaicon-120.png", func(c *gin.Context) {
|
||||
@@ -280,46 +280,46 @@ func RouteWebPages(route gin.IRouter) {
|
||||
c.Data(200, "application/manifest+json", Sitewebmanifest)
|
||||
})
|
||||
|
||||
route.GET("/static/js/2.00261e25.chunk.js", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjs200261e25chunkjs))
|
||||
route.GET("/static/js/2.15e75e72.chunk.js", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjs215e75e72chunkjs))
|
||||
c.Header("Cache-Control", "public, max-age=31536000")
|
||||
c.Header("ETag", etag)
|
||||
c.Data(200, "text/javascript; charset=utf-8", Staticjs200261e25chunkjs)
|
||||
c.Data(200, "application/javascript; charset=utf-8", Staticjs215e75e72chunkjs)
|
||||
})
|
||||
|
||||
route.GET("/static/js/2.00261e25.chunk.js.LICENSE.txt", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjs200261e25chunkjsLICENSEtxt))
|
||||
route.GET("/static/js/2.15e75e72.chunk.js.LICENSE.txt", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjs215e75e72chunkjsLICENSEtxt))
|
||||
c.Header("Cache-Control", "public, max-age=31536000")
|
||||
c.Header("ETag", etag)
|
||||
c.Data(200, "text/plain; charset=utf-8", Staticjs200261e25chunkjsLICENSEtxt)
|
||||
c.Data(200, "text/plain; charset=utf-8", Staticjs215e75e72chunkjsLICENSEtxt)
|
||||
})
|
||||
|
||||
route.GET("/static/js/2.00261e25.chunk.js.map", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjs200261e25chunkjsmap))
|
||||
route.GET("/static/js/2.15e75e72.chunk.js.map", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjs215e75e72chunkjsmap))
|
||||
c.Header("Cache-Control", "public, max-age=31536000")
|
||||
c.Header("ETag", etag)
|
||||
c.Data(200, "application/json", Staticjs200261e25chunkjsmap)
|
||||
c.Data(200, "application/json", Staticjs215e75e72chunkjsmap)
|
||||
})
|
||||
|
||||
route.GET("/static/js/main.4f4f0915.chunk.js", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjsmain4f4f0915chunkjs))
|
||||
route.GET("/static/js/main.c58215fb.chunk.js", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjsmainc58215fbchunkjs))
|
||||
c.Header("Cache-Control", "public, max-age=31536000")
|
||||
c.Header("ETag", etag)
|
||||
c.Data(200, "text/javascript; charset=utf-8", Staticjsmain4f4f0915chunkjs)
|
||||
c.Data(200, "application/javascript; charset=utf-8", Staticjsmainc58215fbchunkjs)
|
||||
})
|
||||
|
||||
route.GET("/static/js/main.4f4f0915.chunk.js.map", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjsmain4f4f0915chunkjsmap))
|
||||
route.GET("/static/js/main.c58215fb.chunk.js.map", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjsmainc58215fbchunkjsmap))
|
||||
c.Header("Cache-Control", "public, max-age=31536000")
|
||||
c.Header("ETag", etag)
|
||||
c.Data(200, "application/json", Staticjsmain4f4f0915chunkjsmap)
|
||||
c.Data(200, "application/json", Staticjsmainc58215fbchunkjsmap)
|
||||
})
|
||||
|
||||
route.GET("/static/js/runtime-main.f542387e.js", func(c *gin.Context) {
|
||||
etag := fmt.Sprintf("%x", md5.Sum(Staticjsruntimemainf542387ejs))
|
||||
c.Header("Cache-Control", "public, max-age=31536000")
|
||||
c.Header("ETag", etag)
|
||||
c.Data(200, "text/javascript; charset=utf-8", Staticjsruntimemainf542387ejs)
|
||||
c.Data(200, "application/javascript; charset=utf-8", Staticjsruntimemainf542387ejs)
|
||||
})
|
||||
|
||||
route.GET("/static/js/runtime-main.f542387e.js.map", func(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user