mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10:36:53 +00:00
rewrite app view
This commit is contained in:
parent
3bc8290ab8
commit
be39679690
@ -2,13 +2,13 @@ module.exports = {
|
|||||||
|
|
||||||
template: require('../../views/modals/searchMatch.html'),
|
template: require('../../views/modals/searchMatch.html'),
|
||||||
|
|
||||||
inherit: true,
|
inherit: true,
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
cancelMatch: function() {
|
cancelMatch: function() {
|
||||||
this.modal = false;
|
this.modal = false;
|
||||||
// trigger match functions
|
// trigger match functions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
@ -12,4 +12,4 @@
|
|||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<component is="chat"></component>
|
<component is="chat"></component>
|
@ -14,11 +14,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="{{ $section }}">
|
<body class="{{ $section }}">
|
||||||
|
|
||||||
@if(Auth::check() || Request::path() != '/')
|
<component is="{{ $section }}"></component>
|
||||||
<component is="inner"></component>
|
|
||||||
@else
|
|
||||||
<component is="landing"></component>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||||
<script src="{{ url('assets/js/bundle.js') }}"></script>
|
<script src="{{ url('assets/js/bundle.js') }}"></script>
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
get('/', function() {
|
get('/', function() {
|
||||||
|
if(Auth::check()) {
|
||||||
|
return redirect('/lobby');
|
||||||
|
}
|
||||||
|
|
||||||
return view('app')
|
return view('app')
|
||||||
->withSection('landing');
|
->withSection('landing');
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user