diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/AppKernel.php | 1 | ||||
-rw-r--r-- | app/Resources/static/themes/_global/js/tools.js | 12 | ||||
-rw-r--r-- | app/config/config.yml | 3 | ||||
-rw-r--r-- | app/config/routing.yml | 3 |
4 files changed, 19 insertions, 0 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php index 342bd139..81b83ef9 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php | |||
@@ -30,6 +30,7 @@ class AppKernel extends Kernel | |||
30 | new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), | 30 | new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), |
31 | new Craue\ConfigBundle\CraueConfigBundle(), | 31 | new Craue\ConfigBundle\CraueConfigBundle(), |
32 | new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), | 32 | new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), |
33 | new FOS\JsRoutingBundle\FOSJsRoutingBundle(), | ||
33 | 34 | ||
34 | // wallabag bundles | 35 | // wallabag bundles |
35 | new Wallabag\CoreBundle\WallabagCoreBundle(), | 36 | new Wallabag\CoreBundle\WallabagCoreBundle(), |
diff --git a/app/Resources/static/themes/_global/js/tools.js b/app/Resources/static/themes/_global/js/tools.js index 55de090c..9a98f0a6 100644 --- a/app/Resources/static/themes/_global/js/tools.js +++ b/app/Resources/static/themes/_global/js/tools.js | |||
@@ -1,4 +1,5 @@ | |||
1 | const $ = require('jquery'); | 1 | const $ = require('jquery'); |
2 | require('mousetrap'); | ||
2 | 3 | ||
3 | /* Allows inline call qr-code call */ | 4 | /* Allows inline call qr-code call */ |
4 | import jrQrcode from 'jr-qrcode'; // eslint-disable-line | 5 | import jrQrcode from 'jr-qrcode'; // eslint-disable-line |
@@ -51,3 +52,14 @@ function initExport() { | |||
51 | } | 52 | } |
52 | 53 | ||
53 | export { savePercent, retrievePercent, initFilters, initExport }; | 54 | export { savePercent, retrievePercent, initFilters, initExport }; |
55 | |||
56 | /** Shortcuts **/ | ||
57 | |||
58 | /* Go to */ | ||
59 | Mousetrap.bind('g u', function() { window.location.href = Routing.generate('homepage') }); | ||
60 | Mousetrap.bind('g s', function() { window.location.href = Routing.generate('starred') }); | ||
61 | |||
62 | /* Actions */ | ||
63 | Mousetrap.bind('g a', function() { | ||
64 | $("#nav-btn-add").trigger("click"); | ||
65 | }); | ||
diff --git a/app/config/config.yml b/app/config/config.yml index 168634cf..494a67a9 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -351,3 +351,6 @@ old_sound_rabbit_mq: | |||
351 | queue_options: | 351 | queue_options: |
352 | name: 'wallabag.import.chrome' | 352 | name: 'wallabag.import.chrome' |
353 | callback: wallabag_import.consumer.amqp.chrome | 353 | callback: wallabag_import.consumer.amqp.chrome |
354 | |||
355 | fos_js_routing: | ||
356 | routes_to_expose: [ homepage, starred, archive, all, tag, config, import, developer, howto, about, logout ] | ||
diff --git a/app/config/routing.yml b/app/config/routing.yml index 750ed435..eedf51d5 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml | |||
@@ -52,3 +52,6 @@ craue_config_settings_modify: | |||
52 | path: /settings | 52 | path: /settings |
53 | defaults: | 53 | defaults: |
54 | _controller: CraueConfigBundle:Settings:modify | 54 | _controller: CraueConfigBundle:Settings:modify |
55 | |||
56 | fos_js_routing: | ||
57 | resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml" | ||