projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Started code review + some fixes (unfinished)
[vchess.git]
/
client
/
src
/
views
/
Variants.vue
diff --git
a/client/src/views/Variants.vue
b/client/src/views/Variants.vue
index
7f78f04
..
3106115
100644
(file)
--- a/
client/src/views/Variants.vue
+++ b/
client/src/views/Variants.vue
@@
-19,33
+19,35
@@
export default {
data: function() {
return {
curPrefix: "",
data: function() {
return {
curPrefix: "",
- st: store.state
,
+ st: store.state
};
},
computed: {
};
},
computed: {
- filteredVariants: function () {
- const capitalizedPrefix = this.curPrefix.replace(/^\w/, c => c.toUpperCase());
+ filteredVariants: function() {
+ const capitalizedPrefix = this.curPrefix.replace(/^\w/, c =>
+ c.toUpperCase()
+ );
const variants = this.st.variants
const variants = this.st.variants
-
.filter(
v => {
- return v.name.startsWith(capitalizedPrefix);
- })
-
.map(
v => {
- return {
- name: v.name,
- desc: v.description,
- };
- })
-
.sort((a,
b) => {
- return a.name.localeCompare(b.name);
- });
+
.filter(
v => {
+
return v.name.startsWith(capitalizedPrefix);
+
})
+
.map(
v => {
+
return {
+
name: v.name,
+ desc: v.description
+
};
+
})
+
.sort((a,
b) => {
+
return a.name.localeCompare(b.name);
+
});
return variants;
return variants;
- }
,
+ }
},
methods: {
getLink: function(vname) {
return "/variants/" + vname;
},
methods: {
getLink: function(vname) {
return "/variants/" + vname;
- }
,
- }
,
+ }
+ }
};
</script>
};
</script>