@@ -252,6 +252,17 @@ var vm = new Vue({
252252 'refreshRate' : s . refresh_rate ,
253253 'authenticated' : app . authenticated ,
254254 'feed_errors' : { } ,
255+
256+ 'refreshRateOptions' : [
257+ { title : "0" , value : 0 } ,
258+ { title : "10m" , value : 10 } ,
259+ { title : "30m" , value : 30 } ,
260+ { title : "1h" , value : 60 } ,
261+ { title : "2h" , value : 120 } ,
262+ { title : "4h" , value : 240 } ,
263+ { title : "12h" , value : 720 } ,
264+ { title : "24h" , value : 1440 } ,
265+ ] ,
255266 }
256267 } ,
257268 computed : {
@@ -309,7 +320,11 @@ var vm = new Vue({
309320 contentVideos : function ( ) {
310321 if ( ! this . itemSelectedDetails ) return [ ]
311322 return ( this . itemSelectedDetails . media_links || [ ] ) . filter ( l => l . type === 'video' )
312- }
323+ } ,
324+ refreshRateTitle : function ( ) {
325+ const entry = this . refreshRateOptions . find ( o => o . value === this . refreshRate )
326+ return entry ? entry . title : '0'
327+ } ,
313328 } ,
314329 watch : {
315330 'theme' : {
@@ -778,6 +793,12 @@ var vm = new Vue({
778793 if ( target && scroll ) scrollto ( target , scroll )
779794 } )
780795 } ,
796+ changeRefreshRate : function ( offset ) {
797+ const curIdx = this . refreshRateOptions . findIndex ( o => o . value === this . refreshRate )
798+ if ( curIdx <= 0 && offset < 0 ) return
799+ if ( curIdx >= ( this . refreshRateOptions . length - 1 ) && offset > 0 ) return
800+ this . refreshRate = this . refreshRateOptions [ curIdx + offset ] . value
801+ } ,
781802 }
782803} )
783804
0 commit comments