basic hygeine fixes

pull/52/head
Akhil Gupta 4 years ago
parent 197b833895
commit 3f22953a66

@ -93,10 +93,10 @@ Podgrab started a tool that I initially built to solve a specific problem I had.
- Auto-download new episodes - Auto-download new episodes
- Download on demand - Download on demand
- Podcast Discovery - Search and Add podcasts using iTunes API - Podcast Discovery - Search and Add podcasts using iTunes API
- Full-fledged podcast player - Full-fledged podcast player - Play downloaded files or stream from original source.
- Add using direct RSS feed url / OMPL import / Search - Add using direct RSS feed URL / OMPL import / Search
- Basic Authentication - Basic Authentication
- Existing episode detection - Existing episode file detection - Prevent re-downloading files if already present
- Easy OPML import/export - Easy OPML import/export
- Customizable episode names - Customizable episode names
- Dark Mode - Dark Mode

@ -668,6 +668,9 @@ div#large-visualization{
background-color: black; background-color: black;
visibility: hidden; visibility: hidden;
} }
[v-cloak] {
display: none;
}
</style> </style>
</head> </head>
@ -676,7 +679,7 @@ div#large-visualization{
{{template "navbar" .}} {{template "navbar" .}}
<br />{{$setting := .setting}} <br />{{$setting := .setting}}
<div id="app"> <div id="app" v-cloak>
<div id="blue-playlist-container"> <div id="blue-playlist-container">
<!-- Amplitude Player --> <!-- Amplitude Player -->

@ -164,6 +164,7 @@ func BackupsPage(c *gin.Context) {
files, err := service.GetAllBackupFiles() files, err := service.GetAllBackupFiles()
var allFiles []interface{} var allFiles []interface{}
setting := c.MustGet("setting").(*db.Setting)
for _, file := range files { for _, file := range files {
arr := strings.Split(file, string(os.PathSeparator)) arr := strings.Split(file, string(os.PathSeparator))
@ -185,6 +186,7 @@ func BackupsPage(c *gin.Context) {
c.HTML(http.StatusOK, "backups.html", gin.H{ c.HTML(http.StatusOK, "backups.html", gin.H{
"backups": allFiles, "backups": allFiles,
"title": "Backups", "title": "Backups",
"setting": setting,
}) })
} else { } else {
c.JSON(http.StatusBadRequest, err) c.JSON(http.StatusBadRequest, err)

@ -151,6 +151,7 @@ func setupSettings() gin.HandlerFunc {
setting := db.GetOrCreateSetting() setting := db.GetOrCreateSetting()
c.Set("setting", setting) c.Set("setting", setting)
c.Writer.Header().Set("X-Clacks-Overhead", "GNU Terry Pratchett")
c.Next() c.Next()
} }

Loading…
Cancel
Save