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:
19
site/client/app/components/inner.js
Normal file
19
site/client/app/components/inner.js
Normal 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')
|
||||
}
|
||||
|
||||
};
|
26
site/client/app/components/landing.js
Normal file
26
site/client/app/components/landing.js
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
@@ -2,15 +2,4 @@ module.exports = {
|
||||
|
||||
template: require('../views/lobby.html'),
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
modal: false
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
searchmatch: require('./modals/searchMatch'),
|
||||
navigation: require('./navigation')
|
||||
}
|
||||
|
||||
};
|
@@ -1,5 +0,0 @@
|
||||
module.exports = {
|
||||
|
||||
template: require('../../views/modals/login.html')
|
||||
|
||||
};
|
@@ -12,8 +12,8 @@ module.exports = {
|
||||
},
|
||||
|
||||
searchMatch: function() {
|
||||
this.modal = true;
|
||||
// trigger match functions
|
||||
this.modal = true;
|
||||
// trigger match functions
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user