|
|
@ -4,7 +4,7 @@
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>PodGrab</title>
|
|
|
|
<title>PodGrab</title>
|
|
|
|
{{template "commoncss"}}
|
|
|
|
{{template "commoncss" .}}
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
.button-delete{
|
|
|
|
.button-delete{
|
|
|
|
background-color: indianred;
|
|
|
|
background-color: indianred;
|
|
|
@ -78,7 +78,12 @@
|
|
|
|
<span class="label-body">Append episode number to episode file name</span>
|
|
|
|
<span class="label-body">Append episode number to episode file name</span>
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
|
|
<input type="submit" value="Save" class="button button-primary">
|
|
|
|
<label for="darkMode">
|
|
|
|
|
|
|
|
<input type="checkbox" name="darkMode" v-model="darkMode">
|
|
|
|
|
|
|
|
<span class="label-body">Use Dark Mode</span>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type="submit" value="Save" class="button">
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -116,7 +121,9 @@
|
|
|
|
var app = new Vue({
|
|
|
|
var app = new Vue({
|
|
|
|
delimiters: ['${', '}'],
|
|
|
|
delimiters: ['${', '}'],
|
|
|
|
el: '#app',
|
|
|
|
el: '#app',
|
|
|
|
|
|
|
|
mounted(){
|
|
|
|
|
|
|
|
this.originalThemeSetting= this.darkMode;
|
|
|
|
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
methods:{
|
|
|
|
saveSettings:function(e){
|
|
|
|
saveSettings:function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
@ -127,7 +134,8 @@ var app = new Vue({
|
|
|
|
initialDownloadCount:self.initialDownloadCount,
|
|
|
|
initialDownloadCount:self.initialDownloadCount,
|
|
|
|
autoDownload:self.autoDownload,
|
|
|
|
autoDownload:self.autoDownload,
|
|
|
|
appendDateToFileName:self.appendDateToFileName,
|
|
|
|
appendDateToFileName:self.appendDateToFileName,
|
|
|
|
appendEpisodeNumberToFileName:self.appendEpisodeNumberToFileName
|
|
|
|
appendEpisodeNumberToFileName:self.appendEpisodeNumberToFileName,
|
|
|
|
|
|
|
|
darkMode:self.darkMode
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(function(response){
|
|
|
|
.then(function(response){
|
|
|
@ -137,8 +145,10 @@ var app = new Vue({
|
|
|
|
position: "top-right",
|
|
|
|
position: "top-right",
|
|
|
|
duration : 5000
|
|
|
|
duration : 5000
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(self.originalThemeSetting);
|
|
|
|
|
|
|
|
if(self.originalThemeSetting!= self.darkMode){
|
|
|
|
|
|
|
|
window.location.reload()
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(function(error){
|
|
|
|
.catch(function(error){
|
|
|
|
if(error.response){
|
|
|
|
if(error.response){
|
|
|
@ -163,8 +173,9 @@ var app = new Vue({
|
|
|
|
initialDownloadCount: {{ .setting.InitialDownloadCount }},
|
|
|
|
initialDownloadCount: {{ .setting.InitialDownloadCount }},
|
|
|
|
autoDownload: {{ .setting.AutoDownload }},
|
|
|
|
autoDownload: {{ .setting.AutoDownload }},
|
|
|
|
appendDateToFileName: {{ .setting.AppendDateToFileName }},
|
|
|
|
appendDateToFileName: {{ .setting.AppendDateToFileName }},
|
|
|
|
appendEpisodeNumberToFileName:{{ .setting.AppendEpisodeNumberToFileName }}
|
|
|
|
appendEpisodeNumberToFileName:{{ .setting.AppendEpisodeNumberToFileName }},
|
|
|
|
|
|
|
|
darkMode:{{ .setting.DarkMode }},
|
|
|
|
|
|
|
|
originalThemeSetting:{{ .setting.DarkMode }}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|