mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 09:09:53 +01:00
Charts V1
This commit is contained in:
164
season.qtpl.go
164
season.qtpl.go
@@ -18,7 +18,7 @@ var (
|
||||
)
|
||||
|
||||
//line season.qtpl:2
|
||||
func StreamIndex(qw422016 *qt422016.Writer, animes []Anime, oracles []MmOracle, log string) {
|
||||
func StreamIndex(qw422016 *qt422016.Writer, animes []Anime, oracles []MmOracle, charts []MovieChart, log string) {
|
||||
//line season.qtpl:2
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
@@ -31,91 +31,123 @@ func StreamIndex(qw422016 *qt422016.Writer, animes []Anime, oracles []MmOracle,
|
||||
//line season.qtpl:28
|
||||
qw422016.N().D(len(animes))
|
||||
//line season.qtpl:28
|
||||
qw422016.N().S(`</td> </tr> </table> </br> <table> `)
|
||||
//line season.qtpl:33
|
||||
qw422016.N().S(`</td> </tr> </table> </br> <table> <tr> <th>MALID</th> <th>SCORE</th> <th>TITLE</th> </tr> `)
|
||||
//line season.qtpl:38
|
||||
for _, anime := range animes {
|
||||
//line season.qtpl:33
|
||||
//line season.qtpl:38
|
||||
qw422016.N().S(` <tr> <td><a href="`)
|
||||
//line season.qtpl:35
|
||||
//line season.qtpl:40
|
||||
qw422016.E().S(anime.URL)
|
||||
//line season.qtpl:35
|
||||
//line season.qtpl:40
|
||||
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
|
||||
//line season.qtpl:35
|
||||
//line season.qtpl:40
|
||||
qw422016.N().DL(anime.Anime)
|
||||
//line season.qtpl:35
|
||||
qw422016.N().S(`</a></td> <td><strong>`)
|
||||
//line season.qtpl:36
|
||||
qw422016.E().S(anime.Title)
|
||||
//line season.qtpl:36
|
||||
qw422016.N().S(`</strong></td> <td>`)
|
||||
//line season.qtpl:37
|
||||
qw422016.N().D(anime.Episodes)
|
||||
//line season.qtpl:37
|
||||
qw422016.N().S(`</td> <td>`)
|
||||
//line season.qtpl:38
|
||||
qw422016.N().F(anime.Score)
|
||||
//line season.qtpl:38
|
||||
qw422016.N().S(`</td> </tr> `)
|
||||
//line season.qtpl:40
|
||||
}
|
||||
//line season.qtpl:40
|
||||
qw422016.N().S(` </table> <h2>MovieManager Oracle</h2> <table> `)
|
||||
//line season.qtpl:44
|
||||
for _, oracle := range oracles {
|
||||
//line season.qtpl:44
|
||||
qw422016.N().S(` <tr> <td><a href="https://movies.hanami.family/movie/`)
|
||||
//line season.qtpl:46
|
||||
qw422016.N().D(oracle.Id)
|
||||
//line season.qtpl:46
|
||||
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
|
||||
//line season.qtpl:46
|
||||
qw422016.N().D(oracle.Id)
|
||||
//line season.qtpl:46
|
||||
qw422016.N().S(`</a></td> <td>`)
|
||||
//line season.qtpl:47
|
||||
qw422016.N().D(oracle.AvgScore)
|
||||
//line season.qtpl:47
|
||||
//line season.qtpl:41
|
||||
qw422016.N().F(anime.Score)
|
||||
//line season.qtpl:41
|
||||
qw422016.N().S(`</td> <td><strong>`)
|
||||
//line season.qtpl:48
|
||||
qw422016.E().S(oracle.Title)
|
||||
//line season.qtpl:48
|
||||
qw422016.N().S(`</strong></td> <td>`)
|
||||
//line season.qtpl:49
|
||||
qw422016.N().DL(oracle.Anime)
|
||||
//line season.qtpl:49
|
||||
qw422016.N().S(`</td> </tr> `)
|
||||
//line season.qtpl:51
|
||||
//line season.qtpl:42
|
||||
qw422016.E().S(anime.Title)
|
||||
//line season.qtpl:42
|
||||
qw422016.N().S(`</strong></td> </tr> `)
|
||||
//line season.qtpl:44
|
||||
}
|
||||
//line season.qtpl:51
|
||||
qw422016.N().S(` </table> </body> </html> `)
|
||||
//line season.qtpl:44
|
||||
qw422016.N().S(` </table> <h2>MovieManager Charts</h2> <table> <tr> <th>MMID</th> <th>MALID</th> <th>USER</th> <th>SCORE</th> <th>TITLE</th> </tr> `)
|
||||
//line season.qtpl:55
|
||||
for _, chart := range charts {
|
||||
//line season.qtpl:55
|
||||
qw422016.N().S(` <tr> <td><a href="https://movies.hanami.family/movie/`)
|
||||
//line season.qtpl:57
|
||||
qw422016.N().D(chart.MmId)
|
||||
//line season.qtpl:57
|
||||
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
|
||||
//line season.qtpl:57
|
||||
qw422016.N().D(chart.MmId)
|
||||
//line season.qtpl:57
|
||||
qw422016.N().S(`</a></td> <td><a href="`)
|
||||
//line season.qtpl:58
|
||||
qw422016.E().S(chart.Data.URL)
|
||||
//line season.qtpl:58
|
||||
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
|
||||
//line season.qtpl:58
|
||||
qw422016.N().DL(chart.Data.Anime)
|
||||
//line season.qtpl:58
|
||||
qw422016.N().S(`</a></td> <td>`)
|
||||
//line season.qtpl:59
|
||||
qw422016.N().D(chart.UserCount)
|
||||
//line season.qtpl:59
|
||||
qw422016.N().S(`</td> <td><strong>`)
|
||||
//line season.qtpl:60
|
||||
qw422016.N().F(chart.AvgScore)
|
||||
//line season.qtpl:60
|
||||
qw422016.N().S(`</strong></td> <td><strong>`)
|
||||
//line season.qtpl:61
|
||||
qw422016.E().S(chart.Data.Title)
|
||||
//line season.qtpl:61
|
||||
qw422016.N().S(`</strong></td> </tr> `)
|
||||
//line season.qtpl:63
|
||||
}
|
||||
//line season.qtpl:63
|
||||
qw422016.N().S(` </table> <h2>MovieManager Oracle</h2> <table> <tr> <th>MMID</th> <th>MALID</th> <th>SCORE</th> <th>TITLE</th> </tr> `)
|
||||
//line season.qtpl:73
|
||||
for _, oracle := range oracles {
|
||||
//line season.qtpl:73
|
||||
qw422016.N().S(` <tr> <td><a href="https://movies.hanami.family/movie/`)
|
||||
//line season.qtpl:75
|
||||
qw422016.N().D(oracle.Id)
|
||||
//line season.qtpl:75
|
||||
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
|
||||
//line season.qtpl:75
|
||||
qw422016.N().D(oracle.Id)
|
||||
//line season.qtpl:75
|
||||
qw422016.N().S(`</a></td> <td>`)
|
||||
//line season.qtpl:76
|
||||
qw422016.N().DL(oracle.Anime)
|
||||
//line season.qtpl:76
|
||||
qw422016.N().S(`</td> <td>`)
|
||||
//line season.qtpl:77
|
||||
qw422016.N().D(oracle.AvgScore)
|
||||
//line season.qtpl:77
|
||||
qw422016.N().S(`</td> <td><strong>`)
|
||||
//line season.qtpl:78
|
||||
qw422016.E().S(oracle.Title)
|
||||
//line season.qtpl:78
|
||||
qw422016.N().S(`</strong></td> </tr> `)
|
||||
//line season.qtpl:80
|
||||
}
|
||||
//line season.qtpl:80
|
||||
qw422016.N().S(` </table> </body> </html> `)
|
||||
//line season.qtpl:84
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
}
|
||||
|
||||
//line season.qtpl:56
|
||||
func WriteIndex(qq422016 qtio422016.Writer, animes []Anime, oracles []MmOracle, log string) {
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
func WriteIndex(qq422016 qtio422016.Writer, animes []Anime, oracles []MmOracle, charts []MovieChart, log string) {
|
||||
//line season.qtpl:85
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line season.qtpl:56
|
||||
StreamIndex(qw422016, animes, oracles, log)
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
StreamIndex(qw422016, animes, oracles, charts, log)
|
||||
//line season.qtpl:85
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
}
|
||||
|
||||
//line season.qtpl:56
|
||||
func Index(animes []Anime, oracles []MmOracle, log string) string {
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
func Index(animes []Anime, oracles []MmOracle, charts []MovieChart, log string) string {
|
||||
//line season.qtpl:85
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line season.qtpl:56
|
||||
WriteIndex(qb422016, animes, oracles, log)
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
WriteIndex(qb422016, animes, oracles, charts, log)
|
||||
//line season.qtpl:85
|
||||
qs422016 := string(qb422016.B)
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
return qs422016
|
||||
//line season.qtpl:56
|
||||
//line season.qtpl:85
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user