1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-09-02 14:07:31 +00:00

redefine app structure

This commit is contained in:
devfake
2015-06-23 10:36:29 +02:00
parent 8ce1038c8a
commit bb503c1d03
18 changed files with 14 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
module.exports = {
template: require('../views/chat.html'),
data: function() {
return {
message: ''
}
},
methods: {
submitChat: function(e) {
e.preventDefault();
console.log(this.message);
}
}
};

View File

@@ -0,0 +1,22 @@
module.exports = {
template: require('../views/inner.html'),
inherit: true,
data: function() {
return {
modal: false
}
},
components: {
searchmatch: require('./search-match'),
navigation: require('./navigation'),
chat: require('./chat'),
lobby: require('./../../lobby/components/lobby'),
deckBuilder: require('./../../deck-builder/components/deck-builder'),
}
};

View File

@@ -0,0 +1,25 @@
module.exports = {
template: require('../views/navigation.html'),
inherit: true,
data: function() {
return {
// todo: work with slug filter
navigation: [
{ name: 'Lobby', route: '/lobby' },
{ name: 'Deck Builder', route: '/deck-builder' },
{ name: 'Highscore', route: '/highscore' }
]
}
},
methods: {
searchMatch: function() {
this.modal = true;
// trigger match functions
}
}
};

View File

@@ -0,0 +1,14 @@
module.exports = {
template: require('./../views/search-match.html'),
inherit: true,
methods: {
cancelMatch: function() {
this.modal = false;
// trigger match functions
}
}
};