mirror of
https://github.com/exane/not-gwent-online
synced 2025-11-08 09:08:40 +00:00
implement login view
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
module.exports = {
|
||||
|
||||
template: "<h2>deckbuilder hier</h2>",
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
||||
template: require('../views/deckBuilder.html')
|
||||
|
||||
};
|
||||
@@ -6,6 +6,16 @@ module.exports = {
|
||||
|
||||
inherit: true,
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
modal: false
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
login: require('./modals/login')
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
setTimeout(function() {
|
||||
$('.container-form-landing').addClass('active')
|
||||
@@ -20,6 +30,14 @@ module.exports = {
|
||||
setTimeout(function() {
|
||||
window.location.href = './lobby';
|
||||
}, 500);
|
||||
},
|
||||
|
||||
openLogin: function() {
|
||||
this.modal = true;
|
||||
|
||||
setTimeout(function() {
|
||||
$('.login-username').focus();
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
11
site/client/app/components/modals/login.js
Normal file
11
site/client/app/components/modals/login.js
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
|
||||
template: require('../../views/modals/login.html'),
|
||||
|
||||
inherit: true,
|
||||
|
||||
methods: {
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user