mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Changing scroll speed. Adding authenticated info to every request.
This commit is contained in:
parent
47556ec303
commit
8c0906fbff
4 changed files with 15 additions and 19 deletions
11
fabfile.py
vendored
11
fabfile.py
vendored
|
@ -110,11 +110,20 @@ def staging_full():
|
|||
|
||||
@roles('task')
|
||||
def celery():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
run('git pull')
|
||||
celery_stop()
|
||||
celery_start()
|
||||
|
||||
@roles('task')
|
||||
def celery_stop():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
run('sudo supervisorctl stop celery')
|
||||
with settings(warn_only=True):
|
||||
run('./utils/kill_celery.sh')
|
||||
|
||||
@roles('task')
|
||||
def celery_start():
|
||||
with cd(env.NEWSBLUR_PATH):
|
||||
run('sudo supervisorctl start celery')
|
||||
run('tail logs/newsblur.log')
|
||||
|
||||
|
|
|
@ -820,9 +820,9 @@
|
|||
}
|
||||
// NEWSBLUR.log(['page_in_story', this.$s.$story_pane, direction, page_height, scroll_height]);
|
||||
if (this.story_view == 'page') {
|
||||
this.$s.$feed_iframe.scrollTo({top:dir+'='+scroll_height, left:'+=0'}, 150);
|
||||
this.$s.$feed_iframe.scrollTo({top:dir+'='+scroll_height, left:'+=0'}, 260);
|
||||
} else if (this.story_view == 'feed') {
|
||||
this.$s.$feed_stories.scrollTo({top:dir+'='+scroll_height, left:'+=0'}, 150);
|
||||
this.$s.$feed_stories.scrollTo({top:dir+'='+scroll_height, left:'+=0'}, 370);
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -6032,7 +6032,7 @@
|
|||
});
|
||||
$document.bind('keydown', 'space', function(e) {
|
||||
e.preventDefault();
|
||||
self.page_in_story(0.4, 1);
|
||||
self.page_in_story(0.2, 1);
|
||||
});
|
||||
$document.bind('keydown', 'shift+space', function(e) {
|
||||
e.preventDefault();
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
django
|
||||
mongoengine
|
||||
django-celery
|
||||
django-compress
|
||||
South
|
||||
django-extensions
|
||||
psycopg2
|
||||
BeautifulSoup
|
||||
pyyaml
|
||||
nltk
|
||||
lxml
|
||||
oauth2
|
||||
pytz
|
||||
boto
|
||||
gunicorn
|
|
@ -102,6 +102,8 @@ def json_view(func):
|
|||
response = dict(response)
|
||||
if 'result' not in response:
|
||||
response['result'] = 'ok'
|
||||
authenticated = request.user.is_authenticated()
|
||||
response['authenticated'] = authenticated
|
||||
except KeyboardInterrupt:
|
||||
# Allow keyboard interrupts through for debugging.
|
||||
raise
|
||||
|
|
Loading…
Add table
Reference in a new issue