Skip to content

Commit

Permalink
Add exploration aspect, navigate on scroll (#62, #106)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Aug 13, 2020
1 parent 106bd07 commit 4525326
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions frontend/src/aspects/exploration.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import channel from '../explorer/radio';

import router from '../global/exploration-router';
import explorer from '../global/explorer-view';
import '../global/explorer-controller';

channel.on('currentRoute', route => router.navigate(route));
1 change: 0 additions & 1 deletion frontend/src/aspects/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import mainRouter from '../global/main-router';
import userFsm from '../global/user-fsm';
import { ensureSources } from '../global/sources';
import explorerView from '../global/explorer-view';
import '../global/explorer-controller';

history.once('route', () => {
menuView.render().$el.appendTo('#header');
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ import { when, ready } from 'jquery';
import '@dhl-uu/jquery-promise';

import { baseUrl } from 'config.json';
import './core/scroll-easings';
import { i18nPromise } from './global/i18n';
import './global/internalLinks';
import './global/hbsHelpers';
import user from './global/user';
import { prefetch } from './global/ld-store';
import './global/item-cache';
import './core/scroll-easings';
import './aspects/navigation';
import './aspects/authentication';
import './aspects/registration';
import './aspects/exploration';

when(ready, i18nPromise).done(function () {
user.fetch();
Expand Down

0 comments on commit 4525326

Please sign in to comment.