1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-10-09 07:39:08 +00:00

rewrite structure

This commit is contained in:
devfake
2015-06-22 11:57:22 +02:00
parent 5972c72b67
commit 3bc8290ab8
15 changed files with 103 additions and 133 deletions

View File

@@ -0,0 +1,19 @@
module.exports = {
template: require('../views/inner.html'),
data: function() {
return {
modal: false
}
},
components: {
searchmatch: require('./modals/searchMatch'),
navigation: require('./navigation'),
chat: require('./chat'),
lobby: require('./lobby')
}
};

View File

@@ -0,0 +1,26 @@
var router = require('./../routes');
module.exports = {
template: require('../views/landing.html'),
inherit: true,
ready: function() {
setTimeout(function() {
$('.container-form-landing').addClass('active')
}, 300);
},
methods: {
asGuest: function() {
// set localstorage for guest
$('.icon-guest-load').show();
setTimeout(function() {
window.location.href = './lobby';
}, 500);
}
}
};

View File

@@ -2,15 +2,4 @@ module.exports = {
template: require('../views/lobby.html'),
data: function() {
return {
modal: false
}
},
components: {
searchmatch: require('./modals/searchMatch'),
navigation: require('./navigation')
}
};

View File

@@ -1,5 +0,0 @@
module.exports = {
template: require('../../views/modals/login.html')
};

View File

@@ -12,8 +12,8 @@ module.exports = {
},
searchMatch: function() {
this.modal = true;
// trigger match functions
this.modal = true;
// trigger match functions
}
}