1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Added shortcuts

This commit is contained in:
Nicolas Lœuillet 2016-10-24 11:20:11 +02:00 committed by Thomas Citharel
parent 644b340178
commit 3cc78f0679
16 changed files with 121 additions and 6 deletions

View file

@ -30,6 +30,7 @@ class AppKernel extends Kernel
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
new Craue\ConfigBundle\CraueConfigBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
// wallabag bundles
new Wallabag\CoreBundle\WallabagCoreBundle(),

View file

@ -1,4 +1,5 @@
const $ = require('jquery');
require('mousetrap');
/* Allows inline call qr-code call */
import jrQrcode from 'jr-qrcode'; // eslint-disable-line
@ -51,3 +52,14 @@ function initExport() {
}
export { savePercent, retrievePercent, initFilters, initExport };
/** Shortcuts **/
/* Go to */
Mousetrap.bind('g u', function() { window.location.href = Routing.generate('homepage') });
Mousetrap.bind('g s', function() { window.location.href = Routing.generate('starred') });
/* Actions */
Mousetrap.bind('g a', function() {
$("#nav-btn-add").trigger("click");
});

View file

@ -351,3 +351,6 @@ old_sound_rabbit_mq:
queue_options:
name: 'wallabag.import.chrome'
callback: wallabag_import.consumer.amqp.chrome
fos_js_routing:
routes_to_expose: [ homepage, starred, archive, all, tag, config, import, developer, howto, about, logout ]

View file

@ -52,3 +52,6 @@ craue_config_settings_modify:
path: /settings
defaults:
_controller: CraueConfigBundle:Settings:modify
fos_js_routing:
resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"