mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
enable client view change
This commit is contained in:
parent
897fa598f6
commit
3a31f3031a
@ -1,5 +1,14 @@
|
||||
var Router = require('director').Router;
|
||||
var router = new Router();
|
||||
|
||||
module.exports = {
|
||||
|
||||
template: require('../views/navigation.html')
|
||||
template: require('../views/navigation.html'),
|
||||
|
||||
methods: {
|
||||
changeView: function(view) {
|
||||
router.setRoute('test');
|
||||
}
|
||||
}
|
||||
|
||||
};
|
@ -9,6 +9,9 @@ module.exports = {
|
||||
app.section = 'inner';
|
||||
});
|
||||
|
||||
router.on('/test', function() {
|
||||
})
|
||||
|
||||
this.configure();
|
||||
router.init();
|
||||
},
|
||||
|
@ -1,7 +1,7 @@
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#/lobby" class="active">Lobby</a></li>
|
||||
<li><a href="#">Deck Builder</a></li>
|
||||
<li><a href="#">Highscore</a></li>
|
||||
<li><a class="active" v-on="click: changeView('lobby')">Lobby</a></li>
|
||||
<li><a href="#" v-on="click: changeView('builder')">Deck Builder</a></li>
|
||||
<li><a href="#" v-on="click: changeView('highscore')">Highscore</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -5,6 +5,7 @@
|
||||
use Exception;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class Handler extends ExceptionHandler {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user