-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfooter_common.twig
35 lines (31 loc) · 1.55 KB
/
footer_common.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!-- Laravel Localisation -->
<script src="{{ asset_rev('resources/assets/general/js/lang.min.js') }}"></script>
<script>
Lang.addMessages({{ translationStrings|raw }});
// Add the messages before setting the locale...
Lang.setLocale("{{ App.getLocale() }}");
</script>
<!-- Laravel Routes -->
<script src="{{ asset_rev('resources/assets/general/js/routes.min.js') }}"></script>
<script>
laroute.set_absolute({{ Config.get('laroute.absolute', false) }});
laroute.set_root_url("{{ url('/') }}");
laroute.set_routes({{ routeCollection|raw }});
laroute.set_prefix('{{ Config.get('laroute.prefix', '') }}');
laroute.set_asset_params({v: '{{ Config.get('release.version') }}'});
</script>
<!-- Vendor -->
<script src="{{ asset_rev('resources/assets/libs/common.min.js') }}"></script>
<script src="{{ asset_rev('resources/assets/libs/operator.common.min.js') }}"></script>
<!-- General -->
<script src="{{ asset_rev('resources/assets/general/js/main.js') }}"></script>
{% if auth_check() and withoutNotifications is not defined %}
<script src="{{ asset_rev('resources/assets/operator/js/notification.js') }}"></script>
<script>
(function (App, Echo) {
App.Notifications.setType("{{ Config.get('settings.operator' ~ auth_user().id ~ '.display_notifications') }}")
App.Notifications.setDesktopIcon("{{ get_icon('resources/assets/operator/images/favicon/favicon_space.png') }}")
App.Notifications.configure(new Echo({{ echoConfig|raw }}), "{{ auth_user().id }}")
})(App, Echo);
</script>
{% endif %}